blob: 579ecfff23b952a3d2e1f1052234cb669d0edb19 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswelld000e1d2003-12-18 16:43:17 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 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
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 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
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
John Criswelld000e1d2003-12-18 16:43:17 +0000425PACKAGE_VERSION='[1.1]'
426PACKAGE_STRING='[LLVM] [1.1]'
John Criswell7a73b802003-06-30 21:59:07 +0000427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell33a911a2003-11-25 20:36:46 +0000429ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
John Criswell0538d422004-02-20 22:30:22 +0000468ac_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 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000469ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
John Criswelld000e1d2003-12-18 16:43:17 +0000957\`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018 case $ac_init_help in
John Criswelld000e1d2003-12-18 16:43:17 +00001019 short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
John Criswell7a73b802003-06-30 21:59:07 +00001020 esac
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001032 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
Alkis Evlogimenos3e58e482003-12-20 21:35:15 +00001034 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO)
John Criswellcf2e9f72004-02-10 22:36:35 +00001035 --enable-spec95 Compile SPEC 95 benchmarks (default is NO)
John Criswell0538d422004-02-20 22:30:22 +00001036 --enable-povray Compile Povray benchmark (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
John Criswelld000e1d2003-12-18 16:43:17 +00001134[LLVM] configure [1.1]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
John Criswelld000e1d2003-12-18 16:43:17 +00001149It was created by [LLVM] $as_me [1.1], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$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 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell33a911a2003-11-25 20:36:46 +00001522for i in `ls ${srcdir}/projects`
1523do
1524 if test ${i} != "CVS"
1525 then
John Criswell2f2741b2003-12-12 20:15:23 +00001526 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001527 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001528
1529
John Criswell33a911a2003-11-25 20:36:46 +00001530subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001531
John Criswell33a911a2003-11-25 20:36:46 +00001532 fi
1533 fi
1534done
John Criswell559a6c12003-09-30 16:31:48 +00001535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswellf424d742003-10-07 21:13:47 +00001556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell613758d2003-09-11 18:03:50 +00001616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
John Criswellcf2e9f72004-02-10 22:36:35 +00001619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
Misha Brukman811ce9f2003-11-12 22:16:51 +00001628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1629
1630
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1632
1633
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1635
1636
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
Brian Gaekec45be042003-10-07 06:01:34 +00001676 ac_config_commands="$ac_config_commands utils/Makefile"
1677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswell392aaa32003-07-22 19:18:09 +00001682
John Criswell7a73b802003-06-30 21:59:07 +00001683# Find a good install program. We prefer a C program (faster),
1684# so one script is as good as another. But avoid the broken or
1685# incompatible versions:
1686# SysV /etc/install, /usr/sbin/install
1687# SunOS /usr/etc/install
1688# IRIX /sbin/install
1689# AIX /bin/install
1690# AmigaOS /C/install, which installs bootblocks on floppy discs
1691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1694# ./install, which can be erroneously created by make from ./install.sh.
1695echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1696echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1697if test -z "$INSTALL"; then
1698if test "${ac_cv_path_install+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 # Account for people who put trailing slashes in PATH elements.
1707case $as_dir/ in
1708 ./ | .// | /cC/* | \
1709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1710 /usr/ucb/* ) ;;
1711 *)
1712 # OSF1 and SCO ODT 3.0 have their own names for install.
1713 # Don't use installbsd from OSF since it installs stuff as root
1714 # by default.
1715 for ac_prog in ginstall scoinst install; do
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1718 if test $ac_prog = install &&
1719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720 # AIX install. It has an incompatible calling convention.
1721 :
1722 elif test $ac_prog = install &&
1723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1724 # program-specific install script used by HP pwplus--don't use.
1725 :
1726 else
1727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1728 break 3
1729 fi
1730 fi
1731 done
1732 done
1733 ;;
1734esac
1735done
1736
1737
1738fi
1739 if test "${ac_cv_path_install+set}" = set; then
1740 INSTALL=$ac_cv_path_install
1741 else
1742 # As a last resort, use the slow shell script. We don't cache a
1743 # path for INSTALL within a source directory, because that will
1744 # break other packages using the cache if that directory is
1745 # removed, or if the path is relative.
1746 INSTALL=$ac_install_sh
1747 fi
1748fi
1749echo "$as_me:$LINENO: result: $INSTALL" >&5
1750echo "${ECHO_T}$INSTALL" >&6
1751
1752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1753# It thinks the first close brace ends the variable substitution.
1754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1755
1756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1757
1758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1759
1760
1761# Make sure we can run config.sub.
1762$ac_config_sub sun4 >/dev/null 2>&1 ||
1763 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1765 { (exit 1); exit 1; }; }
1766
1767echo "$as_me:$LINENO: checking build system type" >&5
1768echo $ECHO_N "checking build system type... $ECHO_C" >&6
1769if test "${ac_cv_build+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772 ac_cv_build_alias=$build_alias
1773test -z "$ac_cv_build_alias" &&
1774 ac_cv_build_alias=`$ac_config_guess`
1775test -z "$ac_cv_build_alias" &&
1776 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1778 { (exit 1); exit 1; }; }
1779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1786echo "${ECHO_T}$ac_cv_build" >&6
1787build=$ac_cv_build
1788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793echo "$as_me:$LINENO: checking host system type" >&5
1794echo $ECHO_N "checking host system type... $ECHO_C" >&6
1795if test "${ac_cv_host+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798 ac_cv_host_alias=$host_alias
1799test -z "$ac_cv_host_alias" &&
1800 ac_cv_host_alias=$ac_cv_build_alias
1801ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1803echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1804 { (exit 1); exit 1; }; }
1805
1806fi
1807echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1808echo "${ECHO_T}$ac_cv_host" >&6
1809host=$ac_cv_host
1810host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813
1814
1815echo "$as_me:$LINENO: checking target system type" >&5
1816echo $ECHO_N "checking target system type... $ECHO_C" >&6
1817if test "${ac_cv_target+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 ac_cv_target_alias=$target_alias
1821test "x$ac_cv_target_alias" = "x" &&
1822 ac_cv_target_alias=$ac_cv_host_alias
1823ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1824 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1825echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1826 { (exit 1); exit 1; }; }
1827
1828fi
1829echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1830echo "${ECHO_T}$ac_cv_target" >&6
1831target=$ac_cv_target
1832target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1833target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1834target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1835
1836
1837# The aliases save the names the user supplied, while $host etc.
1838# will get canonicalized.
1839test -n "$target_alias" &&
1840 test "$program_prefix$program_suffix$program_transform_name" = \
1841 NONENONEs,x,x, &&
1842 program_prefix=${target_alias}-
1843
1844case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001845 *-*-linux*)
1846 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001847
Brian Gaekef3b24102003-11-16 18:38:14 +00001848 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1849 then
1850 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001851
Brian Gaekef3b24102003-11-16 18:38:14 +00001852 fi
John Criswell7a73b802003-06-30 21:59:07 +00001853 ;;
1854
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001855 *-*-solaris*)
1856 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001857
Brian Gaekef3b24102003-11-16 18:38:14 +00001858 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1859 then
1860 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001861
Brian Gaekef3b24102003-11-16 18:38:14 +00001862 fi
John Criswell7a73b802003-06-30 21:59:07 +00001863 ;;
1864
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001865 *-*-darwin*)
1866 OS=Darwin
1867
1868 ;;
1869
John Criswell7a73b802003-06-30 21:59:07 +00001870 *) OS=Unknown
1871
1872 ;;
1873esac
1874
1875case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001876 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001877
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001878 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001879esac
1880
John Criswell76595452003-07-01 22:07:39 +00001881case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001882 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001883
1884 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001885 sparc*-*) ARCH=Sparc
1886
1887 ;;
1888 powerpc*-*) ARCH=PowerPC
1889
1890 ;;
1891 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001892
1893 ;;
1894esac
1895
John Criswell7a73b802003-06-30 21:59:07 +00001896ac_ext=cc
1897ac_cpp='$CXXCPP $CPPFLAGS'
1898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1901if test -n "$ac_tool_prefix"; then
1902 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1903 do
1904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906echo "$as_me:$LINENO: checking for $ac_word" >&5
1907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908if test "${ac_cv_prog_CXX+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910else
1911 if test -n "$CXX"; then
1912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913else
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1924 fi
1925done
1926done
1927
1928fi
1929fi
1930CXX=$ac_cv_prog_CXX
1931if test -n "$CXX"; then
1932 echo "$as_me:$LINENO: result: $CXX" >&5
1933echo "${ECHO_T}$CXX" >&6
1934else
1935 echo "$as_me:$LINENO: result: no" >&5
1936echo "${ECHO_T}no" >&6
1937fi
1938
1939 test -n "$CXX" && break
1940 done
1941fi
1942if test -z "$CXX"; then
1943 ac_ct_CXX=$CXX
1944 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1945do
1946 # Extract the first word of "$ac_prog", so it can be a program name with args.
1947set dummy $ac_prog; ac_word=$2
1948echo "$as_me:$LINENO: checking for $ac_word" >&5
1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953 if test -n "$ac_ct_CXX"; then
1954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955else
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CXX="$ac_prog"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1966 fi
1967done
1968done
1969
1970fi
1971fi
1972ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1973if test -n "$ac_ct_CXX"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1975echo "${ECHO_T}$ac_ct_CXX" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981 test -n "$ac_ct_CXX" && break
1982done
1983test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1984
1985 CXX=$ac_ct_CXX
1986fi
1987
1988
1989# Provide some information about the compiler.
1990echo "$as_me:$LINENO:" \
1991 "checking for C++ compiler version" >&5
1992ac_compiler=`set X $ac_compile; echo $2`
1993{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1994 (eval $ac_compiler --version </dev/null >&5) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }
1998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1999 (eval $ac_compiler -v </dev/null >&5) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2004 (eval $ac_compiler -V </dev/null >&5) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }
2008
2009cat >conftest.$ac_ext <<_ACEOF
2010#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002011/* confdefs.h. */
2012_ACEOF
2013cat confdefs.h >>conftest.$ac_ext
2014cat >>conftest.$ac_ext <<_ACEOF
2015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002016
John Criswell7a73b802003-06-30 21:59:07 +00002017int
2018main ()
2019{
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002026ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002027# Try to create an executable without -o first, disregard a.out.
2028# It will help us diagnose broken compilers, and finding out an intuition
2029# of exeext.
2030echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2031echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2032ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034 (eval $ac_link_default) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; then
2038 # Find the output, starting from the most likely. This scheme is
2039# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2040# resort.
2041
2042# Be careful to initialize this variable, since it used to be cached.
2043# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002045# b.out is created by i960 compilers.
2046for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047do
2048 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002049 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2051 ;;
2052 conftest.$ac_ext )
2053 # This is the source file.
2054 ;;
2055 [ab].out )
2056 # We found the default executable, but exeext='' is most
2057 # certainly right.
2058 break;;
2059 *.* )
2060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061 # FIXME: I believe we export ac_cv_exeext for Libtool,
2062 # but it would be cool to find out if it's true. Does anybody
2063 # maintain Libtool? --akim.
2064 export ac_cv_exeext
2065 break;;
2066 * )
2067 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002068 esac
2069done
2070else
2071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: C++ compiler cannot create executables
2077See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002078 { (exit 77); exit 77; }; }
2079fi
2080
2081ac_exeext=$ac_cv_exeext
2082echo "$as_me:$LINENO: result: $ac_file" >&5
2083echo "${ECHO_T}$ac_file" >&6
2084
2085# Check the compiler produces executables we can run. If not, either
2086# the compiler is broken, or we cross compile.
2087echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2088echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2089# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2090# If not cross compiling, check that we can run a simple program.
2091if test "$cross_compiling" != yes; then
2092 if { ac_try='./$ac_file'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 cross_compiling=no
2099 else
2100 if test "$cross_compiling" = maybe; then
2101 cross_compiling=yes
2102 else
2103 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002104If you meant to cross compile, use \`--host'.
2105See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002106echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002107If you meant to cross compile, use \`--host'.
2108See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002109 { (exit 1); exit 1; }; }
2110 fi
2111 fi
2112fi
2113echo "$as_me:$LINENO: result: yes" >&5
2114echo "${ECHO_T}yes" >&6
2115
John Criswell0c38eaf2003-09-10 15:17:25 +00002116rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002117ac_clean_files=$ac_clean_files_save
2118# Check the compiler produces executables we can run. If not, either
2119# the compiler is broken, or we cross compile.
2120echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123echo "${ECHO_T}$cross_compiling" >&6
2124
2125echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128 (eval $ac_link) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; then
2132 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2134# work properly (i.e., refer to `conftest.exe'), while it won't with
2135# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002136for ac_file in conftest.exe conftest conftest.*; do
2137 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002138 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002140 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141 export ac_cv_exeext
2142 break;;
2143 * ) break;;
2144 esac
2145done
2146else
John Criswell0c38eaf2003-09-10 15:17:25 +00002147 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&5
2149echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2150See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002151 { (exit 1); exit 1; }; }
2152fi
2153
2154rm -f conftest$ac_cv_exeext
2155echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2156echo "${ECHO_T}$ac_cv_exeext" >&6
2157
2158rm -f conftest.$ac_ext
2159EXEEXT=$ac_cv_exeext
2160ac_exeext=$EXEEXT
2161echo "$as_me:$LINENO: checking for suffix of object files" >&5
2162echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2163if test "${ac_cv_objext+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166 cat >conftest.$ac_ext <<_ACEOF
2167#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002168/* confdefs.h. */
2169_ACEOF
2170cat confdefs.h >>conftest.$ac_ext
2171cat >>conftest.$ac_ext <<_ACEOF
2172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002173
John Criswell7a73b802003-06-30 21:59:07 +00002174int
2175main ()
2176{
2177
2178 ;
2179 return 0;
2180}
2181_ACEOF
2182rm -f conftest.o conftest.obj
2183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2192 break;;
2193 esac
2194done
2195else
2196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: cannot compute suffix of object files: cannot compile
2202See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002203 { (exit 1); exit 1; }; }
2204fi
2205
2206rm -f conftest.$ac_cv_objext conftest.$ac_ext
2207fi
2208echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2209echo "${ECHO_T}$ac_cv_objext" >&6
2210OBJEXT=$ac_cv_objext
2211ac_objext=$OBJEXT
2212echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2213echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2214if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 cat >conftest.$ac_ext <<_ACEOF
2218#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002219/* confdefs.h. */
2220_ACEOF
2221cat confdefs.h >>conftest.$ac_ext
2222cat >>conftest.$ac_ext <<_ACEOF
2223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002224
John Criswell7a73b802003-06-30 21:59:07 +00002225int
2226main ()
2227{
2228#ifndef __GNUC__
2229 choke me
2230#endif
2231
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_compiler_gnu=yes
2249else
2250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002251sed 's/^/| /' conftest.$ac_ext >&5
2252
John Criswell7a73b802003-06-30 21:59:07 +00002253ac_compiler_gnu=no
2254fi
2255rm -f conftest.$ac_objext conftest.$ac_ext
2256ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2257
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2260echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2261GXX=`test $ac_compiler_gnu = yes && echo yes`
2262ac_test_CXXFLAGS=${CXXFLAGS+set}
2263ac_save_CXXFLAGS=$CXXFLAGS
2264CXXFLAGS="-g"
2265echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2266echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2267if test "${ac_cv_prog_cxx_g+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270 cat >conftest.$ac_ext <<_ACEOF
2271#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002272/* confdefs.h. */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002277
John Criswell7a73b802003-06-30 21:59:07 +00002278int
2279main ()
2280{
2281
2282 ;
2283 return 0;
2284}
2285_ACEOF
2286rm -f conftest.$ac_objext
2287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 (eval $ac_try) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cxx_g=yes
2299else
2300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002301sed 's/^/| /' conftest.$ac_ext >&5
2302
John Criswell7a73b802003-06-30 21:59:07 +00002303ac_cv_prog_cxx_g=no
2304fi
2305rm -f conftest.$ac_objext conftest.$ac_ext
2306fi
2307echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2308echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2309if test "$ac_test_CXXFLAGS" = set; then
2310 CXXFLAGS=$ac_save_CXXFLAGS
2311elif test $ac_cv_prog_cxx_g = yes; then
2312 if test "$GXX" = yes; then
2313 CXXFLAGS="-g -O2"
2314 else
2315 CXXFLAGS="-g"
2316 fi
2317else
2318 if test "$GXX" = yes; then
2319 CXXFLAGS="-O2"
2320 else
2321 CXXFLAGS=
2322 fi
2323fi
2324for ac_declaration in \
2325 ''\
2326 '#include <stdlib.h>' \
2327 'extern "C" void std::exit (int) throw (); using std::exit;' \
2328 'extern "C" void std::exit (int); using std::exit;' \
2329 'extern "C" void exit (int) throw ();' \
2330 'extern "C" void exit (int);' \
2331 'void exit (int);'
2332do
2333 cat >conftest.$ac_ext <<_ACEOF
2334#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002340#include <stdlib.h>
2341$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002342int
2343main ()
2344{
2345exit (42);
2346 ;
2347 return 0;
2348}
2349_ACEOF
2350rm -f conftest.$ac_objext
2351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 :
2363else
2364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002365sed 's/^/| /' conftest.$ac_ext >&5
2366
John Criswell7a73b802003-06-30 21:59:07 +00002367continue
2368fi
2369rm -f conftest.$ac_objext conftest.$ac_ext
2370 cat >conftest.$ac_ext <<_ACEOF
2371#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002377$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002378int
2379main ()
2380{
2381exit (42);
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
2387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 break
2399else
2400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002401sed 's/^/| /' conftest.$ac_ext >&5
2402
John Criswell7a73b802003-06-30 21:59:07 +00002403fi
2404rm -f conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408 echo '#ifdef __cplusplus' >>confdefs.h
2409 echo $ac_declaration >>confdefs.h
2410 echo '#endif' >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424if test -n "$ac_tool_prefix"; then
2425 for ac_prog in gcc
2426 do
2427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2429echo "$as_me:$LINENO: checking for $ac_word" >&5
2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431if test "${ac_cv_prog_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448done
2449done
2450
2451fi
2452fi
2453CC=$ac_cv_prog_CC
2454if test -n "$CC"; then
2455 echo "$as_me:$LINENO: result: $CC" >&5
2456echo "${ECHO_T}$CC" >&6
2457else
2458 echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6
2460fi
2461
2462 test -n "$CC" && break
2463 done
2464fi
2465if test -z "$CC"; then
2466 ac_ct_CC=$CC
2467 for ac_prog in gcc
2468do
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470set dummy $ac_prog; ac_word=$2
2471echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_ac_ct_CC="$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490done
2491done
2492
2493fi
2494fi
2495ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496if test -n "$ac_ct_CC"; then
2497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498echo "${ECHO_T}$ac_ct_CC" >&6
2499else
2500 echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6
2502fi
2503
2504 test -n "$ac_ct_CC" && break
2505done
2506
2507 CC=$ac_ct_CC
2508fi
2509
2510
John Criswell0c38eaf2003-09-10 15:17:25 +00002511test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2512See \`config.log' for more details." >&5
2513echo "$as_me: error: no acceptable C compiler found in \$PATH
2514See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002515 { (exit 1); exit 1; }; }
2516
2517# Provide some information about the compiler.
2518echo "$as_me:$LINENO:" \
2519 "checking for C compiler version" >&5
2520ac_compiler=`set X $ac_compile; echo $2`
2521{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2522 (eval $ac_compiler --version </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2527 (eval $ac_compiler -v </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2532 (eval $ac_compiler -V </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536
2537echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2539if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 cat >conftest.$ac_ext <<_ACEOF
2543#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002549
John Criswell7a73b802003-06-30 21:59:07 +00002550int
2551main ()
2552{
2553#ifndef __GNUC__
2554 choke me
2555#endif
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_compiler_gnu=yes
2574else
2575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002576sed 's/^/| /' conftest.$ac_ext >&5
2577
John Criswell7a73b802003-06-30 21:59:07 +00002578ac_compiler_gnu=no
2579fi
2580rm -f conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586GCC=`test $ac_compiler_gnu = yes && echo yes`
2587ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS
2589CFLAGS="-g"
2590echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 cat >conftest.$ac_ext <<_ACEOF
2596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002602
John Criswell7a73b802003-06-30 21:59:07 +00002603int
2604main ()
2605{
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_cv_prog_cc_g=yes
2624else
2625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002626sed 's/^/| /' conftest.$ac_ext >&5
2627
John Criswell7a73b802003-06-30 21:59:07 +00002628ac_cv_prog_cc_g=no
2629fi
2630rm -f conftest.$ac_objext conftest.$ac_ext
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2634if test "$ac_test_CFLAGS" = set; then
2635 CFLAGS=$ac_save_CFLAGS
2636elif test $ac_cv_prog_cc_g = yes; then
2637 if test "$GCC" = yes; then
2638 CFLAGS="-g -O2"
2639 else
2640 CFLAGS="-g"
2641 fi
2642else
2643 if test "$GCC" = yes; then
2644 CFLAGS="-O2"
2645 else
2646 CFLAGS=
2647 fi
2648fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002649echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2650echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2651if test "${ac_cv_prog_cc_stdc+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654 ac_cv_prog_cc_stdc=no
2655ac_save_CC=$CC
2656cat >conftest.$ac_ext <<_ACEOF
2657#line $LINENO "configure"
2658/* confdefs.h. */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h. */
2663#include <stdarg.h>
2664#include <stdio.h>
2665#include <sys/types.h>
2666#include <sys/stat.h>
2667/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2668struct buf { int x; };
2669FILE * (*rcsopen) (struct buf *, struct stat *, int);
2670static char *e (p, i)
2671 char **p;
2672 int i;
2673{
2674 return p[i];
2675}
2676static char *f (char * (*g) (char **, int), char **p, ...)
2677{
2678 char *s;
2679 va_list v;
2680 va_start (v,p);
2681 s = g (p, va_arg (v,int));
2682 va_end (v);
2683 return s;
2684}
2685int test (int i, double x);
2686struct s1 {int (*f) (int a);};
2687struct s2 {int (*f) (double a);};
2688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689int argc;
2690char **argv;
2691int
2692main ()
2693{
2694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699# Don't try gcc -ansi; that turns off useful extensions and
2700# breaks some systems' header files.
2701# AIX -qlanglvl=ansi
2702# Ultrix and OSF/1 -std1
2703# HP-UX 10.20 and later -Ae
2704# HP-UX older versions -Aa -D_HPUX_SOURCE
2705# SVR4 -Xc -D__EXTENSIONS__
2706for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707do
2708 CC="$ac_save_CC $ac_arg"
2709 rm -f conftest.$ac_objext
2710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 ac_cv_prog_cc_stdc=$ac_arg
2722break
2723else
2724 echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727fi
2728rm -f conftest.$ac_objext
2729done
2730rm -f conftest.$ac_ext conftest.$ac_objext
2731CC=$ac_save_CC
2732
2733fi
2734
2735case "x$ac_cv_prog_cc_stdc" in
2736 x|xno)
2737 echo "$as_me:$LINENO: result: none needed" >&5
2738echo "${ECHO_T}none needed" >&6 ;;
2739 *)
2740 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2741echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2742 CC="$CC $ac_cv_prog_cc_stdc" ;;
2743esac
2744
John Criswell7a73b802003-06-30 21:59:07 +00002745# Some people use a C++ compiler to compile C. Since we use `exit',
2746# in C++ we need to declare it. In case someone uses the same compiler
2747# for both compiling C and C++ we need to have the C++ compiler decide
2748# the declaration of exit, since it's the most demanding environment.
2749cat >conftest.$ac_ext <<_ACEOF
2750#ifndef __cplusplus
2751 choke me
2752#endif
2753_ACEOF
2754rm -f conftest.$ac_objext
2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 for ac_declaration in \
2767 ''\
2768 '#include <stdlib.h>' \
2769 'extern "C" void std::exit (int) throw (); using std::exit;' \
2770 'extern "C" void std::exit (int); using std::exit;' \
2771 'extern "C" void exit (int) throw ();' \
2772 'extern "C" void exit (int);' \
2773 'void exit (int);'
2774do
2775 cat >conftest.$ac_ext <<_ACEOF
2776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
2781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002782#include <stdlib.h>
2783$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002784int
2785main ()
2786{
2787exit (42);
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792rm -f conftest.$ac_objext
2793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 :
2805else
2806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002807sed 's/^/| /' conftest.$ac_ext >&5
2808
John Criswell7a73b802003-06-30 21:59:07 +00002809continue
2810fi
2811rm -f conftest.$ac_objext conftest.$ac_ext
2812 cat >conftest.$ac_ext <<_ACEOF
2813#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002819$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002820int
2821main ()
2822{
2823exit (42);
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 break
2841else
2842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002843sed 's/^/| /' conftest.$ac_ext >&5
2844
John Criswell7a73b802003-06-30 21:59:07 +00002845fi
2846rm -f conftest.$ac_objext conftest.$ac_ext
2847done
2848rm -f conftest*
2849if test -n "$ac_declaration"; then
2850 echo '#ifdef __cplusplus' >>confdefs.h
2851 echo $ac_declaration >>confdefs.h
2852 echo '#endif' >>confdefs.h
2853fi
2854
2855else
2856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002857sed 's/^/| /' conftest.$ac_ext >&5
2858
John Criswell7a73b802003-06-30 21:59:07 +00002859fi
2860rm -f conftest.$ac_objext conftest.$ac_ext
2861ac_ext=c
2862ac_cpp='$CPP $CPPFLAGS'
2863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867ac_ext=c
2868ac_cpp='$CPP $CPPFLAGS'
2869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2873echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2874# On Suns, sometimes $CPP names a directory.
2875if test -n "$CPP" && test -d "$CPP"; then
2876 CPP=
2877fi
2878if test -z "$CPP"; then
2879 if test "${ac_cv_prog_CPP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 # Double quotes because CPP needs to be expanded
2883 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2884 do
2885 ac_preproc_ok=false
2886for ac_c_preproc_warn_flag in '' yes
2887do
2888 # Use a header file that comes with gcc, so configuring glibc
2889 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002892 # On the NeXT, cc -E runs the code through the compiler's parser,
2893 # not just through cpp. "Syntax error" is here to catch this case.
2894 cat >conftest.$ac_ext <<_ACEOF
2895#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002896/* confdefs.h. */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h. */
2901#ifdef __STDC__
2902# include <limits.h>
2903#else
2904# include <assert.h>
2905#endif
John Criswell7a73b802003-06-30 21:59:07 +00002906 Syntax error
2907_ACEOF
2908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002911 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev/null; then
2916 if test -s conftest.err; then
2917 ac_cpp_err=$ac_c_preproc_warn_flag
2918 else
2919 ac_cpp_err=
2920 fi
2921else
2922 ac_cpp_err=yes
2923fi
2924if test -z "$ac_cpp_err"; then
2925 :
2926else
2927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002928sed 's/^/| /' conftest.$ac_ext >&5
2929
John Criswell7a73b802003-06-30 21:59:07 +00002930 # Broken: fails on valid input.
2931continue
2932fi
2933rm -f conftest.err conftest.$ac_ext
2934
2935 # OK, works on sane cases. Now check whether non-existent headers
2936 # can be detected and how.
2937 cat >conftest.$ac_ext <<_ACEOF
2938#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002944#include <ac_nonexistent.h>
2945_ACEOF
2946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002949 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2956 else
2957 ac_cpp_err=
2958 fi
2959else
2960 ac_cpp_err=yes
2961fi
2962if test -z "$ac_cpp_err"; then
2963 # Broken: success on invalid input.
2964continue
2965else
2966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002967sed 's/^/| /' conftest.$ac_ext >&5
2968
John Criswell7a73b802003-06-30 21:59:07 +00002969 # Passes both tests.
2970ac_preproc_ok=:
2971break
2972fi
2973rm -f conftest.err conftest.$ac_ext
2974
2975done
2976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2977rm -f conftest.err conftest.$ac_ext
2978if $ac_preproc_ok; then
2979 break
2980fi
2981
2982 done
2983 ac_cv_prog_CPP=$CPP
2984
2985fi
2986 CPP=$ac_cv_prog_CPP
2987else
2988 ac_cv_prog_CPP=$CPP
2989fi
2990echo "$as_me:$LINENO: result: $CPP" >&5
2991echo "${ECHO_T}$CPP" >&6
2992ac_preproc_ok=false
2993for ac_c_preproc_warn_flag in '' yes
2994do
2995 # Use a header file that comes with gcc, so configuring glibc
2996 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002999 # On the NeXT, cc -E runs the code through the compiler's parser,
3000 # not just through cpp. "Syntax error" is here to catch this case.
3001 cat >conftest.$ac_ext <<_ACEOF
3002#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008#ifdef __STDC__
3009# include <limits.h>
3010#else
3011# include <assert.h>
3012#endif
John Criswell7a73b802003-06-30 21:59:07 +00003013 Syntax error
3014_ACEOF
3015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003018 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } >/dev/null; then
3023 if test -s conftest.err; then
3024 ac_cpp_err=$ac_c_preproc_warn_flag
3025 else
3026 ac_cpp_err=
3027 fi
3028else
3029 ac_cpp_err=yes
3030fi
3031if test -z "$ac_cpp_err"; then
3032 :
3033else
3034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003035sed 's/^/| /' conftest.$ac_ext >&5
3036
John Criswell7a73b802003-06-30 21:59:07 +00003037 # Broken: fails on valid input.
3038continue
3039fi
3040rm -f conftest.err conftest.$ac_ext
3041
3042 # OK, works on sane cases. Now check whether non-existent headers
3043 # can be detected and how.
3044 cat >conftest.$ac_ext <<_ACEOF
3045#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003046/* confdefs.h. */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003051#include <ac_nonexistent.h>
3052_ACEOF
3053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003056 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } >/dev/null; then
3061 if test -s conftest.err; then
3062 ac_cpp_err=$ac_c_preproc_warn_flag
3063 else
3064 ac_cpp_err=
3065 fi
3066else
3067 ac_cpp_err=yes
3068fi
3069if test -z "$ac_cpp_err"; then
3070 # Broken: success on invalid input.
3071continue
3072else
3073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003074sed 's/^/| /' conftest.$ac_ext >&5
3075
John Criswell7a73b802003-06-30 21:59:07 +00003076 # Passes both tests.
3077ac_preproc_ok=:
3078break
3079fi
3080rm -f conftest.err conftest.$ac_ext
3081
3082done
3083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084rm -f conftest.err conftest.$ac_ext
3085if $ac_preproc_ok; then
3086 :
3087else
John Criswell0c38eaf2003-09-10 15:17:25 +00003088 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3089See \`config.log' for more details." >&5
3090echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3091See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003092 { (exit 1); exit 1; }; }
3093fi
3094
3095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
3101
3102if test "$GCC" != "yes"
3103then
3104 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3105echo "$as_me: error: gcc required but not found" >&2;}
3106 { (exit 1); exit 1; }; }
3107fi
John Criswell7a73b802003-06-30 21:59:07 +00003108if test "$GXX" != "yes"
3109then
3110 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111echo "$as_me: error: g++ required but not found" >&2;}
3112 { (exit 1); exit 1; }; }
3113fi
3114
John Criswellde00db22003-08-25 16:49:54 +00003115gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116if test "$gccmajor" -lt "3"
3117then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003118 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3119echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003120 { (exit 1); exit 1; }; }
3121fi
3122
John Criswell7a73b802003-06-30 21:59:07 +00003123 echo "$as_me:$LINENO: checking for GNU make" >&5
3124echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125if test "${_cv_gnu_make_command+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 _cv_gnu_make_command='' ;
3129 for a in "$MAKE" make gmake gnumake ; do
3130 if test -z "$a" ; then continue ; fi ;
3131 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3132 _cv_gnu_make_command=$a ;
3133 break;
3134 fi
3135 done ;
3136
3137fi
3138echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140 if test "x$_cv_gnu_make_command" != "x" ; then
3141 ifGNUmake='' ;
3142 else
3143 ifGNUmake='#' ;
3144 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145echo "${ECHO_T}\"Not found\"" >&6;
3146 fi
3147
3148
3149if test -z "$_cv_gnu_make_command"
3150then
3151 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152echo "$as_me: error: GNU Make required but not found" >&2;}
3153 { (exit 1); exit 1; }; }
3154fi
3155
3156
3157echo "$as_me:$LINENO: checking " >&5
3158echo $ECHO_N "checking ... $ECHO_C" >&6
3159if test "${ac_cv_has_flex+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162 for ac_prog in flex lex
3163do
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165set dummy $ac_prog; ac_word=$2
3166echo "$as_me:$LINENO: checking for $ac_word" >&5
3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168if test "${ac_cv_prog_LEX+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170else
3171 if test -n "$LEX"; then
3172 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_LEX="$ac_prog"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185done
3186done
3187
3188fi
3189fi
3190LEX=$ac_cv_prog_LEX
3191if test -n "$LEX"; then
3192 echo "$as_me:$LINENO: result: $LEX" >&5
3193echo "${ECHO_T}$LEX" >&6
3194else
3195 echo "$as_me:$LINENO: result: no" >&5
3196echo "${ECHO_T}no" >&6
3197fi
3198
3199 test -n "$LEX" && break
3200done
3201test -n "$LEX" || LEX=":"
3202
3203if test -z "$LEXLIB"
3204then
3205 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 ac_check_lib_save_LIBS=$LIBS
3211LIBS="-lfl $LIBS"
3212cat >conftest.$ac_ext <<_ACEOF
3213#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003219
3220/* Override any gcc2 internal prototype to avoid an error. */
3221#ifdef __cplusplus
3222extern "C"
3223#endif
3224/* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003227int
3228main ()
3229{
3230yywrap ();
3231 ;
3232 return 0;
3233}
3234_ACEOF
3235rm -f conftest.$ac_objext conftest$ac_exeext
3236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237 (eval $ac_link) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest$ac_exeext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_lib_fl_yywrap=yes
3248else
3249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003250sed 's/^/| /' conftest.$ac_ext >&5
3251
John Criswell7a73b802003-06-30 21:59:07 +00003252ac_cv_lib_fl_yywrap=no
3253fi
3254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255LIBS=$ac_check_lib_save_LIBS
3256fi
3257echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259if test $ac_cv_lib_fl_yywrap = yes; then
3260 LEXLIB="-lfl"
3261else
3262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266else
3267 ac_check_lib_save_LIBS=$LIBS
3268LIBS="-ll $LIBS"
3269cat >conftest.$ac_ext <<_ACEOF
3270#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003276
3277/* Override any gcc2 internal prototype to avoid an error. */
3278#ifdef __cplusplus
3279extern "C"
3280#endif
3281/* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3283char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003284int
3285main ()
3286{
3287yywrap ();
3288 ;
3289 return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext conftest$ac_exeext
3293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294 (eval $ac_link) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest$ac_exeext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_lib_l_yywrap=yes
3305else
3306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003307sed 's/^/| /' conftest.$ac_ext >&5
3308
John Criswell7a73b802003-06-30 21:59:07 +00003309ac_cv_lib_l_yywrap=no
3310fi
3311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312LIBS=$ac_check_lib_save_LIBS
3313fi
3314echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316if test $ac_cv_lib_l_yywrap = yes; then
3317 LEXLIB="-ll"
3318fi
3319
3320fi
3321
3322fi
3323
3324if test "x$LEX" != "x:"; then
3325 echo "$as_me:$LINENO: checking lex output file root" >&5
3326echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327if test "${ac_cv_prog_lex_root+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330 # The minimal lex program is just a single line: %%. But some broken lexes
3331# (Solaris, I think it was) want two %% lines, so accommodate them.
3332cat >conftest.l <<_ACEOF
3333%%
3334%%
3335_ACEOF
3336{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337 (eval $LEX conftest.l) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }
3341if test -f lex.yy.c; then
3342 ac_cv_prog_lex_root=lex.yy
3343elif test -f lexyy.c; then
3344 ac_cv_prog_lex_root=lexyy
3345else
3346 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348 { (exit 1); exit 1; }; }
3349fi
3350fi
3351echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3353rm -f conftest.l
3354LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3355
3356echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 # POSIX says lex can declare yytext either as a pointer or an array; the
3362# default is implementation-dependent. Figure out which it is, since
3363# not all implementations provide the %pointer and %array declarations.
3364ac_cv_prog_lex_yytext_pointer=no
3365echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3366ac_save_LIBS=$LIBS
3367LIBS="$LIBS $LEXLIB"
3368cat >conftest.$ac_ext <<_ACEOF
3369`cat $LEX_OUTPUT_ROOT.c`
3370_ACEOF
3371rm -f conftest.$ac_objext conftest$ac_exeext
3372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_prog_lex_yytext_pointer=yes
3384else
3385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003386sed 's/^/| /' conftest.$ac_ext >&5
3387
John Criswell7a73b802003-06-30 21:59:07 +00003388fi
3389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390LIBS=$ac_save_LIBS
3391rm -f "${LEX_OUTPUT_ROOT}.c"
3392
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396if test $ac_cv_prog_lex_yytext_pointer = yes; then
3397
3398cat >>confdefs.h <<\_ACEOF
3399#define YYTEXT_POINTER 1
3400_ACEOF
3401
3402fi
3403
3404fi
3405
3406fi
3407echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408echo "${ECHO_T}$ac_cv_has_flex" >&6
3409if test "$LEX" != "flex"; then
3410 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411echo "$as_me: error: flex not found but required" >&2;}
3412 { (exit 1); exit 1; }; }
3413fi
3414
3415echo "$as_me:$LINENO: checking " >&5
3416echo $ECHO_N "checking ... $ECHO_C" >&6
3417if test "${ac_cv_has_bison+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420 for ac_prog in 'bison -y' byacc
3421do
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423set dummy $ac_prog; ac_word=$2
3424echo "$as_me:$LINENO: checking for $ac_word" >&5
3425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426if test "${ac_cv_prog_YACC+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429 if test -n "$YACC"; then
3430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3431else
3432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH
3434do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_YACC="$ac_prog"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443done
3444done
3445
3446fi
3447fi
3448YACC=$ac_cv_prog_YACC
3449if test -n "$YACC"; then
3450 echo "$as_me:$LINENO: result: $YACC" >&5
3451echo "${ECHO_T}$YACC" >&6
3452else
3453 echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
3455fi
3456
3457 test -n "$YACC" && break
3458done
3459test -n "$YACC" || YACC="yacc"
3460
3461
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464echo "${ECHO_T}$ac_cv_has_bison" >&6
3465if test "$YACC" != "bison -y"; then
3466 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467echo "$as_me: error: bison not found but required" >&2;}
3468 { (exit 1); exit 1; }; }
3469else
Brian Gaeke12810632004-01-13 06:52:10 +00003470 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003471
3472fi
3473
John Criswell7a73b802003-06-30 21:59:07 +00003474# Check whether --enable-shared or --disable-shared was given.
3475if test "${enable_shared+set}" = set; then
3476 enableval="$enable_shared"
3477 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003478 case $enableval in
3479 yes) enable_shared=yes ;;
3480 no) enable_shared=no ;;
3481 *)
3482 enable_shared=no
3483 # Look at the argument we got. We use all the common list separators.
3484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3485 for pkg in $enableval; do
3486 IFS="$lt_save_ifs"
3487 if test "X$pkg" = "X$p"; then
3488 enable_shared=yes
3489 fi
3490 done
3491 IFS="$lt_save_ifs"
3492 ;;
3493 esac
John Criswell7a73b802003-06-30 21:59:07 +00003494else
3495 enable_shared=yes
3496fi;
John Criswell47fdd832003-07-14 16:52:07 +00003497
John Criswell7a73b802003-06-30 21:59:07 +00003498# Check whether --enable-static or --disable-static was given.
3499if test "${enable_static+set}" = set; then
3500 enableval="$enable_static"
3501 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003502 case $enableval in
3503 yes) enable_static=yes ;;
3504 no) enable_static=no ;;
3505 *)
3506 enable_static=no
3507 # Look at the argument we got. We use all the common list separators.
3508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3509 for pkg in $enableval; do
3510 IFS="$lt_save_ifs"
3511 if test "X$pkg" = "X$p"; then
3512 enable_static=yes
3513 fi
3514 done
3515 IFS="$lt_save_ifs"
3516 ;;
3517 esac
John Criswell7a73b802003-06-30 21:59:07 +00003518else
3519 enable_static=yes
3520fi;
John Criswell47fdd832003-07-14 16:52:07 +00003521
John Criswell7a73b802003-06-30 21:59:07 +00003522# Check whether --enable-fast-install or --disable-fast-install was given.
3523if test "${enable_fast_install+set}" = set; then
3524 enableval="$enable_fast_install"
3525 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003526 case $enableval in
3527 yes) enable_fast_install=yes ;;
3528 no) enable_fast_install=no ;;
3529 *)
3530 enable_fast_install=no
3531 # Look at the argument we got. We use all the common list separators.
3532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3533 for pkg in $enableval; do
3534 IFS="$lt_save_ifs"
3535 if test "X$pkg" = "X$p"; then
3536 enable_fast_install=yes
3537 fi
3538 done
3539 IFS="$lt_save_ifs"
3540 ;;
3541 esac
John Criswell7a73b802003-06-30 21:59:07 +00003542else
3543 enable_fast_install=yes
3544fi;
John Criswell47fdd832003-07-14 16:52:07 +00003545
3546echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3547echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3548if test "${lt_cv_path_SED+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 # Loop through the user's path and test for sed and gsed.
3552# Then use that list of sed's as ones to test for truncation.
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for lt_ac_prog in sed gsed; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3561 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3562 fi
3563 done
3564 done
3565done
3566lt_ac_max=0
3567lt_ac_count=0
3568# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3569# along with /bin/sed that truncates output.
3570for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3571 test ! -f $lt_ac_sed && break
3572 cat /dev/null > conftest.in
3573 lt_ac_count=0
3574 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3575 # Check for GNU sed and select it if it is found.
3576 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3577 lt_cv_path_SED=$lt_ac_sed
3578 break
3579 fi
3580 while true; do
3581 cat conftest.in conftest.in >conftest.tmp
3582 mv conftest.tmp conftest.in
3583 cp conftest.in conftest.nl
3584 echo >>conftest.nl
3585 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3586 cmp -s conftest.out conftest.nl || break
3587 # 10000 chars as input seems more than enough
3588 test $lt_ac_count -gt 10 && break
3589 lt_ac_count=`expr $lt_ac_count + 1`
3590 if test $lt_ac_count -gt $lt_ac_max; then
3591 lt_ac_max=$lt_ac_count
3592 lt_cv_path_SED=$lt_ac_sed
3593 fi
3594 done
3595done
3596SED=$lt_cv_path_SED
3597
John Criswell7a73b802003-06-30 21:59:07 +00003598fi
3599
John Criswell47fdd832003-07-14 16:52:07 +00003600echo "$as_me:$LINENO: result: $SED" >&5
3601echo "${ECHO_T}$SED" >&6
3602
3603echo "$as_me:$LINENO: checking for egrep" >&5
3604echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3605if test "${ac_cv_prog_egrep+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3609 then ac_cv_prog_egrep='grep -E'
3610 else ac_cv_prog_egrep='egrep'
3611 fi
3612fi
3613echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3614echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3615 EGREP=$ac_cv_prog_egrep
3616
3617
John Criswell7a73b802003-06-30 21:59:07 +00003618
3619# Check whether --with-gnu-ld or --without-gnu-ld was given.
3620if test "${with_gnu_ld+set}" = set; then
3621 withval="$with_gnu_ld"
3622 test "$withval" = no || with_gnu_ld=yes
3623else
3624 with_gnu_ld=no
3625fi;
3626ac_prog=ld
3627if test "$GCC" = yes; then
3628 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003629 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3630echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003631 case $host in
3632 *-*-mingw*)
3633 # gcc leaves a trailing carriage return which upsets mingw
3634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3635 *)
3636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3637 esac
3638 case $ac_prog in
3639 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003640 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003641 re_direlt='/[^/][^/]*/\.\./'
3642 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003643 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003644 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003645 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003646 done
3647 test -z "$LD" && LD="$ac_prog"
3648 ;;
3649 "")
3650 # If it fails, then pretend we aren't using GCC.
3651 ac_prog=ld
3652 ;;
3653 *)
3654 # If it is relative, then search for the first ld in PATH.
3655 with_gnu_ld=unknown
3656 ;;
3657 esac
3658elif test "$with_gnu_ld" = yes; then
3659 echo "$as_me:$LINENO: checking for GNU ld" >&5
3660echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3661else
3662 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3663echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3664fi
3665if test "${lt_cv_path_LD+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003670 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003671 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003672 test -z "$ac_dir" && ac_dir=.
3673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3674 lt_cv_path_LD="$ac_dir/$ac_prog"
3675 # Check to see if the program is GNU ld. I'd rather use --version,
3676 # but apparently some GNU ld's only accept -v.
3677 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003678 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3679 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003680 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003681 ;;
3682 *)
John Criswell7a73b802003-06-30 21:59:07 +00003683 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003684 ;;
3685 esac
John Criswell7a73b802003-06-30 21:59:07 +00003686 fi
3687 done
John Criswell47fdd832003-07-14 16:52:07 +00003688 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003689else
3690 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3691fi
3692fi
3693
3694LD="$lt_cv_path_LD"
3695if test -n "$LD"; then
3696 echo "$as_me:$LINENO: result: $LD" >&5
3697echo "${ECHO_T}$LD" >&6
3698else
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701fi
3702test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3703echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3704 { (exit 1); exit 1; }; }
3705echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3706echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3707if test "${lt_cv_prog_gnu_ld+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003711case `"$LD" -v 2>&1 </dev/null` in
3712*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003713 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003714 ;;
3715*)
John Criswell7a73b802003-06-30 21:59:07 +00003716 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003717 ;;
3718esac
John Criswell7a73b802003-06-30 21:59:07 +00003719fi
3720echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3721echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3722with_gnu_ld=$lt_cv_prog_gnu_ld
3723
3724
3725echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3726echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3727if test "${lt_cv_ld_reload_flag+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730 lt_cv_ld_reload_flag='-r'
3731fi
3732echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3733echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3734reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003735case $reload_flag in
3736"" | " "*) ;;
3737*) reload_flag=" $reload_flag" ;;
3738esac
3739reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003740
3741echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3742echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3743if test "${lt_cv_path_NM+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 if test -n "$NM"; then
3747 # Let the user override the test.
3748 lt_cv_path_NM="$NM"
3749else
John Criswell47fdd832003-07-14 16:52:07 +00003750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003751 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003752 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003753 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003754 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3755 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003756 # Check to see if the nm accepts a BSD-compat flag.
3757 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3758 # nm: unknown option "B" ignored
3759 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003760 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3761 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003762 lt_cv_path_NM="$tmp_nm -B"
3763 break
John Criswell47fdd832003-07-14 16:52:07 +00003764 ;;
3765 *)
3766 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3767 */dev/null*)
3768 lt_cv_path_NM="$tmp_nm -p"
3769 break
3770 ;;
3771 *)
3772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3773 continue # so that we can try to find one that supports BSD flags
3774 ;;
3775 esac
3776 esac
John Criswell7a73b802003-06-30 21:59:07 +00003777 fi
3778 done
John Criswell47fdd832003-07-14 16:52:07 +00003779 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003780 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3781fi
3782fi
John Criswell47fdd832003-07-14 16:52:07 +00003783echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3784echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003785NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003786
3787echo "$as_me:$LINENO: checking whether ln -s works" >&5
3788echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3789LN_S=$as_ln_s
3790if test "$LN_S" = "ln -s"; then
3791 echo "$as_me:$LINENO: result: yes" >&5
3792echo "${ECHO_T}yes" >&6
3793else
3794 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3795echo "${ECHO_T}no, using $LN_S" >&6
3796fi
3797
John Criswell47fdd832003-07-14 16:52:07 +00003798echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3799echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003800if test "${lt_cv_deplibs_check_method+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803 lt_cv_file_magic_cmd='$MAGIC_CMD'
3804lt_cv_file_magic_test_file=
3805lt_cv_deplibs_check_method='unknown'
3806# Need to set the preceding variable on all platforms that support
3807# interlibrary dependencies.
3808# 'none' -- dependencies not supported.
3809# `unknown' -- same as none, but documents that we really don't know.
3810# 'pass_all' -- all dependencies passed with no checks.
3811# 'test_compile' -- check by making test program.
3812# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003813# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003814# If you have `file' or equivalent on your system and you're not sure
3815# whether `pass_all' will *always* work, you probably want this one.
3816
3817case $host_os in
3818aix4* | aix5*)
3819 lt_cv_deplibs_check_method=pass_all
3820 ;;
3821
3822beos*)
3823 lt_cv_deplibs_check_method=pass_all
3824 ;;
3825
3826bsdi4*)
3827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3828 lt_cv_file_magic_cmd='/usr/bin/file -L'
3829 lt_cv_file_magic_test_file=/shlib/libc.so
3830 ;;
3831
3832cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003833 # win32_libid is a shell function defined in ltmain.sh
3834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3835 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003836 ;;
3837
3838darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003839 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003840 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3841 lt_cv_file_magic_cmd='/usr/bin/file -L'
3842 case "$host_os" in
3843 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003844 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003845 ;;
3846 *) # Darwin 1.3 on
3847 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3848 ;;
3849 esac
John Criswell47fdd832003-07-14 16:52:07 +00003850 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003851 ;;
3852
3853freebsd*)
3854 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3855 case $host_cpu in
3856 i*86 )
3857 # Not sure whether the presence of OpenBSD here was a mistake.
3858 # Let's accept both of them until this is cleared up.
3859 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3860 lt_cv_file_magic_cmd=/usr/bin/file
3861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3862 ;;
3863 esac
3864 else
3865 lt_cv_deplibs_check_method=pass_all
3866 fi
3867 ;;
3868
3869gnu*)
3870 lt_cv_deplibs_check_method=pass_all
3871 ;;
3872
John Criswell47fdd832003-07-14 16:52:07 +00003873hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003874 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003875 case "$host_cpu" in
3876 ia64*)
3877 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3878 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3879 ;;
3880 hppa*64*)
3881 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]'
3882 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3883 ;;
3884 *)
3885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3886 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3887 ;;
3888 esac
John Criswell7a73b802003-06-30 21:59:07 +00003889 ;;
3890
John Criswell47fdd832003-07-14 16:52:07 +00003891irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003892 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003893 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003894 # this will be overridden with pass_all, but let us keep it just in case
3895 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3896 ;;
3897 *)
3898 case $LD in
3899 *-32|*"-32 ") libmagic=32-bit;;
3900 *-n32|*"-n32 ") libmagic=N32;;
3901 *-64|*"-64 ") libmagic=64-bit;;
3902 *) libmagic=never-match;;
3903 esac
3904 # this will be overridden with pass_all, but let us keep it just in case
3905 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3906 ;;
3907 esac
3908 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3909 lt_cv_deplibs_check_method=pass_all
3910 ;;
3911
3912# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003913linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003914 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003915 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003916 lt_cv_deplibs_check_method=pass_all ;;
3917 *)
3918 # glibc up to 2.1.1 does not perform some relocations on ARM
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3920 esac
3921 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3922 ;;
3923
3924netbsd*)
3925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003927 else
John Criswell47fdd832003-07-14 16:52:07 +00003928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003929 fi
3930 ;;
3931
3932newos6*)
3933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934 lt_cv_file_magic_cmd=/usr/bin/file
3935 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3936 ;;
3937
John Criswell47fdd832003-07-14 16:52:07 +00003938nto-qnx)
3939 lt_cv_deplibs_check_method=unknown
3940 ;;
3941
John Criswell7a73b802003-06-30 21:59:07 +00003942openbsd*)
3943 lt_cv_file_magic_cmd=/usr/bin/file
3944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3947 else
3948 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3949 fi
3950 ;;
3951
3952osf3* | osf4* | osf5*)
3953 # this will be overridden with pass_all, but let us keep it just in case
3954 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3955 lt_cv_file_magic_test_file=/shlib/libc.so
3956 lt_cv_deplibs_check_method=pass_all
3957 ;;
3958
3959sco3.2v5*)
3960 lt_cv_deplibs_check_method=pass_all
3961 ;;
3962
3963solaris*)
3964 lt_cv_deplibs_check_method=pass_all
3965 lt_cv_file_magic_test_file=/lib/libc.so
3966 ;;
3967
John Criswell7a73b802003-06-30 21:59:07 +00003968sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3969 case $host_vendor in
3970 motorola)
3971 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]'
3972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3973 ;;
3974 ncr)
3975 lt_cv_deplibs_check_method=pass_all
3976 ;;
3977 sequent)
3978 lt_cv_file_magic_cmd='/bin/file'
3979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3980 ;;
3981 sni)
3982 lt_cv_file_magic_cmd='/bin/file'
3983 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3984 lt_cv_file_magic_test_file=/lib/libc.so
3985 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003986 siemens)
3987 lt_cv_deplibs_check_method=pass_all
3988 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003989 esac
3990 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003991
3992sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3993 lt_cv_deplibs_check_method=pass_all
3994 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003995esac
3996
3997fi
3998echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3999echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4000file_magic_cmd=$lt_cv_file_magic_cmd
4001deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004002test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004003
4004
4005
4006
John Criswell47fdd832003-07-14 16:52:07 +00004007# If no C compiler was specified, use CC.
4008LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004009
John Criswell47fdd832003-07-14 16:52:07 +00004010# Allow CC to be a program name with arguments.
4011compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004012
John Criswell47fdd832003-07-14 16:52:07 +00004013# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4014if test "${enable_libtool_lock+set}" = set; then
4015 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004016
John Criswell47fdd832003-07-14 16:52:07 +00004017fi;
4018test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004019
John Criswell47fdd832003-07-14 16:52:07 +00004020# Some flags need to be propagated to the compiler or linker for good
4021# libtool support.
4022case $host in
4023ia64-*-hpux*)
4024 # Find out which ABI we are using.
4025 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004031 case `/usr/bin/file conftest.$ac_objext` in
4032 *ELF-32*)
4033 HPUX_IA64_MODE="32"
4034 ;;
4035 *ELF-64*)
4036 HPUX_IA64_MODE="64"
4037 ;;
4038 esac
4039 fi
4040 rm -rf conftest*
4041 ;;
4042*-*-irix6*)
4043 # Find out which ABI we are using.
John Criswell0538d422004-02-20 22:30:22 +00004044 echo '#line 4044 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004049 (exit $ac_status); }; then
4050 if test "$lt_cv_prog_gnu_ld" = yes; then
4051 case `/usr/bin/file conftest.$ac_objext` in
4052 *32-bit*)
4053 LD="${LD-ld} -melf32bsmip"
4054 ;;
4055 *N32*)
4056 LD="${LD-ld} -melf32bmipn32"
4057 ;;
4058 *64-bit*)
4059 LD="${LD-ld} -melf64bmip"
4060 ;;
4061 esac
4062 else
4063 case `/usr/bin/file conftest.$ac_objext` in
4064 *32-bit*)
4065 LD="${LD-ld} -32"
4066 ;;
4067 *N32*)
4068 LD="${LD-ld} -n32"
4069 ;;
4070 *64-bit*)
4071 LD="${LD-ld} -64"
4072 ;;
4073 esac
4074 fi
4075 fi
4076 rm -rf conftest*
4077 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004078
John Criswell47fdd832003-07-14 16:52:07 +00004079x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4080 # Find out which ABI we are using.
4081 echo 'int i;' > conftest.$ac_ext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; then
4087 case "`/usr/bin/file conftest.o`" in
4088 *32-bit*)
4089 case $host in
4090 x86_64-*linux*)
4091 LD="${LD-ld} -m elf_i386"
4092 ;;
4093 ppc64-*linux*)
4094 LD="${LD-ld} -m elf32ppclinux"
4095 ;;
4096 s390x-*linux*)
4097 LD="${LD-ld} -m elf_s390"
4098 ;;
4099 sparc64-*linux*)
4100 LD="${LD-ld} -m elf32_sparc"
4101 ;;
4102 esac
4103 ;;
4104 *64-bit*)
4105 case $host in
4106 x86_64-*linux*)
4107 LD="${LD-ld} -m elf_x86_64"
4108 ;;
4109 ppc*-*linux*|powerpc*-*linux*)
4110 LD="${LD-ld} -m elf64ppc"
4111 ;;
4112 s390*-*linux*)
4113 LD="${LD-ld} -m elf64_s390"
4114 ;;
4115 sparc*-*linux*)
4116 LD="${LD-ld} -m elf64_sparc"
4117 ;;
4118 esac
4119 ;;
4120 esac
4121 fi
4122 rm -rf conftest*
4123 ;;
4124
4125*-*-sco3.2v5*)
4126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4127 SAVE_CFLAGS="$CFLAGS"
4128 CFLAGS="$CFLAGS -belf"
4129 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4130echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4131if test "${lt_cv_cc_needs_belf+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134 ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140 cat >conftest.$ac_ext <<_ACEOF
4141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004147
John Criswell47fdd832003-07-14 16:52:07 +00004148int
4149main ()
John Criswell7a73b802003-06-30 21:59:07 +00004150{
John Criswell7a73b802003-06-30 21:59:07 +00004151
John Criswell47fdd832003-07-14 16:52:07 +00004152 ;
4153 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004154}
John Criswell47fdd832003-07-14 16:52:07 +00004155_ACEOF
4156rm -f conftest.$ac_objext conftest$ac_exeext
4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004158 (eval $ac_link) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004161 (exit $ac_status); } &&
4162 { ac_try='test -s conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004169else
John Criswell47fdd832003-07-14 16:52:07 +00004170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004171sed 's/^/| /' conftest.$ac_ext >&5
4172
John Criswell47fdd832003-07-14 16:52:07 +00004173lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004174fi
John Criswell47fdd832003-07-14 16:52:07 +00004175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176 ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
John Criswell7a73b802003-06-30 21:59:07 +00004182fi
John Criswell47fdd832003-07-14 16:52:07 +00004183echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4184echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4185 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4186 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4187 CFLAGS="$SAVE_CFLAGS"
4188 fi
4189 ;;
4190
4191esac
4192
4193need_locks="$enable_libtool_lock"
4194
John Criswell7a73b802003-06-30 21:59:07 +00004195
4196
4197echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4198echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4199if test "${ac_cv_header_stdc+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 cat >conftest.$ac_ext <<_ACEOF
4203#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004209#include <stdlib.h>
4210#include <stdarg.h>
4211#include <string.h>
4212#include <float.h>
4213
John Criswell0c38eaf2003-09-10 15:17:25 +00004214int
4215main ()
4216{
4217
4218 ;
4219 return 0;
4220}
John Criswell7a73b802003-06-30 21:59:07 +00004221_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004222rm -f conftest.$ac_objext
4223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004225 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004227 (exit $ac_status); } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004234 ac_cv_header_stdc=yes
4235else
4236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004240fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004241rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004242
4243if test $ac_cv_header_stdc = yes; then
4244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4245 cat >conftest.$ac_ext <<_ACEOF
4246#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004252#include <string.h>
4253
4254_ACEOF
4255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004256 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004257 :
4258else
4259 ac_cv_header_stdc=no
4260fi
4261rm -f conftest*
4262
4263fi
4264
4265if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat >conftest.$ac_ext <<_ACEOF
4268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004269/* confdefs.h. */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004274#include <stdlib.h>
4275
4276_ACEOF
4277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004278 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004279 :
4280else
4281 ac_cv_header_stdc=no
4282fi
4283rm -f conftest*
4284
4285fi
4286
4287if test $ac_cv_header_stdc = yes; then
4288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289 if test "$cross_compiling" = yes; then
4290 :
4291else
4292 cat >conftest.$ac_ext <<_ACEOF
4293#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004299#include <ctype.h>
4300#if ((' ' & 0x0FF) == 0x020)
4301# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4302# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4303#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004304# define ISLOWER(c) \
4305 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004306 || ('j' <= (c) && (c) <= 'r') \
4307 || ('s' <= (c) && (c) <= 'z'))
4308# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4309#endif
4310
4311#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4312int
4313main ()
4314{
4315 int i;
4316 for (i = 0; i < 256; i++)
4317 if (XOR (islower (i), ISLOWER (i))
4318 || toupper (i) != TOUPPER (i))
4319 exit(2);
4320 exit (0);
4321}
4322_ACEOF
4323rm -f conftest$ac_exeext
4324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 :
4335else
4336 echo "$as_me: program exited with status $ac_status" >&5
4337echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004338sed 's/^/| /' conftest.$ac_ext >&5
4339
John Criswell7a73b802003-06-30 21:59:07 +00004340( exit $ac_status )
4341ac_cv_header_stdc=no
4342fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004343rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004344fi
4345fi
4346fi
4347echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4348echo "${ECHO_T}$ac_cv_header_stdc" >&6
4349if test $ac_cv_header_stdc = yes; then
4350
4351cat >>confdefs.h <<\_ACEOF
4352#define STDC_HEADERS 1
4353_ACEOF
4354
4355fi
4356
4357# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4368 inttypes.h stdint.h unistd.h
4369do
4370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371echo "$as_me:$LINENO: checking for $ac_header" >&5
4372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376 cat >conftest.$ac_ext <<_ACEOF
4377#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004378/* confdefs.h. */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004383$ac_includes_default
4384
4385#include <$ac_header>
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 eval "$as_ac_Header=yes"
4400else
4401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004402sed 's/^/| /' conftest.$ac_ext >&5
4403
John Criswell7a73b802003-06-30 21:59:07 +00004404eval "$as_ac_Header=no"
4405fi
4406rm -f conftest.$ac_objext conftest.$ac_ext
4407fi
4408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4410if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411 cat >>confdefs.h <<_ACEOF
4412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413_ACEOF
4414
4415fi
4416
4417done
4418
4419
4420
4421for ac_header in dlfcn.h
4422do
4423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425 echo "$as_me:$LINENO: checking for $ac_header" >&5
4426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429fi
4430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432else
4433 # Is the header compilable?
4434echo "$as_me:$LINENO: checking $ac_header usability" >&5
4435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4436cat >conftest.$ac_ext <<_ACEOF
4437#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004438/* confdefs.h. */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004443$ac_includes_default
4444#include <$ac_header>
4445_ACEOF
4446rm -f conftest.$ac_objext
4447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_header_compiler=yes
4459else
4460 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004461sed 's/^/| /' conftest.$ac_ext >&5
4462
John Criswell7a73b802003-06-30 21:59:07 +00004463ac_header_compiler=no
4464fi
4465rm -f conftest.$ac_objext conftest.$ac_ext
4466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4467echo "${ECHO_T}$ac_header_compiler" >&6
4468
4469# Is the header present?
4470echo "$as_me:$LINENO: checking $ac_header presence" >&5
4471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4472cat >conftest.$ac_ext <<_ACEOF
4473#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004474/* confdefs.h. */
4475_ACEOF
4476cat confdefs.h >>conftest.$ac_ext
4477cat >>conftest.$ac_ext <<_ACEOF
4478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004479#include <$ac_header>
4480_ACEOF
4481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004484 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev/null; then
4489 if test -s conftest.err; then
4490 ac_cpp_err=$ac_c_preproc_warn_flag
4491 else
4492 ac_cpp_err=
4493 fi
4494else
4495 ac_cpp_err=yes
4496fi
4497if test -z "$ac_cpp_err"; then
4498 ac_header_preproc=yes
4499else
4500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004501sed 's/^/| /' conftest.$ac_ext >&5
4502
John Criswell7a73b802003-06-30 21:59:07 +00004503 ac_header_preproc=no
4504fi
4505rm -f conftest.err conftest.$ac_ext
4506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4507echo "${ECHO_T}$ac_header_preproc" >&6
4508
4509# So? What about this header?
4510case $ac_header_compiler:$ac_header_preproc in
4511 yes:no )
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4516 (
4517 cat <<\_ASBOX
4518## ------------------------------------ ##
4519## Report this to bug-autoconf@gnu.org. ##
4520## ------------------------------------ ##
4521_ASBOX
4522 ) |
4523 sed "s/^/$as_me: WARNING: /" >&2
4524 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004525 no:yes )
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4532 (
4533 cat <<\_ASBOX
4534## ------------------------------------ ##
4535## Report this to bug-autoconf@gnu.org. ##
4536## ------------------------------------ ##
4537_ASBOX
4538 ) |
4539 sed "s/^/$as_me: WARNING: /" >&2
4540 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004541esac
4542echo "$as_me:$LINENO: checking for $ac_header" >&5
4543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4544if eval "test \"\${$as_ac_Header+set}\" = set"; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 eval "$as_ac_Header=$ac_header_preproc"
4548fi
4549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4551
4552fi
4553if test `eval echo '${'$as_ac_Header'}'` = yes; then
4554 cat >>confdefs.h <<_ACEOF
4555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556_ACEOF
4557
4558fi
4559
4560done
4561
John Criswell47fdd832003-07-14 16:52:07 +00004562ac_ext=cc
4563ac_cpp='$CXXCPP $CPPFLAGS'
4564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4567echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4568echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4569if test -z "$CXXCPP"; then
4570 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
John Criswell47fdd832003-07-14 16:52:07 +00004573 # Double quotes because CXXCPP needs to be expanded
4574 for CXXCPP in "$CXX -E" "/lib/cpp"
4575 do
4576 ac_preproc_ok=false
4577for ac_cxx_preproc_warn_flag in '' yes
4578do
4579 # Use a header file that comes with gcc, so configuring glibc
4580 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4582 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004583 # On the NeXT, cc -E runs the code through the compiler's parser,
4584 # not just through cpp. "Syntax error" is here to catch this case.
4585 cat >conftest.$ac_ext <<_ACEOF
4586#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
4592#ifdef __STDC__
4593# include <limits.h>
4594#else
4595# include <assert.h>
4596#endif
John Criswell47fdd832003-07-14 16:52:07 +00004597 Syntax error
4598_ACEOF
4599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4601 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004602 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } >/dev/null; then
4607 if test -s conftest.err; then
4608 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004609 else
John Criswell47fdd832003-07-14 16:52:07 +00004610 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004611 fi
John Criswell47fdd832003-07-14 16:52:07 +00004612else
4613 ac_cpp_err=yes
4614fi
4615if test -z "$ac_cpp_err"; then
4616 :
4617else
4618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004619sed 's/^/| /' conftest.$ac_ext >&5
4620
John Criswell47fdd832003-07-14 16:52:07 +00004621 # Broken: fails on valid input.
4622continue
4623fi
4624rm -f conftest.err conftest.$ac_ext
4625
4626 # OK, works on sane cases. Now check whether non-existent headers
4627 # can be detected and how.
4628 cat >conftest.$ac_ext <<_ACEOF
4629#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004635#include <ac_nonexistent.h>
4636_ACEOF
4637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4639 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004640 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } >/dev/null; then
4645 if test -s conftest.err; then
4646 ac_cpp_err=$ac_cxx_preproc_warn_flag
4647 else
4648 ac_cpp_err=
4649 fi
4650else
4651 ac_cpp_err=yes
4652fi
4653if test -z "$ac_cpp_err"; then
4654 # Broken: success on invalid input.
4655continue
4656else
4657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004658sed 's/^/| /' conftest.$ac_ext >&5
4659
John Criswell47fdd832003-07-14 16:52:07 +00004660 # Passes both tests.
4661ac_preproc_ok=:
4662break
4663fi
4664rm -f conftest.err conftest.$ac_ext
4665
4666done
4667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4668rm -f conftest.err conftest.$ac_ext
4669if $ac_preproc_ok; then
4670 break
John Criswell7a73b802003-06-30 21:59:07 +00004671fi
4672
John Criswell47fdd832003-07-14 16:52:07 +00004673 done
4674 ac_cv_prog_CXXCPP=$CXXCPP
4675
4676fi
4677 CXXCPP=$ac_cv_prog_CXXCPP
4678else
4679 ac_cv_prog_CXXCPP=$CXXCPP
4680fi
4681echo "$as_me:$LINENO: result: $CXXCPP" >&5
4682echo "${ECHO_T}$CXXCPP" >&6
4683ac_preproc_ok=false
4684for ac_cxx_preproc_warn_flag in '' yes
4685do
4686 # Use a header file that comes with gcc, so configuring glibc
4687 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4689 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004690 # On the NeXT, cc -E runs the code through the compiler's parser,
4691 # not just through cpp. "Syntax error" is here to catch this case.
4692 cat >conftest.$ac_ext <<_ACEOF
4693#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699#ifdef __STDC__
4700# include <limits.h>
4701#else
4702# include <assert.h>
4703#endif
John Criswell47fdd832003-07-14 16:52:07 +00004704 Syntax error
4705_ACEOF
4706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4708 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004709 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } >/dev/null; then
4714 if test -s conftest.err; then
4715 ac_cpp_err=$ac_cxx_preproc_warn_flag
4716 else
4717 ac_cpp_err=
4718 fi
4719else
4720 ac_cpp_err=yes
4721fi
4722if test -z "$ac_cpp_err"; then
4723 :
4724else
4725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004726sed 's/^/| /' conftest.$ac_ext >&5
4727
John Criswell47fdd832003-07-14 16:52:07 +00004728 # Broken: fails on valid input.
4729continue
4730fi
4731rm -f conftest.err conftest.$ac_ext
4732
4733 # OK, works on sane cases. Now check whether non-existent headers
4734 # can be detected and how.
4735 cat >conftest.$ac_ext <<_ACEOF
4736#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004742#include <ac_nonexistent.h>
4743_ACEOF
4744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4746 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004747 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev/null; then
4752 if test -s conftest.err; then
4753 ac_cpp_err=$ac_cxx_preproc_warn_flag
4754 else
4755 ac_cpp_err=
4756 fi
4757else
4758 ac_cpp_err=yes
4759fi
4760if test -z "$ac_cpp_err"; then
4761 # Broken: success on invalid input.
4762continue
4763else
4764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
John Criswell47fdd832003-07-14 16:52:07 +00004767 # Passes both tests.
4768ac_preproc_ok=:
4769break
4770fi
4771rm -f conftest.err conftest.$ac_ext
4772
4773done
4774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775rm -f conftest.err conftest.$ac_ext
4776if $ac_preproc_ok; then
4777 :
4778else
John Criswell0c38eaf2003-09-10 15:17:25 +00004779 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4780See \`config.log' for more details." >&5
4781echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4782See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004783 { (exit 1); exit 1; }; }
4784fi
4785
4786ac_ext=cc
4787ac_cpp='$CXXCPP $CPPFLAGS'
4788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791
4792
4793ac_ext=f
4794ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4795ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4797if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004798 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004799 do
4800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802echo "$as_me:$LINENO: checking for $ac_word" >&5
4803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804if test "${ac_cv_prog_F77+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807 if test -n "$F77"; then
4808 ac_cv_prog_F77="$F77" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4820 fi
4821done
4822done
4823
4824fi
4825fi
4826F77=$ac_cv_prog_F77
4827if test -n "$F77"; then
4828 echo "$as_me:$LINENO: result: $F77" >&5
4829echo "${ECHO_T}$F77" >&6
4830else
4831 echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833fi
4834
4835 test -n "$F77" && break
4836 done
4837fi
4838if test -z "$F77"; then
4839 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004840 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004841do
4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
4843set dummy $ac_prog; ac_word=$2
4844echo "$as_me:$LINENO: checking for $ac_word" >&5
4845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849 if test -n "$ac_ct_F77"; then
4850 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4851else
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_F77="$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863done
4864done
4865
4866fi
4867fi
4868ac_ct_F77=$ac_cv_prog_ac_ct_F77
4869if test -n "$ac_ct_F77"; then
4870 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4871echo "${ECHO_T}$ac_ct_F77" >&6
4872else
4873 echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875fi
4876
4877 test -n "$ac_ct_F77" && break
4878done
4879
4880 F77=$ac_ct_F77
4881fi
4882
4883
4884# Provide some information about the compiler.
John Criswell0538d422004-02-20 22:30:22 +00004885echo "$as_me:4885:" \
John Criswell47fdd832003-07-14 16:52:07 +00004886 "checking for Fortran 77 compiler version" >&5
4887ac_compiler=`set X $ac_compile; echo $2`
4888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4889 (eval $ac_compiler --version </dev/null >&5) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4894 (eval $ac_compiler -v </dev/null >&5) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4899 (eval $ac_compiler -V </dev/null >&5) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }
4903
4904# If we don't use `.F' as extension, the preprocessor is not run on the
4905# input file.
4906ac_save_ext=$ac_ext
4907ac_ext=F
4908echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4909echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4910if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 program main
4915#ifndef __GNUC__
4916 choke me
4917#endif
4918
4919 end
4920_ACEOF
4921rm -f conftest.$ac_objext
4922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_compiler_gnu=yes
4934else
4935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004936sed 's/^/| /' conftest.$ac_ext >&5
4937
John Criswell47fdd832003-07-14 16:52:07 +00004938ac_compiler_gnu=no
4939fi
4940rm -f conftest.$ac_objext conftest.$ac_ext
4941ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4942
4943fi
4944echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4945echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4946ac_ext=$ac_save_ext
4947G77=`test $ac_compiler_gnu = yes && echo yes`
4948ac_test_FFLAGS=${FFLAGS+set}
4949ac_save_FFLAGS=$FFLAGS
4950FFLAGS=
4951echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4952echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4953if test "${ac_cv_prog_f77_g+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956 FFLAGS=-g
4957cat >conftest.$ac_ext <<_ACEOF
4958 program main
4959
4960 end
4961_ACEOF
4962rm -f conftest.$ac_objext
4963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_cv_prog_f77_g=yes
4975else
4976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004977sed 's/^/| /' conftest.$ac_ext >&5
4978
John Criswell47fdd832003-07-14 16:52:07 +00004979ac_cv_prog_f77_g=no
4980fi
4981rm -f conftest.$ac_objext conftest.$ac_ext
4982
4983fi
4984echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4985echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4986if test "$ac_test_FFLAGS" = set; then
4987 FFLAGS=$ac_save_FFLAGS
4988elif test $ac_cv_prog_f77_g = yes; then
4989 if test "$G77" = yes; then
4990 FFLAGS="-g -O2"
4991 else
4992 FFLAGS="-g"
4993 fi
4994else
4995 if test "$G77" = yes; then
4996 FFLAGS="-O2"
4997 else
4998 FFLAGS=
4999 fi
5000fi
5001ac_ext=c
5002ac_cpp='$CPP $CPPFLAGS'
5003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007
5008
5009# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5010
5011# find the maximum length of command line arguments
5012echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5013echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5014if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
5017 i=0
5018 testring="ABCD"
5019
5020 case $build_os in
5021 msdosdjgpp*)
5022 # On DJGPP, this test can blow up pretty badly due to problems in libc
5023 # (any single argument exceeding 2000 bytes causes a buffer overrun
5024 # during glob expansion). Even if it were fixed, the result of this
5025 # check would be larger than it should be.
5026 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5027 ;;
5028
5029 gnu*)
5030 # Under GNU Hurd, this test is not required because there is
5031 # no limit to the length of command line arguments.
5032 # Libtool will interpret -1 as no limit whatsoever
5033 lt_cv_sys_max_cmd_len=-1;
5034 ;;
5035
5036 cygwin* | mingw*)
5037 # On Win9x/ME, this test blows up -- it succeeds, but takes
5038 # about 5 minutes as the teststring grows exponentially.
5039 # Worse, since 9x/ME are not pre-emptively multitasking,
5040 # you end up with a "frozen" computer, even though with patience
5041 # the test eventually succeeds (with a max line length of 256k).
5042 # Instead, let's just punt: use the minimum linelength reported by
5043 # all of the supported platforms: 8192 (on NT/2K/XP).
5044 lt_cv_sys_max_cmd_len=8192;
5045 ;;
5046
5047 *)
5048 # If test is not a shell built-in, we'll probably end up computing a
5049 # maximum length that is only half of the actual maximum length, but
5050 # we can't tell.
5051 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5052 = "XX$testring") >/dev/null 2>&1 &&
5053 new_result=`expr "X$testring" : ".*" 2>&1` &&
5054 lt_cv_sys_max_cmd_len=$new_result &&
5055 test $i != 17 # 1/2 MB should be enough
5056 do
5057 i=`expr $i + 1`
5058 testring=$testring$testring
5059 done
5060 testring=
5061 # Add a significant safety factor because C++ compilers can tack on massive
5062 # amounts of additional arguments before passing them to the linker.
5063 # It appears as though 1/2 is a usable value.
5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5065 ;;
5066 esac
5067
5068fi
5069
5070if test -n $lt_cv_sys_max_cmd_len ; then
5071 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5072echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5073else
5074 echo "$as_me:$LINENO: result: none" >&5
5075echo "${ECHO_T}none" >&6
5076fi
5077
5078
5079
5080
5081# Check for command to grab the raw symbol name followed by C symbol from nm.
5082echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5083echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5084if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087
5088# These are sane defaults that work on at least a few old systems.
5089# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5090
5091# Character class describing NM global symbol codes.
5092symcode='[BCDEGRST]'
5093
5094# Regexp to match symbols that can be accessed directly from C.
5095sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5096
5097# Transform the above into a raw symbol and a C symbol.
5098symxfrm='\1 \2\3 \3'
5099
5100# Transform an extracted symbol line into a proper C declaration
5101lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5102
5103# Transform an extracted symbol line into symbol name and symbol address
5104lt_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'"
5105
5106# Define system-specific variables.
5107case $host_os in
5108aix*)
5109 symcode='[BCDT]'
5110 ;;
5111cygwin* | mingw* | pw32*)
5112 symcode='[ABCDGISTW]'
5113 ;;
5114hpux*) # Its linker distinguishes data from code symbols
5115 if test "$host_cpu" = ia64; then
5116 symcode='[ABCDEGRST]'
5117 fi
5118 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5119 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'"
5120 ;;
5121irix* | nonstopux*)
5122 symcode='[BCDEGRST]'
5123 ;;
5124osf*)
5125 symcode='[BCDEGQRST]'
5126 ;;
5127solaris* | sysv5*)
5128 symcode='[BDT]'
5129 ;;
5130sysv4)
5131 symcode='[DFNSTU]'
5132 ;;
5133esac
5134
5135# Handle CRLF in mingw tool chain
5136opt_cr=
5137case $build_os in
5138mingw*)
5139 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5140 ;;
5141esac
5142
5143# If we're using GNU nm, then use its standard symbol codes.
5144case `$NM -V 2>&1` in
5145*GNU* | *'with BFD'*)
5146 symcode='[ABCDGISTW]' ;;
5147esac
5148
5149# Try without a prefix undercore, then with it.
5150for ac_symprfx in "" "_"; do
5151
5152 # Write the raw and C identifiers.
5153 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5154
5155 # Check to see that the pipe works correctly.
5156 pipe_works=no
5157
5158 rm -f conftest*
5159 cat > conftest.$ac_ext <<EOF
5160#ifdef __cplusplus
5161extern "C" {
5162#endif
5163char nm_test_var;
5164void nm_test_func(){}
5165#ifdef __cplusplus
5166}
5167#endif
5168int main(){nm_test_var='a';nm_test_func();return(0);}
5169EOF
5170
5171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; then
5176 # Now try to grab the symbols.
5177 nlist=conftest.nm
5178 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5179 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && test -s "$nlist"; then
5183 # Try sorting and uniquifying the output.
5184 if sort "$nlist" | uniq > "$nlist"T; then
5185 mv -f "$nlist"T "$nlist"
5186 else
5187 rm -f "$nlist"T
5188 fi
5189
5190 # Make sure that we snagged all the symbols we need.
5191 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5192 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5193 cat <<EOF > conftest.$ac_ext
5194#ifdef __cplusplus
5195extern "C" {
5196#endif
5197
5198EOF
5199 # Now generate the symbol file.
5200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5201
5202 cat <<EOF >> conftest.$ac_ext
5203#if defined (__STDC__) && __STDC__
5204# define lt_ptr_t void *
5205#else
5206# define lt_ptr_t char *
5207# define const
5208#endif
5209
5210/* The mapping between symbol names and symbols. */
5211const struct {
5212 const char *name;
5213 lt_ptr_t address;
5214}
5215lt_preloaded_symbols[] =
5216{
5217EOF
5218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5219 cat <<\EOF >> conftest.$ac_ext
5220 {0, (lt_ptr_t) 0}
5221};
5222
5223#ifdef __cplusplus
5224}
5225#endif
5226EOF
5227 # Now try linking the two files.
5228 mv conftest.$ac_objext conftstm.$ac_objext
5229 lt_save_LIBS="$LIBS"
5230 lt_save_CFLAGS="$CFLAGS"
5231 LIBS="conftstm.$ac_objext"
5232 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5238 pipe_works=yes
5239 fi
5240 LIBS="$lt_save_LIBS"
5241 CFLAGS="$lt_save_CFLAGS"
5242 else
5243 echo "cannot find nm_test_func in $nlist" >&5
5244 fi
5245 else
5246 echo "cannot find nm_test_var in $nlist" >&5
5247 fi
5248 else
5249 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5250 fi
5251 else
5252 echo "$progname: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 fi
5255 rm -f conftest* conftst*
5256
5257 # Do not use the global_symbol_pipe unless it works.
5258 if test "$pipe_works" = yes; then
5259 break
5260 else
5261 lt_cv_sys_global_symbol_pipe=
5262 fi
5263done
5264
5265fi
5266
5267if test -z "$lt_cv_sys_global_symbol_pipe"; then
5268 lt_cv_sys_global_symbol_to_cdecl=
5269fi
5270if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5271 echo "$as_me:$LINENO: result: failed" >&5
5272echo "${ECHO_T}failed" >&6
5273else
5274 echo "$as_me:$LINENO: result: ok" >&5
5275echo "${ECHO_T}ok" >&6
5276fi
5277
5278echo "$as_me:$LINENO: checking for objdir" >&5
5279echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5280if test "${lt_cv_objdir+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 rm -f .libs 2>/dev/null
5284mkdir .libs 2>/dev/null
5285if test -d .libs; then
5286 lt_cv_objdir=.libs
5287else
5288 # MS-DOS does not allow filenames that begin with a dot.
5289 lt_cv_objdir=_libs
5290fi
5291rmdir .libs 2>/dev/null
5292fi
5293echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5294echo "${ECHO_T}$lt_cv_objdir" >&6
5295objdir=$lt_cv_objdir
5296
5297
5298
5299
5300
5301case $host_os in
5302aix3*)
5303 # AIX sometimes has problems with the GCC collect2 program. For some
5304 # reason, if we set the COLLECT_NAMES environment variable, the problems
5305 # vanish in a puff of smoke.
5306 if test "X${COLLECT_NAMES+set}" != Xset; then
5307 COLLECT_NAMES=
5308 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005309 fi
5310 ;;
5311esac
5312
John Criswell47fdd832003-07-14 16:52:07 +00005313# Sed substitution that helps us do robust quoting. It backslashifies
5314# metacharacters that are still active within double-quoted strings.
5315Xsed='sed -e s/^X//'
5316sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5317
5318# Same as above, but do not quote variable references.
5319double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5320
5321# Sed substitution to delay expansion of an escaped shell variable in a
5322# double_quote_subst'ed string.
5323delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5324
5325# Sed substitution to avoid accidental globbing in evaled expressions
5326no_glob_subst='s/\*/\\\*/g'
5327
5328# Constants:
5329rm="rm -f"
5330
5331# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005332default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005333can_build_shared=yes
5334
5335# All known linkers require a `.a' archive for static linking (except M$VC,
5336# which needs '.lib').
5337libext=a
5338ltmain="$ac_aux_dir/ltmain.sh"
5339ofile="$default_ofile"
5340with_gnu_ld="$lt_cv_prog_gnu_ld"
5341
5342if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5344set dummy ${ac_tool_prefix}ar; ac_word=$2
5345echo "$as_me:$LINENO: checking for $ac_word" >&5
5346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347if test "${ac_cv_prog_AR+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 if test -n "$AR"; then
5351 ac_cv_prog_AR="$AR" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_AR="${ac_tool_prefix}ar"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364done
5365done
5366
5367fi
5368fi
5369AR=$ac_cv_prog_AR
5370if test -n "$AR"; then
5371 echo "$as_me:$LINENO: result: $AR" >&5
5372echo "${ECHO_T}$AR" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378fi
5379if test -z "$ac_cv_prog_AR"; then
5380 ac_ct_AR=$AR
5381 # Extract the first word of "ar", so it can be a program name with args.
5382set dummy ar; ac_word=$2
5383echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 if test -n "$ac_ct_AR"; then
5389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ac_ct_AR="ar"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403done
5404
5405 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5406fi
5407fi
5408ac_ct_AR=$ac_cv_prog_ac_ct_AR
5409if test -n "$ac_ct_AR"; then
5410 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5411echo "${ECHO_T}$ac_ct_AR" >&6
5412else
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415fi
5416
5417 AR=$ac_ct_AR
5418else
5419 AR="$ac_cv_prog_AR"
5420fi
5421
John Criswell7a73b802003-06-30 21:59:07 +00005422if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5424set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5425echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427if test "${ac_cv_prog_RANLIB+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430 if test -n "$RANLIB"; then
5431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5432else
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444done
5445done
5446
5447fi
5448fi
5449RANLIB=$ac_cv_prog_RANLIB
5450if test -n "$RANLIB"; then
5451 echo "$as_me:$LINENO: result: $RANLIB" >&5
5452echo "${ECHO_T}$RANLIB" >&6
5453else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457
5458fi
5459if test -z "$ac_cv_prog_RANLIB"; then
5460 ac_ct_RANLIB=$RANLIB
5461 # Extract the first word of "ranlib", so it can be a program name with args.
5462set dummy ranlib; ac_word=$2
5463echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 if test -n "$ac_ct_RANLIB"; then
5469 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5470else
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_RANLIB="ranlib"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482done
5483done
5484
5485 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5486fi
5487fi
5488ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5489if test -n "$ac_ct_RANLIB"; then
5490 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5491echo "${ECHO_T}$ac_ct_RANLIB" >&6
5492else
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495fi
5496
5497 RANLIB=$ac_ct_RANLIB
5498else
5499 RANLIB="$ac_cv_prog_RANLIB"
5500fi
5501
5502if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5504set dummy ${ac_tool_prefix}strip; ac_word=$2
5505echo "$as_me:$LINENO: checking for $ac_word" >&5
5506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507if test "${ac_cv_prog_STRIP+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 if test -n "$STRIP"; then
5511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524done
5525done
5526
5527fi
5528fi
5529STRIP=$ac_cv_prog_STRIP
5530if test -n "$STRIP"; then
5531 echo "$as_me:$LINENO: result: $STRIP" >&5
5532echo "${ECHO_T}$STRIP" >&6
5533else
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536fi
5537
5538fi
5539if test -z "$ac_cv_prog_STRIP"; then
5540 ac_ct_STRIP=$STRIP
5541 # Extract the first word of "strip", so it can be a program name with args.
5542set dummy strip; ac_word=$2
5543echo "$as_me:$LINENO: checking for $ac_word" >&5
5544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5545if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548 if test -n "$ac_ct_STRIP"; then
5549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5550else
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_ac_ct_STRIP="strip"
5559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562done
5563done
5564
5565 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5566fi
5567fi
5568ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5569if test -n "$ac_ct_STRIP"; then
5570 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5571echo "${ECHO_T}$ac_ct_STRIP" >&6
5572else
5573 echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575fi
5576
5577 STRIP=$ac_ct_STRIP
5578else
5579 STRIP="$ac_cv_prog_STRIP"
5580fi
5581
5582
John Criswell7a73b802003-06-30 21:59:07 +00005583old_CC="$CC"
5584old_CFLAGS="$CFLAGS"
5585
5586# Set sane defaults for various variables
5587test -z "$AR" && AR=ar
5588test -z "$AR_FLAGS" && AR_FLAGS=cru
5589test -z "$AS" && AS=as
5590test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005591test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005592test -z "$DLLTOOL" && DLLTOOL=dlltool
5593test -z "$LD" && LD=ld
5594test -z "$LN_S" && LN_S="ln -s"
5595test -z "$MAGIC_CMD" && MAGIC_CMD=file
5596test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005597test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005598test -z "$OBJDUMP" && OBJDUMP=objdump
5599test -z "$RANLIB" && RANLIB=:
5600test -z "$STRIP" && STRIP=:
5601test -z "$ac_objext" && ac_objext=o
5602
John Criswell7a73b802003-06-30 21:59:07 +00005603# Determine commands to create old-style static archives.
5604old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5605old_postinstall_cmds='chmod 644 $oldlib'
5606old_postuninstall_cmds=
5607
5608if test -n "$RANLIB"; then
5609 case $host_os in
5610 openbsd*)
5611 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5612 ;;
5613 *)
5614 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5615 ;;
5616 esac
5617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5618fi
5619
John Criswell47fdd832003-07-14 16:52:07 +00005620# Only perform the check for file, if the check method requires it
5621case $deplibs_check_method in
5622file_magic*)
5623 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5624 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5625echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5626if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005628else
John Criswell47fdd832003-07-14 16:52:07 +00005629 case $MAGIC_CMD in
5630[\\/*] | ?:[\\/]*)
5631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5632 ;;
5633*)
5634 lt_save_MAGIC_CMD="$MAGIC_CMD"
5635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5637 for ac_dir in $ac_dummy; do
5638 IFS="$lt_save_ifs"
5639 test -z "$ac_dir" && ac_dir=.
5640 if test -f $ac_dir/${ac_tool_prefix}file; then
5641 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5642 if test -n "$file_magic_test_file"; then
5643 case $deplibs_check_method in
5644 "file_magic "*)
5645 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5648 $EGREP "$file_magic_regex" > /dev/null; then
5649 :
5650 else
5651 cat <<EOF 1>&2
5652
5653*** Warning: the command libtool uses to detect shared libraries,
5654*** $file_magic_cmd, produces output that libtool cannot recognize.
5655*** The result is that libtool may fail to recognize shared libraries
5656*** as such. This will affect the creation of libtool libraries that
5657*** depend on shared libraries, but programs linked with such libtool
5658*** libraries will work regardless of this problem. Nevertheless, you
5659*** may want to report the problem to your system manager and/or to
5660*** bug-libtool@gnu.org
5661
5662EOF
5663 fi ;;
5664 esac
5665 fi
5666 break
5667 fi
5668 done
5669 IFS="$lt_save_ifs"
5670 MAGIC_CMD="$lt_save_MAGIC_CMD"
5671 ;;
5672esac
John Criswell7a73b802003-06-30 21:59:07 +00005673fi
John Criswell7a73b802003-06-30 21:59:07 +00005674
John Criswell47fdd832003-07-14 16:52:07 +00005675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5676if test -n "$MAGIC_CMD"; then
5677 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5678echo "${ECHO_T}$MAGIC_CMD" >&6
5679else
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682fi
John Criswell7a73b802003-06-30 21:59:07 +00005683
John Criswell47fdd832003-07-14 16:52:07 +00005684if test -z "$lt_cv_path_MAGIC_CMD"; then
5685 if test -n "$ac_tool_prefix"; then
5686 echo "$as_me:$LINENO: checking for file" >&5
5687echo $ECHO_N "checking for file... $ECHO_C" >&6
5688if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691 case $MAGIC_CMD in
5692[\\/*] | ?:[\\/]*)
5693 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5694 ;;
5695*)
5696 lt_save_MAGIC_CMD="$MAGIC_CMD"
5697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5699 for ac_dir in $ac_dummy; do
5700 IFS="$lt_save_ifs"
5701 test -z "$ac_dir" && ac_dir=.
5702 if test -f $ac_dir/file; then
5703 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5704 if test -n "$file_magic_test_file"; then
5705 case $deplibs_check_method in
5706 "file_magic "*)
5707 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5710 $EGREP "$file_magic_regex" > /dev/null; then
5711 :
5712 else
5713 cat <<EOF 1>&2
5714
5715*** Warning: the command libtool uses to detect shared libraries,
5716*** $file_magic_cmd, produces output that libtool cannot recognize.
5717*** The result is that libtool may fail to recognize shared libraries
5718*** as such. This will affect the creation of libtool libraries that
5719*** depend on shared libraries, but programs linked with such libtool
5720*** libraries will work regardless of this problem. Nevertheless, you
5721*** may want to report the problem to your system manager and/or to
5722*** bug-libtool@gnu.org
5723
5724EOF
5725 fi ;;
5726 esac
5727 fi
5728 break
5729 fi
5730 done
5731 IFS="$lt_save_ifs"
5732 MAGIC_CMD="$lt_save_MAGIC_CMD"
5733 ;;
5734esac
5735fi
5736
5737MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5738if test -n "$MAGIC_CMD"; then
5739 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5740echo "${ECHO_T}$MAGIC_CMD" >&6
5741else
5742 echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
5744fi
5745
5746 else
5747 MAGIC_CMD=:
5748 fi
5749fi
5750
5751 fi
5752 ;;
5753esac
5754
5755enable_dlopen=no
5756enable_win32_dll=no
5757
5758# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5759if test "${enable_libtool_lock+set}" = set; then
5760 enableval="$enable_libtool_lock"
5761
5762fi;
5763test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5764
John Criswell7a73b802003-06-30 21:59:07 +00005765
5766# Check whether --with-pic or --without-pic was given.
5767if test "${with_pic+set}" = set; then
5768 withval="$with_pic"
5769 pic_mode="$withval"
5770else
5771 pic_mode=default
5772fi;
5773test -z "$pic_mode" && pic_mode=default
5774
John Criswell47fdd832003-07-14 16:52:07 +00005775# Use C for the default configuration in the libtool script
5776tagname=
5777lt_save_CC="$CC"
5778ac_ext=c
5779ac_cpp='$CPP $CPPFLAGS'
5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784
5785# Source file extension for C test sources.
5786ac_ext=c
5787
5788# Object file extension for compiled C test sources.
5789objext=o
5790objext=$objext
5791
5792# Code to be used in simple compile tests
5793lt_simple_compile_test_code="int some_variable = 0;\n"
5794
5795# Code to be used in simple link tests
5796lt_simple_link_test_code='int main(){return(0);}\n'
5797
5798
5799# If no C compiler was specified, use CC.
5800LTCC=${LTCC-"$CC"}
5801
5802# Allow CC to be a program name with arguments.
5803compiler=$CC
5804
5805
5806#
5807# Check for any special shared library compilation flags.
5808#
5809lt_prog_cc_shlib=
5810if test "$GCC" = no; then
5811 case $host_os in
5812 sco3.2v5*)
5813 lt_prog_cc_shlib='-belf'
5814 ;;
5815 esac
5816fi
5817if test -n "$lt_prog_cc_shlib"; then
5818 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5819echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5820 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5821 else
5822 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5823echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5824 lt_cv_prog_cc_can_build_shared=no
5825 fi
5826fi
5827
5828
5829#
5830# Check to make sure the static flag actually works.
5831#
5832echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5833echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5834if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
John Criswell47fdd832003-07-14 16:52:07 +00005837 lt_prog_compiler_static_works=no
5838 save_LDFLAGS="$LDFLAGS"
5839 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5840 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5842 # The compiler can only warn and ignore the option if not recognized
5843 # So say no if there are warnings
5844 if test -s conftest.err; then
5845 # Append any errors to the config.log.
5846 cat conftest.err 1>&5
5847 else
5848 lt_prog_compiler_static_works=yes
5849 fi
5850 fi
5851 $rm conftest*
5852 LDFLAGS="$save_LDFLAGS"
5853
5854fi
5855echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5856echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5857
5858if test x"$lt_prog_compiler_static_works" = xyes; then
5859 :
5860else
5861 lt_prog_compiler_static=
5862fi
5863
5864
5865
John Criswell47fdd832003-07-14 16:52:07 +00005866
5867lt_prog_compiler_no_builtin_flag=
5868
5869if test "$GCC" = yes; then
5870 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5871
5872 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5873echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5874if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 lt_cv_prog_compiler_rtti_exceptions=no
5878 ac_outfile=conftest.$ac_objext
5879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5880 lt_compiler_flag="-fno-rtti -fno-exceptions"
5881 # Insert the option either (1) after the last *FLAGS variable, or
5882 # (2) before a word containing "conftest.", or (3) at the end.
5883 # Note that $ac_compile itself does not contain backslashes and begins
5884 # with a dollar sign (not a hyphen), so the echo should work correctly.
5885 # The option is referenced via a variable to avoid confusing sed.
5886 lt_compile=`echo "$ac_compile" | $SED \
5887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5889 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +00005890 (eval echo "\"\$as_me:5890: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005891 (eval "$lt_compile" 2>conftest.err)
5892 ac_status=$?
5893 cat conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +00005894 echo "$as_me:5894: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005895 if (exit $ac_status) && test -s "$ac_outfile"; then
5896 # The compiler can only warn and ignore the option if not recognized
5897 # So say no if there are warnings
5898 if test ! -s conftest.err; then
5899 lt_cv_prog_compiler_rtti_exceptions=yes
5900 fi
5901 fi
5902 $rm conftest*
5903
5904fi
5905echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5906echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5907
5908if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5910else
5911 :
5912fi
5913
5914fi
5915
5916lt_prog_compiler_wl=
5917lt_prog_compiler_pic=
5918lt_prog_compiler_static=
5919
5920echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5921echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005922
5923 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005924 lt_prog_compiler_wl='-Wl,'
5925 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005926
5927 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005928 aix*)
5929 # All AIX code is PIC.
5930 if test "$host_cpu" = ia64; then
5931 # AIX 5 now supports IA64 processor
5932 lt_prog_compiler_static='-Bstatic'
5933 fi
John Criswell7a73b802003-06-30 21:59:07 +00005934 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005935
John Criswell7a73b802003-06-30 21:59:07 +00005936 amigaos*)
5937 # FIXME: we need at least 68020 code to build shared libraries, but
5938 # adding the `-m68020' flag to GCC prevents building anything better,
5939 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005941 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005942
5943 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005944 # PIC is the default for these OSes.
5945 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005946
5947 mingw* | pw32* | os2*)
5948 # This hack is so that the source file can tell whether it is being
5949 # built for inclusion in a dll (and should export symbols for example).
5950 lt_prog_compiler_pic='-DDLL_EXPORT'
5951 ;;
5952
John Criswell7a73b802003-06-30 21:59:07 +00005953 darwin* | rhapsody*)
5954 # PIC is the default on this platform
5955 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005956 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005957 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005958
5959 msdosdjgpp*)
5960 # Just because we use GCC doesn't mean we suddenly get shared libraries
5961 # on systems that don't support them.
5962 lt_prog_compiler_can_build_shared=no
5963 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005964 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005965
John Criswell7a73b802003-06-30 21:59:07 +00005966 sysv4*MP*)
5967 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005968 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005969 fi
5970 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005971
5972 hpux*)
5973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5974 # not for PA HP-UX.
5975 case "$host_cpu" in
5976 hppa*64*|ia64*)
5977 # +Z the default
5978 ;;
5979 *)
5980 lt_prog_compiler_pic='-fPIC'
5981 ;;
5982 esac
5983 ;;
5984
John Criswell7a73b802003-06-30 21:59:07 +00005985 *)
John Criswell47fdd832003-07-14 16:52:07 +00005986 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005987 ;;
5988 esac
5989 else
John Criswell47fdd832003-07-14 16:52:07 +00005990 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005991 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005992 aix*)
5993 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005994 if test "$host_cpu" = ia64; then
5995 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005996 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005997 else
John Criswell47fdd832003-07-14 16:52:07 +00005998 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005999 fi
6000 ;;
6001
John Criswell47fdd832003-07-14 16:52:07 +00006002 mingw* | pw32* | os2*)
6003 # This hack is so that the source file can tell whether it is being
6004 # built for inclusion in a dll (and should export symbols for example).
6005 lt_prog_compiler_pic='-DDLL_EXPORT'
6006 ;;
6007
John Criswell7a73b802003-06-30 21:59:07 +00006008 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006009 lt_prog_compiler_wl='-Wl,'
6010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6011 # not for PA HP-UX.
6012 case "$host_cpu" in
6013 hppa*64*|ia64*)
6014 # +Z the default
6015 ;;
6016 *)
6017 lt_prog_compiler_pic='+Z'
6018 ;;
6019 esac
6020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6021 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006022 ;;
6023
John Criswell47fdd832003-07-14 16:52:07 +00006024 irix5* | irix6* | nonstopux*)
6025 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006026 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006027 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006028 ;;
6029
6030 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006031 lt_prog_compiler_pic='-KPIC'
6032 lt_prog_compiler_static='-Bstatic'
6033 ;;
6034
6035 linux*)
6036 case $CC in
6037 icc|ecc)
6038 lt_prog_compiler_wl='-Wl,'
6039 lt_prog_compiler_pic='-KPIC'
6040 lt_prog_compiler_static='-static'
6041 ;;
6042 ccc)
6043 lt_prog_compiler_wl='-Wl,'
6044 # All Alpha code is PIC.
6045 lt_prog_compiler_static='-non_shared'
6046 ;;
6047 esac
John Criswell7a73b802003-06-30 21:59:07 +00006048 ;;
6049
6050 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006051 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006052 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006053 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006054 ;;
6055
6056 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006057 lt_prog_compiler_pic='-Kpic'
6058 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006059 ;;
6060
6061 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006062 lt_prog_compiler_wl='-Wl,'
6063 lt_prog_compiler_pic='-KPIC'
6064 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006065 ;;
6066
6067 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006068 lt_prog_compiler_wl='-Qoption ld '
6069 lt_prog_compiler_pic='-PIC'
6070 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006071 ;;
6072
6073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006074 lt_prog_compiler_wl='-Wl,'
6075 lt_prog_compiler_pic='-KPIC'
6076 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006077 ;;
6078
6079 sysv4*MP*)
6080 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006081 lt_prog_compiler_pic='-Kconform_pic'
6082 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006083 fi
6084 ;;
6085
John Criswell47fdd832003-07-14 16:52:07 +00006086 uts4*)
6087 lt_prog_compiler_pic='-pic'
6088 lt_prog_compiler_static='-Bstatic'
6089 ;;
6090
John Criswell7a73b802003-06-30 21:59:07 +00006091 *)
John Criswell47fdd832003-07-14 16:52:07 +00006092 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006093 ;;
6094 esac
6095 fi
6096
John Criswell47fdd832003-07-14 16:52:07 +00006097echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6098echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006099
John Criswell47fdd832003-07-14 16:52:07 +00006100#
6101# Check to make sure the PIC flag actually works.
6102#
6103if test -n "$lt_prog_compiler_pic"; then
6104 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6105echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6106if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
John Criswell47fdd832003-07-14 16:52:07 +00006109 lt_prog_compiler_pic_works=no
6110 ac_outfile=conftest.$ac_objext
6111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6113 # Insert the option either (1) after the last *FLAGS variable, or
6114 # (2) before a word containing "conftest.", or (3) at the end.
6115 # Note that $ac_compile itself does not contain backslashes and begins
6116 # with a dollar sign (not a hyphen), so the echo should work correctly.
6117 # The option is referenced via a variable to avoid confusing sed.
6118 lt_compile=`echo "$ac_compile" | $SED \
6119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6121 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +00006122 (eval echo "\"\$as_me:6122: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006123 (eval "$lt_compile" 2>conftest.err)
6124 ac_status=$?
6125 cat conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +00006126 echo "$as_me:6126: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006127 if (exit $ac_status) && test -s "$ac_outfile"; then
6128 # The compiler can only warn and ignore the option if not recognized
6129 # So say no if there are warnings
6130 if test ! -s conftest.err; then
6131 lt_prog_compiler_pic_works=yes
6132 fi
6133 fi
6134 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006135
John Criswell47fdd832003-07-14 16:52:07 +00006136fi
6137echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6138echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006139
John Criswell47fdd832003-07-14 16:52:07 +00006140if test x"$lt_prog_compiler_pic_works" = xyes; then
6141 case $lt_prog_compiler_pic in
6142 "" | " "*) ;;
6143 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6144 esac
John Criswell7a73b802003-06-30 21:59:07 +00006145else
John Criswell47fdd832003-07-14 16:52:07 +00006146 lt_prog_compiler_pic=
6147 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006148fi
6149
John Criswell7a73b802003-06-30 21:59:07 +00006150fi
John Criswell47fdd832003-07-14 16:52:07 +00006151case "$host_os" in
6152 # For platforms which do not support PIC, -DPIC is meaningless:
6153 *djgpp*)
6154 lt_prog_compiler_pic=
6155 ;;
6156 *)
6157 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6158 ;;
6159esac
John Criswell7a73b802003-06-30 21:59:07 +00006160
John Criswell7a73b802003-06-30 21:59:07 +00006161echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6162echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006163if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
John Criswell47fdd832003-07-14 16:52:07 +00006166 lt_cv_prog_compiler_c_o=no
6167 $rm -r conftest 2>/dev/null
6168 mkdir conftest
6169 cd conftest
6170 mkdir out
6171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006172
John Criswell47fdd832003-07-14 16:52:07 +00006173 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6174 # that will create temporary files in the current directory regardless of
6175 # the output directory. Thus, making CWD read-only will cause this test
6176 # to fail, enabling locking or at least warning the user not to do parallel
6177 # builds.
6178 chmod -w .
6179
6180 lt_compiler_flag="-o out/conftest2.$ac_objext"
6181 # Insert the option either (1) after the last *FLAGS variable, or
6182 # (2) before a word containing "conftest.", or (3) at the end.
6183 # Note that $ac_compile itself does not contain backslashes and begins
6184 # with a dollar sign (not a hyphen), so the echo should work correctly.
6185 lt_compile=`echo "$ac_compile" | $SED \
6186 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6188 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +00006189 (eval echo "\"\$as_me:6189: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006190 (eval "$lt_compile" 2>out/conftest.err)
6191 ac_status=$?
6192 cat out/conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +00006193 echo "$as_me:6193: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6195 then
6196 # The compiler can only warn and ignore the option if not recognized
6197 # So say no if there are warnings
6198 if test ! -s out/conftest.err; then
6199 lt_cv_prog_compiler_c_o=yes
6200 fi
6201 fi
6202 chmod u+w .
6203 $rm conftest* out/*
6204 rmdir out
6205 cd ..
6206 rmdir conftest
6207 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006208
6209fi
John Criswell47fdd832003-07-14 16:52:07 +00006210echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6211echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006212
John Criswell7a73b802003-06-30 21:59:07 +00006213
John Criswell7a73b802003-06-30 21:59:07 +00006214hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006215if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006216 # do not overwrite the value of need_locks provided by the user
6217 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6218echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6219 hard_links=yes
6220 $rm conftest*
6221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6222 touch conftest.a
6223 ln conftest.a conftest.b 2>&5 || hard_links=no
6224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6225 echo "$as_me:$LINENO: result: $hard_links" >&5
6226echo "${ECHO_T}$hard_links" >&6
6227 if test "$hard_links" = no; then
6228 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6229echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6230 need_locks=warn
6231 fi
6232else
6233 need_locks=no
6234fi
John Criswell7a73b802003-06-30 21:59:07 +00006235
John Criswell47fdd832003-07-14 16:52:07 +00006236echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6237echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6238
6239 runpath_var=
6240 allow_undefined_flag=
6241 enable_shared_with_static_runtimes=no
6242 archive_cmds=
6243 archive_expsym_cmds=
6244 old_archive_From_new_cmds=
6245 old_archive_from_expsyms_cmds=
6246 export_dynamic_flag_spec=
6247 whole_archive_flag_spec=
6248 thread_safe_flag_spec=
6249 hardcode_libdir_flag_spec=
6250 hardcode_libdir_flag_spec_ld=
6251 hardcode_libdir_separator=
6252 hardcode_direct=no
6253 hardcode_minus_L=no
6254 hardcode_shlibpath_var=unsupported
6255 link_all_deplibs=unknown
6256 hardcode_automatic=no
6257 module_cmds=
6258 module_expsym_cmds=
6259 always_export_symbols=no
6260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6261 # include_expsyms should be a list of space-separated symbols to be *always*
6262 # included in the symbol list
6263 include_expsyms=
6264 # exclude_expsyms can be an extended regexp of symbols to exclude
6265 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6266 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6267 # as well as any symbol that contains `d'.
6268 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6269 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6270 # platforms (ab)use it in PIC code, but their linkers get confused if
6271 # the symbol is explicitly referenced. Since portable code cannot
6272 # rely on this symbol name, it's probably fine to never include it in
6273 # preloaded symbol tables.
6274 extract_expsyms_cmds=
6275
6276 case $host_os in
6277 cygwin* | mingw* | pw32*)
6278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6279 # When not using gcc, we currently assume that we are using
6280 # Microsoft Visual C++.
6281 if test "$GCC" != yes; then
6282 with_gnu_ld=no
6283 fi
6284 ;;
6285 openbsd*)
6286 with_gnu_ld=no
6287 ;;
6288 esac
6289
6290 ld_shlibs=yes
6291 if test "$with_gnu_ld" = yes; then
6292 # If archive_cmds runs LD, not CC, wlarc should be empty
6293 wlarc='${wl}'
6294
6295 # See if GNU ld supports shared libraries.
6296 case $host_os in
6297 aix3* | aix4* | aix5*)
6298 # On AIX/PPC, the GNU linker is very broken
6299 if test "$host_cpu" != ia64; then
6300 ld_shlibs=no
6301 cat <<EOF 1>&2
6302
6303*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6304*** to be unable to reliably create shared libraries on AIX.
6305*** Therefore, libtool is disabling shared libraries support. If you
6306*** really care for shared libraries, you may want to modify your PATH
6307*** so that a non-GNU linker is found, and then restart.
6308
6309EOF
6310 fi
6311 ;;
6312
6313 amigaos*)
6314 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)'
6315 hardcode_libdir_flag_spec='-L$libdir'
6316 hardcode_minus_L=yes
6317
6318 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6319 # that the semantics of dynamic libraries on AmigaOS, at least up
6320 # to version 4, is to share data among multiple programs linked
6321 # with the same dynamic library. Since this doesn't match the
6322 # behavior of shared libraries on other platforms, we can't use
6323 # them.
6324 ld_shlibs=no
6325 ;;
6326
6327 beos*)
6328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6329 allow_undefined_flag=unsupported
6330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6331 # support --undefined. This deserves some investigation. FIXME
6332 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6333 else
6334 ld_shlibs=no
6335 fi
6336 ;;
6337
6338 cygwin* | mingw* | pw32*)
6339 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6340 # as there is no search path for DLLs.
6341 hardcode_libdir_flag_spec='-L$libdir'
6342 allow_undefined_flag=unsupported
6343 always_export_symbols=no
6344 enable_shared_with_static_runtimes=yes
6345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6346
6347 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6349 # If the export-symbols file already is a .def file (1st line
6350 # is EXPORTS), use it as is; otherwise, prepend...
6351 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6352 cp $export_symbols $output_objdir/$soname.def;
6353 else
6354 echo EXPORTS > $output_objdir/$soname.def;
6355 cat $export_symbols >> $output_objdir/$soname.def;
6356 fi~
6357 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6358 else
6359 ld_shlibs=no
6360 fi
6361 ;;
6362
6363 netbsd*)
6364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6366 wlarc=
6367 else
6368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6370 fi
6371 ;;
6372
6373 solaris* | sysv5*)
6374 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6375 ld_shlibs=no
6376 cat <<EOF 1>&2
6377
6378*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6379*** create shared libraries on Solaris systems. Therefore, libtool
6380*** is disabling shared libraries support. We urge you to upgrade GNU
6381*** binutils to release 2.9.1 or newer. Another option is to modify
6382*** your PATH or compiler configuration so that the native linker is
6383*** used, and then restart.
6384
6385EOF
6386 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6389 else
6390 ld_shlibs=no
6391 fi
6392 ;;
6393
6394 sunos4*)
6395 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6396 wlarc=
6397 hardcode_direct=yes
6398 hardcode_shlibpath_var=no
6399 ;;
6400
6401 *)
6402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6405 else
6406 ld_shlibs=no
6407 fi
6408 ;;
6409 esac
6410
6411 if test "$ld_shlibs" = yes; then
6412 runpath_var=LD_RUN_PATH
6413 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6414 export_dynamic_flag_spec='${wl}--export-dynamic'
6415 # ancient GNU ld didn't support --whole-archive et. al.
6416 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6418 else
6419 whole_archive_flag_spec=
6420 fi
6421 fi
6422 else
6423 # PORTME fill in a description of your system's linker (not GNU ld)
6424 case $host_os in
6425 aix3*)
6426 allow_undefined_flag=unsupported
6427 always_export_symbols=yes
6428 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'
6429 # Note: this linker hardcodes the directories in LIBPATH if there
6430 # are no directories specified by -L.
6431 hardcode_minus_L=yes
6432 if test "$GCC" = yes && test -z "$link_static_flag"; then
6433 # Neither direct hardcoding nor static linking is supported with a
6434 # broken collect2.
6435 hardcode_direct=unsupported
6436 fi
6437 ;;
6438
6439 aix4* | aix5*)
6440 if test "$host_cpu" = ia64; then
6441 # On IA64, the linker does run time linking by default, so we don't
6442 # have to do anything special.
6443 aix_use_runtimelinking=no
6444 exp_sym_flag='-Bexport'
6445 no_entry_flag=""
6446 else
6447 # If we're using GNU nm, then we don't want the "-C" option.
6448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6449 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6450 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'
6451 else
6452 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'
6453 fi
6454 aix_use_runtimelinking=no
6455
6456 # Test if we are trying to use run time linking or normal
6457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6458 # need to do runtime linking.
6459 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6460 for ld_flag in $LDFLAGS; do
6461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6462 aix_use_runtimelinking=yes
6463 break
6464 fi
6465 done
6466 esac
6467
6468 exp_sym_flag='-bexport'
6469 no_entry_flag='-bnoentry'
6470 fi
6471
6472 # When large executables or shared objects are built, AIX ld can
6473 # have problems creating the table of contents. If linking a library
6474 # or program results in "error TOC overflow" add -mminimal-toc to
6475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6477
6478 archive_cmds=''
6479 hardcode_direct=yes
6480 hardcode_libdir_separator=':'
6481 link_all_deplibs=yes
6482
6483 if test "$GCC" = yes; then
6484 case $host_os in aix4.012|aix4.012.*)
6485 # We only want to do this on AIX 4.2 and lower, the check
6486 # below for broken collect2 doesn't work under 4.3+
6487 collect2name=`${CC} -print-prog-name=collect2`
6488 if test -f "$collect2name" && \
6489 strings "$collect2name" | grep resolve_lib_name >/dev/null
6490 then
6491 # We have reworked collect2
6492 hardcode_direct=yes
6493 else
6494 # We have old collect2
6495 hardcode_direct=unsupported
6496 # It fails to find uninstalled libraries when the uninstalled
6497 # path is not listed in the libpath. Setting hardcode_minus_L
6498 # to unsupported forces relinking
6499 hardcode_minus_L=yes
6500 hardcode_libdir_flag_spec='-L$libdir'
6501 hardcode_libdir_separator=
6502 fi
6503 esac
6504 shared_flag='-shared'
6505 else
6506 # not using gcc
6507 if test "$host_cpu" = ia64; then
6508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6509 # chokes on -Wl,-G. The following line is correct:
6510 shared_flag='-G'
6511 else
6512 if test "$aix_use_runtimelinking" = yes; then
6513 shared_flag='${wl}-G'
6514 else
6515 shared_flag='${wl}-bM:SRE'
6516 fi
6517 fi
6518 fi
6519
6520 # It seems that -bexpall does not export symbols beginning with
6521 # underscore (_), so it is better to generate a list of symbols to export.
6522 always_export_symbols=yes
6523 if test "$aix_use_runtimelinking" = yes; then
6524 # Warning - without using the other runtime loading flags (-brtl),
6525 # -berok will link without error, but may produce a broken library.
6526 allow_undefined_flag='-berok'
6527 # Determine the default libpath from the value encoded in an empty executable.
6528 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006529#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006530/* confdefs.h. */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006535
John Criswell7a73b802003-06-30 21:59:07 +00006536int
6537main ()
6538{
John Criswell47fdd832003-07-14 16:52:07 +00006539
John Criswell7a73b802003-06-30 21:59:07 +00006540 ;
6541 return 0;
6542}
6543_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006544rm -f conftest.$ac_objext conftest$ac_exeext
6545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006550 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006556
John Criswell47fdd832003-07-14 16:52:07 +00006557aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6558}'`
6559# Check for a 64-bit object if we didn't find anything.
6560if 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; }
6561}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006562else
6563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006564sed 's/^/| /' conftest.$ac_ext >&5
6565
John Criswell7a73b802003-06-30 21:59:07 +00006566fi
John Criswell47fdd832003-07-14 16:52:07 +00006567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006569
John Criswell47fdd832003-07-14 16:52:07 +00006570 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6571 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"
6572 else
6573 if test "$host_cpu" = ia64; then
6574 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6575 allow_undefined_flag="-z nodefs"
6576 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"
6577 else
6578 # Determine the default libpath from the value encoded in an empty executable.
6579 cat >conftest.$ac_ext <<_ACEOF
6580#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006586
John Criswell47fdd832003-07-14 16:52:07 +00006587int
6588main ()
6589{
John Criswell7a73b802003-06-30 21:59:07 +00006590
John Criswell47fdd832003-07-14 16:52:07 +00006591 ;
6592 return 0;
6593}
6594_ACEOF
6595rm -f conftest.$ac_objext conftest$ac_exeext
6596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006607
John Criswell47fdd832003-07-14 16:52:07 +00006608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6609}'`
6610# Check for a 64-bit object if we didn't find anything.
6611if 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; }
6612}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006613else
John Criswell47fdd832003-07-14 16:52:07 +00006614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006615sed 's/^/| /' conftest.$ac_ext >&5
6616
John Criswell47fdd832003-07-14 16:52:07 +00006617fi
6618rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006620
John Criswell47fdd832003-07-14 16:52:07 +00006621 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6622 # Warning - without using the other run time loading flags,
6623 # -berok will link without error, but may produce a broken library.
6624 no_undefined_flag=' ${wl}-bernotok'
6625 allow_undefined_flag=' ${wl}-berok'
6626 # -bexpall does not export symbols beginning with underscore (_)
6627 always_export_symbols=yes
6628 # Exported symbols can be pulled into shared objects from archives
6629 whole_archive_flag_spec=' '
6630 archive_cmds_need_lc=yes
6631 # This is similar to how AIX traditionally builds it's shared libraries.
6632 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 +00006633 fi
6634 fi
John Criswell7a73b802003-06-30 21:59:07 +00006635 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006636
6637 amigaos*)
6638 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)'
6639 hardcode_libdir_flag_spec='-L$libdir'
6640 hardcode_minus_L=yes
6641 # see comment about different semantics on the GNU ld section
6642 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006643 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006644
John Criswell47fdd832003-07-14 16:52:07 +00006645 bsdi4*)
6646 export_dynamic_flag_spec=-rdynamic
6647 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006648
John Criswell47fdd832003-07-14 16:52:07 +00006649 cygwin* | mingw* | pw32*)
6650 # When not using gcc, we currently assume that we are using
6651 # Microsoft Visual C++.
6652 # hardcode_libdir_flag_spec is actually meaningless, as there is
6653 # no search path for DLLs.
6654 hardcode_libdir_flag_spec=' '
6655 allow_undefined_flag=unsupported
6656 # Tell ltmain to make .lib files, not .a files.
6657 libext=lib
6658 # Tell ltmain to make .dll files, not .so files.
6659 shrext=".dll"
6660 # FIXME: Setting linknames here is a bad hack.
6661 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6662 # The linker will automatically build a .lib file if we build a DLL.
6663 old_archive_From_new_cmds='true'
6664 # FIXME: Should let the user specify the lib program.
6665 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6666 fix_srcfile_path='`cygpath -w "$srcfile"`'
6667 enable_shared_with_static_runtimes=yes
6668 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006669
John Criswell47fdd832003-07-14 16:52:07 +00006670 darwin* | rhapsody*)
6671 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6672 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006673 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006674 rhapsody* | darwin1.[012])
6675 allow_undefined_flag='-undefined suppress'
6676 ;;
6677 *) # Darwin 1.3 on
6678 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006679 ;;
6680 esac
John Criswell47fdd832003-07-14 16:52:07 +00006681 # FIXME: Relying on posixy $() will cause problems for
6682 # cross-compilation, but unfortunately the echo tests do not
6683 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6684 # `"' quotes if we put them in here... so don't!
6685 lt_int_apple_cc_single_mod=no
6686 output_verbose_link_cmd='echo'
6687 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6688 lt_int_apple_cc_single_mod=yes
6689 fi
6690 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6691 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6692 else
6693 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'
6694 fi
6695 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698 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}'
6699 else
6700 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}'
6701 fi
6702 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}'
6703 hardcode_direct=no
6704 hardcode_automatic=yes
6705 hardcode_shlibpath_var=unsupported
6706 whole_archive_flag_spec='-all_load $convenience'
6707 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006708 fi
John Criswell47fdd832003-07-14 16:52:07 +00006709 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006710
John Criswell47fdd832003-07-14 16:52:07 +00006711 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006713 hardcode_libdir_flag_spec='-L$libdir'
6714 hardcode_shlibpath_var=no
6715 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006716
John Criswell47fdd832003-07-14 16:52:07 +00006717 freebsd1*)
6718 ld_shlibs=no
6719 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006720
John Criswell47fdd832003-07-14 16:52:07 +00006721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6722 # support. Future versions do this automatically, but an explicit c++rt0.o
6723 # does not break anything, and helps significantly (at the cost of a little
6724 # extra space).
6725 freebsd2.2*)
6726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6727 hardcode_libdir_flag_spec='-R$libdir'
6728 hardcode_direct=yes
6729 hardcode_shlibpath_var=no
6730 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006731
John Criswell47fdd832003-07-14 16:52:07 +00006732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6733 freebsd2*)
6734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6735 hardcode_direct=yes
6736 hardcode_minus_L=yes
6737 hardcode_shlibpath_var=no
6738 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006739
John Criswell47fdd832003-07-14 16:52:07 +00006740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6741 freebsd*)
6742 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6743 hardcode_libdir_flag_spec='-R$libdir'
6744 hardcode_direct=yes
6745 hardcode_shlibpath_var=no
6746 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006747
John Criswell47fdd832003-07-14 16:52:07 +00006748 hpux9*)
6749 if test "$GCC" = yes; then
6750 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'
6751 else
6752 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'
6753 fi
6754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6755 hardcode_libdir_separator=:
6756 hardcode_direct=yes
6757
6758 # hardcode_minus_L: Not really in the search PATH,
6759 # but as the default location of the library.
6760 hardcode_minus_L=yes
6761 export_dynamic_flag_spec='${wl}-E'
6762 ;;
6763
6764 hpux10* | hpux11*)
6765 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6766 case "$host_cpu" in
6767 hppa*64*|ia64*)
6768 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6769 ;;
6770 *)
6771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6772 ;;
6773 esac
6774 else
6775 case "$host_cpu" in
6776 hppa*64*|ia64*)
6777 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6778 ;;
6779 *)
6780 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6781 ;;
6782 esac
6783 fi
6784 if test "$with_gnu_ld" = no; then
6785 case "$host_cpu" in
6786 hppa*64*)
6787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6788 hardcode_libdir_flag_spec_ld='+b $libdir'
6789 hardcode_libdir_separator=:
6790 hardcode_direct=no
6791 hardcode_shlibpath_var=no
6792 ;;
6793 ia64*)
6794 hardcode_libdir_flag_spec='-L$libdir'
6795 hardcode_direct=no
6796 hardcode_shlibpath_var=no
6797
6798 # hardcode_minus_L: Not really in the search PATH,
6799 # but as the default location of the library.
6800 hardcode_minus_L=yes
6801 ;;
6802 *)
6803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6804 hardcode_libdir_separator=:
6805 hardcode_direct=yes
6806 export_dynamic_flag_spec='${wl}-E'
6807
6808 # hardcode_minus_L: Not really in the search PATH,
6809 # but as the default location of the library.
6810 hardcode_minus_L=yes
6811 ;;
6812 esac
6813 fi
6814 ;;
6815
6816 irix5* | irix6* | nonstopux*)
6817 if test "$GCC" = yes; then
6818 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'
6819 else
6820 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'
6821 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6822 fi
6823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6824 hardcode_libdir_separator=:
6825 link_all_deplibs=yes
6826 ;;
6827
6828 netbsd*)
6829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6831 else
6832 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6833 fi
6834 hardcode_libdir_flag_spec='-R$libdir'
6835 hardcode_direct=yes
6836 hardcode_shlibpath_var=no
6837 ;;
6838
6839 newsos6)
6840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6841 hardcode_direct=yes
6842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6843 hardcode_libdir_separator=:
6844 hardcode_shlibpath_var=no
6845 ;;
6846
6847 openbsd*)
6848 hardcode_direct=yes
6849 hardcode_shlibpath_var=no
6850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6853 export_dynamic_flag_spec='${wl}-E'
6854 else
6855 case $host_os in
6856 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6858 hardcode_libdir_flag_spec='-R$libdir'
6859 ;;
6860 *)
6861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6863 ;;
6864 esac
6865 fi
6866 ;;
6867
6868 os2*)
6869 hardcode_libdir_flag_spec='-L$libdir'
6870 hardcode_minus_L=yes
6871 allow_undefined_flag=unsupported
6872 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'
6873 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6874 ;;
6875
6876 osf3*)
6877 if test "$GCC" = yes; then
6878 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6879 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'
6880 else
6881 allow_undefined_flag=' -expect_unresolved \*'
6882 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'
6883 fi
6884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6885 hardcode_libdir_separator=:
6886 ;;
6887
6888 osf4* | osf5*) # as osf3* with the addition of -msym flag
6889 if test "$GCC" = yes; then
6890 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6891 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'
6892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6893 else
6894 allow_undefined_flag=' -expect_unresolved \*'
6895 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'
6896 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6897 $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'
6898
6899 # Both c and cxx compiler support -rpath directly
6900 hardcode_libdir_flag_spec='-rpath $libdir'
6901 fi
6902 hardcode_libdir_separator=:
6903 ;;
6904
6905 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006908 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006909 runpath_var=LD_RUN_PATH
6910 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006911 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006912
John Criswell47fdd832003-07-14 16:52:07 +00006913 solaris*)
6914 no_undefined_flag=' -z text'
6915 if test "$GCC" = yes; then
6916 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6917 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6918 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6919 else
6920 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6923 fi
6924 hardcode_libdir_flag_spec='-R$libdir'
6925 hardcode_shlibpath_var=no
6926 case $host_os in
6927 solaris2.[0-5] | solaris2.[0-5].*) ;;
6928 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6929 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6930 esac
6931 link_all_deplibs=yes
6932 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006933
John Criswell47fdd832003-07-14 16:52:07 +00006934 sunos4*)
6935 if test "x$host_vendor" = xsequent; then
6936 # Use $CC to link under sequent, because it throws in some extra .o
6937 # files that make .init and .fini sections work.
6938 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6939 else
6940 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6941 fi
6942 hardcode_libdir_flag_spec='-L$libdir'
6943 hardcode_direct=yes
6944 hardcode_minus_L=yes
6945 hardcode_shlibpath_var=no
6946 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006947
John Criswell47fdd832003-07-14 16:52:07 +00006948 sysv4)
6949 case $host_vendor in
6950 sni)
6951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6952 hardcode_direct=yes # is this really true???
6953 ;;
6954 siemens)
6955 ## LD is ld it makes a PLAMLIB
6956 ## CC just makes a GrossModule.
6957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6958 reload_cmds='$CC -r -o $output$reload_objs'
6959 hardcode_direct=no
6960 ;;
6961 motorola)
6962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6964 ;;
6965 esac
6966 runpath_var='LD_RUN_PATH'
6967 hardcode_shlibpath_var=no
6968 ;;
6969
6970 sysv4.3*)
6971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6972 hardcode_shlibpath_var=no
6973 export_dynamic_flag_spec='-Bexport'
6974 ;;
6975
6976 sysv4*MP*)
6977 if test -d /usr/nec; then
6978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979 hardcode_shlibpath_var=no
6980 runpath_var=LD_RUN_PATH
6981 hardcode_runpath_var=yes
6982 ld_shlibs=yes
6983 fi
6984 ;;
6985
6986 sysv4.2uw2*)
6987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6988 hardcode_direct=yes
6989 hardcode_minus_L=no
6990 hardcode_shlibpath_var=no
6991 hardcode_runpath_var=yes
6992 runpath_var=LD_RUN_PATH
6993 ;;
6994
6995 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6996 no_undefined_flag='${wl}-z ${wl}text'
6997 if test "$GCC" = yes; then
6998 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6999 else
7000 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7001 fi
7002 runpath_var='LD_RUN_PATH'
7003 hardcode_shlibpath_var=no
7004 ;;
7005
7006 sysv5*)
7007 no_undefined_flag=' -z text'
7008 # $CC -shared without GNU ld will not create a library from C++
7009 # object files and a static libstdc++, better avoid it by now
7010 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7011 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7012 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7013 hardcode_libdir_flag_spec=
7014 hardcode_shlibpath_var=no
7015 runpath_var='LD_RUN_PATH'
7016 ;;
7017
7018 uts4*)
7019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020 hardcode_libdir_flag_spec='-L$libdir'
7021 hardcode_shlibpath_var=no
7022 ;;
7023
7024 *)
7025 ld_shlibs=no
7026 ;;
7027 esac
7028 fi
7029
John Criswell7a73b802003-06-30 21:59:07 +00007030echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7031echo "${ECHO_T}$ld_shlibs" >&6
7032test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007033
John Criswell47fdd832003-07-14 16:52:07 +00007034variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7035if test "$GCC" = yes; then
7036 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7037fi
7038
7039#
7040# Do we need to explicitly link libc?
7041#
7042case "x$archive_cmds_need_lc" in
7043x|xyes)
7044 # Assume -lc should be added
7045 archive_cmds_need_lc=yes
7046
7047 if test "$enable_shared" = yes && test "$GCC" = yes; then
7048 case $archive_cmds in
7049 *'~'*)
7050 # FIXME: we may have to deal with multi-command sequences.
7051 ;;
7052 '$CC '*)
7053 # Test whether the compiler implicitly links with -lc since on some
7054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7055 # to ld, don't add -lc before -lgcc.
7056 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7057echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7058 $rm conftest*
7059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7060
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } 2>conftest.err; then
7066 soname=conftest
7067 lib=conftest
7068 libobjs=conftest.$ac_objext
7069 deplibs=
7070 wl=$lt_prog_compiler_wl
7071 compiler_flags=-v
7072 linker_flags=-v
7073 verstring=
7074 output_objdir=.
7075 libname=conftest
7076 lt_save_allow_undefined_flag=$allow_undefined_flag
7077 allow_undefined_flag=
7078 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7079 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }
7083 then
7084 archive_cmds_need_lc=no
7085 else
7086 archive_cmds_need_lc=yes
7087 fi
7088 allow_undefined_flag=$lt_save_allow_undefined_flag
7089 else
7090 cat conftest.err 1>&5
7091 fi
7092 $rm conftest*
7093 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7094echo "${ECHO_T}$archive_cmds_need_lc" >&6
7095 ;;
7096 esac
7097 fi
7098 ;;
7099esac
7100
John Criswell7a73b802003-06-30 21:59:07 +00007101echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7102echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7103hardcode_action=
7104if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007105 test -n "$runpath_var " || \
7106 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007107
7108 # We can hardcode non-existant directories.
7109 if test "$hardcode_direct" != no &&
7110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7111 # have to relink, otherwise we might link with an installed library
7112 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007114 test "$hardcode_minus_L" != no; then
7115 # Linking always hardcodes the temporary library directory.
7116 hardcode_action=relink
7117 else
7118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7119 hardcode_action=immediate
7120 fi
7121else
7122 # We cannot hardcode anything, or else we can only hardcode existing
7123 # directories.
7124 hardcode_action=unsupported
7125fi
7126echo "$as_me:$LINENO: result: $hardcode_action" >&5
7127echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007128
John Criswell47fdd832003-07-14 16:52:07 +00007129if test "$hardcode_action" = relink; then
7130 # Fast installation is not supported
7131 enable_fast_install=no
7132elif test "$shlibpath_overrides_runpath" = yes ||
7133 test "$enable_shared" = no; then
7134 # Fast installation is not necessary
7135 enable_fast_install=needless
7136fi
7137
John Criswell7a73b802003-06-30 21:59:07 +00007138striplib=
7139old_striplib=
7140echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7141echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7142if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7143 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7144 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7145 echo "$as_me:$LINENO: result: yes" >&5
7146echo "${ECHO_T}yes" >&6
7147else
John Criswell47fdd832003-07-14 16:52:07 +00007148# FIXME - insert some real tests, host_os isn't really good enough
7149 case $host_os in
7150 darwin*)
7151 if test -n "$STRIP" ; then
7152 striplib="$STRIP -x"
7153 echo "$as_me:$LINENO: result: yes" >&5
7154echo "${ECHO_T}yes" >&6
7155 else
John Criswell7a73b802003-06-30 21:59:07 +00007156 echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6
7158fi
John Criswell47fdd832003-07-14 16:52:07 +00007159 ;;
7160 *)
7161 echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
7163 ;;
7164 esac
7165fi
John Criswell7a73b802003-06-30 21:59:07 +00007166
John Criswell7a73b802003-06-30 21:59:07 +00007167echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7168echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7169library_names_spec=
7170libname_spec='lib$name'
7171soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007172shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007173postinstall_cmds=
7174postuninstall_cmds=
7175finish_cmds=
7176finish_eval=
7177shlibpath_var=
7178shlibpath_overrides_runpath=unknown
7179version_type=none
7180dynamic_linker="$host_os ld.so"
7181sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007182if test "$GCC" = yes; then
7183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7184 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7185 # if the path contains ";" then we assume it to be the separator
7186 # otherwise default to the standard path separator (i.e. ":") - it is
7187 # assumed that no part of a normal pathname contains ";" but that should
7188 # okay in the real world where ";" in dirpaths is itself problematic.
7189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7190 else
7191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7192 fi
7193else
7194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7195fi
7196need_lib_prefix=unknown
7197hardcode_into_libs=no
7198
7199# when you set need_version to no, make sure it does not cause -set_version
7200# flags to be left without arguments
7201need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007202
7203case $host_os in
7204aix3*)
7205 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007207 shlibpath_var=LIBPATH
7208
John Criswell47fdd832003-07-14 16:52:07 +00007209 # AIX 3 has no versioning support, so we append a major version to the name.
7210 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007211 ;;
7212
7213aix4* | aix5*)
7214 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007215 need_lib_prefix=no
7216 need_version=no
7217 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007218 if test "$host_cpu" = ia64; then
7219 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007221 shlibpath_var=LD_LIBRARY_PATH
7222 else
7223 # With GCC up to 2.95.x, collect2 would create an import file
7224 # for dependence libraries. The import file would start with
7225 # the line `#! .'. This would cause the generated library to
7226 # depend on `.', always an invalid library. This was fixed in
7227 # development snapshots of GCC prior to 3.0.
7228 case $host_os in
7229 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7231 echo ' yes '
7232 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7233 :
7234 else
7235 can_build_shared=no
7236 fi
7237 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007238 esac
John Criswell47fdd832003-07-14 16:52:07 +00007239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7240 # soname into executable. Probably we can add versioning support to
7241 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007242 if test "$aix_use_runtimelinking" = yes; then
7243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7244 # instead of lib<name>.a to let people know that these are not
7245 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007247 else
7248 # We preserve .a as extension for shared libraries through AIX4.2
7249 # and later when we are not doing run time linking.
7250 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007251 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007252 fi
7253 shlibpath_var=LIBPATH
7254 fi
7255 ;;
7256
7257amigaos*)
7258 library_names_spec='$libname.ixlibrary $libname.a'
7259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7260 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'
7261 ;;
7262
7263beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007264 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007265 dynamic_linker="$host_os ld.so"
7266 shlibpath_var=LIBRARY_PATH
7267 ;;
7268
7269bsdi4*)
7270 version_type=linux
7271 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7273 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007274 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7275 shlibpath_var=LD_LIBRARY_PATH
7276 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7277 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007278 # the default ld.so.conf also contains /usr/contrib/lib and
7279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7280 # libtool to hard-code these into programs
7281 ;;
7282
7283cygwin* | mingw* | pw32*)
7284 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007285 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007286 need_version=no
7287 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007288
John Criswell7a73b802003-06-30 21:59:07 +00007289 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007290 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007291 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007292 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7293 postinstall_cmds='base_file=`basename \${file}`~
7294 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007295 dldir=$destdir/`dirname \$dlpath`~
7296 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007297 $install_prog $dir/$dlname \$dldir/$dlname'
7298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007299 dlpath=$dir/\$dldll~
7300 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007301 shlibpath_overrides_runpath=yes
7302
7303 case $host_os in
7304 cygwin*)
7305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7307 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7308 ;;
7309 mingw*)
7310 # MinGW DLLs use traditional 'lib' prefix
7311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7313 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7314 # It is most probably a Windows format PATH printed by
7315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7316 # path with ; separators, and with drive letters. We can handle the
7317 # drive letters (cygwin fileutils understands them), so leave them,
7318 # especially as we might pass files found there to a mingw objdump,
7319 # which wouldn't understand a cygwinified path. Ahh.
7320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7321 else
7322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7323 fi
7324 ;;
7325 pw32*)
7326 # pw32 DLLs use 'pw' prefix rather than 'lib'
7327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7328 ;;
7329 esac
John Criswell7a73b802003-06-30 21:59:07 +00007330 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007331
John Criswell7a73b802003-06-30 21:59:07 +00007332 *)
John Criswell47fdd832003-07-14 16:52:07 +00007333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007334 ;;
7335 esac
7336 dynamic_linker='Win32 ld.exe'
7337 # FIXME: first we should search . and the directory the executable is in
7338 shlibpath_var=PATH
7339 ;;
7340
7341darwin* | rhapsody*)
7342 dynamic_linker="$host_os dyld"
7343 version_type=darwin
7344 need_lib_prefix=no
7345 need_version=no
7346 # FIXME: Relying on posixy $() will cause problems for
7347 # cross-compilation, but unfortunately the echo tests do not
7348 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007349 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7350 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007351 shlibpath_overrides_runpath=yes
7352 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007353 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7354 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7355 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7356 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"`
7357 fi
7358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7359 ;;
7360
7361dgux*)
7362 version_type=linux
7363 need_lib_prefix=no
7364 need_version=no
7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7366 soname_spec='${libname}${release}${shared_ext}$major'
7367 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007368 ;;
7369
7370freebsd1*)
7371 dynamic_linker=no
7372 ;;
7373
7374freebsd*)
7375 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7376 version_type=freebsd-$objformat
7377 case $version_type in
7378 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007380 need_version=no
7381 need_lib_prefix=no
7382 ;;
7383 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007385 need_version=yes
7386 ;;
7387 esac
7388 shlibpath_var=LD_LIBRARY_PATH
7389 case $host_os in
7390 freebsd2*)
7391 shlibpath_overrides_runpath=yes
7392 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007393 freebsd3.01* | freebsdelf3.01*)
7394 shlibpath_overrides_runpath=yes
7395 hardcode_into_libs=yes
7396 ;;
7397 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007398 shlibpath_overrides_runpath=no
7399 hardcode_into_libs=yes
7400 ;;
7401 esac
7402 ;;
7403
7404gnu*)
7405 version_type=linux
7406 need_lib_prefix=no
7407 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7409 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007410 shlibpath_var=LD_LIBRARY_PATH
7411 hardcode_into_libs=yes
7412 ;;
7413
7414hpux9* | hpux10* | hpux11*)
7415 # Give a soname corresponding to the major version so that dld.sl refuses to
7416 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007417 version_type=sunos
7418 need_lib_prefix=no
7419 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007420 case "$host_cpu" in
7421 ia64*)
7422 shrext='.so'
7423 hardcode_into_libs=yes
7424 dynamic_linker="$host_os dld.so"
7425 shlibpath_var=LD_LIBRARY_PATH
7426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428 soname_spec='${libname}${release}${shared_ext}$major'
7429 if test "X$HPUX_IA64_MODE" = X32; then
7430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7431 else
7432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7433 fi
7434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7435 ;;
7436 hppa*64*)
7437 shrext='.sl'
7438 hardcode_into_libs=yes
7439 dynamic_linker="$host_os dld.sl"
7440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443 soname_spec='${libname}${release}${shared_ext}$major'
7444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7446 ;;
7447 *)
7448 shrext='.sl'
7449 dynamic_linker="$host_os dld.sl"
7450 shlibpath_var=SHLIB_PATH
7451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7453 soname_spec='${libname}${release}${shared_ext}$major'
7454 ;;
7455 esac
John Criswell7a73b802003-06-30 21:59:07 +00007456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7457 postinstall_cmds='chmod 555 $lib'
7458 ;;
7459
John Criswell47fdd832003-07-14 16:52:07 +00007460irix5* | irix6* | nonstopux*)
7461 case $host_os in
7462 nonstopux*) version_type=nonstopux ;;
7463 *)
7464 if test "$lt_cv_prog_gnu_ld" = yes; then
7465 version_type=linux
7466 else
7467 version_type=irix
7468 fi ;;
7469 esac
John Criswell7a73b802003-06-30 21:59:07 +00007470 need_lib_prefix=no
7471 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007472 soname_spec='${libname}${release}${shared_ext}$major'
7473 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 +00007474 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007475 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007476 libsuff= shlibsuff=
7477 ;;
7478 *)
7479 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7481 libsuff= shlibsuff= libmagic=32-bit;;
7482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7483 libsuff=32 shlibsuff=N32 libmagic=N32;;
7484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007486 *) libsuff= shlibsuff= libmagic=never-match;;
7487 esac
7488 ;;
7489 esac
7490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7491 shlibpath_overrides_runpath=no
7492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007494 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007495 ;;
7496
7497# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007498linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007499 dynamic_linker=no
7500 ;;
7501
7502# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007503linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007504 version_type=linux
7505 need_lib_prefix=no
7506 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7510 shlibpath_var=LD_LIBRARY_PATH
7511 shlibpath_overrides_runpath=no
7512 # This implies no fast_install, which is unacceptable.
7513 # Some rework will be needed to allow for fast_install
7514 # before this can be enabled.
7515 hardcode_into_libs=yes
7516
7517 # We used to test for /lib/ld.so.1 and disable shared libraries on
7518 # powerpc, because MkLinux only supported shared libraries with the
7519 # GNU dynamic linker. Since this was broken with cross compilers,
7520 # most powerpc-linux boxes support dynamic linking these days and
7521 # people can always --disable-shared, the test was removed, and we
7522 # assume the GNU/Linux dynamic linker is in use.
7523 dynamic_linker='GNU/Linux ld.so'
7524 ;;
7525
7526netbsd*)
7527 version_type=sunos
7528 need_lib_prefix=no
7529 need_version=no
7530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7533 dynamic_linker='NetBSD (a.out) ld.so'
7534 else
John Criswell47fdd832003-07-14 16:52:07 +00007535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7536 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007537 dynamic_linker='NetBSD ld.elf_so'
7538 fi
7539 shlibpath_var=LD_LIBRARY_PATH
7540 shlibpath_overrides_runpath=yes
7541 hardcode_into_libs=yes
7542 ;;
7543
7544newsos6)
7545 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7547 shlibpath_var=LD_LIBRARY_PATH
7548 shlibpath_overrides_runpath=yes
7549 ;;
7550
7551nto-qnx)
7552 version_type=linux
7553 need_lib_prefix=no
7554 need_version=no
7555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7556 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007557 shlibpath_var=LD_LIBRARY_PATH
7558 shlibpath_overrides_runpath=yes
7559 ;;
7560
7561openbsd*)
7562 version_type=sunos
7563 need_lib_prefix=no
7564 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7567 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007568 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 +00007569 case $host_os in
7570 openbsd2.[89] | openbsd2.[89].*)
7571 shlibpath_overrides_runpath=no
7572 ;;
7573 *)
7574 shlibpath_overrides_runpath=yes
7575 ;;
7576 esac
John Criswell7a73b802003-06-30 21:59:07 +00007577 else
7578 shlibpath_overrides_runpath=yes
7579 fi
John Criswell7a73b802003-06-30 21:59:07 +00007580 ;;
7581
7582os2*)
7583 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007584 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007585 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007586 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007587 dynamic_linker='OS/2 ld.exe'
7588 shlibpath_var=LIBPATH
7589 ;;
7590
7591osf3* | osf4* | osf5*)
7592 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007593 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007594 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007595 soname_spec='${libname}${release}${shared_ext}$major'
7596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007597 shlibpath_var=LD_LIBRARY_PATH
7598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7600 ;;
7601
7602sco3.2v5*)
7603 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007604 soname_spec='${libname}${release}${shared_ext}$major'
7605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007606 shlibpath_var=LD_LIBRARY_PATH
7607 ;;
7608
7609solaris*)
7610 version_type=linux
7611 need_lib_prefix=no
7612 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7614 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007615 shlibpath_var=LD_LIBRARY_PATH
7616 shlibpath_overrides_runpath=yes
7617 hardcode_into_libs=yes
7618 # ldd complains unless libraries are executable
7619 postinstall_cmds='chmod +x $lib'
7620 ;;
7621
7622sunos4*)
7623 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007625 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7626 shlibpath_var=LD_LIBRARY_PATH
7627 shlibpath_overrides_runpath=yes
7628 if test "$with_gnu_ld" = yes; then
7629 need_lib_prefix=no
7630 fi
7631 need_version=yes
7632 ;;
7633
7634sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7635 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7637 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007638 shlibpath_var=LD_LIBRARY_PATH
7639 case $host_vendor in
7640 sni)
7641 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007642 need_lib_prefix=no
7643 export_dynamic_flag_spec='${wl}-Blargedynsym'
7644 runpath_var=LD_RUN_PATH
7645 ;;
7646 siemens)
7647 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007648 ;;
7649 motorola)
7650 need_lib_prefix=no
7651 need_version=no
7652 shlibpath_overrides_runpath=no
7653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7654 ;;
7655 esac
7656 ;;
7657
John Criswell7a73b802003-06-30 21:59:07 +00007658sysv4*MP*)
7659 if test -d /usr/nec ;then
7660 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7662 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007663 shlibpath_var=LD_LIBRARY_PATH
7664 fi
7665 ;;
7666
John Criswell47fdd832003-07-14 16:52:07 +00007667uts4*)
7668 version_type=linux
7669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7670 soname_spec='${libname}${release}${shared_ext}$major'
7671 shlibpath_var=LD_LIBRARY_PATH
7672 ;;
7673
John Criswell7a73b802003-06-30 21:59:07 +00007674*)
7675 dynamic_linker=no
7676 ;;
7677esac
7678echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7679echo "${ECHO_T}$dynamic_linker" >&6
7680test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007681
7682if test "x$enable_dlopen" != xyes; then
7683 enable_dlopen=unknown
7684 enable_dlopen_self=unknown
7685 enable_dlopen_self_static=unknown
7686else
7687 lt_cv_dlopen=no
7688 lt_cv_dlopen_libs=
7689
7690 case $host_os in
7691 beos*)
7692 lt_cv_dlopen="load_add_on"
7693 lt_cv_dlopen_libs=
7694 lt_cv_dlopen_self=yes
7695 ;;
7696
John Criswell47fdd832003-07-14 16:52:07 +00007697 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007698 lt_cv_dlopen="LoadLibrary"
7699 lt_cv_dlopen_libs=
7700 ;;
7701
John Criswell47fdd832003-07-14 16:52:07 +00007702 cygwin*)
7703 lt_cv_dlopen="dlopen"
7704 lt_cv_dlopen_libs=
7705 ;;
7706
7707 darwin*)
7708 # if libdl is installed we need to link against it
7709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7710echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7711if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714 ac_check_lib_save_LIBS=$LIBS
7715LIBS="-ldl $LIBS"
7716cat >conftest.$ac_ext <<_ACEOF
7717#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007718/* confdefs.h. */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007723
7724/* Override any gcc2 internal prototype to avoid an error. */
7725#ifdef __cplusplus
7726extern "C"
7727#endif
7728/* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7730char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007731int
7732main ()
7733{
7734dlopen ();
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739rm -f conftest.$ac_objext conftest$ac_exeext
7740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741 (eval $ac_link) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try='test -s conftest$ac_exeext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_cv_lib_dl_dlopen=yes
7752else
7753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007754sed 's/^/| /' conftest.$ac_ext >&5
7755
John Criswell47fdd832003-07-14 16:52:07 +00007756ac_cv_lib_dl_dlopen=no
7757fi
7758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7759LIBS=$ac_check_lib_save_LIBS
7760fi
7761echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7762echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7763if test $ac_cv_lib_dl_dlopen = yes; then
7764 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7765else
7766
7767 lt_cv_dlopen="dyld"
7768 lt_cv_dlopen_libs=
7769 lt_cv_dlopen_self=yes
7770
7771fi
7772
7773 ;;
7774
John Criswell7a73b802003-06-30 21:59:07 +00007775 *)
7776 echo "$as_me:$LINENO: checking for shl_load" >&5
7777echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7778if test "${ac_cv_func_shl_load+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781 cat >conftest.$ac_ext <<_ACEOF
7782#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007783/* confdefs.h. */
7784_ACEOF
7785cat confdefs.h >>conftest.$ac_ext
7786cat >>conftest.$ac_ext <<_ACEOF
7787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007788/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007789 which can conflict with char shl_load (); below.
7790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791 <limits.h> exists even on freestanding compilers. */
7792#ifdef __STDC__
7793# include <limits.h>
7794#else
7795# include <assert.h>
7796#endif
John Criswell7a73b802003-06-30 21:59:07 +00007797/* Override any gcc2 internal prototype to avoid an error. */
7798#ifdef __cplusplus
7799extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007800{
John Criswell7a73b802003-06-30 21:59:07 +00007801#endif
7802/* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007805/* The GNU C library defines this for functions which it implements
7806 to always fail with ENOSYS. Some functions are actually named
7807 something starting with __ and the normal name is an alias. */
7808#if defined (__stub_shl_load) || defined (__stub___shl_load)
7809choke me
7810#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007811char (*f) () = shl_load;
7812#endif
7813#ifdef __cplusplus
7814}
John Criswell7a73b802003-06-30 21:59:07 +00007815#endif
7816
John Criswell0c38eaf2003-09-10 15:17:25 +00007817int
7818main ()
7819{
7820return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007821 ;
7822 return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext conftest$ac_exeext
7826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -s conftest$ac_exeext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 (eval $ac_try) 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7837 ac_cv_func_shl_load=yes
7838else
7839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007840sed 's/^/| /' conftest.$ac_ext >&5
7841
John Criswell7a73b802003-06-30 21:59:07 +00007842ac_cv_func_shl_load=no
7843fi
7844rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7845fi
7846echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7847echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7848if test $ac_cv_func_shl_load = yes; then
7849 lt_cv_dlopen="shl_load"
7850else
7851 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7852echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7853if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 ac_check_lib_save_LIBS=$LIBS
7857LIBS="-ldld $LIBS"
7858cat >conftest.$ac_ext <<_ACEOF
7859#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007860/* confdefs.h. */
7861_ACEOF
7862cat confdefs.h >>conftest.$ac_ext
7863cat >>conftest.$ac_ext <<_ACEOF
7864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007865
7866/* Override any gcc2 internal prototype to avoid an error. */
7867#ifdef __cplusplus
7868extern "C"
7869#endif
7870/* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007873int
7874main ()
7875{
7876shl_load ();
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881rm -f conftest.$ac_objext conftest$ac_exeext
7882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_lib_dld_shl_load=yes
7894else
7895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007896sed 's/^/| /' conftest.$ac_ext >&5
7897
John Criswell7a73b802003-06-30 21:59:07 +00007898ac_cv_lib_dld_shl_load=no
7899fi
7900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901LIBS=$ac_check_lib_save_LIBS
7902fi
7903echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7904echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7905if test $ac_cv_lib_dld_shl_load = yes; then
7906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7907else
7908 echo "$as_me:$LINENO: checking for dlopen" >&5
7909echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7910if test "${ac_cv_func_dlopen+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 cat >conftest.$ac_ext <<_ACEOF
7914#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007920/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007921 which can conflict with char dlopen (); below.
7922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7923 <limits.h> exists even on freestanding compilers. */
7924#ifdef __STDC__
7925# include <limits.h>
7926#else
7927# include <assert.h>
7928#endif
John Criswell7a73b802003-06-30 21:59:07 +00007929/* Override any gcc2 internal prototype to avoid an error. */
7930#ifdef __cplusplus
7931extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007932{
John Criswell7a73b802003-06-30 21:59:07 +00007933#endif
7934/* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7936char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007937/* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940#if defined (__stub_dlopen) || defined (__stub___dlopen)
7941choke me
7942#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007943char (*f) () = dlopen;
7944#endif
7945#ifdef __cplusplus
7946}
John Criswell7a73b802003-06-30 21:59:07 +00007947#endif
7948
John Criswell0c38eaf2003-09-10 15:17:25 +00007949int
7950main ()
7951{
7952return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007953 ;
7954 return 0;
7955}
7956_ACEOF
7957rm -f conftest.$ac_objext conftest$ac_exeext
7958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7959 (eval $ac_link) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_func_dlopen=yes
7970else
7971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007972sed 's/^/| /' conftest.$ac_ext >&5
7973
John Criswell7a73b802003-06-30 21:59:07 +00007974ac_cv_func_dlopen=no
7975fi
7976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7977fi
7978echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7979echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7980if test $ac_cv_func_dlopen = yes; then
7981 lt_cv_dlopen="dlopen"
7982else
7983 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7984echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7985if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987else
7988 ac_check_lib_save_LIBS=$LIBS
7989LIBS="-ldl $LIBS"
7990cat >conftest.$ac_ext <<_ACEOF
7991#line $LINENO "configure"
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 Criswell7a73b802003-06-30 21:59: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 Criswell7a73b802003-06-30 21:59: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
8015 (eval $ac_link) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -s conftest$ac_exeext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_lib_dl_dlopen=yes
8026else
8027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008028sed 's/^/| /' conftest.$ac_ext >&5
8029
John Criswell7a73b802003-06-30 21:59:07 +00008030ac_cv_lib_dl_dlopen=no
8031fi
8032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033LIBS=$ac_check_lib_save_LIBS
8034fi
8035echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8036echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8037if test $ac_cv_lib_dl_dlopen = yes; then
8038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8039else
8040 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8041echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8042if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045 ac_check_lib_save_LIBS=$LIBS
8046LIBS="-lsvld $LIBS"
8047cat >conftest.$ac_ext <<_ACEOF
8048#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008054
8055/* Override any gcc2 internal prototype to avoid an error. */
8056#ifdef __cplusplus
8057extern "C"
8058#endif
8059/* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */
8061char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008062int
8063main ()
8064{
8065dlopen ();
8066 ;
8067 return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext conftest$ac_exeext
8071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072 (eval $ac_link) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_lib_svld_dlopen=yes
8083else
8084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008085sed 's/^/| /' conftest.$ac_ext >&5
8086
John Criswell7a73b802003-06-30 21:59:07 +00008087ac_cv_lib_svld_dlopen=no
8088fi
8089rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8090LIBS=$ac_check_lib_save_LIBS
8091fi
8092echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094if test $ac_cv_lib_svld_dlopen = yes; then
8095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8096else
8097 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8098echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8099if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101else
8102 ac_check_lib_save_LIBS=$LIBS
8103LIBS="-ldld $LIBS"
8104cat >conftest.$ac_ext <<_ACEOF
8105#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008106/* confdefs.h. */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008111
8112/* Override any gcc2 internal prototype to avoid an error. */
8113#ifdef __cplusplus
8114extern "C"
8115#endif
8116/* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8118char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008119int
8120main ()
8121{
8122dld_link ();
8123 ;
8124 return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext conftest$ac_exeext
8128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 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'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_lib_dld_dld_link=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_lib_dld_dld_link=no
8145fi
8146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147LIBS=$ac_check_lib_save_LIBS
8148fi
8149echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8150echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8151if test $ac_cv_lib_dld_dld_link = yes; then
8152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8153fi
8154
8155
8156fi
8157
8158
8159fi
8160
8161
8162fi
8163
8164
8165fi
8166
8167
8168fi
8169
8170 ;;
8171 esac
8172
8173 if test "x$lt_cv_dlopen" != xno; then
8174 enable_dlopen=yes
8175 else
8176 enable_dlopen=no
8177 fi
8178
8179 case $lt_cv_dlopen in
8180 dlopen)
8181 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008183
8184 save_LDFLAGS="$LDFLAGS"
8185 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8186
8187 save_LIBS="$LIBS"
8188 LIBS="$lt_cv_dlopen_libs $LIBS"
8189
8190 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8191echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8192if test "${lt_cv_dlopen_self+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194else
8195 if test "$cross_compiling" = yes; then :
8196 lt_cv_dlopen_self=cross
8197else
John Criswell47fdd832003-07-14 16:52:07 +00008198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008199 lt_status=$lt_dlunknown
8200 cat > conftest.$ac_ext <<EOF
John Criswell0538d422004-02-20 22:30:22 +00008201#line 8201 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008202#include "confdefs.h"
8203
8204#if HAVE_DLFCN_H
8205#include <dlfcn.h>
8206#endif
8207
8208#include <stdio.h>
8209
8210#ifdef RTLD_GLOBAL
8211# define LT_DLGLOBAL RTLD_GLOBAL
8212#else
8213# ifdef DL_GLOBAL
8214# define LT_DLGLOBAL DL_GLOBAL
8215# else
8216# define LT_DLGLOBAL 0
8217# endif
8218#endif
8219
8220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8221 find out it does not work in some platform. */
8222#ifndef LT_DLLAZY_OR_NOW
8223# ifdef RTLD_LAZY
8224# define LT_DLLAZY_OR_NOW RTLD_LAZY
8225# else
8226# ifdef DL_LAZY
8227# define LT_DLLAZY_OR_NOW DL_LAZY
8228# else
8229# ifdef RTLD_NOW
8230# define LT_DLLAZY_OR_NOW RTLD_NOW
8231# else
8232# ifdef DL_NOW
8233# define LT_DLLAZY_OR_NOW DL_NOW
8234# else
8235# define LT_DLLAZY_OR_NOW 0
8236# endif
8237# endif
8238# endif
8239# endif
8240#endif
8241
8242#ifdef __cplusplus
8243extern "C" void exit (int);
8244#endif
8245
8246void fnord() { int i=42;}
8247int main ()
8248{
8249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8250 int status = $lt_dlunknown;
8251
8252 if (self)
8253 {
8254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8256 /* dlclose (self); */
8257 }
8258
8259 exit (status);
8260}
8261EOF
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8267 (./conftest; exit; ) 2>/dev/null
8268 lt_status=$?
8269 case x$lt_status in
8270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8272 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8273 esac
8274 else :
8275 # compilation failed
8276 lt_cv_dlopen_self=no
8277 fi
8278fi
8279rm -fr conftest*
8280
8281
8282fi
8283echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8284echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8285
8286 if test "x$lt_cv_dlopen_self" = xyes; then
8287 LDFLAGS="$LDFLAGS $link_static_flag"
8288 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8289echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8290if test "${lt_cv_dlopen_self_static+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292else
8293 if test "$cross_compiling" = yes; then :
8294 lt_cv_dlopen_self_static=cross
8295else
John Criswell47fdd832003-07-14 16:52:07 +00008296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008297 lt_status=$lt_dlunknown
8298 cat > conftest.$ac_ext <<EOF
John Criswell0538d422004-02-20 22:30:22 +00008299#line 8299 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008300#include "confdefs.h"
8301
8302#if HAVE_DLFCN_H
8303#include <dlfcn.h>
8304#endif
8305
8306#include <stdio.h>
8307
8308#ifdef RTLD_GLOBAL
8309# define LT_DLGLOBAL RTLD_GLOBAL
8310#else
8311# ifdef DL_GLOBAL
8312# define LT_DLGLOBAL DL_GLOBAL
8313# else
8314# define LT_DLGLOBAL 0
8315# endif
8316#endif
8317
8318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8319 find out it does not work in some platform. */
8320#ifndef LT_DLLAZY_OR_NOW
8321# ifdef RTLD_LAZY
8322# define LT_DLLAZY_OR_NOW RTLD_LAZY
8323# else
8324# ifdef DL_LAZY
8325# define LT_DLLAZY_OR_NOW DL_LAZY
8326# else
8327# ifdef RTLD_NOW
8328# define LT_DLLAZY_OR_NOW RTLD_NOW
8329# else
8330# ifdef DL_NOW
8331# define LT_DLLAZY_OR_NOW DL_NOW
8332# else
8333# define LT_DLLAZY_OR_NOW 0
8334# endif
8335# endif
8336# endif
8337# endif
8338#endif
8339
8340#ifdef __cplusplus
8341extern "C" void exit (int);
8342#endif
8343
8344void fnord() { int i=42;}
8345int main ()
8346{
8347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8348 int status = $lt_dlunknown;
8349
8350 if (self)
8351 {
8352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8354 /* dlclose (self); */
8355 }
8356
8357 exit (status);
8358}
8359EOF
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8365 (./conftest; exit; ) 2>/dev/null
8366 lt_status=$?
8367 case x$lt_status in
8368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8370 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8371 esac
8372 else :
8373 # compilation failed
8374 lt_cv_dlopen_self_static=no
8375 fi
8376fi
8377rm -fr conftest*
8378
8379
8380fi
8381echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8382echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8383 fi
8384
8385 CPPFLAGS="$save_CPPFLAGS"
8386 LDFLAGS="$save_LDFLAGS"
8387 LIBS="$save_LIBS"
8388 ;;
8389 esac
8390
8391 case $lt_cv_dlopen_self in
8392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8393 *) enable_dlopen_self=unknown ;;
8394 esac
8395
8396 case $lt_cv_dlopen_self_static in
8397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8398 *) enable_dlopen_self_static=unknown ;;
8399 esac
8400fi
8401
8402
John Criswell47fdd832003-07-14 16:52:07 +00008403# Report which librarie types wil actually be built
8404echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8405echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8406echo "$as_me:$LINENO: result: $can_build_shared" >&5
8407echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008408
John Criswell47fdd832003-07-14 16:52:07 +00008409echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8410echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8411test "$can_build_shared" = "no" && enable_shared=no
8412
8413# On AIX, shared libraries and static libraries use the same namespace, and
8414# are all built from PIC.
8415case "$host_os" in
8416aix3*)
8417 test "$enable_shared" = yes && enable_static=no
8418 if test -n "$RANLIB"; then
8419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8420 postinstall_cmds='$RANLIB $lib'
8421 fi
8422 ;;
8423
8424aix4*)
8425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8426 test "$enable_shared" = yes && enable_static=no
8427 fi
8428 ;;
8429 darwin* | rhapsody*)
8430 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8431 archive_cmds_need_lc=no
8432 case "$host_os" in
8433 rhapsody* | darwin1.[012])
8434 allow_undefined_flag='-undefined suppress'
8435 ;;
8436 *) # Darwin 1.3 on
8437 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8438 ;;
8439 esac
8440 # FIXME: Relying on posixy $() will cause problems for
8441 # cross-compilation, but unfortunately the echo tests do not
8442 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8443 # `"' quotes if we put them in here... so don't!
8444 output_verbose_link_cmd='echo'
8445 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8446 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8448 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}'
8449 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}'
8450 hardcode_direct=no
8451 hardcode_automatic=yes
8452 hardcode_shlibpath_var=unsupported
8453 whole_archive_flag_spec='-all_load $convenience'
8454 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008455 fi
John Criswell7a73b802003-06-30 21:59:07 +00008456 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008457esac
8458echo "$as_me:$LINENO: result: $enable_shared" >&5
8459echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008460
John Criswell47fdd832003-07-14 16:52:07 +00008461echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8462echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8463# Make sure either enable_shared or enable_static is yes.
8464test "$enable_shared" = yes || enable_static=yes
8465echo "$as_me:$LINENO: result: $enable_static" >&5
8466echo "${ECHO_T}$enable_static" >&6
8467
8468# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008469# libtool distribution, otherwise you forgot to ship ltmain.sh
8470# with your package, and you will get complaints that there are
8471# no rules to generate ltmain.sh.
8472if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008473 # See if we are running on zsh, and set the options which allow our commands through
8474 # without removal of \ escapes.
8475 if test -n "${ZSH_VERSION+set}" ; then
8476 setopt NO_GLOB_SUBST
8477 fi
John Criswell7a73b802003-06-30 21:59:07 +00008478 # Now quote all the things that may contain metacharacters while being
8479 # careful not to overquote the AC_SUBSTed values. We take copies of the
8480 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008481 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8482 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8483 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8484 deplibs_check_method reload_flag reload_cmds need_locks \
8485 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8486 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008487 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008488 old_postinstall_cmds old_postuninstall_cmds \
8489 compiler \
8490 CC \
8491 LD \
8492 lt_prog_compiler_wl \
8493 lt_prog_compiler_pic \
8494 lt_prog_compiler_static \
8495 lt_prog_compiler_no_builtin_flag \
8496 export_dynamic_flag_spec \
8497 thread_safe_flag_spec \
8498 whole_archive_flag_spec \
8499 enable_shared_with_static_runtimes \
8500 old_archive_cmds \
8501 old_archive_from_new_cmds \
8502 predep_objects \
8503 postdep_objects \
8504 predeps \
8505 postdeps \
8506 compiler_lib_search_path \
8507 archive_cmds \
8508 archive_expsym_cmds \
8509 postinstall_cmds \
8510 postuninstall_cmds \
8511 old_archive_from_expsyms_cmds \
8512 allow_undefined_flag \
8513 no_undefined_flag \
8514 export_symbols_cmds \
8515 hardcode_libdir_flag_spec \
8516 hardcode_libdir_flag_spec_ld \
8517 hardcode_libdir_separator \
8518 hardcode_automatic \
8519 module_cmds \
8520 module_expsym_cmds \
8521 lt_cv_prog_compiler_c_o \
8522 exclude_expsyms \
8523 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008524
8525 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008526 old_archive_cmds | \
8527 old_archive_from_new_cmds | \
8528 archive_cmds | \
8529 archive_expsym_cmds | \
8530 module_cmds | \
8531 module_expsym_cmds | \
8532 old_archive_from_expsyms_cmds | \
8533 export_symbols_cmds | \
8534 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008535 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008536 old_postinstall_cmds | old_postuninstall_cmds | \
8537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008538 # Double-quote double-evaled strings.
8539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8540 ;;
8541 *)
8542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8543 ;;
8544 esac
8545 done
8546
John Criswell47fdd832003-07-14 16:52:07 +00008547 case $lt_echo in
8548 *'\$0 --fallback-echo"')
8549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8550 ;;
8551 esac
8552
8553cfgfile="${ofile}T"
8554 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8555 $rm -f "$cfgfile"
8556 { echo "$as_me:$LINENO: creating $ofile" >&5
8557echo "$as_me: creating $ofile" >&6;}
8558
8559 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008560#! $SHELL
8561
John Criswell47fdd832003-07-14 16:52:07 +00008562# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008563# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8564# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8565#
John Criswell47fdd832003-07-14 16:52:07 +00008566# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8567# Free Software Foundation, Inc.
8568#
8569# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008570# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8571#
8572# This program is free software; you can redistribute it and/or modify
8573# it under the terms of the GNU General Public License as published by
8574# the Free Software Foundation; either version 2 of the License, or
8575# (at your option) any later version.
8576#
8577# This program is distributed in the hope that it will be useful, but
8578# WITHOUT ANY WARRANTY; without even the implied warranty of
8579# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8580# General Public License for more details.
8581#
8582# You should have received a copy of the GNU General Public License
8583# along with this program; if not, write to the Free Software
8584# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8585#
8586# As a special exception to the GNU General Public License, if you
8587# distribute this file as part of a program that contains a
8588# configuration script generated by Autoconf, you may include it under
8589# the same distribution terms that you use for the rest of that program.
8590
John Criswell47fdd832003-07-14 16:52:07 +00008591# A sed program that does not truncate output.
8592SED=$lt_SED
8593
John Criswell7a73b802003-06-30 21:59:07 +00008594# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008595Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008596
8597# The HP-UX ksh and POSIX shell print the target directory to stdout
8598# if CDPATH is set.
8599if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8600
John Criswell47fdd832003-07-14 16:52:07 +00008601# The names of the tagged configurations supported by this script.
8602available_tags=
8603
John Criswell7a73b802003-06-30 21:59:07 +00008604# ### BEGIN LIBTOOL CONFIG
8605
8606# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8607
8608# Shell to use when invoking shell scripts.
8609SHELL=$lt_SHELL
8610
8611# Whether or not to build shared libraries.
8612build_libtool_libs=$enable_shared
8613
8614# Whether or not to build static libraries.
8615build_old_libs=$enable_static
8616
8617# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008618build_libtool_need_lc=$archive_cmds_need_lc
8619
8620# Whether or not to disallow shared libs when runtime libs are static
8621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008622
8623# Whether or not to optimize for fast installation.
8624fast_install=$enable_fast_install
8625
8626# The host system.
8627host_alias=$host_alias
8628host=$host
8629
8630# An echo program that does not interpret backslashes.
8631echo=$lt_echo
8632
8633# The archiver.
8634AR=$lt_AR
8635AR_FLAGS=$lt_AR_FLAGS
8636
John Criswell47fdd832003-07-14 16:52:07 +00008637# A C compiler.
8638LTCC=$lt_LTCC
8639
8640# A language-specific compiler.
8641CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008642
8643# Is the compiler the GNU C compiler?
8644with_gcc=$GCC
8645
John Criswell47fdd832003-07-14 16:52:07 +00008646# An ERE matcher.
8647EGREP=$lt_EGREP
8648
John Criswell7a73b802003-06-30 21:59:07 +00008649# The linker used to build libraries.
8650LD=$lt_LD
8651
8652# Whether we need hard or soft links.
8653LN_S=$lt_LN_S
8654
8655# A BSD-compatible nm program.
8656NM=$lt_NM
8657
8658# A symbol stripping program
8659STRIP=$STRIP
8660
8661# Used to examine libraries when file_magic_cmd begins "file"
8662MAGIC_CMD=$MAGIC_CMD
8663
8664# Used on cygwin: DLL creation program.
8665DLLTOOL="$DLLTOOL"
8666
8667# Used on cygwin: object dumper.
8668OBJDUMP="$OBJDUMP"
8669
8670# Used on cygwin: assembler.
8671AS="$AS"
8672
8673# The name of the directory that contains temporary libtool files.
8674objdir=$objdir
8675
8676# How to create reloadable object files.
8677reload_flag=$lt_reload_flag
8678reload_cmds=$lt_reload_cmds
8679
8680# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008681wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008682
8683# Object file suffix (normally "o").
8684objext="$ac_objext"
8685
8686# Old archive suffix (normally "a").
8687libext="$libext"
8688
John Criswell47fdd832003-07-14 16:52:07 +00008689# Shared library suffix (normally ".so").
8690shrext='$shrext'
8691
John Criswell7a73b802003-06-30 21:59:07 +00008692# Executable file suffix (normally "").
8693exeext="$exeext"
8694
8695# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008696pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008697pic_mode=$pic_mode
8698
John Criswell47fdd832003-07-14 16:52:07 +00008699# What is the maximum length of a command?
8700max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008701
John Criswell47fdd832003-07-14 16:52:07 +00008702# Does compiler simultaneously support -c and -o options?
8703compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008704
8705# Must we lock files when doing compilation ?
8706need_locks=$lt_need_locks
8707
8708# Do we need the lib prefix for modules?
8709need_lib_prefix=$need_lib_prefix
8710
8711# Do we need a version for libraries?
8712need_version=$need_version
8713
8714# Whether dlopen is supported.
8715dlopen_support=$enable_dlopen
8716
8717# Whether dlopen of programs is supported.
8718dlopen_self=$enable_dlopen_self
8719
8720# Whether dlopen of statically linked programs is supported.
8721dlopen_self_static=$enable_dlopen_self_static
8722
8723# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008724link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008725
8726# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008728
8729# Compiler flag to allow reflexive dlopens.
8730export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8731
8732# Compiler flag to generate shared objects directly from archives.
8733whole_archive_flag_spec=$lt_whole_archive_flag_spec
8734
8735# Compiler flag to generate thread-safe objects.
8736thread_safe_flag_spec=$lt_thread_safe_flag_spec
8737
8738# Library versioning type.
8739version_type=$version_type
8740
8741# Format of library name prefix.
8742libname_spec=$lt_libname_spec
8743
8744# List of archive names. First name is the real one, the rest are links.
8745# The last name is the one that the linker finds with -lNAME.
8746library_names_spec=$lt_library_names_spec
8747
8748# The coded name of the library, if different from the real name.
8749soname_spec=$lt_soname_spec
8750
8751# Commands used to build and install an old-style archive.
8752RANLIB=$lt_RANLIB
8753old_archive_cmds=$lt_old_archive_cmds
8754old_postinstall_cmds=$lt_old_postinstall_cmds
8755old_postuninstall_cmds=$lt_old_postuninstall_cmds
8756
8757# Create an old-style archive from a shared archive.
8758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8759
8760# Create a temporary old-style archive to link instead of a shared archive.
8761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8762
8763# Commands used to build and install a shared archive.
8764archive_cmds=$lt_archive_cmds
8765archive_expsym_cmds=$lt_archive_expsym_cmds
8766postinstall_cmds=$lt_postinstall_cmds
8767postuninstall_cmds=$lt_postuninstall_cmds
8768
John Criswell47fdd832003-07-14 16:52:07 +00008769# Commands used to build a loadable module (assumed same as above if empty)
8770module_cmds=$lt_module_cmds
8771module_expsym_cmds=$lt_module_expsym_cmds
8772
John Criswell7a73b802003-06-30 21:59:07 +00008773# Commands to strip libraries.
8774old_striplib=$lt_old_striplib
8775striplib=$lt_striplib
8776
John Criswell47fdd832003-07-14 16:52:07 +00008777# Dependencies to place before the objects being linked to create a
8778# shared library.
8779predep_objects=$lt_predep_objects
8780
8781# Dependencies to place after the objects being linked to create a
8782# shared library.
8783postdep_objects=$lt_postdep_objects
8784
8785# Dependencies to place before the objects being linked to create a
8786# shared library.
8787predeps=$lt_predeps
8788
8789# Dependencies to place after the objects being linked to create a
8790# shared library.
8791postdeps=$lt_postdeps
8792
8793# The library search path used internally by the compiler when linking
8794# a shared library.
8795compiler_lib_search_path=$lt_compiler_lib_search_path
8796
John Criswell7a73b802003-06-30 21:59:07 +00008797# Method to check whether dependent libraries are shared objects.
8798deplibs_check_method=$lt_deplibs_check_method
8799
8800# Command to use when deplibs_check_method == file_magic.
8801file_magic_cmd=$lt_file_magic_cmd
8802
8803# Flag that allows shared libraries with undefined symbols to be built.
8804allow_undefined_flag=$lt_allow_undefined_flag
8805
8806# Flag that forces no undefined symbols.
8807no_undefined_flag=$lt_no_undefined_flag
8808
8809# Commands used to finish a libtool library installation in a directory.
8810finish_cmds=$lt_finish_cmds
8811
8812# Same as above, but a single script fragment to be evaled but not shown.
8813finish_eval=$lt_finish_eval
8814
8815# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008817
8818# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008820
8821# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008823
8824# This is the shared library runtime path variable.
8825runpath_var=$runpath_var
8826
8827# This is the shared library path variable.
8828shlibpath_var=$shlibpath_var
8829
8830# Is shlibpath searched before the hard-coded library search path?
8831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8832
8833# How to hardcode a shared library path into an executable.
8834hardcode_action=$hardcode_action
8835
8836# Whether we should hardcode library paths into libraries.
8837hardcode_into_libs=$hardcode_into_libs
8838
8839# Flag to hardcode \$libdir into a binary during linking.
8840# This must work even if \$libdir does not exist.
8841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8842
John Criswell47fdd832003-07-14 16:52:07 +00008843# If ld is used when linking, flag to hardcode \$libdir into
8844# a binary during linking. This must work even if \$libdir does
8845# not exist.
8846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8847
John Criswell7a73b802003-06-30 21:59:07 +00008848# Whether we need a single -rpath flag with a separated argument.
8849hardcode_libdir_separator=$lt_hardcode_libdir_separator
8850
John Criswell47fdd832003-07-14 16:52:07 +00008851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008852# resulting binary.
8853hardcode_direct=$hardcode_direct
8854
8855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8856# resulting binary.
8857hardcode_minus_L=$hardcode_minus_L
8858
8859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8860# the resulting binary.
8861hardcode_shlibpath_var=$hardcode_shlibpath_var
8862
John Criswell47fdd832003-07-14 16:52:07 +00008863# Set to yes if building a shared library automatically hardcodes DIR into the library
8864# and all subsequent libraries and executables linked against it.
8865hardcode_automatic=$hardcode_automatic
8866
John Criswell7a73b802003-06-30 21:59:07 +00008867# Variables whose values should be saved in libtool wrapper scripts and
8868# restored at relink time.
8869variables_saved_for_relink="$variables_saved_for_relink"
8870
8871# Whether libtool must link a program against all its dependency libraries.
8872link_all_deplibs=$link_all_deplibs
8873
8874# Compile-time system search path for libraries
8875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8876
8877# Run-time system search path for libraries
8878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8879
8880# Fix the shell variable \$srcfile for the compiler.
8881fix_srcfile_path="$fix_srcfile_path"
8882
8883# Set to yes if exported symbols are required.
8884always_export_symbols=$always_export_symbols
8885
8886# The commands to list exported symbols.
8887export_symbols_cmds=$lt_export_symbols_cmds
8888
8889# The commands to extract the exported symbol list from a shared archive.
8890extract_expsyms_cmds=$lt_extract_expsyms_cmds
8891
8892# Symbols that should not be listed in the preloaded symbols.
8893exclude_expsyms=$lt_exclude_expsyms
8894
8895# Symbols that must always be exported.
8896include_expsyms=$lt_include_expsyms
8897
8898# ### END LIBTOOL CONFIG
8899
8900__EOF__
8901
John Criswell47fdd832003-07-14 16:52:07 +00008902
John Criswell7a73b802003-06-30 21:59:07 +00008903 case $host_os in
8904 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008905 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008906
8907# AIX sometimes has problems with the GCC collect2 program. For some
8908# reason, if we set the COLLECT_NAMES environment variable, the problems
8909# vanish in a puff of smoke.
8910if test "X${COLLECT_NAMES+set}" != Xset; then
8911 COLLECT_NAMES=
8912 export COLLECT_NAMES
8913fi
8914EOF
8915 ;;
8916 esac
8917
John Criswell7a73b802003-06-30 21:59:07 +00008918 # We use sed instead of cat because bash on DJGPP gets confused if
8919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8920 # text mode, it properly converts lines to CR/LF. This bash problem
8921 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008922 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008923
John Criswell47fdd832003-07-14 16:52:07 +00008924 mv -f "$cfgfile" "$ofile" || \
8925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008926 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008927
8928else
8929 # If there is no Makefile yet, we rely on a make rule to execute
8930 # `config.status --recheck' to rerun these tests and create the
8931 # libtool script then.
8932 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008933fi
John Criswell7a73b802003-06-30 21:59:07 +00008934
8935
John Criswell47fdd832003-07-14 16:52:07 +00008936ac_ext=c
8937ac_cpp='$CPP $CPPFLAGS'
8938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942CC="$lt_save_CC"
8943
8944
8945# Check whether --with-tags or --without-tags was given.
8946if test "${with_tags+set}" = set; then
8947 withval="$with_tags"
8948 tagnames="$withval"
8949fi;
8950
8951if test -f "$ltmain" && test -n "$tagnames"; then
8952 if test ! -f "${ofile}"; then
8953 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8954echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8955 fi
8956
8957 if test -z "$LTCC"; then
8958 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8959 if test -z "$LTCC"; then
8960 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8961echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8962 else
8963 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8964echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8965 fi
8966 fi
8967
8968 # Extract list of available tagged configurations in $ofile.
8969 # Note that this assumes the entire list is on one line.
8970 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8971
8972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8973 for tagname in $tagnames; do
8974 IFS="$lt_save_ifs"
8975 # Check whether tagname contains only valid characters
8976 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8977 "") ;;
8978 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8979echo "$as_me: error: invalid tag name: $tagname" >&2;}
8980 { (exit 1); exit 1; }; }
8981 ;;
8982 esac
8983
8984 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8985 then
8986 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8987echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8988 { (exit 1); exit 1; }; }
8989 fi
8990
8991 # Update the list of available tags.
8992 if test -n "$tagname"; then
8993 echo appending configuration tag \"$tagname\" to $ofile
8994
8995 case $tagname in
8996 CXX)
8997 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8998 ac_ext=cc
8999ac_cpp='$CXXCPP $CPPFLAGS'
9000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9003
9004
9005
9006
9007archive_cmds_need_lc_CXX=no
9008allow_undefined_flag_CXX=
9009always_export_symbols_CXX=no
9010archive_expsym_cmds_CXX=
9011export_dynamic_flag_spec_CXX=
9012hardcode_direct_CXX=no
9013hardcode_libdir_flag_spec_CXX=
9014hardcode_libdir_flag_spec_ld_CXX=
9015hardcode_libdir_separator_CXX=
9016hardcode_minus_L_CXX=no
9017hardcode_automatic_CXX=no
9018module_cmds_CXX=
9019module_expsym_cmds_CXX=
9020link_all_deplibs_CXX=unknown
9021old_archive_cmds_CXX=$old_archive_cmds
9022no_undefined_flag_CXX=
9023whole_archive_flag_spec_CXX=
9024enable_shared_with_static_runtimes_CXX=no
9025
9026# Dependencies to place before and after the object being linked:
9027predep_objects_CXX=
9028postdep_objects_CXX=
9029predeps_CXX=
9030postdeps_CXX=
9031compiler_lib_search_path_CXX=
9032
9033# Source file extension for C++ test sources.
9034ac_ext=cc
9035
9036# Object file extension for compiled C++ test sources.
9037objext=o
9038objext_CXX=$objext
9039
9040# Code to be used in simple compile tests
9041lt_simple_compile_test_code="int some_variable = 0;\n"
9042
9043# Code to be used in simple link tests
9044lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9045
9046# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9047
9048# If no C compiler was specified, use CC.
9049LTCC=${LTCC-"$CC"}
9050
9051# Allow CC to be a program name with arguments.
9052compiler=$CC
9053
9054
9055# Allow CC to be a program name with arguments.
9056lt_save_CC=$CC
9057lt_save_LD=$LD
9058lt_save_GCC=$GCC
9059GCC=$GXX
9060lt_save_with_gnu_ld=$with_gnu_ld
9061lt_save_path_LD=$lt_cv_path_LD
9062if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9063 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9064else
9065 unset lt_cv_prog_gnu_ld
9066fi
9067if test -n "${lt_cv_path_LDCXX+set}"; then
9068 lt_cv_path_LD=$lt_cv_path_LDCXX
9069else
9070 unset lt_cv_path_LD
9071fi
9072test -z "${LDCXX+set}" || LD=$LDCXX
9073CC=${CXX-"c++"}
9074compiler=$CC
9075compiler_CXX=$CC
9076cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9077
9078# We don't want -fno-exception wen compiling C++ code, so set the
9079# no_builtin_flag separately
9080if test "$GXX" = yes; then
9081 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9082else
9083 lt_prog_compiler_no_builtin_flag_CXX=
9084fi
9085
9086if test "$GXX" = yes; then
9087 # Set up default GNU C++ configuration
9088
9089
9090# Check whether --with-gnu-ld or --without-gnu-ld was given.
9091if test "${with_gnu_ld+set}" = set; then
9092 withval="$with_gnu_ld"
9093 test "$withval" = no || with_gnu_ld=yes
9094else
9095 with_gnu_ld=no
9096fi;
9097ac_prog=ld
9098if test "$GCC" = yes; then
9099 # Check if gcc -print-prog-name=ld gives a path.
9100 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9101echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9102 case $host in
9103 *-*-mingw*)
9104 # gcc leaves a trailing carriage return which upsets mingw
9105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9106 *)
9107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9108 esac
9109 case $ac_prog in
9110 # Accept absolute paths.
9111 [\\/]* | ?:[\\/]*)
9112 re_direlt='/[^/][^/]*/\.\./'
9113 # Canonicalize the path of ld
9114 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9116 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9117 done
9118 test -z "$LD" && LD="$ac_prog"
9119 ;;
9120 "")
9121 # If it fails, then pretend we aren't using GCC.
9122 ac_prog=ld
9123 ;;
9124 *)
9125 # If it is relative, then search for the first ld in PATH.
9126 with_gnu_ld=unknown
9127 ;;
9128 esac
9129elif test "$with_gnu_ld" = yes; then
9130 echo "$as_me:$LINENO: checking for GNU ld" >&5
9131echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9132else
9133 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9134echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9135fi
9136if test "${lt_cv_path_LD+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9138else
9139 if test -z "$LD"; then
9140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9141 for ac_dir in $PATH; do
9142 IFS="$lt_save_ifs"
9143 test -z "$ac_dir" && ac_dir=.
9144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9145 lt_cv_path_LD="$ac_dir/$ac_prog"
9146 # Check to see if the program is GNU ld. I'd rather use --version,
9147 # but apparently some GNU ld's only accept -v.
9148 # Break only if it was the GNU/non-GNU ld that we prefer.
9149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9150 *GNU* | *'with BFD'*)
9151 test "$with_gnu_ld" != no && break
9152 ;;
9153 *)
9154 test "$with_gnu_ld" != yes && break
9155 ;;
9156 esac
9157 fi
9158 done
9159 IFS="$lt_save_ifs"
9160else
9161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9162fi
9163fi
9164
9165LD="$lt_cv_path_LD"
9166if test -n "$LD"; then
9167 echo "$as_me:$LINENO: result: $LD" >&5
9168echo "${ECHO_T}$LD" >&6
9169else
9170 echo "$as_me:$LINENO: result: no" >&5
9171echo "${ECHO_T}no" >&6
9172fi
9173test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9174echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9175 { (exit 1); exit 1; }; }
9176echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9177echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9178if test "${lt_cv_prog_gnu_ld+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9182case `"$LD" -v 2>&1 </dev/null` in
9183*GNU* | *'with BFD'*)
9184 lt_cv_prog_gnu_ld=yes
9185 ;;
9186*)
9187 lt_cv_prog_gnu_ld=no
9188 ;;
9189esac
9190fi
9191echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9192echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9193with_gnu_ld=$lt_cv_prog_gnu_ld
9194
9195
9196
9197 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9198 # archiving commands below assume that GNU ld is being used.
9199 if test "$with_gnu_ld" = yes; then
9200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 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'
9202
9203 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9204 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9205
9206 # If archive_cmds runs LD, not CC, wlarc should be empty
9207 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9208 # investigate it a little bit more. (MM)
9209 wlarc='${wl}'
9210
9211 # ancient GNU ld didn't support --whole-archive et. al.
9212 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9213 grep 'no-whole-archive' > /dev/null; then
9214 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9215 else
9216 whole_archive_flag_spec_CXX=
9217 fi
9218 else
9219 with_gnu_ld=no
9220 wlarc=
9221
9222 # A generic and very simple default shared library creation
9223 # command for GNU C++ for the case where it uses the native
9224 # linker, instead of GNU ld. If possible, this setting should
9225 # overridden to take advantage of the native linker features on
9226 # the platform it is being used on.
9227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9228 fi
9229
9230 # Commands to make compiler produce verbose output that lists
9231 # what "hidden" libraries, object files and flags are used when
9232 # linking a shared library.
9233 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9234
9235else
9236 GXX=no
9237 with_gnu_ld=no
9238 wlarc=
9239fi
9240
9241# PORTME: fill in a description of your system's C++ link characteristics
9242echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9243echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9244ld_shlibs_CXX=yes
9245case $host_os in
9246 aix3*)
9247 # FIXME: insert proper C++ library support
9248 ld_shlibs_CXX=no
9249 ;;
9250 aix4* | aix5*)
9251 if test "$host_cpu" = ia64; then
9252 # On IA64, the linker does run time linking by default, so we don't
9253 # have to do anything special.
9254 aix_use_runtimelinking=no
9255 exp_sym_flag='-Bexport'
9256 no_entry_flag=""
9257 else
9258 aix_use_runtimelinking=no
9259
9260 # Test if we are trying to use run time linking or normal
9261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9262 # need to do runtime linking.
9263 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9264 for ld_flag in $LDFLAGS; do
9265 case $ld_flag in
9266 *-brtl*)
9267 aix_use_runtimelinking=yes
9268 break
9269 ;;
9270 esac
9271 done
9272 esac
9273
9274 exp_sym_flag='-bexport'
9275 no_entry_flag='-bnoentry'
9276 fi
9277
9278 # When large executables or shared objects are built, AIX ld can
9279 # have problems creating the table of contents. If linking a library
9280 # or program results in "error TOC overflow" add -mminimal-toc to
9281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9283
9284 archive_cmds_CXX=''
9285 hardcode_direct_CXX=yes
9286 hardcode_libdir_separator_CXX=':'
9287 link_all_deplibs_CXX=yes
9288
9289 if test "$GXX" = yes; then
9290 case $host_os in aix4.012|aix4.012.*)
9291 # We only want to do this on AIX 4.2 and lower, the check
9292 # below for broken collect2 doesn't work under 4.3+
9293 collect2name=`${CC} -print-prog-name=collect2`
9294 if test -f "$collect2name" && \
9295 strings "$collect2name" | grep resolve_lib_name >/dev/null
9296 then
9297 # We have reworked collect2
9298 hardcode_direct_CXX=yes
9299 else
9300 # We have old collect2
9301 hardcode_direct_CXX=unsupported
9302 # It fails to find uninstalled libraries when the uninstalled
9303 # path is not listed in the libpath. Setting hardcode_minus_L
9304 # to unsupported forces relinking
9305 hardcode_minus_L_CXX=yes
9306 hardcode_libdir_flag_spec_CXX='-L$libdir'
9307 hardcode_libdir_separator_CXX=
9308 fi
9309 esac
9310 shared_flag='-shared'
9311 else
9312 # not using gcc
9313 if test "$host_cpu" = ia64; then
9314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9315 # chokes on -Wl,-G. The following line is correct:
9316 shared_flag='-G'
9317 else
9318 if test "$aix_use_runtimelinking" = yes; then
9319 shared_flag='${wl}-G'
9320 else
9321 shared_flag='${wl}-bM:SRE'
9322 fi
9323 fi
9324 fi
9325
9326 # It seems that -bexpall does not export symbols beginning with
9327 # underscore (_), so it is better to generate a list of symbols to export.
9328 always_export_symbols_CXX=yes
9329 if test "$aix_use_runtimelinking" = yes; then
9330 # Warning - without using the other runtime loading flags (-brtl),
9331 # -berok will link without error, but may produce a broken library.
9332 allow_undefined_flag_CXX='-berok'
9333 # Determine the default libpath from the value encoded in an empty executable.
9334 cat >conftest.$ac_ext <<_ACEOF
9335#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009336/* confdefs.h. */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009341
John Criswell47fdd832003-07-14 16:52:07 +00009342int
9343main ()
9344{
9345
9346 ;
9347 return 0;
9348}
9349_ACEOF
9350rm -f conftest.$ac_objext conftest$ac_exeext
9351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -s conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362
9363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9364}'`
9365# Check for a 64-bit object if we didn't find anything.
9366if 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; }
9367}'`; fi
9368else
9369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009370sed 's/^/| /' conftest.$ac_ext >&5
9371
John Criswell47fdd832003-07-14 16:52:07 +00009372fi
9373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9374if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375
9376 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9377
9378 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"
9379 else
9380 if test "$host_cpu" = ia64; then
9381 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9382 allow_undefined_flag_CXX="-z nodefs"
9383 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"
9384 else
9385 # Determine the default libpath from the value encoded in an empty executable.
9386 cat >conftest.$ac_ext <<_ACEOF
9387#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009393
John Criswell47fdd832003-07-14 16:52:07 +00009394int
9395main ()
9396{
9397
9398 ;
9399 return 0;
9400}
9401_ACEOF
9402rm -f conftest.$ac_objext conftest$ac_exeext
9403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414
9415aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9416}'`
9417# Check for a 64-bit object if we didn't find anything.
9418if 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; }
9419}'`; fi
9420else
9421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009422sed 's/^/| /' conftest.$ac_ext >&5
9423
John Criswell47fdd832003-07-14 16:52:07 +00009424fi
9425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427
9428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9429 # Warning - without using the other run time loading flags,
9430 # -berok will link without error, but may produce a broken library.
9431 no_undefined_flag_CXX=' ${wl}-bernotok'
9432 allow_undefined_flag_CXX=' ${wl}-berok'
9433 # -bexpall does not export symbols beginning with underscore (_)
9434 always_export_symbols_CXX=yes
9435 # Exported symbols can be pulled into shared objects from archives
9436 whole_archive_flag_spec_CXX=' '
9437 archive_cmds_need_lc_CXX=yes
9438 # This is similar to how AIX traditionally builds it's shared libraries.
9439 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'
9440 fi
9441 fi
9442 ;;
9443 chorus*)
9444 case $cc_basename in
9445 *)
9446 # FIXME: insert proper C++ library support
9447 ld_shlibs_CXX=no
9448 ;;
9449 esac
9450 ;;
9451
9452 cygwin* | mingw* | pw32*)
9453 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9454 # as there is no search path for DLLs.
9455 hardcode_libdir_flag_spec_CXX='-L$libdir'
9456 allow_undefined_flag_CXX=unsupported
9457 always_export_symbols_CXX=no
9458 enable_shared_with_static_runtimes_CXX=yes
9459
9460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9461 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'
9462 # If the export-symbols file already is a .def file (1st line
9463 # is EXPORTS), use it as is; otherwise, prepend...
9464 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9465 cp $export_symbols $output_objdir/$soname.def;
9466 else
9467 echo EXPORTS > $output_objdir/$soname.def;
9468 cat $export_symbols >> $output_objdir/$soname.def;
9469 fi~
9470 $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'
9471 else
9472 ld_shlibs_CXX=no
9473 fi
9474 ;;
9475
9476 darwin* | rhapsody*)
9477 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9478 archive_cmds_need_lc_CXX=no
9479 case "$host_os" in
9480 rhapsody* | darwin1.[012])
9481 allow_undefined_flag_CXX='-undefined suppress'
9482 ;;
9483 *) # Darwin 1.3 on
9484 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9485 ;;
9486 esac
9487 lt_int_apple_cc_single_mod=no
9488 output_verbose_link_cmd='echo'
9489 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9490 lt_int_apple_cc_single_mod=yes
9491 fi
9492 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9493 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9494 else
9495 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'
9496 fi
9497 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9498
9499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9500 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9501 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}'
9502 else
9503 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}'
9504 fi
9505 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}'
9506 hardcode_direct_CXX=no
9507 hardcode_automatic_CXX=yes
9508 hardcode_shlibpath_var_CXX=unsupported
9509 whole_archive_flag_spec_CXX='-all_load $convenience'
9510 link_all_deplibs_CXX=yes
9511 fi
9512 ;;
9513
9514 dgux*)
9515 case $cc_basename in
9516 ec++)
9517 # FIXME: insert proper C++ library support
9518 ld_shlibs_CXX=no
9519 ;;
9520 ghcx)
9521 # Green Hills C++ Compiler
9522 # FIXME: insert proper C++ library support
9523 ld_shlibs_CXX=no
9524 ;;
9525 *)
9526 # FIXME: insert proper C++ library support
9527 ld_shlibs_CXX=no
9528 ;;
9529 esac
9530 ;;
9531 freebsd12*)
9532 # C++ shared libraries reported to be fairly broken before switch to ELF
9533 ld_shlibs_CXX=no
9534 ;;
9535 freebsd-elf*)
9536 archive_cmds_need_lc_CXX=no
9537 ;;
9538 freebsd*)
9539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9540 # conventions
9541 ld_shlibs_CXX=yes
9542 ;;
9543 gnu*)
9544 ;;
9545 hpux9*)
9546 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9547 hardcode_libdir_separator_CXX=:
9548 export_dynamic_flag_spec_CXX='${wl}-E'
9549 hardcode_direct_CXX=yes
9550 hardcode_minus_L_CXX=yes # Not in the search PATH,
9551 # but as the default
9552 # location of the library.
9553
9554 case $cc_basename in
9555 CC)
9556 # FIXME: insert proper C++ library support
9557 ld_shlibs_CXX=no
9558 ;;
9559 aCC)
9560 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'
9561 # Commands to make compiler produce verbose output that lists
9562 # what "hidden" libraries, object files and flags are used when
9563 # linking a shared library.
9564 #
9565 # There doesn't appear to be a way to prevent this compiler from
9566 # explicitly linking system object files so we need to strip them
9567 # from the output so that they don't get included in the library
9568 # dependencies.
9569 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'
9570 ;;
9571 *)
9572 if test "$GXX" = yes; then
9573 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'
9574 else
9575 # FIXME: insert proper C++ library support
9576 ld_shlibs_CXX=no
9577 fi
9578 ;;
9579 esac
9580 ;;
9581 hpux10*|hpux11*)
9582 if test $with_gnu_ld = no; then
9583 case "$host_cpu" in
9584 hppa*64*)
9585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9586 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9587 hardcode_libdir_separator_CXX=:
9588 ;;
9589 ia64*)
9590 hardcode_libdir_flag_spec_CXX='-L$libdir'
9591 ;;
9592 *)
9593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9594 hardcode_libdir_separator_CXX=:
9595 export_dynamic_flag_spec_CXX='${wl}-E'
9596 ;;
9597 esac
9598 fi
9599 case "$host_cpu" in
9600 hppa*64*)
9601 hardcode_direct_CXX=no
9602 hardcode_shlibpath_var_CXX=no
9603 ;;
9604 ia64*)
9605 hardcode_direct_CXX=no
9606 hardcode_shlibpath_var_CXX=no
9607 hardcode_minus_L_CXX=yes # Not in the search PATH,
9608 # but as the default
9609 # location of the library.
9610 ;;
9611 *)
9612 hardcode_direct_CXX=yes
9613 hardcode_minus_L_CXX=yes # Not in the search PATH,
9614 # but as the default
9615 # location of the library.
9616 ;;
9617 esac
9618
9619 case $cc_basename in
9620 CC)
9621 # FIXME: insert proper C++ library support
9622 ld_shlibs_CXX=no
9623 ;;
9624 aCC)
9625 case "$host_cpu" in
9626 hppa*64*|ia64*)
9627 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9628 ;;
9629 *)
9630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9631 ;;
9632 esac
9633 # Commands to make compiler produce verbose output that lists
9634 # what "hidden" libraries, object files and flags are used when
9635 # linking a shared library.
9636 #
9637 # There doesn't appear to be a way to prevent this compiler from
9638 # explicitly linking system object files so we need to strip them
9639 # from the output so that they don't get included in the library
9640 # dependencies.
9641 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'
9642 ;;
9643 *)
9644 if test "$GXX" = yes; then
9645 if test $with_gnu_ld = no; then
9646 case "$host_cpu" in
9647 ia64*|hppa*64*)
9648 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9649 ;;
9650 *)
9651 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'
9652 ;;
9653 esac
9654 fi
9655 else
9656 # FIXME: insert proper C++ library support
9657 ld_shlibs_CXX=no
9658 fi
9659 ;;
9660 esac
9661 ;;
9662 irix5* | irix6*)
9663 case $cc_basename in
9664 CC)
9665 # SGI C++
9666 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'
9667
9668 # Archives containing C++ object files must be created using
9669 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9670 # necessary to make sure instantiated templates are included
9671 # in the archive.
9672 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9673 ;;
9674 *)
9675 if test "$GXX" = yes; then
9676 if test "$with_gnu_ld" = no; then
9677 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'
9678 else
9679 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'
9680 fi
9681 fi
9682 link_all_deplibs_CXX=yes
9683 ;;
9684 esac
9685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9686 hardcode_libdir_separator_CXX=:
9687 ;;
9688 linux*)
9689 case $cc_basename in
9690 KCC)
9691 # Kuck and Associates, Inc. (KAI) C++ Compiler
9692
9693 # KCC will only create a shared library if the output file
9694 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9695 # to its proper name (with version) after linking.
9696 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'
9697 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'
9698 # Commands to make compiler produce verbose output that lists
9699 # what "hidden" libraries, object files and flags are used when
9700 # linking a shared library.
9701 #
9702 # There doesn't appear to be a way to prevent this compiler from
9703 # explicitly linking system object files so we need to strip them
9704 # from the output so that they don't get included in the library
9705 # dependencies.
9706 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'
9707
9708 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9710
9711 # Archives containing C++ object files must be created using
9712 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9713 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9714 ;;
9715 icpc)
9716 # Intel C++
9717 with_gnu_ld=yes
9718 archive_cmds_need_lc_CXX=no
9719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720 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'
9721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9723 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9724 ;;
9725 cxx)
9726 # Compaq C++
9727 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728 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'
9729
9730 runpath_var=LD_RUN_PATH
9731 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9732 hardcode_libdir_separator_CXX=:
9733
9734 # Commands to make compiler produce verbose output that lists
9735 # what "hidden" libraries, object files and flags are used when
9736 # linking a shared library.
9737 #
9738 # There doesn't appear to be a way to prevent this compiler from
9739 # explicitly linking system object files so we need to strip them
9740 # from the output so that they don't get included in the library
9741 # dependencies.
9742 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'
9743 ;;
9744 esac
9745 ;;
9746 lynxos*)
9747 # FIXME: insert proper C++ library support
9748 ld_shlibs_CXX=no
9749 ;;
9750 m88k*)
9751 # FIXME: insert proper C++ library support
9752 ld_shlibs_CXX=no
9753 ;;
9754 mvs*)
9755 case $cc_basename in
9756 cxx)
9757 # FIXME: insert proper C++ library support
9758 ld_shlibs_CXX=no
9759 ;;
9760 *)
9761 # FIXME: insert proper C++ library support
9762 ld_shlibs_CXX=no
9763 ;;
9764 esac
9765 ;;
9766 netbsd*)
9767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9768 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9769 wlarc=
9770 hardcode_libdir_flag_spec_CXX='-R$libdir'
9771 hardcode_direct_CXX=yes
9772 hardcode_shlibpath_var_CXX=no
9773 fi
9774 # Workaround some broken pre-1.5 toolchains
9775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9776 ;;
9777 osf3*)
9778 case $cc_basename in
9779 KCC)
9780 # Kuck and Associates, Inc. (KAI) C++ Compiler
9781
9782 # KCC will only create a shared library if the output file
9783 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9784 # to its proper name (with version) after linking.
9785 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'
9786
9787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9788 hardcode_libdir_separator_CXX=:
9789
9790 # Archives containing C++ object files must be created using
9791 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9792 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9793
9794 ;;
9795 RCC)
9796 # Rational C++ 2.4.1
9797 # FIXME: insert proper C++ library support
9798 ld_shlibs_CXX=no
9799 ;;
9800 cxx)
9801 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9802 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'
9803
9804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9805 hardcode_libdir_separator_CXX=:
9806
9807 # Commands to make compiler produce verbose output that lists
9808 # what "hidden" libraries, object files and flags are used when
9809 # linking a shared library.
9810 #
9811 # There doesn't appear to be a way to prevent this compiler from
9812 # explicitly linking system object files so we need to strip them
9813 # from the output so that they don't get included in the library
9814 # dependencies.
9815 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'
9816 ;;
9817 *)
9818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9820 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'
9821
9822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9823 hardcode_libdir_separator_CXX=:
9824
9825 # Commands to make compiler produce verbose output that lists
9826 # what "hidden" libraries, object files and flags are used when
9827 # linking a shared library.
9828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9829
9830 else
9831 # FIXME: insert proper C++ library support
9832 ld_shlibs_CXX=no
9833 fi
9834 ;;
9835 esac
9836 ;;
9837 osf4* | osf5*)
9838 case $cc_basename in
9839 KCC)
9840 # Kuck and Associates, Inc. (KAI) C++ Compiler
9841
9842 # KCC will only create a shared library if the output file
9843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9844 # to its proper name (with version) after linking.
9845 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'
9846
9847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9848 hardcode_libdir_separator_CXX=:
9849
9850 # Archives containing C++ object files must be created using
9851 # the KAI C++ compiler.
9852 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9853 ;;
9854 RCC)
9855 # Rational C++ 2.4.1
9856 # FIXME: insert proper C++ library support
9857 ld_shlibs_CXX=no
9858 ;;
9859 cxx)
9860 allow_undefined_flag_CXX=' -expect_unresolved \*'
9861 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'
9862 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9863 echo "-hidden">> $lib.exp~
9864 $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~
9865 $rm $lib.exp'
9866
9867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9868 hardcode_libdir_separator_CXX=:
9869
9870 # Commands to make compiler produce verbose output that lists
9871 # what "hidden" libraries, object files and flags are used when
9872 # linking a shared library.
9873 #
9874 # There doesn't appear to be a way to prevent this compiler from
9875 # explicitly linking system object files so we need to strip them
9876 # from the output so that they don't get included in the library
9877 # dependencies.
9878 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'
9879 ;;
9880 *)
9881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9883 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'
9884
9885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator_CXX=:
9887
9888 # Commands to make compiler produce verbose output that lists
9889 # what "hidden" libraries, object files and flags are used when
9890 # linking a shared library.
9891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9892
9893 else
9894 # FIXME: insert proper C++ library support
9895 ld_shlibs_CXX=no
9896 fi
9897 ;;
9898 esac
9899 ;;
9900 psos*)
9901 # FIXME: insert proper C++ library support
9902 ld_shlibs_CXX=no
9903 ;;
9904 sco*)
9905 archive_cmds_need_lc_CXX=no
9906 case $cc_basename in
9907 CC)
9908 # FIXME: insert proper C++ library support
9909 ld_shlibs_CXX=no
9910 ;;
9911 *)
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 ;;
9915 esac
9916 ;;
9917 sunos4*)
9918 case $cc_basename in
9919 CC)
9920 # Sun C++ 4.x
9921 # FIXME: insert proper C++ library support
9922 ld_shlibs_CXX=no
9923 ;;
9924 lcc)
9925 # Lucid
9926 # FIXME: insert proper C++ library support
9927 ld_shlibs_CXX=no
9928 ;;
9929 *)
9930 # FIXME: insert proper C++ library support
9931 ld_shlibs_CXX=no
9932 ;;
9933 esac
9934 ;;
9935 solaris*)
9936 case $cc_basename in
9937 CC)
9938 # Sun C++ 4.2, 5.x and Centerline C++
9939 no_undefined_flag_CXX=' -zdefs'
9940 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9941 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9942 $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'
9943
9944 hardcode_libdir_flag_spec_CXX='-R$libdir'
9945 hardcode_shlibpath_var_CXX=no
9946 case $host_os in
9947 solaris2.0-5 | solaris2.0-5.*) ;;
9948 *)
9949 # The C++ compiler is used as linker so we must use $wl
9950 # flag to pass the commands to the underlying system
9951 # linker.
9952 # Supported since Solaris 2.6 (maybe 2.5.1?)
9953 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9954 ;;
9955 esac
9956 link_all_deplibs_CXX=yes
9957
9958 # Commands to make compiler produce verbose output that lists
9959 # what "hidden" libraries, object files and flags are used when
9960 # linking a shared library.
9961 #
9962 # There doesn't appear to be a way to prevent this compiler from
9963 # explicitly linking system object files so we need to strip them
9964 # from the output so that they don't get included in the library
9965 # dependencies.
9966 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'
9967
9968 # Archives containing C++ object files must be created using
9969 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9970 # necessary to make sure instantiated templates are included
9971 # in the archive.
9972 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9973 ;;
9974 gcx)
9975 # Green Hills C++ Compiler
9976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9977
9978 # The C++ compiler must be used to create the archive.
9979 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9980 ;;
9981 *)
9982 # GNU C++ compiler with Solaris linker
9983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9984 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9985 if $CC --version | grep -v '^2\.7' > /dev/null; then
9986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9987 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9989
9990 # Commands to make compiler produce verbose output that lists
9991 # what "hidden" libraries, object files and flags are used when
9992 # linking a shared library.
9993 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9994 else
9995 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9996 # platform.
9997 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10000
10001 # Commands to make compiler produce verbose output that lists
10002 # what "hidden" libraries, object files and flags are used when
10003 # linking a shared library.
10004 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10005 fi
10006
10007 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10008 fi
10009 ;;
10010 esac
10011 ;;
10012 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10013 archive_cmds_need_lc_CXX=no
10014 ;;
10015 tandem*)
10016 case $cc_basename in
10017 NCC)
10018 # NonStop-UX NCC 3.20
10019 # FIXME: insert proper C++ library support
10020 ld_shlibs_CXX=no
10021 ;;
10022 *)
10023 # FIXME: insert proper C++ library support
10024 ld_shlibs_CXX=no
10025 ;;
10026 esac
10027 ;;
10028 vxworks*)
10029 # FIXME: insert proper C++ library support
10030 ld_shlibs_CXX=no
10031 ;;
10032 *)
10033 # FIXME: insert proper C++ library support
10034 ld_shlibs_CXX=no
10035 ;;
10036esac
10037echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10038echo "${ECHO_T}$ld_shlibs_CXX" >&6
10039test "$ld_shlibs_CXX" = no && can_build_shared=no
10040
10041GCC_CXX="$GXX"
10042LD_CXX="$LD"
10043
John Criswell47fdd832003-07-14 16:52:07 +000010044
10045cat > conftest.$ac_ext <<EOF
10046class Foo
10047{
10048public:
10049 Foo (void) { a = 0; }
10050private:
10051 int a;
10052};
10053EOF
10054
10055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056 (eval $ac_compile) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; then
10060 # Parse the compiler output and extract the necessary
10061 # objects, libraries and library flags.
10062
10063 # Sentinel used to keep track of whether or not we are before
10064 # the conftest object file.
10065 pre_test_object_deps_done=no
10066
10067 # The `*' in the case matches for architectures that use `case' in
10068 # $output_verbose_cmd can trigger glob expansion during the loop
10069 # eval without this substitution.
10070 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10071
10072 for p in `eval $output_verbose_link_cmd`; do
10073 case $p in
10074
10075 -L* | -R* | -l*)
10076 # Some compilers place space between "-{L,R}" and the path.
10077 # Remove the space.
10078 if test $p = "-L" \
10079 || test $p = "-R"; then
10080 prev=$p
10081 continue
10082 else
10083 prev=
10084 fi
10085
10086 if test "$pre_test_object_deps_done" = no; then
10087 case $p in
10088 -L* | -R*)
10089 # Internal compiler library paths should come after those
10090 # provided the user. The postdeps already come after the
10091 # user supplied libs so there is no need to process them.
10092 if test -z "$compiler_lib_search_path_CXX"; then
10093 compiler_lib_search_path_CXX="${prev}${p}"
10094 else
10095 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10096 fi
10097 ;;
10098 # The "-l" case would never come before the object being
10099 # linked, so don't bother handling this case.
10100 esac
10101 else
10102 if test -z "$postdeps_CXX"; then
10103 postdeps_CXX="${prev}${p}"
10104 else
10105 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10106 fi
10107 fi
10108 ;;
10109
10110 *.$objext)
10111 # This assumes that the test object file only shows up
10112 # once in the compiler output.
10113 if test "$p" = "conftest.$objext"; then
10114 pre_test_object_deps_done=yes
10115 continue
10116 fi
10117
10118 if test "$pre_test_object_deps_done" = no; then
10119 if test -z "$predep_objects_CXX"; then
10120 predep_objects_CXX="$p"
10121 else
10122 predep_objects_CXX="$predep_objects_CXX $p"
10123 fi
10124 else
10125 if test -z "$postdep_objects_CXX"; then
10126 postdep_objects_CXX="$p"
10127 else
10128 postdep_objects_CXX="$postdep_objects_CXX $p"
10129 fi
10130 fi
10131 ;;
10132
10133 *) ;; # Ignore the rest.
10134
10135 esac
10136 done
10137
10138 # Clean up.
10139 rm -f a.out a.exe
10140else
10141 echo "libtool.m4: error: problem compiling CXX test program"
10142fi
10143
10144$rm -f confest.$objext
10145
10146case " $postdeps_CXX " in
10147*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10148esac
10149
10150lt_prog_compiler_wl_CXX=
10151lt_prog_compiler_pic_CXX=
10152lt_prog_compiler_static_CXX=
10153
10154echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10155echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10156
10157 # C++ specific cases for pic, static, wl, etc.
10158 if test "$GXX" = yes; then
10159 lt_prog_compiler_wl_CXX='-Wl,'
10160 lt_prog_compiler_static_CXX='-static'
10161
10162 case $host_os in
10163 aix*)
10164 # All AIX code is PIC.
10165 if test "$host_cpu" = ia64; then
10166 # AIX 5 now supports IA64 processor
10167 lt_prog_compiler_static_CXX='-Bstatic'
10168 fi
10169 ;;
10170 amigaos*)
10171 # FIXME: we need at least 68020 code to build shared libraries, but
10172 # adding the `-m68020' flag to GCC prevents building anything better,
10173 # like `-m68040'.
10174 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10175 ;;
10176 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10177 # PIC is the default for these OSes.
10178 ;;
10179 mingw* | os2* | pw32*)
10180 # This hack is so that the source file can tell whether it is being
10181 # built for inclusion in a dll (and should export symbols for example).
10182 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10183 ;;
10184 darwin* | rhapsody*)
10185 # PIC is the default on this platform
10186 # Common symbols not allowed in MH_DYLIB files
10187 lt_prog_compiler_pic_CXX='-fno-common'
10188 ;;
10189 *djgpp*)
10190 # DJGPP does not support shared libraries at all
10191 lt_prog_compiler_pic_CXX=
10192 ;;
10193 sysv4*MP*)
10194 if test -d /usr/nec; then
10195 lt_prog_compiler_pic_CXX=-Kconform_pic
10196 fi
10197 ;;
10198 hpux*)
10199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10200 # not for PA HP-UX.
10201 case "$host_cpu" in
10202 hppa*64*|ia64*)
10203 ;;
10204 *)
10205 lt_prog_compiler_pic_CXX='-fPIC'
10206 ;;
10207 esac
10208 ;;
10209 *)
10210 lt_prog_compiler_pic_CXX='-fPIC'
10211 ;;
10212 esac
10213 else
10214 case $host_os in
10215 aix4* | aix5*)
10216 # All AIX code is PIC.
10217 if test "$host_cpu" = ia64; then
10218 # AIX 5 now supports IA64 processor
10219 lt_prog_compiler_static_CXX='-Bstatic'
10220 else
10221 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10222 fi
10223 ;;
10224 chorus*)
10225 case $cc_basename in
10226 cxch68)
10227 # Green Hills C++ Compiler
10228 # _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"
10229 ;;
10230 esac
10231 ;;
10232 dgux*)
10233 case $cc_basename in
10234 ec++)
10235 lt_prog_compiler_pic_CXX='-KPIC'
10236 ;;
10237 ghcx)
10238 # Green Hills C++ Compiler
10239 lt_prog_compiler_pic_CXX='-pic'
10240 ;;
10241 *)
10242 ;;
10243 esac
10244 ;;
10245 freebsd*)
10246 # FreeBSD uses GNU C++
10247 ;;
10248 hpux9* | hpux10* | hpux11*)
10249 case $cc_basename in
10250 CC)
10251 lt_prog_compiler_wl_CXX='-Wl,'
10252 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10253 if test "$host_cpu" != ia64; then
10254 lt_prog_compiler_pic_CXX='+Z'
10255 fi
10256 ;;
10257 aCC)
10258 lt_prog_compiler_wl_CXX='-Wl,'
10259 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10260 case "$host_cpu" in
10261 hppa*64*|ia64*)
10262 # +Z the default
10263 ;;
10264 *)
10265 lt_prog_compiler_pic_CXX='+Z'
10266 ;;
10267 esac
10268 ;;
10269 *)
10270 ;;
10271 esac
10272 ;;
10273 irix5* | irix6* | nonstopux*)
10274 case $cc_basename in
10275 CC)
10276 lt_prog_compiler_wl_CXX='-Wl,'
10277 lt_prog_compiler_static_CXX='-non_shared'
10278 # CC pic flag -KPIC is the default.
10279 ;;
10280 *)
10281 ;;
10282 esac
10283 ;;
10284 linux*)
10285 case $cc_basename in
10286 KCC)
10287 # KAI C++ Compiler
10288 lt_prog_compiler_wl_CXX='--backend -Wl,'
10289 lt_prog_compiler_pic_CXX='-fPIC'
10290 ;;
10291 icpc)
10292 # Intel C++
10293 lt_prog_compiler_wl_CXX='-Wl,'
10294 lt_prog_compiler_pic_CXX='-KPIC'
10295 lt_prog_compiler_static_CXX='-static'
10296 ;;
10297 cxx)
10298 # Compaq C++
10299 # Make sure the PIC flag is empty. It appears that all Alpha
10300 # Linux and Compaq Tru64 Unix objects are PIC.
10301 lt_prog_compiler_pic_CXX=
10302 lt_prog_compiler_static_CXX='-non_shared'
10303 ;;
10304 *)
10305 ;;
10306 esac
10307 ;;
10308 lynxos*)
10309 ;;
10310 m88k*)
10311 ;;
10312 mvs*)
10313 case $cc_basename in
10314 cxx)
10315 lt_prog_compiler_pic_CXX='-W c,exportall'
10316 ;;
10317 *)
10318 ;;
10319 esac
10320 ;;
10321 netbsd*)
10322 ;;
10323 osf3* | osf4* | osf5*)
10324 case $cc_basename in
10325 KCC)
10326 lt_prog_compiler_wl_CXX='--backend -Wl,'
10327 ;;
10328 RCC)
10329 # Rational C++ 2.4.1
10330 lt_prog_compiler_pic_CXX='-pic'
10331 ;;
10332 cxx)
10333 # Digital/Compaq C++
10334 lt_prog_compiler_wl_CXX='-Wl,'
10335 # Make sure the PIC flag is empty. It appears that all Alpha
10336 # Linux and Compaq Tru64 Unix objects are PIC.
10337 lt_prog_compiler_pic_CXX=
10338 lt_prog_compiler_static_CXX='-non_shared'
10339 ;;
10340 *)
10341 ;;
10342 esac
10343 ;;
10344 psos*)
10345 ;;
10346 sco*)
10347 case $cc_basename in
10348 CC)
10349 lt_prog_compiler_pic_CXX='-fPIC'
10350 ;;
10351 *)
10352 ;;
10353 esac
10354 ;;
10355 solaris*)
10356 case $cc_basename in
10357 CC)
10358 # Sun C++ 4.2, 5.x and Centerline C++
10359 lt_prog_compiler_pic_CXX='-KPIC'
10360 lt_prog_compiler_static_CXX='-Bstatic'
10361 lt_prog_compiler_wl_CXX='-Qoption ld '
10362 ;;
10363 gcx)
10364 # Green Hills C++ Compiler
10365 lt_prog_compiler_pic_CXX='-PIC'
10366 ;;
10367 *)
10368 ;;
10369 esac
10370 ;;
10371 sunos4*)
10372 case $cc_basename in
10373 CC)
10374 # Sun C++ 4.x
10375 lt_prog_compiler_pic_CXX='-pic'
10376 lt_prog_compiler_static_CXX='-Bstatic'
10377 ;;
10378 lcc)
10379 # Lucid
10380 lt_prog_compiler_pic_CXX='-pic'
10381 ;;
10382 *)
10383 ;;
10384 esac
10385 ;;
10386 tandem*)
10387 case $cc_basename in
10388 NCC)
10389 # NonStop-UX NCC 3.20
10390 lt_prog_compiler_pic_CXX='-KPIC'
10391 ;;
10392 *)
10393 ;;
10394 esac
10395 ;;
10396 unixware*)
10397 ;;
10398 vxworks*)
10399 ;;
10400 *)
10401 lt_prog_compiler_can_build_shared_CXX=no
10402 ;;
10403 esac
10404 fi
10405
10406echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10407echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10408
10409#
10410# Check to make sure the PIC flag actually works.
10411#
10412if test -n "$lt_prog_compiler_pic_CXX"; then
10413 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10414echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10415if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417else
10418 lt_prog_compiler_pic_works_CXX=no
10419 ac_outfile=conftest.$ac_objext
10420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10421 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10422 # Insert the option either (1) after the last *FLAGS variable, or
10423 # (2) before a word containing "conftest.", or (3) at the end.
10424 # Note that $ac_compile itself does not contain backslashes and begins
10425 # with a dollar sign (not a hyphen), so the echo should work correctly.
10426 # The option is referenced via a variable to avoid confusing sed.
10427 lt_compile=`echo "$ac_compile" | $SED \
10428 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10430 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +000010431 (eval echo "\"\$as_me:10431: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010432 (eval "$lt_compile" 2>conftest.err)
10433 ac_status=$?
10434 cat conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +000010435 echo "$as_me:10435: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010436 if (exit $ac_status) && test -s "$ac_outfile"; then
10437 # The compiler can only warn and ignore the option if not recognized
10438 # So say no if there are warnings
10439 if test ! -s conftest.err; then
10440 lt_prog_compiler_pic_works_CXX=yes
10441 fi
10442 fi
10443 $rm conftest*
10444
10445fi
10446echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10447echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10448
10449if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10450 case $lt_prog_compiler_pic_CXX in
10451 "" | " "*) ;;
10452 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10453 esac
10454else
10455 lt_prog_compiler_pic_CXX=
10456 lt_prog_compiler_can_build_shared_CXX=no
10457fi
10458
10459fi
10460case "$host_os" in
10461 # For platforms which do not support PIC, -DPIC is meaningless:
10462 *djgpp*)
10463 lt_prog_compiler_pic_CXX=
10464 ;;
10465 *)
10466 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10467 ;;
10468esac
10469
10470echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10471echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10472if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 lt_cv_prog_compiler_c_o_CXX=no
10476 $rm -r conftest 2>/dev/null
10477 mkdir conftest
10478 cd conftest
10479 mkdir out
10480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10481
10482 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10483 # that will create temporary files in the current directory regardless of
10484 # the output directory. Thus, making CWD read-only will cause this test
10485 # to fail, enabling locking or at least warning the user not to do parallel
10486 # builds.
10487 chmod -w .
10488
10489 lt_compiler_flag="-o out/conftest2.$ac_objext"
10490 # Insert the option either (1) after the last *FLAGS variable, or
10491 # (2) before a word containing "conftest.", or (3) at the end.
10492 # Note that $ac_compile itself does not contain backslashes and begins
10493 # with a dollar sign (not a hyphen), so the echo should work correctly.
10494 lt_compile=`echo "$ac_compile" | $SED \
10495 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10497 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +000010498 (eval echo "\"\$as_me:10498: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010499 (eval "$lt_compile" 2>out/conftest.err)
10500 ac_status=$?
10501 cat out/conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +000010502 echo "$as_me:10502: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10504 then
10505 # The compiler can only warn and ignore the option if not recognized
10506 # So say no if there are warnings
10507 if test ! -s out/conftest.err; then
10508 lt_cv_prog_compiler_c_o_CXX=yes
10509 fi
10510 fi
10511 chmod u+w .
10512 $rm conftest* out/*
10513 rmdir out
10514 cd ..
10515 rmdir conftest
10516 $rm conftest*
10517
10518fi
10519echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10520echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10521
10522
10523hard_links="nottested"
10524if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10525 # do not overwrite the value of need_locks provided by the user
10526 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10527echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10528 hard_links=yes
10529 $rm conftest*
10530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10531 touch conftest.a
10532 ln conftest.a conftest.b 2>&5 || hard_links=no
10533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10534 echo "$as_me:$LINENO: result: $hard_links" >&5
10535echo "${ECHO_T}$hard_links" >&6
10536 if test "$hard_links" = no; then
10537 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10538echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10539 need_locks=warn
10540 fi
10541else
10542 need_locks=no
10543fi
10544
10545echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10546echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10547
10548 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10549 case $host_os in
10550 aix4* | aix5*)
10551 # If we're using GNU nm, then we don't want the "-C" option.
10552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10553 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10554 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'
10555 else
10556 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'
10557 fi
10558 ;;
10559 pw32*)
10560 export_symbols_cmds_CXX="$ltdll_cmds"
10561 ;;
10562 cygwin* | mingw*)
10563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10564 ;;
10565 *)
10566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10567 ;;
10568 esac
10569
10570echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10571echo "${ECHO_T}$ld_shlibs_CXX" >&6
10572test "$ld_shlibs_CXX" = no && can_build_shared=no
10573
10574variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10575if test "$GCC" = yes; then
10576 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10577fi
10578
10579#
10580# Do we need to explicitly link libc?
10581#
10582case "x$archive_cmds_need_lc_CXX" in
10583x|xyes)
10584 # Assume -lc should be added
10585 archive_cmds_need_lc_CXX=yes
10586
10587 if test "$enable_shared" = yes && test "$GCC" = yes; then
10588 case $archive_cmds_CXX in
10589 *'~'*)
10590 # FIXME: we may have to deal with multi-command sequences.
10591 ;;
10592 '$CC '*)
10593 # Test whether the compiler implicitly links with -lc since on some
10594 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10595 # to ld, don't add -lc before -lgcc.
10596 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10597echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10598 $rm conftest*
10599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10600
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602 (eval $ac_compile) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } 2>conftest.err; then
10606 soname=conftest
10607 lib=conftest
10608 libobjs=conftest.$ac_objext
10609 deplibs=
10610 wl=$lt_prog_compiler_wl_CXX
10611 compiler_flags=-v
10612 linker_flags=-v
10613 verstring=
10614 output_objdir=.
10615 libname=conftest
10616 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10617 allow_undefined_flag_CXX=
10618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10619 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }
10623 then
10624 archive_cmds_need_lc_CXX=no
10625 else
10626 archive_cmds_need_lc_CXX=yes
10627 fi
10628 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10629 else
10630 cat conftest.err 1>&5
10631 fi
10632 $rm conftest*
10633 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10634echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10635 ;;
10636 esac
10637 fi
10638 ;;
10639esac
10640
10641echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10642echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10643hardcode_action_CXX=
10644if test -n "$hardcode_libdir_flag_spec_CXX" || \
10645 test -n "$runpath_var CXX" || \
10646 test "X$hardcode_automatic_CXX"="Xyes" ; then
10647
10648 # We can hardcode non-existant directories.
10649 if test "$hardcode_direct_CXX" != no &&
10650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651 # have to relink, otherwise we might link with an installed library
10652 # when we should be linking with a yet-to-be-installed one
10653 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10654 test "$hardcode_minus_L_CXX" != no; then
10655 # Linking always hardcodes the temporary library directory.
10656 hardcode_action_CXX=relink
10657 else
10658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659 hardcode_action_CXX=immediate
10660 fi
10661else
10662 # We cannot hardcode anything, or else we can only hardcode existing
10663 # directories.
10664 hardcode_action_CXX=unsupported
10665fi
10666echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10667echo "${ECHO_T}$hardcode_action_CXX" >&6
10668
10669if test "$hardcode_action_CXX" = relink; then
10670 # Fast installation is not supported
10671 enable_fast_install=no
10672elif test "$shlibpath_overrides_runpath" = yes ||
10673 test "$enable_shared" = no; then
10674 # Fast installation is not necessary
10675 enable_fast_install=needless
10676fi
10677
10678striplib=
10679old_striplib=
10680echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10681echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10682if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10683 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10684 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10685 echo "$as_me:$LINENO: result: yes" >&5
10686echo "${ECHO_T}yes" >&6
10687else
10688# FIXME - insert some real tests, host_os isn't really good enough
10689 case $host_os in
10690 darwin*)
10691 if test -n "$STRIP" ; then
10692 striplib="$STRIP -x"
10693 echo "$as_me:$LINENO: result: yes" >&5
10694echo "${ECHO_T}yes" >&6
10695 else
10696 echo "$as_me:$LINENO: result: no" >&5
10697echo "${ECHO_T}no" >&6
10698fi
10699 ;;
10700 *)
10701 echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703 ;;
10704 esac
10705fi
10706
10707echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10708echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10709library_names_spec=
10710libname_spec='lib$name'
10711soname_spec=
10712shrext=".so"
10713postinstall_cmds=
10714postuninstall_cmds=
10715finish_cmds=
10716finish_eval=
10717shlibpath_var=
10718shlibpath_overrides_runpath=unknown
10719version_type=none
10720dynamic_linker="$host_os ld.so"
10721sys_lib_dlsearch_path_spec="/lib /usr/lib"
10722if test "$GCC" = yes; then
10723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10724 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10725 # if the path contains ";" then we assume it to be the separator
10726 # otherwise default to the standard path separator (i.e. ":") - it is
10727 # assumed that no part of a normal pathname contains ";" but that should
10728 # okay in the real world where ";" in dirpaths is itself problematic.
10729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10730 else
10731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10732 fi
10733else
10734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735fi
10736need_lib_prefix=unknown
10737hardcode_into_libs=no
10738
10739# when you set need_version to no, make sure it does not cause -set_version
10740# flags to be left without arguments
10741need_version=unknown
10742
10743case $host_os in
10744aix3*)
10745 version_type=linux
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10747 shlibpath_var=LIBPATH
10748
10749 # AIX 3 has no versioning support, so we append a major version to the name.
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 ;;
10752
10753aix4* | aix5*)
10754 version_type=linux
10755 need_lib_prefix=no
10756 need_version=no
10757 hardcode_into_libs=yes
10758 if test "$host_cpu" = ia64; then
10759 # AIX 5 supports IA64
10760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 else
10763 # With GCC up to 2.95.x, collect2 would create an import file
10764 # for dependence libraries. The import file would start with
10765 # the line `#! .'. This would cause the generated library to
10766 # depend on `.', always an invalid library. This was fixed in
10767 # development snapshots of GCC prior to 3.0.
10768 case $host_os in
10769 aix4 | aix4.[01] | aix4.[01].*)
10770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10771 echo ' yes '
10772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10773 :
10774 else
10775 can_build_shared=no
10776 fi
10777 ;;
10778 esac
10779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10780 # soname into executable. Probably we can add versioning support to
10781 # collect2, so additional links can be useful in future.
10782 if test "$aix_use_runtimelinking" = yes; then
10783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10784 # instead of lib<name>.a to let people know that these are not
10785 # typical AIX shared libraries.
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 else
10788 # We preserve .a as extension for shared libraries through AIX4.2
10789 # and later when we are not doing run time linking.
10790 library_names_spec='${libname}${release}.a $libname.a'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 fi
10793 shlibpath_var=LIBPATH
10794 fi
10795 ;;
10796
10797amigaos*)
10798 library_names_spec='$libname.ixlibrary $libname.a'
10799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10800 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'
10801 ;;
10802
10803beos*)
10804 library_names_spec='${libname}${shared_ext}'
10805 dynamic_linker="$host_os ld.so"
10806 shlibpath_var=LIBRARY_PATH
10807 ;;
10808
10809bsdi4*)
10810 version_type=linux
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10818 # the default ld.so.conf also contains /usr/contrib/lib and
10819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10820 # libtool to hard-code these into programs
10821 ;;
10822
10823cygwin* | mingw* | pw32*)
10824 version_type=windows
10825 shrext=".dll"
10826 need_version=no
10827 need_lib_prefix=no
10828
10829 case $GCC,$host_os in
10830 yes,cygwin* | yes,mingw* | yes,pw32*)
10831 library_names_spec='$libname.dll.a'
10832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10833 postinstall_cmds='base_file=`basename \${file}`~
10834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10835 dldir=$destdir/`dirname \$dlpath`~
10836 test -d \$dldir || mkdir -p \$dldir~
10837 $install_prog $dir/$dlname \$dldir/$dlname'
10838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839 dlpath=$dir/\$dldll~
10840 $rm \$dlpath'
10841 shlibpath_overrides_runpath=yes
10842
10843 case $host_os in
10844 cygwin*)
10845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10848 ;;
10849 mingw*)
10850 # MinGW DLLs use traditional 'lib' prefix
10851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10854 # It is most probably a Windows format PATH printed by
10855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10856 # path with ; separators, and with drive letters. We can handle the
10857 # drive letters (cygwin fileutils understands them), so leave them,
10858 # especially as we might pass files found there to a mingw objdump,
10859 # which wouldn't understand a cygwinified path. Ahh.
10860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10861 else
10862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10863 fi
10864 ;;
10865 pw32*)
10866 # pw32 DLLs use 'pw' prefix rather than 'lib'
10867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10868 ;;
10869 esac
10870 ;;
10871
10872 *)
10873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10874 ;;
10875 esac
10876 dynamic_linker='Win32 ld.exe'
10877 # FIXME: first we should search . and the directory the executable is in
10878 shlibpath_var=PATH
10879 ;;
10880
10881darwin* | rhapsody*)
10882 dynamic_linker="$host_os dyld"
10883 version_type=darwin
10884 need_lib_prefix=no
10885 need_version=no
10886 # FIXME: Relying on posixy $() will cause problems for
10887 # cross-compilation, but unfortunately the echo tests do not
10888 # yet detect zsh echo's removal of \ escapes.
10889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10890 soname_spec='${libname}${release}${major}$shared_ext'
10891 shlibpath_overrides_runpath=yes
10892 shlibpath_var=DYLD_LIBRARY_PATH
10893 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10895 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10896 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"`
10897 fi
10898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10899 ;;
10900
10901dgux*)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 ;;
10909
10910freebsd1*)
10911 dynamic_linker=no
10912 ;;
10913
10914freebsd*)
10915 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10916 version_type=freebsd-$objformat
10917 case $version_type in
10918 freebsd-elf*)
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10920 need_version=no
10921 need_lib_prefix=no
10922 ;;
10923 freebsd-*)
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10925 need_version=yes
10926 ;;
10927 esac
10928 shlibpath_var=LD_LIBRARY_PATH
10929 case $host_os in
10930 freebsd2*)
10931 shlibpath_overrides_runpath=yes
10932 ;;
10933 freebsd3.01* | freebsdelf3.01*)
10934 shlibpath_overrides_runpath=yes
10935 hardcode_into_libs=yes
10936 ;;
10937 *) # from 3.2 on
10938 shlibpath_overrides_runpath=no
10939 hardcode_into_libs=yes
10940 ;;
10941 esac
10942 ;;
10943
10944gnu*)
10945 version_type=linux
10946 need_lib_prefix=no
10947 need_version=no
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 hardcode_into_libs=yes
10952 ;;
10953
10954hpux9* | hpux10* | hpux11*)
10955 # Give a soname corresponding to the major version so that dld.sl refuses to
10956 # link against other versions.
10957 version_type=sunos
10958 need_lib_prefix=no
10959 need_version=no
10960 case "$host_cpu" in
10961 ia64*)
10962 shrext='.so'
10963 hardcode_into_libs=yes
10964 dynamic_linker="$host_os dld.so"
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 if test "X$HPUX_IA64_MODE" = X32; then
10970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10971 else
10972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10973 fi
10974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10975 ;;
10976 hppa*64*)
10977 shrext='.sl'
10978 hardcode_into_libs=yes
10979 dynamic_linker="$host_os dld.sl"
10980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986 ;;
10987 *)
10988 shrext='.sl'
10989 dynamic_linker="$host_os dld.sl"
10990 shlibpath_var=SHLIB_PATH
10991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 ;;
10995 esac
10996 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10997 postinstall_cmds='chmod 555 $lib'
10998 ;;
10999
11000irix5* | irix6* | nonstopux*)
11001 case $host_os in
11002 nonstopux*) version_type=nonstopux ;;
11003 *)
11004 if test "$lt_cv_prog_gnu_ld" = yes; then
11005 version_type=linux
11006 else
11007 version_type=irix
11008 fi ;;
11009 esac
11010 need_lib_prefix=no
11011 need_version=no
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11014 case $host_os in
11015 irix5* | nonstopux*)
11016 libsuff= shlibsuff=
11017 ;;
11018 *)
11019 case $LD in # libtool.m4 will add one of these switches to LD
11020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11021 libsuff= shlibsuff= libmagic=32-bit;;
11022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11023 libsuff=32 shlibsuff=N32 libmagic=N32;;
11024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11026 *) libsuff= shlibsuff= libmagic=never-match;;
11027 esac
11028 ;;
11029 esac
11030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11031 shlibpath_overrides_runpath=no
11032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11034 hardcode_into_libs=yes
11035 ;;
11036
11037# No shared lib support for Linux oldld, aout, or coff.
11038linux*oldld* | linux*aout* | linux*coff*)
11039 dynamic_linker=no
11040 ;;
11041
11042# This must be Linux ELF.
11043linux*)
11044 version_type=linux
11045 need_lib_prefix=no
11046 need_version=no
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=no
11052 # This implies no fast_install, which is unacceptable.
11053 # Some rework will be needed to allow for fast_install
11054 # before this can be enabled.
11055 hardcode_into_libs=yes
11056
11057 # We used to test for /lib/ld.so.1 and disable shared libraries on
11058 # powerpc, because MkLinux only supported shared libraries with the
11059 # GNU dynamic linker. Since this was broken with cross compilers,
11060 # most powerpc-linux boxes support dynamic linking these days and
11061 # people can always --disable-shared, the test was removed, and we
11062 # assume the GNU/Linux dynamic linker is in use.
11063 dynamic_linker='GNU/Linux ld.so'
11064 ;;
11065
11066netbsd*)
11067 version_type=sunos
11068 need_lib_prefix=no
11069 need_version=no
11070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11073 dynamic_linker='NetBSD (a.out) ld.so'
11074 else
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 dynamic_linker='NetBSD ld.elf_so'
11078 fi
11079 shlibpath_var=LD_LIBRARY_PATH
11080 shlibpath_overrides_runpath=yes
11081 hardcode_into_libs=yes
11082 ;;
11083
11084newsos6)
11085 version_type=linux
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11089 ;;
11090
11091nto-qnx)
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 ;;
11100
11101openbsd*)
11102 version_type=sunos
11103 need_lib_prefix=no
11104 need_version=no
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11109 case $host_os in
11110 openbsd2.[89] | openbsd2.[89].*)
11111 shlibpath_overrides_runpath=no
11112 ;;
11113 *)
11114 shlibpath_overrides_runpath=yes
11115 ;;
11116 esac
11117 else
11118 shlibpath_overrides_runpath=yes
11119 fi
11120 ;;
11121
11122os2*)
11123 libname_spec='$name'
11124 shrext=".dll"
11125 need_lib_prefix=no
11126 library_names_spec='$libname${shared_ext} $libname.a'
11127 dynamic_linker='OS/2 ld.exe'
11128 shlibpath_var=LIBPATH
11129 ;;
11130
11131osf3* | osf4* | osf5*)
11132 version_type=osf
11133 need_lib_prefix=no
11134 need_version=no
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11140 ;;
11141
11142sco3.2v5*)
11143 version_type=osf
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 ;;
11148
11149solaris*)
11150 version_type=linux
11151 need_lib_prefix=no
11152 need_version=no
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes
11157 hardcode_into_libs=yes
11158 # ldd complains unless libraries are executable
11159 postinstall_cmds='chmod +x $lib'
11160 ;;
11161
11162sunos4*)
11163 version_type=sunos
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 if test "$with_gnu_ld" = yes; then
11169 need_lib_prefix=no
11170 fi
11171 need_version=yes
11172 ;;
11173
11174sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11175 version_type=linux
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 case $host_vendor in
11180 sni)
11181 shlibpath_overrides_runpath=no
11182 need_lib_prefix=no
11183 export_dynamic_flag_spec='${wl}-Blargedynsym'
11184 runpath_var=LD_RUN_PATH
11185 ;;
11186 siemens)
11187 need_lib_prefix=no
11188 ;;
11189 motorola)
11190 need_lib_prefix=no
11191 need_version=no
11192 shlibpath_overrides_runpath=no
11193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11194 ;;
11195 esac
11196 ;;
11197
11198sysv4*MP*)
11199 if test -d /usr/nec ;then
11200 version_type=linux
11201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11202 soname_spec='$libname${shared_ext}.$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 fi
11205 ;;
11206
11207uts4*)
11208 version_type=linux
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 ;;
11213
11214*)
11215 dynamic_linker=no
11216 ;;
11217esac
11218echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11219echo "${ECHO_T}$dynamic_linker" >&6
11220test "$dynamic_linker" = no && can_build_shared=no
11221
11222if test "x$enable_dlopen" != xyes; then
11223 enable_dlopen=unknown
11224 enable_dlopen_self=unknown
11225 enable_dlopen_self_static=unknown
11226else
11227 lt_cv_dlopen=no
11228 lt_cv_dlopen_libs=
11229
11230 case $host_os in
11231 beos*)
11232 lt_cv_dlopen="load_add_on"
11233 lt_cv_dlopen_libs=
11234 lt_cv_dlopen_self=yes
11235 ;;
11236
11237 mingw* | pw32*)
11238 lt_cv_dlopen="LoadLibrary"
11239 lt_cv_dlopen_libs=
11240 ;;
11241
11242 cygwin*)
11243 lt_cv_dlopen="dlopen"
11244 lt_cv_dlopen_libs=
11245 ;;
11246
11247 darwin*)
11248 # if libdl is installed we need to link against it
11249 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11250echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11251if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254 ac_check_lib_save_LIBS=$LIBS
11255LIBS="-ldl $LIBS"
11256cat >conftest.$ac_ext <<_ACEOF
11257#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011263
11264/* Override any gcc2 internal prototype to avoid an error. */
11265#ifdef __cplusplus
11266extern "C"
11267#endif
11268/* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11270char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011271int
11272main ()
11273{
11274dlopen ();
11275 ;
11276 return 0;
11277}
11278_ACEOF
11279rm -f conftest.$ac_objext conftest$ac_exeext
11280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_lib_dl_dlopen=yes
11292else
11293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011294sed 's/^/| /' conftest.$ac_ext >&5
11295
John Criswell47fdd832003-07-14 16:52:07 +000011296ac_cv_lib_dl_dlopen=no
11297fi
11298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299LIBS=$ac_check_lib_save_LIBS
11300fi
11301echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11303if test $ac_cv_lib_dl_dlopen = yes; then
11304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305else
11306
11307 lt_cv_dlopen="dyld"
11308 lt_cv_dlopen_libs=
11309 lt_cv_dlopen_self=yes
11310
11311fi
11312
11313 ;;
11314
11315 *)
11316 echo "$as_me:$LINENO: checking for shl_load" >&5
11317echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11318if test "${ac_cv_func_shl_load+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321 cat >conftest.$ac_ext <<_ACEOF
11322#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011323/* confdefs.h. */
11324_ACEOF
11325cat confdefs.h >>conftest.$ac_ext
11326cat >>conftest.$ac_ext <<_ACEOF
11327/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011328/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011329 which can conflict with char shl_load (); below.
11330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331 <limits.h> exists even on freestanding compilers. */
11332#ifdef __STDC__
11333# include <limits.h>
11334#else
11335# include <assert.h>
11336#endif
John Criswell47fdd832003-07-14 16:52:07 +000011337/* Override any gcc2 internal prototype to avoid an error. */
11338#ifdef __cplusplus
11339extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011340{
John Criswell47fdd832003-07-14 16:52:07 +000011341#endif
11342/* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11344char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011345/* The GNU C library defines this for functions which it implements
11346 to always fail with ENOSYS. Some functions are actually named
11347 something starting with __ and the normal name is an alias. */
11348#if defined (__stub_shl_load) || defined (__stub___shl_load)
11349choke me
11350#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011351char (*f) () = shl_load;
11352#endif
11353#ifdef __cplusplus
11354}
John Criswell47fdd832003-07-14 16:52:07 +000011355#endif
11356
John Criswell0c38eaf2003-09-10 15:17:25 +000011357int
11358main ()
11359{
11360return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011361 ;
11362 return 0;
11363}
11364_ACEOF
11365rm -f conftest.$ac_objext conftest$ac_exeext
11366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367 (eval $ac_link) 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } &&
11371 { ac_try='test -s conftest$ac_exeext'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 ac_cv_func_shl_load=yes
11378else
11379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011380sed 's/^/| /' conftest.$ac_ext >&5
11381
John Criswell47fdd832003-07-14 16:52:07 +000011382ac_cv_func_shl_load=no
11383fi
11384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11385fi
11386echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11387echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11388if test $ac_cv_func_shl_load = yes; then
11389 lt_cv_dlopen="shl_load"
11390else
11391 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11392echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11393if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 ac_check_lib_save_LIBS=$LIBS
11397LIBS="-ldld $LIBS"
11398cat >conftest.$ac_ext <<_ACEOF
11399#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011400/* confdefs.h. */
11401_ACEOF
11402cat confdefs.h >>conftest.$ac_ext
11403cat >>conftest.$ac_ext <<_ACEOF
11404/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011405
11406/* Override any gcc2 internal prototype to avoid an error. */
11407#ifdef __cplusplus
11408extern "C"
11409#endif
11410/* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11412char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011413int
11414main ()
11415{
11416shl_load ();
11417 ;
11418 return 0;
11419}
11420_ACEOF
11421rm -f conftest.$ac_objext conftest$ac_exeext
11422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423 (eval $ac_link) 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -s conftest$ac_exeext'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 ac_cv_lib_dld_shl_load=yes
11434else
11435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011436sed 's/^/| /' conftest.$ac_ext >&5
11437
John Criswell47fdd832003-07-14 16:52:07 +000011438ac_cv_lib_dld_shl_load=no
11439fi
11440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11441LIBS=$ac_check_lib_save_LIBS
11442fi
11443echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11444echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11445if test $ac_cv_lib_dld_shl_load = yes; then
11446 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11447else
11448 echo "$as_me:$LINENO: checking for dlopen" >&5
11449echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11450if test "${ac_cv_func_dlopen+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453 cat >conftest.$ac_ext <<_ACEOF
11454#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011455/* confdefs.h. */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011460/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011461 which can conflict with char dlopen (); below.
11462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11463 <limits.h> exists even on freestanding compilers. */
11464#ifdef __STDC__
11465# include <limits.h>
11466#else
11467# include <assert.h>
11468#endif
John Criswell47fdd832003-07-14 16:52:07 +000011469/* Override any gcc2 internal prototype to avoid an error. */
11470#ifdef __cplusplus
11471extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011472{
John Criswell47fdd832003-07-14 16:52:07 +000011473#endif
11474/* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11476char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011477/* The GNU C library defines this for functions which it implements
11478 to always fail with ENOSYS. Some functions are actually named
11479 something starting with __ and the normal name is an alias. */
11480#if defined (__stub_dlopen) || defined (__stub___dlopen)
11481choke me
11482#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011483char (*f) () = dlopen;
11484#endif
11485#ifdef __cplusplus
11486}
John Criswell47fdd832003-07-14 16:52:07 +000011487#endif
11488
John Criswell0c38eaf2003-09-10 15:17:25 +000011489int
11490main ()
11491{
11492return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011493 ;
11494 return 0;
11495}
11496_ACEOF
11497rm -f conftest.$ac_objext conftest$ac_exeext
11498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_func_dlopen=yes
11510else
11511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011512sed 's/^/| /' conftest.$ac_ext >&5
11513
John Criswell47fdd832003-07-14 16:52:07 +000011514ac_cv_func_dlopen=no
11515fi
11516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11517fi
11518echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11519echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11520if test $ac_cv_func_dlopen = yes; then
11521 lt_cv_dlopen="dlopen"
11522else
11523 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11524echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11525if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527else
11528 ac_check_lib_save_LIBS=$LIBS
11529LIBS="-ldl $LIBS"
11530cat >conftest.$ac_ext <<_ACEOF
11531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011532/* confdefs.h. */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011537
11538/* Override any gcc2 internal prototype to avoid an error. */
11539#ifdef __cplusplus
11540extern "C"
11541#endif
11542/* We use char because int might match the return type of a gcc2
11543 builtin and then its argument prototype would still apply. */
11544char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011545int
11546main ()
11547{
11548dlopen ();
11549 ;
11550 return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext conftest$ac_exeext
11554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -s conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_lib_dl_dlopen=yes
11566else
11567 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011568sed 's/^/| /' conftest.$ac_ext >&5
11569
John Criswell47fdd832003-07-14 16:52:07 +000011570ac_cv_lib_dl_dlopen=no
11571fi
11572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11573LIBS=$ac_check_lib_save_LIBS
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11576echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11577if test $ac_cv_lib_dl_dlopen = yes; then
11578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11579else
11580 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11581echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11582if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584else
11585 ac_check_lib_save_LIBS=$LIBS
11586LIBS="-lsvld $LIBS"
11587cat >conftest.$ac_ext <<_ACEOF
11588#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011594
11595/* Override any gcc2 internal prototype to avoid an error. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599/* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11601char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011602int
11603main ()
11604{
11605dlopen ();
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_lib_svld_dlopen=yes
11623else
11624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011625sed 's/^/| /' conftest.$ac_ext >&5
11626
John Criswell47fdd832003-07-14 16:52:07 +000011627ac_cv_lib_svld_dlopen=no
11628fi
11629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630LIBS=$ac_check_lib_save_LIBS
11631fi
11632echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11633echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11634if test $ac_cv_lib_svld_dlopen = yes; then
11635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636else
11637 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11638echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11639if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641else
11642 ac_check_lib_save_LIBS=$LIBS
11643LIBS="-ldld $LIBS"
11644cat >conftest.$ac_ext <<_ACEOF
11645#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011651
11652/* Override any gcc2 internal prototype to avoid an error. */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656/* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011659int
11660main ()
11661{
11662dld_link ();
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest$ac_exeext
11668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11679 ac_cv_lib_dld_dld_link=yes
11680else
11681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011682sed 's/^/| /' conftest.$ac_ext >&5
11683
John Criswell47fdd832003-07-14 16:52:07 +000011684ac_cv_lib_dld_dld_link=no
11685fi
11686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11687LIBS=$ac_check_lib_save_LIBS
11688fi
11689echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11690echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11691if test $ac_cv_lib_dld_dld_link = yes; then
11692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11693fi
11694
11695
11696fi
11697
11698
11699fi
11700
11701
11702fi
11703
11704
11705fi
11706
11707
11708fi
11709
11710 ;;
11711 esac
11712
11713 if test "x$lt_cv_dlopen" != xno; then
11714 enable_dlopen=yes
11715 else
11716 enable_dlopen=no
11717 fi
11718
11719 case $lt_cv_dlopen in
11720 dlopen)
11721 save_CPPFLAGS="$CPPFLAGS"
11722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11723
11724 save_LDFLAGS="$LDFLAGS"
11725 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11726
11727 save_LIBS="$LIBS"
11728 LIBS="$lt_cv_dlopen_libs $LIBS"
11729
11730 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11731echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11732if test "${lt_cv_dlopen_self+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 if test "$cross_compiling" = yes; then :
11736 lt_cv_dlopen_self=cross
11737else
11738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739 lt_status=$lt_dlunknown
11740 cat > conftest.$ac_ext <<EOF
John Criswell0538d422004-02-20 22:30:22 +000011741#line 11741 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011742#include "confdefs.h"
11743
11744#if HAVE_DLFCN_H
11745#include <dlfcn.h>
11746#endif
11747
11748#include <stdio.h>
11749
11750#ifdef RTLD_GLOBAL
11751# define LT_DLGLOBAL RTLD_GLOBAL
11752#else
11753# ifdef DL_GLOBAL
11754# define LT_DLGLOBAL DL_GLOBAL
11755# else
11756# define LT_DLGLOBAL 0
11757# endif
11758#endif
11759
11760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762#ifndef LT_DLLAZY_OR_NOW
11763# ifdef RTLD_LAZY
11764# define LT_DLLAZY_OR_NOW RTLD_LAZY
11765# else
11766# ifdef DL_LAZY
11767# define LT_DLLAZY_OR_NOW DL_LAZY
11768# else
11769# ifdef RTLD_NOW
11770# define LT_DLLAZY_OR_NOW RTLD_NOW
11771# else
11772# ifdef DL_NOW
11773# define LT_DLLAZY_OR_NOW DL_NOW
11774# else
11775# define LT_DLLAZY_OR_NOW 0
11776# endif
11777# endif
11778# endif
11779# endif
11780#endif
11781
11782#ifdef __cplusplus
11783extern "C" void exit (int);
11784#endif
11785
11786void fnord() { int i=42;}
11787int main ()
11788{
11789 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11790 int status = $lt_dlunknown;
11791
11792 if (self)
11793 {
11794 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11795 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11796 /* dlclose (self); */
11797 }
11798
11799 exit (status);
11800}
11801EOF
11802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803 (eval $ac_link) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11807 (./conftest; exit; ) 2>/dev/null
11808 lt_status=$?
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11813 esac
11814 else :
11815 # compilation failed
11816 lt_cv_dlopen_self=no
11817 fi
11818fi
11819rm -fr conftest*
11820
11821
11822fi
11823echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11824echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11825
11826 if test "x$lt_cv_dlopen_self" = xyes; then
11827 LDFLAGS="$LDFLAGS $link_static_flag"
11828 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11829echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11830if test "${lt_cv_dlopen_self_static+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832else
11833 if test "$cross_compiling" = yes; then :
11834 lt_cv_dlopen_self_static=cross
11835else
11836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837 lt_status=$lt_dlunknown
11838 cat > conftest.$ac_ext <<EOF
John Criswell0538d422004-02-20 22:30:22 +000011839#line 11839 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011840#include "confdefs.h"
11841
11842#if HAVE_DLFCN_H
11843#include <dlfcn.h>
11844#endif
11845
11846#include <stdio.h>
11847
11848#ifdef RTLD_GLOBAL
11849# define LT_DLGLOBAL RTLD_GLOBAL
11850#else
11851# ifdef DL_GLOBAL
11852# define LT_DLGLOBAL DL_GLOBAL
11853# else
11854# define LT_DLGLOBAL 0
11855# endif
11856#endif
11857
11858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859 find out it does not work in some platform. */
11860#ifndef LT_DLLAZY_OR_NOW
11861# ifdef RTLD_LAZY
11862# define LT_DLLAZY_OR_NOW RTLD_LAZY
11863# else
11864# ifdef DL_LAZY
11865# define LT_DLLAZY_OR_NOW DL_LAZY
11866# else
11867# ifdef RTLD_NOW
11868# define LT_DLLAZY_OR_NOW RTLD_NOW
11869# else
11870# ifdef DL_NOW
11871# define LT_DLLAZY_OR_NOW DL_NOW
11872# else
11873# define LT_DLLAZY_OR_NOW 0
11874# endif
11875# endif
11876# endif
11877# endif
11878#endif
11879
11880#ifdef __cplusplus
11881extern "C" void exit (int);
11882#endif
11883
11884void fnord() { int i=42;}
11885int main ()
11886{
11887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11888 int status = $lt_dlunknown;
11889
11890 if (self)
11891 {
11892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11893 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11894 /* dlclose (self); */
11895 }
11896
11897 exit (status);
11898}
11899EOF
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901 (eval $ac_link) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11905 (./conftest; exit; ) 2>/dev/null
11906 lt_status=$?
11907 case x$lt_status in
11908 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11911 esac
11912 else :
11913 # compilation failed
11914 lt_cv_dlopen_self_static=no
11915 fi
11916fi
11917rm -fr conftest*
11918
11919
11920fi
11921echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11922echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11923 fi
11924
11925 CPPFLAGS="$save_CPPFLAGS"
11926 LDFLAGS="$save_LDFLAGS"
11927 LIBS="$save_LIBS"
11928 ;;
11929 esac
11930
11931 case $lt_cv_dlopen_self in
11932 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933 *) enable_dlopen_self=unknown ;;
11934 esac
11935
11936 case $lt_cv_dlopen_self_static in
11937 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938 *) enable_dlopen_self_static=unknown ;;
11939 esac
11940fi
11941
11942
11943# The else clause should only fire when bootstrapping the
11944# libtool distribution, otherwise you forgot to ship ltmain.sh
11945# with your package, and you will get complaints that there are
11946# no rules to generate ltmain.sh.
11947if test -f "$ltmain"; then
11948 # See if we are running on zsh, and set the options which allow our commands through
11949 # without removal of \ escapes.
11950 if test -n "${ZSH_VERSION+set}" ; then
11951 setopt NO_GLOB_SUBST
11952 fi
11953 # Now quote all the things that may contain metacharacters while being
11954 # careful not to overquote the AC_SUBSTed values. We take copies of the
11955 # variables and quote the copies for generation of the libtool script.
11956 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11959 deplibs_check_method reload_flag reload_cmds need_locks \
11960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11961 lt_cv_sys_global_symbol_to_c_name_address \
11962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11963 old_postinstall_cmds old_postuninstall_cmds \
11964 compiler_CXX \
11965 CC_CXX \
11966 LD_CXX \
11967 lt_prog_compiler_wl_CXX \
11968 lt_prog_compiler_pic_CXX \
11969 lt_prog_compiler_static_CXX \
11970 lt_prog_compiler_no_builtin_flag_CXX \
11971 export_dynamic_flag_spec_CXX \
11972 thread_safe_flag_spec_CXX \
11973 whole_archive_flag_spec_CXX \
11974 enable_shared_with_static_runtimes_CXX \
11975 old_archive_cmds_CXX \
11976 old_archive_from_new_cmds_CXX \
11977 predep_objects_CXX \
11978 postdep_objects_CXX \
11979 predeps_CXX \
11980 postdeps_CXX \
11981 compiler_lib_search_path_CXX \
11982 archive_cmds_CXX \
11983 archive_expsym_cmds_CXX \
11984 postinstall_cmds_CXX \
11985 postuninstall_cmds_CXX \
11986 old_archive_from_expsyms_cmds_CXX \
11987 allow_undefined_flag_CXX \
11988 no_undefined_flag_CXX \
11989 export_symbols_cmds_CXX \
11990 hardcode_libdir_flag_spec_CXX \
11991 hardcode_libdir_flag_spec_ld_CXX \
11992 hardcode_libdir_separator_CXX \
11993 hardcode_automatic_CXX \
11994 module_cmds_CXX \
11995 module_expsym_cmds_CXX \
11996 lt_cv_prog_compiler_c_o_CXX \
11997 exclude_expsyms_CXX \
11998 include_expsyms_CXX; do
11999
12000 case $var in
12001 old_archive_cmds_CXX | \
12002 old_archive_from_new_cmds_CXX | \
12003 archive_cmds_CXX | \
12004 archive_expsym_cmds_CXX | \
12005 module_cmds_CXX | \
12006 module_expsym_cmds_CXX | \
12007 old_archive_from_expsyms_cmds_CXX | \
12008 export_symbols_cmds_CXX | \
12009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12010 postinstall_cmds | postuninstall_cmds | \
12011 old_postinstall_cmds | old_postuninstall_cmds | \
12012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12013 # Double-quote double-evaled strings.
12014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12015 ;;
12016 *)
12017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12018 ;;
12019 esac
12020 done
12021
12022 case $lt_echo in
12023 *'\$0 --fallback-echo"')
12024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12025 ;;
12026 esac
12027
12028cfgfile="$ofile"
12029
12030 cat <<__EOF__ >> "$cfgfile"
12031# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12032
12033# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12034
12035# Shell to use when invoking shell scripts.
12036SHELL=$lt_SHELL
12037
12038# Whether or not to build shared libraries.
12039build_libtool_libs=$enable_shared
12040
12041# Whether or not to build static libraries.
12042build_old_libs=$enable_static
12043
12044# Whether or not to add -lc for building shared libraries.
12045build_libtool_need_lc=$archive_cmds_need_lc_CXX
12046
12047# Whether or not to disallow shared libs when runtime libs are static
12048allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12049
12050# Whether or not to optimize for fast installation.
12051fast_install=$enable_fast_install
12052
12053# The host system.
12054host_alias=$host_alias
12055host=$host
12056
12057# An echo program that does not interpret backslashes.
12058echo=$lt_echo
12059
12060# The archiver.
12061AR=$lt_AR
12062AR_FLAGS=$lt_AR_FLAGS
12063
12064# A C compiler.
12065LTCC=$lt_LTCC
12066
12067# A language-specific compiler.
12068CC=$lt_compiler_CXX
12069
12070# Is the compiler the GNU C compiler?
12071with_gcc=$GCC_CXX
12072
12073# An ERE matcher.
12074EGREP=$lt_EGREP
12075
12076# The linker used to build libraries.
12077LD=$lt_LD_CXX
12078
12079# Whether we need hard or soft links.
12080LN_S=$lt_LN_S
12081
12082# A BSD-compatible nm program.
12083NM=$lt_NM
12084
12085# A symbol stripping program
12086STRIP=$STRIP
12087
12088# Used to examine libraries when file_magic_cmd begins "file"
12089MAGIC_CMD=$MAGIC_CMD
12090
12091# Used on cygwin: DLL creation program.
12092DLLTOOL="$DLLTOOL"
12093
12094# Used on cygwin: object dumper.
12095OBJDUMP="$OBJDUMP"
12096
12097# Used on cygwin: assembler.
12098AS="$AS"
12099
12100# The name of the directory that contains temporary libtool files.
12101objdir=$objdir
12102
12103# How to create reloadable object files.
12104reload_flag=$lt_reload_flag
12105reload_cmds=$lt_reload_cmds
12106
12107# How to pass a linker flag through the compiler.
12108wl=$lt_lt_prog_compiler_wl_CXX
12109
12110# Object file suffix (normally "o").
12111objext="$ac_objext"
12112
12113# Old archive suffix (normally "a").
12114libext="$libext"
12115
12116# Shared library suffix (normally ".so").
12117shrext='$shrext'
12118
12119# Executable file suffix (normally "").
12120exeext="$exeext"
12121
12122# Additional compiler flags for building library objects.
12123pic_flag=$lt_lt_prog_compiler_pic_CXX
12124pic_mode=$pic_mode
12125
12126# What is the maximum length of a command?
12127max_cmd_len=$lt_cv_sys_max_cmd_len
12128
12129# Does compiler simultaneously support -c and -o options?
12130compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12131
12132# Must we lock files when doing compilation ?
12133need_locks=$lt_need_locks
12134
12135# Do we need the lib prefix for modules?
12136need_lib_prefix=$need_lib_prefix
12137
12138# Do we need a version for libraries?
12139need_version=$need_version
12140
12141# Whether dlopen is supported.
12142dlopen_support=$enable_dlopen
12143
12144# Whether dlopen of programs is supported.
12145dlopen_self=$enable_dlopen_self
12146
12147# Whether dlopen of statically linked programs is supported.
12148dlopen_self_static=$enable_dlopen_self_static
12149
12150# Compiler flag to prevent dynamic linking.
12151link_static_flag=$lt_lt_prog_compiler_static_CXX
12152
12153# Compiler flag to turn off builtin functions.
12154no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12155
12156# Compiler flag to allow reflexive dlopens.
12157export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12158
12159# Compiler flag to generate shared objects directly from archives.
12160whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12161
12162# Compiler flag to generate thread-safe objects.
12163thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12164
12165# Library versioning type.
12166version_type=$version_type
12167
12168# Format of library name prefix.
12169libname_spec=$lt_libname_spec
12170
12171# List of archive names. First name is the real one, the rest are links.
12172# The last name is the one that the linker finds with -lNAME.
12173library_names_spec=$lt_library_names_spec
12174
12175# The coded name of the library, if different from the real name.
12176soname_spec=$lt_soname_spec
12177
12178# Commands used to build and install an old-style archive.
12179RANLIB=$lt_RANLIB
12180old_archive_cmds=$lt_old_archive_cmds_CXX
12181old_postinstall_cmds=$lt_old_postinstall_cmds
12182old_postuninstall_cmds=$lt_old_postuninstall_cmds
12183
12184# Create an old-style archive from a shared archive.
12185old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12186
12187# Create a temporary old-style archive to link instead of a shared archive.
12188old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12189
12190# Commands used to build and install a shared archive.
12191archive_cmds=$lt_archive_cmds_CXX
12192archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12193postinstall_cmds=$lt_postinstall_cmds
12194postuninstall_cmds=$lt_postuninstall_cmds
12195
12196# Commands used to build a loadable module (assumed same as above if empty)
12197module_cmds=$lt_module_cmds_CXX
12198module_expsym_cmds=$lt_module_expsym_cmds_CXX
12199
12200# Commands to strip libraries.
12201old_striplib=$lt_old_striplib
12202striplib=$lt_striplib
12203
12204# Dependencies to place before the objects being linked to create a
12205# shared library.
12206predep_objects=$lt_predep_objects_CXX
12207
12208# Dependencies to place after the objects being linked to create a
12209# shared library.
12210postdep_objects=$lt_postdep_objects_CXX
12211
12212# Dependencies to place before the objects being linked to create a
12213# shared library.
12214predeps=$lt_predeps_CXX
12215
12216# Dependencies to place after the objects being linked to create a
12217# shared library.
12218postdeps=$lt_postdeps_CXX
12219
12220# The library search path used internally by the compiler when linking
12221# a shared library.
12222compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12223
12224# Method to check whether dependent libraries are shared objects.
12225deplibs_check_method=$lt_deplibs_check_method
12226
12227# Command to use when deplibs_check_method == file_magic.
12228file_magic_cmd=$lt_file_magic_cmd
12229
12230# Flag that allows shared libraries with undefined symbols to be built.
12231allow_undefined_flag=$lt_allow_undefined_flag_CXX
12232
12233# Flag that forces no undefined symbols.
12234no_undefined_flag=$lt_no_undefined_flag_CXX
12235
12236# Commands used to finish a libtool library installation in a directory.
12237finish_cmds=$lt_finish_cmds
12238
12239# Same as above, but a single script fragment to be evaled but not shown.
12240finish_eval=$lt_finish_eval
12241
12242# Take the output of nm and produce a listing of raw symbols and C names.
12243global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12244
12245# Transform the output of nm in a proper C declaration
12246global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12247
12248# Transform the output of nm in a C name address pair
12249global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12250
12251# This is the shared library runtime path variable.
12252runpath_var=$runpath_var
12253
12254# This is the shared library path variable.
12255shlibpath_var=$shlibpath_var
12256
12257# Is shlibpath searched before the hard-coded library search path?
12258shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12259
12260# How to hardcode a shared library path into an executable.
12261hardcode_action=$hardcode_action_CXX
12262
12263# Whether we should hardcode library paths into libraries.
12264hardcode_into_libs=$hardcode_into_libs
12265
12266# Flag to hardcode \$libdir into a binary during linking.
12267# This must work even if \$libdir does not exist.
12268hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12269
12270# If ld is used when linking, flag to hardcode \$libdir into
12271# a binary during linking. This must work even if \$libdir does
12272# not exist.
12273hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12274
12275# Whether we need a single -rpath flag with a separated argument.
12276hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12277
12278# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12279# resulting binary.
12280hardcode_direct=$hardcode_direct_CXX
12281
12282# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12283# resulting binary.
12284hardcode_minus_L=$hardcode_minus_L_CXX
12285
12286# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12287# the resulting binary.
12288hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12289
12290# Set to yes if building a shared library automatically hardcodes DIR into the library
12291# and all subsequent libraries and executables linked against it.
12292hardcode_automatic=$hardcode_automatic_CXX
12293
12294# Variables whose values should be saved in libtool wrapper scripts and
12295# restored at relink time.
12296variables_saved_for_relink="$variables_saved_for_relink"
12297
12298# Whether libtool must link a program against all its dependency libraries.
12299link_all_deplibs=$link_all_deplibs_CXX
12300
12301# Compile-time system search path for libraries
12302sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12303
12304# Run-time system search path for libraries
12305sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12306
12307# Fix the shell variable \$srcfile for the compiler.
12308fix_srcfile_path="$fix_srcfile_path_CXX"
12309
12310# Set to yes if exported symbols are required.
12311always_export_symbols=$always_export_symbols_CXX
12312
12313# The commands to list exported symbols.
12314export_symbols_cmds=$lt_export_symbols_cmds_CXX
12315
12316# The commands to extract the exported symbol list from a shared archive.
12317extract_expsyms_cmds=$lt_extract_expsyms_cmds
12318
12319# Symbols that should not be listed in the preloaded symbols.
12320exclude_expsyms=$lt_exclude_expsyms_CXX
12321
12322# Symbols that must always be exported.
12323include_expsyms=$lt_include_expsyms_CXX
12324
12325# ### END LIBTOOL TAG CONFIG: $tagname
12326
12327__EOF__
12328
12329
12330else
12331 # If there is no Makefile yet, we rely on a make rule to execute
12332 # `config.status --recheck' to rerun these tests and create the
12333 # libtool script then.
12334 test -f Makefile && make "$ltmain"
12335fi
12336
12337
12338ac_ext=c
12339ac_cpp='$CPP $CPPFLAGS'
12340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12342ac_compiler_gnu=$ac_cv_c_compiler_gnu
12343
12344CC=$lt_save_CC
12345LDCXX=$LD
12346LD=$lt_save_LD
12347GCC=$lt_save_GCC
12348with_gnu_ldcxx=$with_gnu_ld
12349with_gnu_ld=$lt_save_with_gnu_ld
12350lt_cv_path_LDCXX=$lt_cv_path_LD
12351lt_cv_path_LD=$lt_save_path_LD
12352lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12353lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12354
12355 else
12356 tagname=""
12357 fi
12358 ;;
12359
12360 F77)
12361 if test -n "$F77" && test "X$F77" != "Xno"; then
12362
12363ac_ext=f
12364ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12365ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12367
12368
12369archive_cmds_need_lc_F77=no
12370allow_undefined_flag_F77=
12371always_export_symbols_F77=no
12372archive_expsym_cmds_F77=
12373export_dynamic_flag_spec_F77=
12374hardcode_direct_F77=no
12375hardcode_libdir_flag_spec_F77=
12376hardcode_libdir_flag_spec_ld_F77=
12377hardcode_libdir_separator_F77=
12378hardcode_minus_L_F77=no
12379hardcode_automatic_F77=no
12380module_cmds_F77=
12381module_expsym_cmds_F77=
12382link_all_deplibs_F77=unknown
12383old_archive_cmds_F77=$old_archive_cmds
12384no_undefined_flag_F77=
12385whole_archive_flag_spec_F77=
12386enable_shared_with_static_runtimes_F77=no
12387
12388# Source file extension for f77 test sources.
12389ac_ext=f
12390
12391# Object file extension for compiled f77 test sources.
12392objext=o
12393objext_F77=$objext
12394
12395# Code to be used in simple compile tests
12396lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12397
12398# Code to be used in simple link tests
12399lt_simple_link_test_code=" program t\n end\n"
12400
12401# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12402
12403# If no C compiler was specified, use CC.
12404LTCC=${LTCC-"$CC"}
12405
12406# Allow CC to be a program name with arguments.
12407compiler=$CC
12408
12409
12410# Allow CC to be a program name with arguments.
12411lt_save_CC="$CC"
12412CC=${F77-"f77"}
12413compiler=$CC
12414compiler_F77=$CC
12415cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12416
12417echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12418echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12419echo "$as_me:$LINENO: result: $can_build_shared" >&5
12420echo "${ECHO_T}$can_build_shared" >&6
12421
12422echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12423echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12424test "$can_build_shared" = "no" && enable_shared=no
12425
12426# On AIX, shared libraries and static libraries use the same namespace, and
12427# are all built from PIC.
12428case "$host_os" in
12429aix3*)
12430 test "$enable_shared" = yes && enable_static=no
12431 if test -n "$RANLIB"; then
12432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12433 postinstall_cmds='$RANLIB $lib'
12434 fi
12435 ;;
12436aix4*)
12437 test "$enable_shared" = yes && enable_static=no
12438 ;;
12439esac
12440echo "$as_me:$LINENO: result: $enable_shared" >&5
12441echo "${ECHO_T}$enable_shared" >&6
12442
12443echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12445# Make sure either enable_shared or enable_static is yes.
12446test "$enable_shared" = yes || enable_static=yes
12447echo "$as_me:$LINENO: result: $enable_static" >&5
12448echo "${ECHO_T}$enable_static" >&6
12449
12450test "$ld_shlibs_F77" = no && can_build_shared=no
12451
12452GCC_F77="$G77"
12453LD_F77="$LD"
12454
12455lt_prog_compiler_wl_F77=
12456lt_prog_compiler_pic_F77=
12457lt_prog_compiler_static_F77=
12458
12459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12461
12462 if test "$GCC" = yes; then
12463 lt_prog_compiler_wl_F77='-Wl,'
12464 lt_prog_compiler_static_F77='-static'
12465
12466 case $host_os in
12467 aix*)
12468 # All AIX code is PIC.
12469 if test "$host_cpu" = ia64; then
12470 # AIX 5 now supports IA64 processor
12471 lt_prog_compiler_static_F77='-Bstatic'
12472 fi
12473 ;;
12474
12475 amigaos*)
12476 # FIXME: we need at least 68020 code to build shared libraries, but
12477 # adding the `-m68020' flag to GCC prevents building anything better,
12478 # like `-m68040'.
12479 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12480 ;;
12481
12482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12483 # PIC is the default for these OSes.
12484 ;;
12485
12486 mingw* | pw32* | os2*)
12487 # This hack is so that the source file can tell whether it is being
12488 # built for inclusion in a dll (and should export symbols for example).
12489 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12490 ;;
12491
12492 darwin* | rhapsody*)
12493 # PIC is the default on this platform
12494 # Common symbols not allowed in MH_DYLIB files
12495 lt_prog_compiler_pic_F77='-fno-common'
12496 ;;
12497
12498 msdosdjgpp*)
12499 # Just because we use GCC doesn't mean we suddenly get shared libraries
12500 # on systems that don't support them.
12501 lt_prog_compiler_can_build_shared_F77=no
12502 enable_shared=no
12503 ;;
12504
12505 sysv4*MP*)
12506 if test -d /usr/nec; then
12507 lt_prog_compiler_pic_F77=-Kconform_pic
12508 fi
12509 ;;
12510
12511 hpux*)
12512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12513 # not for PA HP-UX.
12514 case "$host_cpu" in
12515 hppa*64*|ia64*)
12516 # +Z the default
12517 ;;
12518 *)
12519 lt_prog_compiler_pic_F77='-fPIC'
12520 ;;
12521 esac
12522 ;;
12523
12524 *)
12525 lt_prog_compiler_pic_F77='-fPIC'
12526 ;;
12527 esac
12528 else
12529 # PORTME Check for flag to pass linker flags through the system compiler.
12530 case $host_os in
12531 aix*)
12532 lt_prog_compiler_wl_F77='-Wl,'
12533 if test "$host_cpu" = ia64; then
12534 # AIX 5 now supports IA64 processor
12535 lt_prog_compiler_static_F77='-Bstatic'
12536 else
12537 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12538 fi
12539 ;;
12540
12541 mingw* | pw32* | os2*)
12542 # This hack is so that the source file can tell whether it is being
12543 # built for inclusion in a dll (and should export symbols for example).
12544 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12545 ;;
12546
12547 hpux9* | hpux10* | hpux11*)
12548 lt_prog_compiler_wl_F77='-Wl,'
12549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12550 # not for PA HP-UX.
12551 case "$host_cpu" in
12552 hppa*64*|ia64*)
12553 # +Z the default
12554 ;;
12555 *)
12556 lt_prog_compiler_pic_F77='+Z'
12557 ;;
12558 esac
12559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12560 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12561 ;;
12562
12563 irix5* | irix6* | nonstopux*)
12564 lt_prog_compiler_wl_F77='-Wl,'
12565 # PIC (with -KPIC) is the default.
12566 lt_prog_compiler_static_F77='-non_shared'
12567 ;;
12568
12569 newsos6)
12570 lt_prog_compiler_pic_F77='-KPIC'
12571 lt_prog_compiler_static_F77='-Bstatic'
12572 ;;
12573
12574 linux*)
12575 case $CC in
12576 icc|ecc)
12577 lt_prog_compiler_wl_F77='-Wl,'
12578 lt_prog_compiler_pic_F77='-KPIC'
12579 lt_prog_compiler_static_F77='-static'
12580 ;;
12581 ccc)
12582 lt_prog_compiler_wl_F77='-Wl,'
12583 # All Alpha code is PIC.
12584 lt_prog_compiler_static_F77='-non_shared'
12585 ;;
12586 esac
12587 ;;
12588
12589 osf3* | osf4* | osf5*)
12590 lt_prog_compiler_wl_F77='-Wl,'
12591 # All OSF/1 code is PIC.
12592 lt_prog_compiler_static_F77='-non_shared'
12593 ;;
12594
12595 sco3.2v5*)
12596 lt_prog_compiler_pic_F77='-Kpic'
12597 lt_prog_compiler_static_F77='-dn'
12598 ;;
12599
12600 solaris*)
12601 lt_prog_compiler_wl_F77='-Wl,'
12602 lt_prog_compiler_pic_F77='-KPIC'
12603 lt_prog_compiler_static_F77='-Bstatic'
12604 ;;
12605
12606 sunos4*)
12607 lt_prog_compiler_wl_F77='-Qoption ld '
12608 lt_prog_compiler_pic_F77='-PIC'
12609 lt_prog_compiler_static_F77='-Bstatic'
12610 ;;
12611
12612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12613 lt_prog_compiler_wl_F77='-Wl,'
12614 lt_prog_compiler_pic_F77='-KPIC'
12615 lt_prog_compiler_static_F77='-Bstatic'
12616 ;;
12617
12618 sysv4*MP*)
12619 if test -d /usr/nec ;then
12620 lt_prog_compiler_pic_F77='-Kconform_pic'
12621 lt_prog_compiler_static_F77='-Bstatic'
12622 fi
12623 ;;
12624
12625 uts4*)
12626 lt_prog_compiler_pic_F77='-pic'
12627 lt_prog_compiler_static_F77='-Bstatic'
12628 ;;
12629
12630 *)
12631 lt_prog_compiler_can_build_shared_F77=no
12632 ;;
12633 esac
12634 fi
12635
12636echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12637echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12638
12639#
12640# Check to make sure the PIC flag actually works.
12641#
12642if test -n "$lt_prog_compiler_pic_F77"; then
12643 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12644echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12645if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647else
12648 lt_prog_compiler_pic_works_F77=no
12649 ac_outfile=conftest.$ac_objext
12650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12651 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12652 # Insert the option either (1) after the last *FLAGS variable, or
12653 # (2) before a word containing "conftest.", or (3) at the end.
12654 # Note that $ac_compile itself does not contain backslashes and begins
12655 # with a dollar sign (not a hyphen), so the echo should work correctly.
12656 # The option is referenced via a variable to avoid confusing sed.
12657 lt_compile=`echo "$ac_compile" | $SED \
12658 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12660 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +000012661 (eval echo "\"\$as_me:12661: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012662 (eval "$lt_compile" 2>conftest.err)
12663 ac_status=$?
12664 cat conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +000012665 echo "$as_me:12665: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012666 if (exit $ac_status) && test -s "$ac_outfile"; then
12667 # The compiler can only warn and ignore the option if not recognized
12668 # So say no if there are warnings
12669 if test ! -s conftest.err; then
12670 lt_prog_compiler_pic_works_F77=yes
12671 fi
12672 fi
12673 $rm conftest*
12674
12675fi
12676echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12677echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12678
12679if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12680 case $lt_prog_compiler_pic_F77 in
12681 "" | " "*) ;;
12682 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12683 esac
12684else
12685 lt_prog_compiler_pic_F77=
12686 lt_prog_compiler_can_build_shared_F77=no
12687fi
12688
12689fi
12690case "$host_os" in
12691 # For platforms which do not support PIC, -DPIC is meaningless:
12692 *djgpp*)
12693 lt_prog_compiler_pic_F77=
12694 ;;
12695 *)
12696 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12697 ;;
12698esac
12699
12700echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12701echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12702if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705 lt_cv_prog_compiler_c_o_F77=no
12706 $rm -r conftest 2>/dev/null
12707 mkdir conftest
12708 cd conftest
12709 mkdir out
12710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12711
12712 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12713 # that will create temporary files in the current directory regardless of
12714 # the output directory. Thus, making CWD read-only will cause this test
12715 # to fail, enabling locking or at least warning the user not to do parallel
12716 # builds.
12717 chmod -w .
12718
12719 lt_compiler_flag="-o out/conftest2.$ac_objext"
12720 # Insert the option either (1) after the last *FLAGS variable, or
12721 # (2) before a word containing "conftest.", or (3) at the end.
12722 # Note that $ac_compile itself does not contain backslashes and begins
12723 # with a dollar sign (not a hyphen), so the echo should work correctly.
12724 lt_compile=`echo "$ac_compile" | $SED \
12725 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12727 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +000012728 (eval echo "\"\$as_me:12728: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012729 (eval "$lt_compile" 2>out/conftest.err)
12730 ac_status=$?
12731 cat out/conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +000012732 echo "$as_me:12732: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12734 then
12735 # The compiler can only warn and ignore the option if not recognized
12736 # So say no if there are warnings
12737 if test ! -s out/conftest.err; then
12738 lt_cv_prog_compiler_c_o_F77=yes
12739 fi
12740 fi
12741 chmod u+w .
12742 $rm conftest* out/*
12743 rmdir out
12744 cd ..
12745 rmdir conftest
12746 $rm conftest*
12747
12748fi
12749echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12750echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12751
12752
12753hard_links="nottested"
12754if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12755 # do not overwrite the value of need_locks provided by the user
12756 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12757echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12758 hard_links=yes
12759 $rm conftest*
12760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12761 touch conftest.a
12762 ln conftest.a conftest.b 2>&5 || hard_links=no
12763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12764 echo "$as_me:$LINENO: result: $hard_links" >&5
12765echo "${ECHO_T}$hard_links" >&6
12766 if test "$hard_links" = no; then
12767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12768echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12769 need_locks=warn
12770 fi
12771else
12772 need_locks=no
12773fi
12774
12775echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12776echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12777
12778 runpath_var=
12779 allow_undefined_flag_F77=
12780 enable_shared_with_static_runtimes_F77=no
12781 archive_cmds_F77=
12782 archive_expsym_cmds_F77=
12783 old_archive_From_new_cmds_F77=
12784 old_archive_from_expsyms_cmds_F77=
12785 export_dynamic_flag_spec_F77=
12786 whole_archive_flag_spec_F77=
12787 thread_safe_flag_spec_F77=
12788 hardcode_libdir_flag_spec_F77=
12789 hardcode_libdir_flag_spec_ld_F77=
12790 hardcode_libdir_separator_F77=
12791 hardcode_direct_F77=no
12792 hardcode_minus_L_F77=no
12793 hardcode_shlibpath_var_F77=unsupported
12794 link_all_deplibs_F77=unknown
12795 hardcode_automatic_F77=no
12796 module_cmds_F77=
12797 module_expsym_cmds_F77=
12798 always_export_symbols_F77=no
12799 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12800 # include_expsyms should be a list of space-separated symbols to be *always*
12801 # included in the symbol list
12802 include_expsyms_F77=
12803 # exclude_expsyms can be an extended regexp of symbols to exclude
12804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12806 # as well as any symbol that contains `d'.
12807 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12809 # platforms (ab)use it in PIC code, but their linkers get confused if
12810 # the symbol is explicitly referenced. Since portable code cannot
12811 # rely on this symbol name, it's probably fine to never include it in
12812 # preloaded symbol tables.
12813 extract_expsyms_cmds=
12814
12815 case $host_os in
12816 cygwin* | mingw* | pw32*)
12817 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12818 # When not using gcc, we currently assume that we are using
12819 # Microsoft Visual C++.
12820 if test "$GCC" != yes; then
12821 with_gnu_ld=no
12822 fi
12823 ;;
12824 openbsd*)
12825 with_gnu_ld=no
12826 ;;
12827 esac
12828
12829 ld_shlibs_F77=yes
12830 if test "$with_gnu_ld" = yes; then
12831 # If archive_cmds runs LD, not CC, wlarc should be empty
12832 wlarc='${wl}'
12833
12834 # See if GNU ld supports shared libraries.
12835 case $host_os in
12836 aix3* | aix4* | aix5*)
12837 # On AIX/PPC, the GNU linker is very broken
12838 if test "$host_cpu" != ia64; then
12839 ld_shlibs_F77=no
12840 cat <<EOF 1>&2
12841
12842*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12843*** to be unable to reliably create shared libraries on AIX.
12844*** Therefore, libtool is disabling shared libraries support. If you
12845*** really care for shared libraries, you may want to modify your PATH
12846*** so that a non-GNU linker is found, and then restart.
12847
12848EOF
12849 fi
12850 ;;
12851
12852 amigaos*)
12853 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)'
12854 hardcode_libdir_flag_spec_F77='-L$libdir'
12855 hardcode_minus_L_F77=yes
12856
12857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12858 # that the semantics of dynamic libraries on AmigaOS, at least up
12859 # to version 4, is to share data among multiple programs linked
12860 # with the same dynamic library. Since this doesn't match the
12861 # behavior of shared libraries on other platforms, we can't use
12862 # them.
12863 ld_shlibs_F77=no
12864 ;;
12865
12866 beos*)
12867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12868 allow_undefined_flag_F77=unsupported
12869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12870 # support --undefined. This deserves some investigation. FIXME
12871 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12872 else
12873 ld_shlibs_F77=no
12874 fi
12875 ;;
12876
12877 cygwin* | mingw* | pw32*)
12878 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12879 # as there is no search path for DLLs.
12880 hardcode_libdir_flag_spec_F77='-L$libdir'
12881 allow_undefined_flag_F77=unsupported
12882 always_export_symbols_F77=no
12883 enable_shared_with_static_runtimes_F77=yes
12884 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12885
12886 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12887 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12888 # If the export-symbols file already is a .def file (1st line
12889 # is EXPORTS), use it as is; otherwise, prepend...
12890 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12891 cp $export_symbols $output_objdir/$soname.def;
12892 else
12893 echo EXPORTS > $output_objdir/$soname.def;
12894 cat $export_symbols >> $output_objdir/$soname.def;
12895 fi~
12896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12897 else
12898 ld_shlibs=no
12899 fi
12900 ;;
12901
12902 netbsd*)
12903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12904 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12905 wlarc=
12906 else
12907 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12908 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12909 fi
12910 ;;
12911
12912 solaris* | sysv5*)
12913 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12914 ld_shlibs_F77=no
12915 cat <<EOF 1>&2
12916
12917*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12918*** create shared libraries on Solaris systems. Therefore, libtool
12919*** is disabling shared libraries support. We urge you to upgrade GNU
12920*** binutils to release 2.9.1 or newer. Another option is to modify
12921*** your PATH or compiler configuration so that the native linker is
12922*** used, and then restart.
12923
12924EOF
12925 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12926 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12928 else
12929 ld_shlibs_F77=no
12930 fi
12931 ;;
12932
12933 sunos4*)
12934 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12935 wlarc=
12936 hardcode_direct_F77=yes
12937 hardcode_shlibpath_var_F77=no
12938 ;;
12939
12940 *)
12941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12942 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944 else
12945 ld_shlibs_F77=no
12946 fi
12947 ;;
12948 esac
12949
12950 if test "$ld_shlibs_F77" = yes; then
12951 runpath_var=LD_RUN_PATH
12952 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12953 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12954 # ancient GNU ld didn't support --whole-archive et. al.
12955 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12956 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12957 else
12958 whole_archive_flag_spec_F77=
12959 fi
12960 fi
12961 else
12962 # PORTME fill in a description of your system's linker (not GNU ld)
12963 case $host_os in
12964 aix3*)
12965 allow_undefined_flag_F77=unsupported
12966 always_export_symbols_F77=yes
12967 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'
12968 # Note: this linker hardcodes the directories in LIBPATH if there
12969 # are no directories specified by -L.
12970 hardcode_minus_L_F77=yes
12971 if test "$GCC" = yes && test -z "$link_static_flag"; then
12972 # Neither direct hardcoding nor static linking is supported with a
12973 # broken collect2.
12974 hardcode_direct_F77=unsupported
12975 fi
12976 ;;
12977
12978 aix4* | aix5*)
12979 if test "$host_cpu" = ia64; then
12980 # On IA64, the linker does run time linking by default, so we don't
12981 # have to do anything special.
12982 aix_use_runtimelinking=no
12983 exp_sym_flag='-Bexport'
12984 no_entry_flag=""
12985 else
12986 # If we're using GNU nm, then we don't want the "-C" option.
12987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12989 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'
12990 else
12991 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'
12992 fi
12993 aix_use_runtimelinking=no
12994
12995 # Test if we are trying to use run time linking or normal
12996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12997 # need to do runtime linking.
12998 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12999 for ld_flag in $LDFLAGS; do
13000 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13001 aix_use_runtimelinking=yes
13002 break
13003 fi
13004 done
13005 esac
13006
13007 exp_sym_flag='-bexport'
13008 no_entry_flag='-bnoentry'
13009 fi
13010
13011 # When large executables or shared objects are built, AIX ld can
13012 # have problems creating the table of contents. If linking a library
13013 # or program results in "error TOC overflow" add -mminimal-toc to
13014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13016
13017 archive_cmds_F77=''
13018 hardcode_direct_F77=yes
13019 hardcode_libdir_separator_F77=':'
13020 link_all_deplibs_F77=yes
13021
13022 if test "$GCC" = yes; then
13023 case $host_os in aix4.012|aix4.012.*)
13024 # We only want to do this on AIX 4.2 and lower, the check
13025 # below for broken collect2 doesn't work under 4.3+
13026 collect2name=`${CC} -print-prog-name=collect2`
13027 if test -f "$collect2name" && \
13028 strings "$collect2name" | grep resolve_lib_name >/dev/null
13029 then
13030 # We have reworked collect2
13031 hardcode_direct_F77=yes
13032 else
13033 # We have old collect2
13034 hardcode_direct_F77=unsupported
13035 # It fails to find uninstalled libraries when the uninstalled
13036 # path is not listed in the libpath. Setting hardcode_minus_L
13037 # to unsupported forces relinking
13038 hardcode_minus_L_F77=yes
13039 hardcode_libdir_flag_spec_F77='-L$libdir'
13040 hardcode_libdir_separator_F77=
13041 fi
13042 esac
13043 shared_flag='-shared'
13044 else
13045 # not using gcc
13046 if test "$host_cpu" = ia64; then
13047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13048 # chokes on -Wl,-G. The following line is correct:
13049 shared_flag='-G'
13050 else
13051 if test "$aix_use_runtimelinking" = yes; then
13052 shared_flag='${wl}-G'
13053 else
13054 shared_flag='${wl}-bM:SRE'
13055 fi
13056 fi
13057 fi
13058
13059 # It seems that -bexpall does not export symbols beginning with
13060 # underscore (_), so it is better to generate a list of symbols to export.
13061 always_export_symbols_F77=yes
13062 if test "$aix_use_runtimelinking" = yes; then
13063 # Warning - without using the other runtime loading flags (-brtl),
13064 # -berok will link without error, but may produce a broken library.
13065 allow_undefined_flag_F77='-berok'
13066 # Determine the default libpath from the value encoded in an empty executable.
13067 cat >conftest.$ac_ext <<_ACEOF
13068 program main
13069
13070 end
13071_ACEOF
13072rm -f conftest.$ac_objext conftest$ac_exeext
13073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074 (eval $ac_link) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13084
13085aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13086}'`
13087# Check for a 64-bit object if we didn't find anything.
13088if 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; }
13089}'`; fi
13090else
13091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013092sed 's/^/| /' conftest.$ac_ext >&5
13093
John Criswell47fdd832003-07-14 16:52:07 +000013094fi
13095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13097
13098 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13099 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"
13100 else
13101 if test "$host_cpu" = ia64; then
13102 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13103 allow_undefined_flag_F77="-z nodefs"
13104 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"
13105 else
13106 # Determine the default libpath from the value encoded in an empty executable.
13107 cat >conftest.$ac_ext <<_ACEOF
13108 program main
13109
13110 end
13111_ACEOF
13112rm -f conftest.$ac_objext conftest$ac_exeext
13113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114 (eval $ac_link) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124
13125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13126}'`
13127# Check for a 64-bit object if we didn't find anything.
13128if 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; }
13129}'`; fi
13130else
13131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013132sed 's/^/| /' conftest.$ac_ext >&5
13133
John Criswell47fdd832003-07-14 16:52:07 +000013134fi
13135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13137
13138 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13139 # Warning - without using the other run time loading flags,
13140 # -berok will link without error, but may produce a broken library.
13141 no_undefined_flag_F77=' ${wl}-bernotok'
13142 allow_undefined_flag_F77=' ${wl}-berok'
13143 # -bexpall does not export symbols beginning with underscore (_)
13144 always_export_symbols_F77=yes
13145 # Exported symbols can be pulled into shared objects from archives
13146 whole_archive_flag_spec_F77=' '
13147 archive_cmds_need_lc_F77=yes
13148 # This is similar to how AIX traditionally builds it's shared libraries.
13149 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'
13150 fi
13151 fi
13152 ;;
13153
13154 amigaos*)
13155 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)'
13156 hardcode_libdir_flag_spec_F77='-L$libdir'
13157 hardcode_minus_L_F77=yes
13158 # see comment about different semantics on the GNU ld section
13159 ld_shlibs_F77=no
13160 ;;
13161
13162 bsdi4*)
13163 export_dynamic_flag_spec_F77=-rdynamic
13164 ;;
13165
13166 cygwin* | mingw* | pw32*)
13167 # When not using gcc, we currently assume that we are using
13168 # Microsoft Visual C++.
13169 # hardcode_libdir_flag_spec is actually meaningless, as there is
13170 # no search path for DLLs.
13171 hardcode_libdir_flag_spec_F77=' '
13172 allow_undefined_flag_F77=unsupported
13173 # Tell ltmain to make .lib files, not .a files.
13174 libext=lib
13175 # Tell ltmain to make .dll files, not .so files.
13176 shrext=".dll"
13177 # FIXME: Setting linknames here is a bad hack.
13178 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13179 # The linker will automatically build a .lib file if we build a DLL.
13180 old_archive_From_new_cmds_F77='true'
13181 # FIXME: Should let the user specify the lib program.
13182 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13183 fix_srcfile_path='`cygpath -w "$srcfile"`'
13184 enable_shared_with_static_runtimes_F77=yes
13185 ;;
13186
13187 darwin* | rhapsody*)
13188 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13189 archive_cmds_need_lc_F77=no
13190 case "$host_os" in
13191 rhapsody* | darwin1.[012])
13192 allow_undefined_flag_F77='-undefined suppress'
13193 ;;
13194 *) # Darwin 1.3 on
13195 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13196 ;;
13197 esac
13198 # FIXME: Relying on posixy $() will cause problems for
13199 # cross-compilation, but unfortunately the echo tests do not
13200 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13201 # `"' quotes if we put them in here... so don't!
13202 lt_int_apple_cc_single_mod=no
13203 output_verbose_link_cmd='echo'
13204 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13205 lt_int_apple_cc_single_mod=yes
13206 fi
13207 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13208 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13209 else
13210 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'
13211 fi
13212 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13214 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13215 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}'
13216 else
13217 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}'
13218 fi
13219 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}'
13220 hardcode_direct_F77=no
13221 hardcode_automatic_F77=yes
13222 hardcode_shlibpath_var_F77=unsupported
13223 whole_archive_flag_spec_F77='-all_load $convenience'
13224 link_all_deplibs_F77=yes
13225 fi
13226 ;;
13227
13228 dgux*)
13229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230 hardcode_libdir_flag_spec_F77='-L$libdir'
13231 hardcode_shlibpath_var_F77=no
13232 ;;
13233
13234 freebsd1*)
13235 ld_shlibs_F77=no
13236 ;;
13237
13238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13239 # support. Future versions do this automatically, but an explicit c++rt0.o
13240 # does not break anything, and helps significantly (at the cost of a little
13241 # extra space).
13242 freebsd2.2*)
13243 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13244 hardcode_libdir_flag_spec_F77='-R$libdir'
13245 hardcode_direct_F77=yes
13246 hardcode_shlibpath_var_F77=no
13247 ;;
13248
13249 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13250 freebsd2*)
13251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13252 hardcode_direct_F77=yes
13253 hardcode_minus_L_F77=yes
13254 hardcode_shlibpath_var_F77=no
13255 ;;
13256
13257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13258 freebsd*)
13259 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13260 hardcode_libdir_flag_spec_F77='-R$libdir'
13261 hardcode_direct_F77=yes
13262 hardcode_shlibpath_var_F77=no
13263 ;;
13264
13265 hpux9*)
13266 if test "$GCC" = yes; then
13267 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'
13268 else
13269 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'
13270 fi
13271 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13272 hardcode_libdir_separator_F77=:
13273 hardcode_direct_F77=yes
13274
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_F77=yes
13278 export_dynamic_flag_spec_F77='${wl}-E'
13279 ;;
13280
13281 hpux10* | hpux11*)
13282 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13283 case "$host_cpu" in
13284 hppa*64*|ia64*)
13285 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13286 ;;
13287 *)
13288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13289 ;;
13290 esac
13291 else
13292 case "$host_cpu" in
13293 hppa*64*|ia64*)
13294 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13295 ;;
13296 *)
13297 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13298 ;;
13299 esac
13300 fi
13301 if test "$with_gnu_ld" = no; then
13302 case "$host_cpu" in
13303 hppa*64*)
13304 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13305 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13306 hardcode_libdir_separator_F77=:
13307 hardcode_direct_F77=no
13308 hardcode_shlibpath_var_F77=no
13309 ;;
13310 ia64*)
13311 hardcode_libdir_flag_spec_F77='-L$libdir'
13312 hardcode_direct_F77=no
13313 hardcode_shlibpath_var_F77=no
13314
13315 # hardcode_minus_L: Not really in the search PATH,
13316 # but as the default location of the library.
13317 hardcode_minus_L_F77=yes
13318 ;;
13319 *)
13320 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13321 hardcode_libdir_separator_F77=:
13322 hardcode_direct_F77=yes
13323 export_dynamic_flag_spec_F77='${wl}-E'
13324
13325 # hardcode_minus_L: Not really in the search PATH,
13326 # but as the default location of the library.
13327 hardcode_minus_L_F77=yes
13328 ;;
13329 esac
13330 fi
13331 ;;
13332
13333 irix5* | irix6* | nonstopux*)
13334 if test "$GCC" = yes; then
13335 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'
13336 else
13337 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'
13338 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13339 fi
13340 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13341 hardcode_libdir_separator_F77=:
13342 link_all_deplibs_F77=yes
13343 ;;
13344
13345 netbsd*)
13346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13347 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13348 else
13349 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13350 fi
13351 hardcode_libdir_flag_spec_F77='-R$libdir'
13352 hardcode_direct_F77=yes
13353 hardcode_shlibpath_var_F77=no
13354 ;;
13355
13356 newsos6)
13357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13358 hardcode_direct_F77=yes
13359 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13360 hardcode_libdir_separator_F77=:
13361 hardcode_shlibpath_var_F77=no
13362 ;;
13363
13364 openbsd*)
13365 hardcode_direct_F77=yes
13366 hardcode_shlibpath_var_F77=no
13367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13368 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13369 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13370 export_dynamic_flag_spec_F77='${wl}-E'
13371 else
13372 case $host_os in
13373 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13374 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13375 hardcode_libdir_flag_spec_F77='-R$libdir'
13376 ;;
13377 *)
13378 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13379 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13380 ;;
13381 esac
13382 fi
13383 ;;
13384
13385 os2*)
13386 hardcode_libdir_flag_spec_F77='-L$libdir'
13387 hardcode_minus_L_F77=yes
13388 allow_undefined_flag_F77=unsupported
13389 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'
13390 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13391 ;;
13392
13393 osf3*)
13394 if test "$GCC" = yes; then
13395 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13396 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'
13397 else
13398 allow_undefined_flag_F77=' -expect_unresolved \*'
13399 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'
13400 fi
13401 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13402 hardcode_libdir_separator_F77=:
13403 ;;
13404
13405 osf4* | osf5*) # as osf3* with the addition of -msym flag
13406 if test "$GCC" = yes; then
13407 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13408 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'
13409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13410 else
13411 allow_undefined_flag_F77=' -expect_unresolved \*'
13412 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'
13413 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~
13414 $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'
13415
13416 # Both c and cxx compiler support -rpath directly
13417 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13418 fi
13419 hardcode_libdir_separator_F77=:
13420 ;;
13421
13422 sco3.2v5*)
13423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424 hardcode_shlibpath_var_F77=no
13425 export_dynamic_flag_spec_F77='${wl}-Bexport'
13426 runpath_var=LD_RUN_PATH
13427 hardcode_runpath_var=yes
13428 ;;
13429
13430 solaris*)
13431 no_undefined_flag_F77=' -z text'
13432 if test "$GCC" = yes; then
13433 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13434 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13435 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13436 else
13437 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13440 fi
13441 hardcode_libdir_flag_spec_F77='-R$libdir'
13442 hardcode_shlibpath_var_F77=no
13443 case $host_os in
13444 solaris2.[0-5] | solaris2.[0-5].*) ;;
13445 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13446 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13447 esac
13448 link_all_deplibs_F77=yes
13449 ;;
13450
13451 sunos4*)
13452 if test "x$host_vendor" = xsequent; then
13453 # Use $CC to link under sequent, because it throws in some extra .o
13454 # files that make .init and .fini sections work.
13455 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13456 else
13457 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13458 fi
13459 hardcode_libdir_flag_spec_F77='-L$libdir'
13460 hardcode_direct_F77=yes
13461 hardcode_minus_L_F77=yes
13462 hardcode_shlibpath_var_F77=no
13463 ;;
13464
13465 sysv4)
13466 case $host_vendor in
13467 sni)
13468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_direct_F77=yes # is this really true???
13470 ;;
13471 siemens)
13472 ## LD is ld it makes a PLAMLIB
13473 ## CC just makes a GrossModule.
13474 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13475 reload_cmds_F77='$CC -r -o $output$reload_objs'
13476 hardcode_direct_F77=no
13477 ;;
13478 motorola)
13479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13481 ;;
13482 esac
13483 runpath_var='LD_RUN_PATH'
13484 hardcode_shlibpath_var_F77=no
13485 ;;
13486
13487 sysv4.3*)
13488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_shlibpath_var_F77=no
13490 export_dynamic_flag_spec_F77='-Bexport'
13491 ;;
13492
13493 sysv4*MP*)
13494 if test -d /usr/nec; then
13495 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_shlibpath_var_F77=no
13497 runpath_var=LD_RUN_PATH
13498 hardcode_runpath_var=yes
13499 ld_shlibs_F77=yes
13500 fi
13501 ;;
13502
13503 sysv4.2uw2*)
13504 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_direct_F77=yes
13506 hardcode_minus_L_F77=no
13507 hardcode_shlibpath_var_F77=no
13508 hardcode_runpath_var=yes
13509 runpath_var=LD_RUN_PATH
13510 ;;
13511
13512 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13513 no_undefined_flag_F77='${wl}-z ${wl}text'
13514 if test "$GCC" = yes; then
13515 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 else
13517 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 fi
13519 runpath_var='LD_RUN_PATH'
13520 hardcode_shlibpath_var_F77=no
13521 ;;
13522
13523 sysv5*)
13524 no_undefined_flag_F77=' -z text'
13525 # $CC -shared without GNU ld will not create a library from C++
13526 # object files and a static libstdc++, better avoid it by now
13527 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13529 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13530 hardcode_libdir_flag_spec_F77=
13531 hardcode_shlibpath_var_F77=no
13532 runpath_var='LD_RUN_PATH'
13533 ;;
13534
13535 uts4*)
13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_libdir_flag_spec_F77='-L$libdir'
13538 hardcode_shlibpath_var_F77=no
13539 ;;
13540
13541 *)
13542 ld_shlibs_F77=no
13543 ;;
13544 esac
13545 fi
13546
13547echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13548echo "${ECHO_T}$ld_shlibs_F77" >&6
13549test "$ld_shlibs_F77" = no && can_build_shared=no
13550
13551variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13552if test "$GCC" = yes; then
13553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13554fi
13555
13556#
13557# Do we need to explicitly link libc?
13558#
13559case "x$archive_cmds_need_lc_F77" in
13560x|xyes)
13561 # Assume -lc should be added
13562 archive_cmds_need_lc_F77=yes
13563
13564 if test "$enable_shared" = yes && test "$GCC" = yes; then
13565 case $archive_cmds_F77 in
13566 *'~'*)
13567 # FIXME: we may have to deal with multi-command sequences.
13568 ;;
13569 '$CC '*)
13570 # Test whether the compiler implicitly links with -lc since on some
13571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13572 # to ld, don't add -lc before -lgcc.
13573 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13574echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13575 $rm conftest*
13576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13577
13578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } 2>conftest.err; then
13583 soname=conftest
13584 lib=conftest
13585 libobjs=conftest.$ac_objext
13586 deplibs=
13587 wl=$lt_prog_compiler_wl_F77
13588 compiler_flags=-v
13589 linker_flags=-v
13590 verstring=
13591 output_objdir=.
13592 libname=conftest
13593 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13594 allow_undefined_flag_F77=
13595 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13596 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }
13600 then
13601 archive_cmds_need_lc_F77=no
13602 else
13603 archive_cmds_need_lc_F77=yes
13604 fi
13605 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13606 else
13607 cat conftest.err 1>&5
13608 fi
13609 $rm conftest*
13610 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13611echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13612 ;;
13613 esac
13614 fi
13615 ;;
13616esac
13617
13618echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13619echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13620hardcode_action_F77=
13621if test -n "$hardcode_libdir_flag_spec_F77" || \
13622 test -n "$runpath_var F77" || \
13623 test "X$hardcode_automatic_F77"="Xyes" ; then
13624
13625 # We can hardcode non-existant directories.
13626 if test "$hardcode_direct_F77" != no &&
13627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13628 # have to relink, otherwise we might link with an installed library
13629 # when we should be linking with a yet-to-be-installed one
13630 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13631 test "$hardcode_minus_L_F77" != no; then
13632 # Linking always hardcodes the temporary library directory.
13633 hardcode_action_F77=relink
13634 else
13635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13636 hardcode_action_F77=immediate
13637 fi
13638else
13639 # We cannot hardcode anything, or else we can only hardcode existing
13640 # directories.
13641 hardcode_action_F77=unsupported
13642fi
13643echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13644echo "${ECHO_T}$hardcode_action_F77" >&6
13645
13646if test "$hardcode_action_F77" = relink; then
13647 # Fast installation is not supported
13648 enable_fast_install=no
13649elif test "$shlibpath_overrides_runpath" = yes ||
13650 test "$enable_shared" = no; then
13651 # Fast installation is not necessary
13652 enable_fast_install=needless
13653fi
13654
13655striplib=
13656old_striplib=
13657echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13658echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13659if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13660 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13661 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13662 echo "$as_me:$LINENO: result: yes" >&5
13663echo "${ECHO_T}yes" >&6
13664else
13665# FIXME - insert some real tests, host_os isn't really good enough
13666 case $host_os in
13667 darwin*)
13668 if test -n "$STRIP" ; then
13669 striplib="$STRIP -x"
13670 echo "$as_me:$LINENO: result: yes" >&5
13671echo "${ECHO_T}yes" >&6
13672 else
13673 echo "$as_me:$LINENO: result: no" >&5
13674echo "${ECHO_T}no" >&6
13675fi
13676 ;;
13677 *)
13678 echo "$as_me:$LINENO: result: no" >&5
13679echo "${ECHO_T}no" >&6
13680 ;;
13681 esac
13682fi
13683
13684echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13685echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13686library_names_spec=
13687libname_spec='lib$name'
13688soname_spec=
13689shrext=".so"
13690postinstall_cmds=
13691postuninstall_cmds=
13692finish_cmds=
13693finish_eval=
13694shlibpath_var=
13695shlibpath_overrides_runpath=unknown
13696version_type=none
13697dynamic_linker="$host_os ld.so"
13698sys_lib_dlsearch_path_spec="/lib /usr/lib"
13699if test "$GCC" = yes; then
13700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13701 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13702 # if the path contains ";" then we assume it to be the separator
13703 # otherwise default to the standard path separator (i.e. ":") - it is
13704 # assumed that no part of a normal pathname contains ";" but that should
13705 # okay in the real world where ";" in dirpaths is itself problematic.
13706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13707 else
13708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13709 fi
13710else
13711 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13712fi
13713need_lib_prefix=unknown
13714hardcode_into_libs=no
13715
13716# when you set need_version to no, make sure it does not cause -set_version
13717# flags to be left without arguments
13718need_version=unknown
13719
13720case $host_os in
13721aix3*)
13722 version_type=linux
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13724 shlibpath_var=LIBPATH
13725
13726 # AIX 3 has no versioning support, so we append a major version to the name.
13727 soname_spec='${libname}${release}${shared_ext}$major'
13728 ;;
13729
13730aix4* | aix5*)
13731 version_type=linux
13732 need_lib_prefix=no
13733 need_version=no
13734 hardcode_into_libs=yes
13735 if test "$host_cpu" = ia64; then
13736 # AIX 5 supports IA64
13737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13738 shlibpath_var=LD_LIBRARY_PATH
13739 else
13740 # With GCC up to 2.95.x, collect2 would create an import file
13741 # for dependence libraries. The import file would start with
13742 # the line `#! .'. This would cause the generated library to
13743 # depend on `.', always an invalid library. This was fixed in
13744 # development snapshots of GCC prior to 3.0.
13745 case $host_os in
13746 aix4 | aix4.[01] | aix4.[01].*)
13747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13748 echo ' yes '
13749 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13750 :
13751 else
13752 can_build_shared=no
13753 fi
13754 ;;
13755 esac
13756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13757 # soname into executable. Probably we can add versioning support to
13758 # collect2, so additional links can be useful in future.
13759 if test "$aix_use_runtimelinking" = yes; then
13760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13761 # instead of lib<name>.a to let people know that these are not
13762 # typical AIX shared libraries.
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 else
13765 # We preserve .a as extension for shared libraries through AIX4.2
13766 # and later when we are not doing run time linking.
13767 library_names_spec='${libname}${release}.a $libname.a'
13768 soname_spec='${libname}${release}${shared_ext}$major'
13769 fi
13770 shlibpath_var=LIBPATH
13771 fi
13772 ;;
13773
13774amigaos*)
13775 library_names_spec='$libname.ixlibrary $libname.a'
13776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13777 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'
13778 ;;
13779
13780beos*)
13781 library_names_spec='${libname}${shared_ext}'
13782 dynamic_linker="$host_os ld.so"
13783 shlibpath_var=LIBRARY_PATH
13784 ;;
13785
13786bsdi4*)
13787 version_type=linux
13788 need_version=no
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790 soname_spec='${libname}${release}${shared_ext}$major'
13791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13792 shlibpath_var=LD_LIBRARY_PATH
13793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13795 # the default ld.so.conf also contains /usr/contrib/lib and
13796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13797 # libtool to hard-code these into programs
13798 ;;
13799
13800cygwin* | mingw* | pw32*)
13801 version_type=windows
13802 shrext=".dll"
13803 need_version=no
13804 need_lib_prefix=no
13805
13806 case $GCC,$host_os in
13807 yes,cygwin* | yes,mingw* | yes,pw32*)
13808 library_names_spec='$libname.dll.a'
13809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13810 postinstall_cmds='base_file=`basename \${file}`~
13811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13812 dldir=$destdir/`dirname \$dlpath`~
13813 test -d \$dldir || mkdir -p \$dldir~
13814 $install_prog $dir/$dlname \$dldir/$dlname'
13815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13816 dlpath=$dir/\$dldll~
13817 $rm \$dlpath'
13818 shlibpath_overrides_runpath=yes
13819
13820 case $host_os in
13821 cygwin*)
13822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13825 ;;
13826 mingw*)
13827 # MinGW DLLs use traditional 'lib' prefix
13828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13831 # It is most probably a Windows format PATH printed by
13832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13833 # path with ; separators, and with drive letters. We can handle the
13834 # drive letters (cygwin fileutils understands them), so leave them,
13835 # especially as we might pass files found there to a mingw objdump,
13836 # which wouldn't understand a cygwinified path. Ahh.
13837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13838 else
13839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13840 fi
13841 ;;
13842 pw32*)
13843 # pw32 DLLs use 'pw' prefix rather than 'lib'
13844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13845 ;;
13846 esac
13847 ;;
13848
13849 *)
13850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13851 ;;
13852 esac
13853 dynamic_linker='Win32 ld.exe'
13854 # FIXME: first we should search . and the directory the executable is in
13855 shlibpath_var=PATH
13856 ;;
13857
13858darwin* | rhapsody*)
13859 dynamic_linker="$host_os dyld"
13860 version_type=darwin
13861 need_lib_prefix=no
13862 need_version=no
13863 # FIXME: Relying on posixy $() will cause problems for
13864 # cross-compilation, but unfortunately the echo tests do not
13865 # yet detect zsh echo's removal of \ escapes.
13866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13867 soname_spec='${libname}${release}${major}$shared_ext'
13868 shlibpath_overrides_runpath=yes
13869 shlibpath_var=DYLD_LIBRARY_PATH
13870 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13872 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13873 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"`
13874 fi
13875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13876 ;;
13877
13878dgux*)
13879 version_type=linux
13880 need_lib_prefix=no
13881 need_version=no
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13883 soname_spec='${libname}${release}${shared_ext}$major'
13884 shlibpath_var=LD_LIBRARY_PATH
13885 ;;
13886
13887freebsd1*)
13888 dynamic_linker=no
13889 ;;
13890
13891freebsd*)
13892 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13893 version_type=freebsd-$objformat
13894 case $version_type in
13895 freebsd-elf*)
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13897 need_version=no
13898 need_lib_prefix=no
13899 ;;
13900 freebsd-*)
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13902 need_version=yes
13903 ;;
13904 esac
13905 shlibpath_var=LD_LIBRARY_PATH
13906 case $host_os in
13907 freebsd2*)
13908 shlibpath_overrides_runpath=yes
13909 ;;
13910 freebsd3.01* | freebsdelf3.01*)
13911 shlibpath_overrides_runpath=yes
13912 hardcode_into_libs=yes
13913 ;;
13914 *) # from 3.2 on
13915 shlibpath_overrides_runpath=no
13916 hardcode_into_libs=yes
13917 ;;
13918 esac
13919 ;;
13920
13921gnu*)
13922 version_type=linux
13923 need_lib_prefix=no
13924 need_version=no
13925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13926 soname_spec='${libname}${release}${shared_ext}$major'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 hardcode_into_libs=yes
13929 ;;
13930
13931hpux9* | hpux10* | hpux11*)
13932 # Give a soname corresponding to the major version so that dld.sl refuses to
13933 # link against other versions.
13934 version_type=sunos
13935 need_lib_prefix=no
13936 need_version=no
13937 case "$host_cpu" in
13938 ia64*)
13939 shrext='.so'
13940 hardcode_into_libs=yes
13941 dynamic_linker="$host_os dld.so"
13942 shlibpath_var=LD_LIBRARY_PATH
13943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945 soname_spec='${libname}${release}${shared_ext}$major'
13946 if test "X$HPUX_IA64_MODE" = X32; then
13947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13948 else
13949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13950 fi
13951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13952 ;;
13953 hppa*64*)
13954 shrext='.sl'
13955 hardcode_into_libs=yes
13956 dynamic_linker="$host_os dld.sl"
13957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963 ;;
13964 *)
13965 shrext='.sl'
13966 dynamic_linker="$host_os dld.sl"
13967 shlibpath_var=SHLIB_PATH
13968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13970 soname_spec='${libname}${release}${shared_ext}$major'
13971 ;;
13972 esac
13973 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13974 postinstall_cmds='chmod 555 $lib'
13975 ;;
13976
13977irix5* | irix6* | nonstopux*)
13978 case $host_os in
13979 nonstopux*) version_type=nonstopux ;;
13980 *)
13981 if test "$lt_cv_prog_gnu_ld" = yes; then
13982 version_type=linux
13983 else
13984 version_type=irix
13985 fi ;;
13986 esac
13987 need_lib_prefix=no
13988 need_version=no
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13991 case $host_os in
13992 irix5* | nonstopux*)
13993 libsuff= shlibsuff=
13994 ;;
13995 *)
13996 case $LD in # libtool.m4 will add one of these switches to LD
13997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13998 libsuff= shlibsuff= libmagic=32-bit;;
13999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14000 libsuff=32 shlibsuff=N32 libmagic=N32;;
14001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14003 *) libsuff= shlibsuff= libmagic=never-match;;
14004 esac
14005 ;;
14006 esac
14007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14008 shlibpath_overrides_runpath=no
14009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14011 hardcode_into_libs=yes
14012 ;;
14013
14014# No shared lib support for Linux oldld, aout, or coff.
14015linux*oldld* | linux*aout* | linux*coff*)
14016 dynamic_linker=no
14017 ;;
14018
14019# This must be Linux ELF.
14020linux*)
14021 version_type=linux
14022 need_lib_prefix=no
14023 need_version=no
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=no
14029 # This implies no fast_install, which is unacceptable.
14030 # Some rework will be needed to allow for fast_install
14031 # before this can be enabled.
14032 hardcode_into_libs=yes
14033
14034 # We used to test for /lib/ld.so.1 and disable shared libraries on
14035 # powerpc, because MkLinux only supported shared libraries with the
14036 # GNU dynamic linker. Since this was broken with cross compilers,
14037 # most powerpc-linux boxes support dynamic linking these days and
14038 # people can always --disable-shared, the test was removed, and we
14039 # assume the GNU/Linux dynamic linker is in use.
14040 dynamic_linker='GNU/Linux ld.so'
14041 ;;
14042
14043netbsd*)
14044 version_type=sunos
14045 need_lib_prefix=no
14046 need_version=no
14047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14050 dynamic_linker='NetBSD (a.out) ld.so'
14051 else
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 dynamic_linker='NetBSD ld.elf_so'
14055 fi
14056 shlibpath_var=LD_LIBRARY_PATH
14057 shlibpath_overrides_runpath=yes
14058 hardcode_into_libs=yes
14059 ;;
14060
14061newsos6)
14062 version_type=linux
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 ;;
14067
14068nto-qnx)
14069 version_type=linux
14070 need_lib_prefix=no
14071 need_version=no
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14076 ;;
14077
14078openbsd*)
14079 version_type=sunos
14080 need_lib_prefix=no
14081 need_version=no
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14084 shlibpath_var=LD_LIBRARY_PATH
14085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14086 case $host_os in
14087 openbsd2.[89] | openbsd2.[89].*)
14088 shlibpath_overrides_runpath=no
14089 ;;
14090 *)
14091 shlibpath_overrides_runpath=yes
14092 ;;
14093 esac
14094 else
14095 shlibpath_overrides_runpath=yes
14096 fi
14097 ;;
14098
14099os2*)
14100 libname_spec='$name'
14101 shrext=".dll"
14102 need_lib_prefix=no
14103 library_names_spec='$libname${shared_ext} $libname.a'
14104 dynamic_linker='OS/2 ld.exe'
14105 shlibpath_var=LIBPATH
14106 ;;
14107
14108osf3* | osf4* | osf5*)
14109 version_type=osf
14110 need_lib_prefix=no
14111 need_version=no
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114 shlibpath_var=LD_LIBRARY_PATH
14115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14117 ;;
14118
14119sco3.2v5*)
14120 version_type=osf
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 shlibpath_var=LD_LIBRARY_PATH
14124 ;;
14125
14126solaris*)
14127 version_type=linux
14128 need_lib_prefix=no
14129 need_version=no
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 shlibpath_overrides_runpath=yes
14134 hardcode_into_libs=yes
14135 # ldd complains unless libraries are executable
14136 postinstall_cmds='chmod +x $lib'
14137 ;;
14138
14139sunos4*)
14140 version_type=sunos
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=yes
14145 if test "$with_gnu_ld" = yes; then
14146 need_lib_prefix=no
14147 fi
14148 need_version=yes
14149 ;;
14150
14151sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14152 version_type=linux
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 soname_spec='${libname}${release}${shared_ext}$major'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 case $host_vendor in
14157 sni)
14158 shlibpath_overrides_runpath=no
14159 need_lib_prefix=no
14160 export_dynamic_flag_spec='${wl}-Blargedynsym'
14161 runpath_var=LD_RUN_PATH
14162 ;;
14163 siemens)
14164 need_lib_prefix=no
14165 ;;
14166 motorola)
14167 need_lib_prefix=no
14168 need_version=no
14169 shlibpath_overrides_runpath=no
14170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14171 ;;
14172 esac
14173 ;;
14174
14175sysv4*MP*)
14176 if test -d /usr/nec ;then
14177 version_type=linux
14178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14179 soname_spec='$libname${shared_ext}.$major'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 fi
14182 ;;
14183
14184uts4*)
14185 version_type=linux
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 ;;
14190
14191*)
14192 dynamic_linker=no
14193 ;;
14194esac
14195echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14196echo "${ECHO_T}$dynamic_linker" >&6
14197test "$dynamic_linker" = no && can_build_shared=no
14198
14199
14200# The else clause should only fire when bootstrapping the
14201# libtool distribution, otherwise you forgot to ship ltmain.sh
14202# with your package, and you will get complaints that there are
14203# no rules to generate ltmain.sh.
14204if test -f "$ltmain"; then
14205 # See if we are running on zsh, and set the options which allow our commands through
14206 # without removal of \ escapes.
14207 if test -n "${ZSH_VERSION+set}" ; then
14208 setopt NO_GLOB_SUBST
14209 fi
14210 # Now quote all the things that may contain metacharacters while being
14211 # careful not to overquote the AC_SUBSTed values. We take copies of the
14212 # variables and quote the copies for generation of the libtool script.
14213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14216 deplibs_check_method reload_flag reload_cmds need_locks \
14217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14218 lt_cv_sys_global_symbol_to_c_name_address \
14219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14220 old_postinstall_cmds old_postuninstall_cmds \
14221 compiler_F77 \
14222 CC_F77 \
14223 LD_F77 \
14224 lt_prog_compiler_wl_F77 \
14225 lt_prog_compiler_pic_F77 \
14226 lt_prog_compiler_static_F77 \
14227 lt_prog_compiler_no_builtin_flag_F77 \
14228 export_dynamic_flag_spec_F77 \
14229 thread_safe_flag_spec_F77 \
14230 whole_archive_flag_spec_F77 \
14231 enable_shared_with_static_runtimes_F77 \
14232 old_archive_cmds_F77 \
14233 old_archive_from_new_cmds_F77 \
14234 predep_objects_F77 \
14235 postdep_objects_F77 \
14236 predeps_F77 \
14237 postdeps_F77 \
14238 compiler_lib_search_path_F77 \
14239 archive_cmds_F77 \
14240 archive_expsym_cmds_F77 \
14241 postinstall_cmds_F77 \
14242 postuninstall_cmds_F77 \
14243 old_archive_from_expsyms_cmds_F77 \
14244 allow_undefined_flag_F77 \
14245 no_undefined_flag_F77 \
14246 export_symbols_cmds_F77 \
14247 hardcode_libdir_flag_spec_F77 \
14248 hardcode_libdir_flag_spec_ld_F77 \
14249 hardcode_libdir_separator_F77 \
14250 hardcode_automatic_F77 \
14251 module_cmds_F77 \
14252 module_expsym_cmds_F77 \
14253 lt_cv_prog_compiler_c_o_F77 \
14254 exclude_expsyms_F77 \
14255 include_expsyms_F77; do
14256
14257 case $var in
14258 old_archive_cmds_F77 | \
14259 old_archive_from_new_cmds_F77 | \
14260 archive_cmds_F77 | \
14261 archive_expsym_cmds_F77 | \
14262 module_cmds_F77 | \
14263 module_expsym_cmds_F77 | \
14264 old_archive_from_expsyms_cmds_F77 | \
14265 export_symbols_cmds_F77 | \
14266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14267 postinstall_cmds | postuninstall_cmds | \
14268 old_postinstall_cmds | old_postuninstall_cmds | \
14269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14270 # Double-quote double-evaled strings.
14271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14272 ;;
14273 *)
14274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14275 ;;
14276 esac
14277 done
14278
14279 case $lt_echo in
14280 *'\$0 --fallback-echo"')
14281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14282 ;;
14283 esac
14284
14285cfgfile="$ofile"
14286
14287 cat <<__EOF__ >> "$cfgfile"
14288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14289
14290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14291
14292# Shell to use when invoking shell scripts.
14293SHELL=$lt_SHELL
14294
14295# Whether or not to build shared libraries.
14296build_libtool_libs=$enable_shared
14297
14298# Whether or not to build static libraries.
14299build_old_libs=$enable_static
14300
14301# Whether or not to add -lc for building shared libraries.
14302build_libtool_need_lc=$archive_cmds_need_lc_F77
14303
14304# Whether or not to disallow shared libs when runtime libs are static
14305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14306
14307# Whether or not to optimize for fast installation.
14308fast_install=$enable_fast_install
14309
14310# The host system.
14311host_alias=$host_alias
14312host=$host
14313
14314# An echo program that does not interpret backslashes.
14315echo=$lt_echo
14316
14317# The archiver.
14318AR=$lt_AR
14319AR_FLAGS=$lt_AR_FLAGS
14320
14321# A C compiler.
14322LTCC=$lt_LTCC
14323
14324# A language-specific compiler.
14325CC=$lt_compiler_F77
14326
14327# Is the compiler the GNU C compiler?
14328with_gcc=$GCC_F77
14329
14330# An ERE matcher.
14331EGREP=$lt_EGREP
14332
14333# The linker used to build libraries.
14334LD=$lt_LD_F77
14335
14336# Whether we need hard or soft links.
14337LN_S=$lt_LN_S
14338
14339# A BSD-compatible nm program.
14340NM=$lt_NM
14341
14342# A symbol stripping program
14343STRIP=$STRIP
14344
14345# Used to examine libraries when file_magic_cmd begins "file"
14346MAGIC_CMD=$MAGIC_CMD
14347
14348# Used on cygwin: DLL creation program.
14349DLLTOOL="$DLLTOOL"
14350
14351# Used on cygwin: object dumper.
14352OBJDUMP="$OBJDUMP"
14353
14354# Used on cygwin: assembler.
14355AS="$AS"
14356
14357# The name of the directory that contains temporary libtool files.
14358objdir=$objdir
14359
14360# How to create reloadable object files.
14361reload_flag=$lt_reload_flag
14362reload_cmds=$lt_reload_cmds
14363
14364# How to pass a linker flag through the compiler.
14365wl=$lt_lt_prog_compiler_wl_F77
14366
14367# Object file suffix (normally "o").
14368objext="$ac_objext"
14369
14370# Old archive suffix (normally "a").
14371libext="$libext"
14372
14373# Shared library suffix (normally ".so").
14374shrext='$shrext'
14375
14376# Executable file suffix (normally "").
14377exeext="$exeext"
14378
14379# Additional compiler flags for building library objects.
14380pic_flag=$lt_lt_prog_compiler_pic_F77
14381pic_mode=$pic_mode
14382
14383# What is the maximum length of a command?
14384max_cmd_len=$lt_cv_sys_max_cmd_len
14385
14386# Does compiler simultaneously support -c and -o options?
14387compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14388
14389# Must we lock files when doing compilation ?
14390need_locks=$lt_need_locks
14391
14392# Do we need the lib prefix for modules?
14393need_lib_prefix=$need_lib_prefix
14394
14395# Do we need a version for libraries?
14396need_version=$need_version
14397
14398# Whether dlopen is supported.
14399dlopen_support=$enable_dlopen
14400
14401# Whether dlopen of programs is supported.
14402dlopen_self=$enable_dlopen_self
14403
14404# Whether dlopen of statically linked programs is supported.
14405dlopen_self_static=$enable_dlopen_self_static
14406
14407# Compiler flag to prevent dynamic linking.
14408link_static_flag=$lt_lt_prog_compiler_static_F77
14409
14410# Compiler flag to turn off builtin functions.
14411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14412
14413# Compiler flag to allow reflexive dlopens.
14414export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14415
14416# Compiler flag to generate shared objects directly from archives.
14417whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14418
14419# Compiler flag to generate thread-safe objects.
14420thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14421
14422# Library versioning type.
14423version_type=$version_type
14424
14425# Format of library name prefix.
14426libname_spec=$lt_libname_spec
14427
14428# List of archive names. First name is the real one, the rest are links.
14429# The last name is the one that the linker finds with -lNAME.
14430library_names_spec=$lt_library_names_spec
14431
14432# The coded name of the library, if different from the real name.
14433soname_spec=$lt_soname_spec
14434
14435# Commands used to build and install an old-style archive.
14436RANLIB=$lt_RANLIB
14437old_archive_cmds=$lt_old_archive_cmds_F77
14438old_postinstall_cmds=$lt_old_postinstall_cmds
14439old_postuninstall_cmds=$lt_old_postuninstall_cmds
14440
14441# Create an old-style archive from a shared archive.
14442old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14443
14444# Create a temporary old-style archive to link instead of a shared archive.
14445old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14446
14447# Commands used to build and install a shared archive.
14448archive_cmds=$lt_archive_cmds_F77
14449archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14450postinstall_cmds=$lt_postinstall_cmds
14451postuninstall_cmds=$lt_postuninstall_cmds
14452
14453# Commands used to build a loadable module (assumed same as above if empty)
14454module_cmds=$lt_module_cmds_F77
14455module_expsym_cmds=$lt_module_expsym_cmds_F77
14456
14457# Commands to strip libraries.
14458old_striplib=$lt_old_striplib
14459striplib=$lt_striplib
14460
14461# Dependencies to place before the objects being linked to create a
14462# shared library.
14463predep_objects=$lt_predep_objects_F77
14464
14465# Dependencies to place after the objects being linked to create a
14466# shared library.
14467postdep_objects=$lt_postdep_objects_F77
14468
14469# Dependencies to place before the objects being linked to create a
14470# shared library.
14471predeps=$lt_predeps_F77
14472
14473# Dependencies to place after the objects being linked to create a
14474# shared library.
14475postdeps=$lt_postdeps_F77
14476
14477# The library search path used internally by the compiler when linking
14478# a shared library.
14479compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14480
14481# Method to check whether dependent libraries are shared objects.
14482deplibs_check_method=$lt_deplibs_check_method
14483
14484# Command to use when deplibs_check_method == file_magic.
14485file_magic_cmd=$lt_file_magic_cmd
14486
14487# Flag that allows shared libraries with undefined symbols to be built.
14488allow_undefined_flag=$lt_allow_undefined_flag_F77
14489
14490# Flag that forces no undefined symbols.
14491no_undefined_flag=$lt_no_undefined_flag_F77
14492
14493# Commands used to finish a libtool library installation in a directory.
14494finish_cmds=$lt_finish_cmds
14495
14496# Same as above, but a single script fragment to be evaled but not shown.
14497finish_eval=$lt_finish_eval
14498
14499# Take the output of nm and produce a listing of raw symbols and C names.
14500global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14501
14502# Transform the output of nm in a proper C declaration
14503global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14504
14505# Transform the output of nm in a C name address pair
14506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14507
14508# This is the shared library runtime path variable.
14509runpath_var=$runpath_var
14510
14511# This is the shared library path variable.
14512shlibpath_var=$shlibpath_var
14513
14514# Is shlibpath searched before the hard-coded library search path?
14515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14516
14517# How to hardcode a shared library path into an executable.
14518hardcode_action=$hardcode_action_F77
14519
14520# Whether we should hardcode library paths into libraries.
14521hardcode_into_libs=$hardcode_into_libs
14522
14523# Flag to hardcode \$libdir into a binary during linking.
14524# This must work even if \$libdir does not exist.
14525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14526
14527# If ld is used when linking, flag to hardcode \$libdir into
14528# a binary during linking. This must work even if \$libdir does
14529# not exist.
14530hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14531
14532# Whether we need a single -rpath flag with a separated argument.
14533hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14534
14535# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14536# resulting binary.
14537hardcode_direct=$hardcode_direct_F77
14538
14539# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14540# resulting binary.
14541hardcode_minus_L=$hardcode_minus_L_F77
14542
14543# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14544# the resulting binary.
14545hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14546
14547# Set to yes if building a shared library automatically hardcodes DIR into the library
14548# and all subsequent libraries and executables linked against it.
14549hardcode_automatic=$hardcode_automatic_F77
14550
14551# Variables whose values should be saved in libtool wrapper scripts and
14552# restored at relink time.
14553variables_saved_for_relink="$variables_saved_for_relink"
14554
14555# Whether libtool must link a program against all its dependency libraries.
14556link_all_deplibs=$link_all_deplibs_F77
14557
14558# Compile-time system search path for libraries
14559sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14560
14561# Run-time system search path for libraries
14562sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14563
14564# Fix the shell variable \$srcfile for the compiler.
14565fix_srcfile_path="$fix_srcfile_path_F77"
14566
14567# Set to yes if exported symbols are required.
14568always_export_symbols=$always_export_symbols_F77
14569
14570# The commands to list exported symbols.
14571export_symbols_cmds=$lt_export_symbols_cmds_F77
14572
14573# The commands to extract the exported symbol list from a shared archive.
14574extract_expsyms_cmds=$lt_extract_expsyms_cmds
14575
14576# Symbols that should not be listed in the preloaded symbols.
14577exclude_expsyms=$lt_exclude_expsyms_F77
14578
14579# Symbols that must always be exported.
14580include_expsyms=$lt_include_expsyms_F77
14581
14582# ### END LIBTOOL TAG CONFIG: $tagname
14583
14584__EOF__
14585
14586
14587else
14588 # If there is no Makefile yet, we rely on a make rule to execute
14589 # `config.status --recheck' to rerun these tests and create the
14590 # libtool script then.
14591 test -f Makefile && make "$ltmain"
14592fi
14593
14594
14595ac_ext=c
14596ac_cpp='$CPP $CPPFLAGS'
14597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14599ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600
14601CC="$lt_save_CC"
14602
14603 else
14604 tagname=""
14605 fi
14606 ;;
14607
14608 GCJ)
14609 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14610
14611
14612
14613# Source file extension for Java test sources.
14614ac_ext=java
14615
14616# Object file extension for compiled Java test sources.
14617objext=o
14618objext_GCJ=$objext
14619
14620# Code to be used in simple compile tests
14621lt_simple_compile_test_code="class foo {}\n"
14622
14623# Code to be used in simple link tests
14624lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14625
14626# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14627
14628# If no C compiler was specified, use CC.
14629LTCC=${LTCC-"$CC"}
14630
14631# Allow CC to be a program name with arguments.
14632compiler=$CC
14633
14634
14635# Allow CC to be a program name with arguments.
14636lt_save_CC="$CC"
14637CC=${GCJ-"gcj"}
14638compiler=$CC
14639compiler_GCJ=$CC
14640
14641# GCJ did not exist at the time GCC didn't implicitly link libc in.
14642archive_cmds_need_lc_GCJ=no
14643
John Criswell47fdd832003-07-14 16:52:07 +000014644
14645lt_prog_compiler_no_builtin_flag_GCJ=
14646
14647if test "$GCC" = yes; then
14648 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14649
14650 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14651echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14652if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654else
14655 lt_cv_prog_compiler_rtti_exceptions=no
14656 ac_outfile=conftest.$ac_objext
14657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14658 lt_compiler_flag="-fno-rtti -fno-exceptions"
14659 # Insert the option either (1) after the last *FLAGS variable, or
14660 # (2) before a word containing "conftest.", or (3) at the end.
14661 # Note that $ac_compile itself does not contain backslashes and begins
14662 # with a dollar sign (not a hyphen), so the echo should work correctly.
14663 # The option is referenced via a variable to avoid confusing sed.
14664 lt_compile=`echo "$ac_compile" | $SED \
14665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14667 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +000014668 (eval echo "\"\$as_me:14668: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014669 (eval "$lt_compile" 2>conftest.err)
14670 ac_status=$?
14671 cat conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +000014672 echo "$as_me:14672: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014673 if (exit $ac_status) && test -s "$ac_outfile"; then
14674 # The compiler can only warn and ignore the option if not recognized
14675 # So say no if there are warnings
14676 if test ! -s conftest.err; then
14677 lt_cv_prog_compiler_rtti_exceptions=yes
14678 fi
14679 fi
14680 $rm conftest*
14681
14682fi
14683echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14684echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14685
14686if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14687 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14688else
14689 :
14690fi
14691
14692fi
14693
14694lt_prog_compiler_wl_GCJ=
14695lt_prog_compiler_pic_GCJ=
14696lt_prog_compiler_static_GCJ=
14697
14698echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14699echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14700
14701 if test "$GCC" = yes; then
14702 lt_prog_compiler_wl_GCJ='-Wl,'
14703 lt_prog_compiler_static_GCJ='-static'
14704
14705 case $host_os in
14706 aix*)
14707 # All AIX code is PIC.
14708 if test "$host_cpu" = ia64; then
14709 # AIX 5 now supports IA64 processor
14710 lt_prog_compiler_static_GCJ='-Bstatic'
14711 fi
14712 ;;
14713
14714 amigaos*)
14715 # FIXME: we need at least 68020 code to build shared libraries, but
14716 # adding the `-m68020' flag to GCC prevents building anything better,
14717 # like `-m68040'.
14718 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14719 ;;
14720
14721 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14722 # PIC is the default for these OSes.
14723 ;;
14724
14725 mingw* | pw32* | os2*)
14726 # This hack is so that the source file can tell whether it is being
14727 # built for inclusion in a dll (and should export symbols for example).
14728 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14729 ;;
14730
14731 darwin* | rhapsody*)
14732 # PIC is the default on this platform
14733 # Common symbols not allowed in MH_DYLIB files
14734 lt_prog_compiler_pic_GCJ='-fno-common'
14735 ;;
14736
14737 msdosdjgpp*)
14738 # Just because we use GCC doesn't mean we suddenly get shared libraries
14739 # on systems that don't support them.
14740 lt_prog_compiler_can_build_shared_GCJ=no
14741 enable_shared=no
14742 ;;
14743
14744 sysv4*MP*)
14745 if test -d /usr/nec; then
14746 lt_prog_compiler_pic_GCJ=-Kconform_pic
14747 fi
14748 ;;
14749
14750 hpux*)
14751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14752 # not for PA HP-UX.
14753 case "$host_cpu" in
14754 hppa*64*|ia64*)
14755 # +Z the default
14756 ;;
14757 *)
14758 lt_prog_compiler_pic_GCJ='-fPIC'
14759 ;;
14760 esac
14761 ;;
14762
14763 *)
14764 lt_prog_compiler_pic_GCJ='-fPIC'
14765 ;;
14766 esac
14767 else
14768 # PORTME Check for flag to pass linker flags through the system compiler.
14769 case $host_os in
14770 aix*)
14771 lt_prog_compiler_wl_GCJ='-Wl,'
14772 if test "$host_cpu" = ia64; then
14773 # AIX 5 now supports IA64 processor
14774 lt_prog_compiler_static_GCJ='-Bstatic'
14775 else
14776 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14777 fi
14778 ;;
14779
14780 mingw* | pw32* | os2*)
14781 # This hack is so that the source file can tell whether it is being
14782 # built for inclusion in a dll (and should export symbols for example).
14783 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14784 ;;
14785
14786 hpux9* | hpux10* | hpux11*)
14787 lt_prog_compiler_wl_GCJ='-Wl,'
14788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14789 # not for PA HP-UX.
14790 case "$host_cpu" in
14791 hppa*64*|ia64*)
14792 # +Z the default
14793 ;;
14794 *)
14795 lt_prog_compiler_pic_GCJ='+Z'
14796 ;;
14797 esac
14798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14799 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14800 ;;
14801
14802 irix5* | irix6* | nonstopux*)
14803 lt_prog_compiler_wl_GCJ='-Wl,'
14804 # PIC (with -KPIC) is the default.
14805 lt_prog_compiler_static_GCJ='-non_shared'
14806 ;;
14807
14808 newsos6)
14809 lt_prog_compiler_pic_GCJ='-KPIC'
14810 lt_prog_compiler_static_GCJ='-Bstatic'
14811 ;;
14812
14813 linux*)
14814 case $CC in
14815 icc|ecc)
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 lt_prog_compiler_pic_GCJ='-KPIC'
14818 lt_prog_compiler_static_GCJ='-static'
14819 ;;
14820 ccc)
14821 lt_prog_compiler_wl_GCJ='-Wl,'
14822 # All Alpha code is PIC.
14823 lt_prog_compiler_static_GCJ='-non_shared'
14824 ;;
14825 esac
14826 ;;
14827
14828 osf3* | osf4* | osf5*)
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 # All OSF/1 code is PIC.
14831 lt_prog_compiler_static_GCJ='-non_shared'
14832 ;;
14833
14834 sco3.2v5*)
14835 lt_prog_compiler_pic_GCJ='-Kpic'
14836 lt_prog_compiler_static_GCJ='-dn'
14837 ;;
14838
14839 solaris*)
14840 lt_prog_compiler_wl_GCJ='-Wl,'
14841 lt_prog_compiler_pic_GCJ='-KPIC'
14842 lt_prog_compiler_static_GCJ='-Bstatic'
14843 ;;
14844
14845 sunos4*)
14846 lt_prog_compiler_wl_GCJ='-Qoption ld '
14847 lt_prog_compiler_pic_GCJ='-PIC'
14848 lt_prog_compiler_static_GCJ='-Bstatic'
14849 ;;
14850
14851 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14852 lt_prog_compiler_wl_GCJ='-Wl,'
14853 lt_prog_compiler_pic_GCJ='-KPIC'
14854 lt_prog_compiler_static_GCJ='-Bstatic'
14855 ;;
14856
14857 sysv4*MP*)
14858 if test -d /usr/nec ;then
14859 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14860 lt_prog_compiler_static_GCJ='-Bstatic'
14861 fi
14862 ;;
14863
14864 uts4*)
14865 lt_prog_compiler_pic_GCJ='-pic'
14866 lt_prog_compiler_static_GCJ='-Bstatic'
14867 ;;
14868
14869 *)
14870 lt_prog_compiler_can_build_shared_GCJ=no
14871 ;;
14872 esac
14873 fi
14874
14875echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14876echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14877
14878#
14879# Check to make sure the PIC flag actually works.
14880#
14881if test -n "$lt_prog_compiler_pic_GCJ"; then
14882 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14883echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14884if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886else
14887 lt_prog_compiler_pic_works_GCJ=no
14888 ac_outfile=conftest.$ac_objext
14889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14890 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14891 # Insert the option either (1) after the last *FLAGS variable, or
14892 # (2) before a word containing "conftest.", or (3) at the end.
14893 # Note that $ac_compile itself does not contain backslashes and begins
14894 # with a dollar sign (not a hyphen), so the echo should work correctly.
14895 # The option is referenced via a variable to avoid confusing sed.
14896 lt_compile=`echo "$ac_compile" | $SED \
14897 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14899 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +000014900 (eval echo "\"\$as_me:14900: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014901 (eval "$lt_compile" 2>conftest.err)
14902 ac_status=$?
14903 cat conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +000014904 echo "$as_me:14904: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014905 if (exit $ac_status) && test -s "$ac_outfile"; then
14906 # The compiler can only warn and ignore the option if not recognized
14907 # So say no if there are warnings
14908 if test ! -s conftest.err; then
14909 lt_prog_compiler_pic_works_GCJ=yes
14910 fi
14911 fi
14912 $rm conftest*
14913
14914fi
14915echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14916echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14917
14918if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14919 case $lt_prog_compiler_pic_GCJ in
14920 "" | " "*) ;;
14921 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14922 esac
14923else
14924 lt_prog_compiler_pic_GCJ=
14925 lt_prog_compiler_can_build_shared_GCJ=no
14926fi
14927
14928fi
14929case "$host_os" in
14930 # For platforms which do not support PIC, -DPIC is meaningless:
14931 *djgpp*)
14932 lt_prog_compiler_pic_GCJ=
14933 ;;
14934 *)
14935 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14936 ;;
14937esac
14938
14939echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14940echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14941if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943else
14944 lt_cv_prog_compiler_c_o_GCJ=no
14945 $rm -r conftest 2>/dev/null
14946 mkdir conftest
14947 cd conftest
14948 mkdir out
14949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950
14951 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14952 # that will create temporary files in the current directory regardless of
14953 # the output directory. Thus, making CWD read-only will cause this test
14954 # to fail, enabling locking or at least warning the user not to do parallel
14955 # builds.
14956 chmod -w .
14957
14958 lt_compiler_flag="-o out/conftest2.$ac_objext"
14959 # Insert the option either (1) after the last *FLAGS variable, or
14960 # (2) before a word containing "conftest.", or (3) at the end.
14961 # Note that $ac_compile itself does not contain backslashes and begins
14962 # with a dollar sign (not a hyphen), so the echo should work correctly.
14963 lt_compile=`echo "$ac_compile" | $SED \
14964 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966 -e 's:$: $lt_compiler_flag:'`
John Criswell0538d422004-02-20 22:30:22 +000014967 (eval echo "\"\$as_me:14967: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014968 (eval "$lt_compile" 2>out/conftest.err)
14969 ac_status=$?
14970 cat out/conftest.err >&5
John Criswell0538d422004-02-20 22:30:22 +000014971 echo "$as_me:14971: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973 then
14974 # The compiler can only warn and ignore the option if not recognized
14975 # So say no if there are warnings
14976 if test ! -s out/conftest.err; then
14977 lt_cv_prog_compiler_c_o_GCJ=yes
14978 fi
14979 fi
14980 chmod u+w .
14981 $rm conftest* out/*
14982 rmdir out
14983 cd ..
14984 rmdir conftest
14985 $rm conftest*
14986
14987fi
14988echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14989echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14990
14991
14992hard_links="nottested"
14993if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14994 # do not overwrite the value of need_locks provided by the user
14995 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14996echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14997 hard_links=yes
14998 $rm conftest*
14999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000 touch conftest.a
15001 ln conftest.a conftest.b 2>&5 || hard_links=no
15002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003 echo "$as_me:$LINENO: result: $hard_links" >&5
15004echo "${ECHO_T}$hard_links" >&6
15005 if test "$hard_links" = no; then
15006 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15007echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15008 need_locks=warn
15009 fi
15010else
15011 need_locks=no
15012fi
15013
15014echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15015echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15016
15017 runpath_var=
15018 allow_undefined_flag_GCJ=
15019 enable_shared_with_static_runtimes_GCJ=no
15020 archive_cmds_GCJ=
15021 archive_expsym_cmds_GCJ=
15022 old_archive_From_new_cmds_GCJ=
15023 old_archive_from_expsyms_cmds_GCJ=
15024 export_dynamic_flag_spec_GCJ=
15025 whole_archive_flag_spec_GCJ=
15026 thread_safe_flag_spec_GCJ=
15027 hardcode_libdir_flag_spec_GCJ=
15028 hardcode_libdir_flag_spec_ld_GCJ=
15029 hardcode_libdir_separator_GCJ=
15030 hardcode_direct_GCJ=no
15031 hardcode_minus_L_GCJ=no
15032 hardcode_shlibpath_var_GCJ=unsupported
15033 link_all_deplibs_GCJ=unknown
15034 hardcode_automatic_GCJ=no
15035 module_cmds_GCJ=
15036 module_expsym_cmds_GCJ=
15037 always_export_symbols_GCJ=no
15038 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15039 # include_expsyms should be a list of space-separated symbols to be *always*
15040 # included in the symbol list
15041 include_expsyms_GCJ=
15042 # exclude_expsyms can be an extended regexp of symbols to exclude
15043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15045 # as well as any symbol that contains `d'.
15046 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15048 # platforms (ab)use it in PIC code, but their linkers get confused if
15049 # the symbol is explicitly referenced. Since portable code cannot
15050 # rely on this symbol name, it's probably fine to never include it in
15051 # preloaded symbol tables.
15052 extract_expsyms_cmds=
15053
15054 case $host_os in
15055 cygwin* | mingw* | pw32*)
15056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15057 # When not using gcc, we currently assume that we are using
15058 # Microsoft Visual C++.
15059 if test "$GCC" != yes; then
15060 with_gnu_ld=no
15061 fi
15062 ;;
15063 openbsd*)
15064 with_gnu_ld=no
15065 ;;
15066 esac
15067
15068 ld_shlibs_GCJ=yes
15069 if test "$with_gnu_ld" = yes; then
15070 # If archive_cmds runs LD, not CC, wlarc should be empty
15071 wlarc='${wl}'
15072
15073 # See if GNU ld supports shared libraries.
15074 case $host_os in
15075 aix3* | aix4* | aix5*)
15076 # On AIX/PPC, the GNU linker is very broken
15077 if test "$host_cpu" != ia64; then
15078 ld_shlibs_GCJ=no
15079 cat <<EOF 1>&2
15080
15081*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15082*** to be unable to reliably create shared libraries on AIX.
15083*** Therefore, libtool is disabling shared libraries support. If you
15084*** really care for shared libraries, you may want to modify your PATH
15085*** so that a non-GNU linker is found, and then restart.
15086
15087EOF
15088 fi
15089 ;;
15090
15091 amigaos*)
15092 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)'
15093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15094 hardcode_minus_L_GCJ=yes
15095
15096 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15097 # that the semantics of dynamic libraries on AmigaOS, at least up
15098 # to version 4, is to share data among multiple programs linked
15099 # with the same dynamic library. Since this doesn't match the
15100 # behavior of shared libraries on other platforms, we can't use
15101 # them.
15102 ld_shlibs_GCJ=no
15103 ;;
15104
15105 beos*)
15106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107 allow_undefined_flag_GCJ=unsupported
15108 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15109 # support --undefined. This deserves some investigation. FIXME
15110 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 else
15112 ld_shlibs_GCJ=no
15113 fi
15114 ;;
15115
15116 cygwin* | mingw* | pw32*)
15117 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15118 # as there is no search path for DLLs.
15119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15120 allow_undefined_flag_GCJ=unsupported
15121 always_export_symbols_GCJ=no
15122 enable_shared_with_static_runtimes_GCJ=yes
15123 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15124
15125 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15126 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15127 # If the export-symbols file already is a .def file (1st line
15128 # is EXPORTS), use it as is; otherwise, prepend...
15129 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15130 cp $export_symbols $output_objdir/$soname.def;
15131 else
15132 echo EXPORTS > $output_objdir/$soname.def;
15133 cat $export_symbols >> $output_objdir/$soname.def;
15134 fi~
15135 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15136 else
15137 ld_shlibs=no
15138 fi
15139 ;;
15140
15141 netbsd*)
15142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15143 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15144 wlarc=
15145 else
15146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15148 fi
15149 ;;
15150
15151 solaris* | sysv5*)
15152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15153 ld_shlibs_GCJ=no
15154 cat <<EOF 1>&2
15155
15156*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15157*** create shared libraries on Solaris systems. Therefore, libtool
15158*** is disabling shared libraries support. We urge you to upgrade GNU
15159*** binutils to release 2.9.1 or newer. Another option is to modify
15160*** your PATH or compiler configuration so that the native linker is
15161*** used, and then restart.
15162
15163EOF
15164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15165 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15166 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15167 else
15168 ld_shlibs_GCJ=no
15169 fi
15170 ;;
15171
15172 sunos4*)
15173 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15174 wlarc=
15175 hardcode_direct_GCJ=yes
15176 hardcode_shlibpath_var_GCJ=no
15177 ;;
15178
15179 *)
15180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15183 else
15184 ld_shlibs_GCJ=no
15185 fi
15186 ;;
15187 esac
15188
15189 if test "$ld_shlibs_GCJ" = yes; then
15190 runpath_var=LD_RUN_PATH
15191 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15192 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15193 # ancient GNU ld didn't support --whole-archive et. al.
15194 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15195 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15196 else
15197 whole_archive_flag_spec_GCJ=
15198 fi
15199 fi
15200 else
15201 # PORTME fill in a description of your system's linker (not GNU ld)
15202 case $host_os in
15203 aix3*)
15204 allow_undefined_flag_GCJ=unsupported
15205 always_export_symbols_GCJ=yes
15206 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'
15207 # Note: this linker hardcodes the directories in LIBPATH if there
15208 # are no directories specified by -L.
15209 hardcode_minus_L_GCJ=yes
15210 if test "$GCC" = yes && test -z "$link_static_flag"; then
15211 # Neither direct hardcoding nor static linking is supported with a
15212 # broken collect2.
15213 hardcode_direct_GCJ=unsupported
15214 fi
15215 ;;
15216
15217 aix4* | aix5*)
15218 if test "$host_cpu" = ia64; then
15219 # On IA64, the linker does run time linking by default, so we don't
15220 # have to do anything special.
15221 aix_use_runtimelinking=no
15222 exp_sym_flag='-Bexport'
15223 no_entry_flag=""
15224 else
15225 # If we're using GNU nm, then we don't want the "-C" option.
15226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15227 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15228 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'
15229 else
15230 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'
15231 fi
15232 aix_use_runtimelinking=no
15233
15234 # Test if we are trying to use run time linking or normal
15235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15236 # need to do runtime linking.
15237 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15238 for ld_flag in $LDFLAGS; do
15239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15240 aix_use_runtimelinking=yes
15241 break
15242 fi
15243 done
15244 esac
15245
15246 exp_sym_flag='-bexport'
15247 no_entry_flag='-bnoentry'
15248 fi
15249
15250 # When large executables or shared objects are built, AIX ld can
15251 # have problems creating the table of contents. If linking a library
15252 # or program results in "error TOC overflow" add -mminimal-toc to
15253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15255
15256 archive_cmds_GCJ=''
15257 hardcode_direct_GCJ=yes
15258 hardcode_libdir_separator_GCJ=':'
15259 link_all_deplibs_GCJ=yes
15260
15261 if test "$GCC" = yes; then
15262 case $host_os in aix4.012|aix4.012.*)
15263 # We only want to do this on AIX 4.2 and lower, the check
15264 # below for broken collect2 doesn't work under 4.3+
15265 collect2name=`${CC} -print-prog-name=collect2`
15266 if test -f "$collect2name" && \
15267 strings "$collect2name" | grep resolve_lib_name >/dev/null
15268 then
15269 # We have reworked collect2
15270 hardcode_direct_GCJ=yes
15271 else
15272 # We have old collect2
15273 hardcode_direct_GCJ=unsupported
15274 # It fails to find uninstalled libraries when the uninstalled
15275 # path is not listed in the libpath. Setting hardcode_minus_L
15276 # to unsupported forces relinking
15277 hardcode_minus_L_GCJ=yes
15278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15279 hardcode_libdir_separator_GCJ=
15280 fi
15281 esac
15282 shared_flag='-shared'
15283 else
15284 # not using gcc
15285 if test "$host_cpu" = ia64; then
15286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287 # chokes on -Wl,-G. The following line is correct:
15288 shared_flag='-G'
15289 else
15290 if test "$aix_use_runtimelinking" = yes; then
15291 shared_flag='${wl}-G'
15292 else
15293 shared_flag='${wl}-bM:SRE'
15294 fi
15295 fi
15296 fi
15297
15298 # It seems that -bexpall does not export symbols beginning with
15299 # underscore (_), so it is better to generate a list of symbols to export.
15300 always_export_symbols_GCJ=yes
15301 if test "$aix_use_runtimelinking" = yes; then
15302 # Warning - without using the other runtime loading flags (-brtl),
15303 # -berok will link without error, but may produce a broken library.
15304 allow_undefined_flag_GCJ='-berok'
15305 # Determine the default libpath from the value encoded in an empty executable.
15306 cat >conftest.$ac_ext <<_ACEOF
15307#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015308/* confdefs.h. */
15309_ACEOF
15310cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015313
John Criswell47fdd832003-07-14 16:52:07 +000015314int
15315main ()
15316{
15317
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext conftest$ac_exeext
15323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334
15335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15336}'`
15337# Check for a 64-bit object if we didn't find anything.
15338if 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; }
15339}'`; fi
15340else
15341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015342sed 's/^/| /' conftest.$ac_ext >&5
15343
John Criswell47fdd832003-07-14 16:52:07 +000015344fi
15345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15347
15348 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15349 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"
15350 else
15351 if test "$host_cpu" = ia64; then
15352 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15353 allow_undefined_flag_GCJ="-z nodefs"
15354 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"
15355 else
15356 # Determine the default libpath from the value encoded in an empty executable.
15357 cat >conftest.$ac_ext <<_ACEOF
15358#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015359/* confdefs.h. */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015364
John Criswell47fdd832003-07-14 16:52:07 +000015365int
15366main ()
15367{
15368
15369 ;
15370 return 0;
15371}
15372_ACEOF
15373rm -f conftest.$ac_objext conftest$ac_exeext
15374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385
15386aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15387}'`
15388# Check for a 64-bit object if we didn't find anything.
15389if 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; }
15390}'`; fi
15391else
15392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015393sed 's/^/| /' conftest.$ac_ext >&5
15394
John Criswell47fdd832003-07-14 16:52:07 +000015395fi
15396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15398
15399 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15400 # Warning - without using the other run time loading flags,
15401 # -berok will link without error, but may produce a broken library.
15402 no_undefined_flag_GCJ=' ${wl}-bernotok'
15403 allow_undefined_flag_GCJ=' ${wl}-berok'
15404 # -bexpall does not export symbols beginning with underscore (_)
15405 always_export_symbols_GCJ=yes
15406 # Exported symbols can be pulled into shared objects from archives
15407 whole_archive_flag_spec_GCJ=' '
15408 archive_cmds_need_lc_GCJ=yes
15409 # This is similar to how AIX traditionally builds it's shared libraries.
15410 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'
15411 fi
15412 fi
15413 ;;
15414
15415 amigaos*)
15416 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)'
15417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15418 hardcode_minus_L_GCJ=yes
15419 # see comment about different semantics on the GNU ld section
15420 ld_shlibs_GCJ=no
15421 ;;
15422
15423 bsdi4*)
15424 export_dynamic_flag_spec_GCJ=-rdynamic
15425 ;;
15426
15427 cygwin* | mingw* | pw32*)
15428 # When not using gcc, we currently assume that we are using
15429 # Microsoft Visual C++.
15430 # hardcode_libdir_flag_spec is actually meaningless, as there is
15431 # no search path for DLLs.
15432 hardcode_libdir_flag_spec_GCJ=' '
15433 allow_undefined_flag_GCJ=unsupported
15434 # Tell ltmain to make .lib files, not .a files.
15435 libext=lib
15436 # Tell ltmain to make .dll files, not .so files.
15437 shrext=".dll"
15438 # FIXME: Setting linknames here is a bad hack.
15439 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15440 # The linker will automatically build a .lib file if we build a DLL.
15441 old_archive_From_new_cmds_GCJ='true'
15442 # FIXME: Should let the user specify the lib program.
15443 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15444 fix_srcfile_path='`cygpath -w "$srcfile"`'
15445 enable_shared_with_static_runtimes_GCJ=yes
15446 ;;
15447
15448 darwin* | rhapsody*)
15449 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15450 archive_cmds_need_lc_GCJ=no
15451 case "$host_os" in
15452 rhapsody* | darwin1.[012])
15453 allow_undefined_flag_GCJ='-undefined suppress'
15454 ;;
15455 *) # Darwin 1.3 on
15456 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15457 ;;
15458 esac
15459 # FIXME: Relying on posixy $() will cause problems for
15460 # cross-compilation, but unfortunately the echo tests do not
15461 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15462 # `"' quotes if we put them in here... so don't!
15463 lt_int_apple_cc_single_mod=no
15464 output_verbose_link_cmd='echo'
15465 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15466 lt_int_apple_cc_single_mod=yes
15467 fi
15468 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15469 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15470 else
15471 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'
15472 fi
15473 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15474 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15475 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15476 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}'
15477 else
15478 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}'
15479 fi
15480 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}'
15481 hardcode_direct_GCJ=no
15482 hardcode_automatic_GCJ=yes
15483 hardcode_shlibpath_var_GCJ=unsupported
15484 whole_archive_flag_spec_GCJ='-all_load $convenience'
15485 link_all_deplibs_GCJ=yes
15486 fi
15487 ;;
15488
15489 dgux*)
15490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15492 hardcode_shlibpath_var_GCJ=no
15493 ;;
15494
15495 freebsd1*)
15496 ld_shlibs_GCJ=no
15497 ;;
15498
15499 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15500 # support. Future versions do this automatically, but an explicit c++rt0.o
15501 # does not break anything, and helps significantly (at the cost of a little
15502 # extra space).
15503 freebsd2.2*)
15504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15505 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15506 hardcode_direct_GCJ=yes
15507 hardcode_shlibpath_var_GCJ=no
15508 ;;
15509
15510 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15511 freebsd2*)
15512 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_direct_GCJ=yes
15514 hardcode_minus_L_GCJ=yes
15515 hardcode_shlibpath_var_GCJ=no
15516 ;;
15517
15518 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15519 freebsd*)
15520 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15521 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15522 hardcode_direct_GCJ=yes
15523 hardcode_shlibpath_var_GCJ=no
15524 ;;
15525
15526 hpux9*)
15527 if test "$GCC" = yes; then
15528 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'
15529 else
15530 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'
15531 fi
15532 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15533 hardcode_libdir_separator_GCJ=:
15534 hardcode_direct_GCJ=yes
15535
15536 # hardcode_minus_L: Not really in the search PATH,
15537 # but as the default location of the library.
15538 hardcode_minus_L_GCJ=yes
15539 export_dynamic_flag_spec_GCJ='${wl}-E'
15540 ;;
15541
15542 hpux10* | hpux11*)
15543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15544 case "$host_cpu" in
15545 hppa*64*|ia64*)
15546 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15547 ;;
15548 *)
15549 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15550 ;;
15551 esac
15552 else
15553 case "$host_cpu" in
15554 hppa*64*|ia64*)
15555 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15556 ;;
15557 *)
15558 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15559 ;;
15560 esac
15561 fi
15562 if test "$with_gnu_ld" = no; then
15563 case "$host_cpu" in
15564 hppa*64*)
15565 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15566 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15567 hardcode_libdir_separator_GCJ=:
15568 hardcode_direct_GCJ=no
15569 hardcode_shlibpath_var_GCJ=no
15570 ;;
15571 ia64*)
15572 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15573 hardcode_direct_GCJ=no
15574 hardcode_shlibpath_var_GCJ=no
15575
15576 # hardcode_minus_L: Not really in the search PATH,
15577 # but as the default location of the library.
15578 hardcode_minus_L_GCJ=yes
15579 ;;
15580 *)
15581 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15582 hardcode_libdir_separator_GCJ=:
15583 hardcode_direct_GCJ=yes
15584 export_dynamic_flag_spec_GCJ='${wl}-E'
15585
15586 # hardcode_minus_L: Not really in the search PATH,
15587 # but as the default location of the library.
15588 hardcode_minus_L_GCJ=yes
15589 ;;
15590 esac
15591 fi
15592 ;;
15593
15594 irix5* | irix6* | nonstopux*)
15595 if test "$GCC" = yes; then
15596 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'
15597 else
15598 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'
15599 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15600 fi
15601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15602 hardcode_libdir_separator_GCJ=:
15603 link_all_deplibs_GCJ=yes
15604 ;;
15605
15606 netbsd*)
15607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15608 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15609 else
15610 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15611 fi
15612 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15613 hardcode_direct_GCJ=yes
15614 hardcode_shlibpath_var_GCJ=no
15615 ;;
15616
15617 newsos6)
15618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 hardcode_direct_GCJ=yes
15620 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15621 hardcode_libdir_separator_GCJ=:
15622 hardcode_shlibpath_var_GCJ=no
15623 ;;
15624
15625 openbsd*)
15626 hardcode_direct_GCJ=yes
15627 hardcode_shlibpath_var_GCJ=no
15628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15629 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15630 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15631 export_dynamic_flag_spec_GCJ='${wl}-E'
15632 else
15633 case $host_os in
15634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15636 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15637 ;;
15638 *)
15639 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15640 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15641 ;;
15642 esac
15643 fi
15644 ;;
15645
15646 os2*)
15647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15648 hardcode_minus_L_GCJ=yes
15649 allow_undefined_flag_GCJ=unsupported
15650 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'
15651 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15652 ;;
15653
15654 osf3*)
15655 if test "$GCC" = yes; then
15656 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15657 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'
15658 else
15659 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15660 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'
15661 fi
15662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663 hardcode_libdir_separator_GCJ=:
15664 ;;
15665
15666 osf4* | osf5*) # as osf3* with the addition of -msym flag
15667 if test "$GCC" = yes; then
15668 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15669 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'
15670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15671 else
15672 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15673 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'
15674 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~
15675 $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'
15676
15677 # Both c and cxx compiler support -rpath directly
15678 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15679 fi
15680 hardcode_libdir_separator_GCJ=:
15681 ;;
15682
15683 sco3.2v5*)
15684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 hardcode_shlibpath_var_GCJ=no
15686 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15687 runpath_var=LD_RUN_PATH
15688 hardcode_runpath_var=yes
15689 ;;
15690
15691 solaris*)
15692 no_undefined_flag_GCJ=' -z text'
15693 if test "$GCC" = yes; then
15694 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15696 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15697 else
15698 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15701 fi
15702 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15703 hardcode_shlibpath_var_GCJ=no
15704 case $host_os in
15705 solaris2.[0-5] | solaris2.[0-5].*) ;;
15706 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15707 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15708 esac
15709 link_all_deplibs_GCJ=yes
15710 ;;
15711
15712 sunos4*)
15713 if test "x$host_vendor" = xsequent; then
15714 # Use $CC to link under sequent, because it throws in some extra .o
15715 # files that make .init and .fini sections work.
15716 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15717 else
15718 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15719 fi
15720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15721 hardcode_direct_GCJ=yes
15722 hardcode_minus_L_GCJ=yes
15723 hardcode_shlibpath_var_GCJ=no
15724 ;;
15725
15726 sysv4)
15727 case $host_vendor in
15728 sni)
15729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15730 hardcode_direct_GCJ=yes # is this really true???
15731 ;;
15732 siemens)
15733 ## LD is ld it makes a PLAMLIB
15734 ## CC just makes a GrossModule.
15735 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15736 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15737 hardcode_direct_GCJ=no
15738 ;;
15739 motorola)
15740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15742 ;;
15743 esac
15744 runpath_var='LD_RUN_PATH'
15745 hardcode_shlibpath_var_GCJ=no
15746 ;;
15747
15748 sysv4.3*)
15749 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_shlibpath_var_GCJ=no
15751 export_dynamic_flag_spec_GCJ='-Bexport'
15752 ;;
15753
15754 sysv4*MP*)
15755 if test -d /usr/nec; then
15756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_shlibpath_var_GCJ=no
15758 runpath_var=LD_RUN_PATH
15759 hardcode_runpath_var=yes
15760 ld_shlibs_GCJ=yes
15761 fi
15762 ;;
15763
15764 sysv4.2uw2*)
15765 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15766 hardcode_direct_GCJ=yes
15767 hardcode_minus_L_GCJ=no
15768 hardcode_shlibpath_var_GCJ=no
15769 hardcode_runpath_var=yes
15770 runpath_var=LD_RUN_PATH
15771 ;;
15772
15773 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15774 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15775 if test "$GCC" = yes; then
15776 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 else
15778 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 fi
15780 runpath_var='LD_RUN_PATH'
15781 hardcode_shlibpath_var_GCJ=no
15782 ;;
15783
15784 sysv5*)
15785 no_undefined_flag_GCJ=' -z text'
15786 # $CC -shared without GNU ld will not create a library from C++
15787 # object files and a static libstdc++, better avoid it by now
15788 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15791 hardcode_libdir_flag_spec_GCJ=
15792 hardcode_shlibpath_var_GCJ=no
15793 runpath_var='LD_RUN_PATH'
15794 ;;
15795
15796 uts4*)
15797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15799 hardcode_shlibpath_var_GCJ=no
15800 ;;
15801
15802 *)
15803 ld_shlibs_GCJ=no
15804 ;;
15805 esac
15806 fi
15807
15808echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15809echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15810test "$ld_shlibs_GCJ" = no && can_build_shared=no
15811
15812variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15813if test "$GCC" = yes; then
15814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15815fi
15816
15817#
15818# Do we need to explicitly link libc?
15819#
15820case "x$archive_cmds_need_lc_GCJ" in
15821x|xyes)
15822 # Assume -lc should be added
15823 archive_cmds_need_lc_GCJ=yes
15824
15825 if test "$enable_shared" = yes && test "$GCC" = yes; then
15826 case $archive_cmds_GCJ in
15827 *'~'*)
15828 # FIXME: we may have to deal with multi-command sequences.
15829 ;;
15830 '$CC '*)
15831 # Test whether the compiler implicitly links with -lc since on some
15832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15833 # to ld, don't add -lc before -lgcc.
15834 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15835echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15836 $rm conftest*
15837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15838
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840 (eval $ac_compile) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } 2>conftest.err; then
15844 soname=conftest
15845 lib=conftest
15846 libobjs=conftest.$ac_objext
15847 deplibs=
15848 wl=$lt_prog_compiler_wl_GCJ
15849 compiler_flags=-v
15850 linker_flags=-v
15851 verstring=
15852 output_objdir=.
15853 libname=conftest
15854 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15855 allow_undefined_flag_GCJ=
15856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15857 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }
15861 then
15862 archive_cmds_need_lc_GCJ=no
15863 else
15864 archive_cmds_need_lc_GCJ=yes
15865 fi
15866 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15867 else
15868 cat conftest.err 1>&5
15869 fi
15870 $rm conftest*
15871 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15872echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15873 ;;
15874 esac
15875 fi
15876 ;;
15877esac
15878
15879echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15880echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15881hardcode_action_GCJ=
15882if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15883 test -n "$runpath_var GCJ" || \
15884 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15885
15886 # We can hardcode non-existant directories.
15887 if test "$hardcode_direct_GCJ" != no &&
15888 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15889 # have to relink, otherwise we might link with an installed library
15890 # when we should be linking with a yet-to-be-installed one
15891 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15892 test "$hardcode_minus_L_GCJ" != no; then
15893 # Linking always hardcodes the temporary library directory.
15894 hardcode_action_GCJ=relink
15895 else
15896 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15897 hardcode_action_GCJ=immediate
15898 fi
15899else
15900 # We cannot hardcode anything, or else we can only hardcode existing
15901 # directories.
15902 hardcode_action_GCJ=unsupported
15903fi
15904echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15905echo "${ECHO_T}$hardcode_action_GCJ" >&6
15906
15907if test "$hardcode_action_GCJ" = relink; then
15908 # Fast installation is not supported
15909 enable_fast_install=no
15910elif test "$shlibpath_overrides_runpath" = yes ||
15911 test "$enable_shared" = no; then
15912 # Fast installation is not necessary
15913 enable_fast_install=needless
15914fi
15915
15916striplib=
15917old_striplib=
15918echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15919echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15920if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15921 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15922 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15923 echo "$as_me:$LINENO: result: yes" >&5
15924echo "${ECHO_T}yes" >&6
15925else
15926# FIXME - insert some real tests, host_os isn't really good enough
15927 case $host_os in
15928 darwin*)
15929 if test -n "$STRIP" ; then
15930 striplib="$STRIP -x"
15931 echo "$as_me:$LINENO: result: yes" >&5
15932echo "${ECHO_T}yes" >&6
15933 else
15934 echo "$as_me:$LINENO: result: no" >&5
15935echo "${ECHO_T}no" >&6
15936fi
15937 ;;
15938 *)
15939 echo "$as_me:$LINENO: result: no" >&5
15940echo "${ECHO_T}no" >&6
15941 ;;
15942 esac
15943fi
15944
15945echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15946echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15947library_names_spec=
15948libname_spec='lib$name'
15949soname_spec=
15950shrext=".so"
15951postinstall_cmds=
15952postuninstall_cmds=
15953finish_cmds=
15954finish_eval=
15955shlibpath_var=
15956shlibpath_overrides_runpath=unknown
15957version_type=none
15958dynamic_linker="$host_os ld.so"
15959sys_lib_dlsearch_path_spec="/lib /usr/lib"
15960if test "$GCC" = yes; then
15961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15962 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15963 # if the path contains ";" then we assume it to be the separator
15964 # otherwise default to the standard path separator (i.e. ":") - it is
15965 # assumed that no part of a normal pathname contains ";" but that should
15966 # okay in the real world where ";" in dirpaths is itself problematic.
15967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15968 else
15969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15970 fi
15971else
15972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15973fi
15974need_lib_prefix=unknown
15975hardcode_into_libs=no
15976
15977# when you set need_version to no, make sure it does not cause -set_version
15978# flags to be left without arguments
15979need_version=unknown
15980
15981case $host_os in
15982aix3*)
15983 version_type=linux
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15985 shlibpath_var=LIBPATH
15986
15987 # AIX 3 has no versioning support, so we append a major version to the name.
15988 soname_spec='${libname}${release}${shared_ext}$major'
15989 ;;
15990
15991aix4* | aix5*)
15992 version_type=linux
15993 need_lib_prefix=no
15994 need_version=no
15995 hardcode_into_libs=yes
15996 if test "$host_cpu" = ia64; then
15997 # AIX 5 supports IA64
15998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 else
16001 # With GCC up to 2.95.x, collect2 would create an import file
16002 # for dependence libraries. The import file would start with
16003 # the line `#! .'. This would cause the generated library to
16004 # depend on `.', always an invalid library. This was fixed in
16005 # development snapshots of GCC prior to 3.0.
16006 case $host_os in
16007 aix4 | aix4.[01] | aix4.[01].*)
16008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16009 echo ' yes '
16010 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16011 :
16012 else
16013 can_build_shared=no
16014 fi
16015 ;;
16016 esac
16017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16018 # soname into executable. Probably we can add versioning support to
16019 # collect2, so additional links can be useful in future.
16020 if test "$aix_use_runtimelinking" = yes; then
16021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16022 # instead of lib<name>.a to let people know that these are not
16023 # typical AIX shared libraries.
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 else
16026 # We preserve .a as extension for shared libraries through AIX4.2
16027 # and later when we are not doing run time linking.
16028 library_names_spec='${libname}${release}.a $libname.a'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 fi
16031 shlibpath_var=LIBPATH
16032 fi
16033 ;;
16034
16035amigaos*)
16036 library_names_spec='$libname.ixlibrary $libname.a'
16037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16038 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'
16039 ;;
16040
16041beos*)
16042 library_names_spec='${libname}${shared_ext}'
16043 dynamic_linker="$host_os ld.so"
16044 shlibpath_var=LIBRARY_PATH
16045 ;;
16046
16047bsdi4*)
16048 version_type=linux
16049 need_version=no
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16053 shlibpath_var=LD_LIBRARY_PATH
16054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16056 # the default ld.so.conf also contains /usr/contrib/lib and
16057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16058 # libtool to hard-code these into programs
16059 ;;
16060
16061cygwin* | mingw* | pw32*)
16062 version_type=windows
16063 shrext=".dll"
16064 need_version=no
16065 need_lib_prefix=no
16066
16067 case $GCC,$host_os in
16068 yes,cygwin* | yes,mingw* | yes,pw32*)
16069 library_names_spec='$libname.dll.a'
16070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16071 postinstall_cmds='base_file=`basename \${file}`~
16072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16073 dldir=$destdir/`dirname \$dlpath`~
16074 test -d \$dldir || mkdir -p \$dldir~
16075 $install_prog $dir/$dlname \$dldir/$dlname'
16076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16077 dlpath=$dir/\$dldll~
16078 $rm \$dlpath'
16079 shlibpath_overrides_runpath=yes
16080
16081 case $host_os in
16082 cygwin*)
16083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16086 ;;
16087 mingw*)
16088 # MinGW DLLs use traditional 'lib' prefix
16089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16092 # It is most probably a Windows format PATH printed by
16093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16094 # path with ; separators, and with drive letters. We can handle the
16095 # drive letters (cygwin fileutils understands them), so leave them,
16096 # especially as we might pass files found there to a mingw objdump,
16097 # which wouldn't understand a cygwinified path. Ahh.
16098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16099 else
16100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16101 fi
16102 ;;
16103 pw32*)
16104 # pw32 DLLs use 'pw' prefix rather than 'lib'
16105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16106 ;;
16107 esac
16108 ;;
16109
16110 *)
16111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16112 ;;
16113 esac
16114 dynamic_linker='Win32 ld.exe'
16115 # FIXME: first we should search . and the directory the executable is in
16116 shlibpath_var=PATH
16117 ;;
16118
16119darwin* | rhapsody*)
16120 dynamic_linker="$host_os dyld"
16121 version_type=darwin
16122 need_lib_prefix=no
16123 need_version=no
16124 # FIXME: Relying on posixy $() will cause problems for
16125 # cross-compilation, but unfortunately the echo tests do not
16126 # yet detect zsh echo's removal of \ escapes.
16127 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16128 soname_spec='${libname}${release}${major}$shared_ext'
16129 shlibpath_overrides_runpath=yes
16130 shlibpath_var=DYLD_LIBRARY_PATH
16131 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16132 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16133 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16134 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"`
16135 fi
16136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16137 ;;
16138
16139dgux*)
16140 version_type=linux
16141 need_lib_prefix=no
16142 need_version=no
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 shlibpath_var=LD_LIBRARY_PATH
16146 ;;
16147
16148freebsd1*)
16149 dynamic_linker=no
16150 ;;
16151
16152freebsd*)
16153 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16154 version_type=freebsd-$objformat
16155 case $version_type in
16156 freebsd-elf*)
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16158 need_version=no
16159 need_lib_prefix=no
16160 ;;
16161 freebsd-*)
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16163 need_version=yes
16164 ;;
16165 esac
16166 shlibpath_var=LD_LIBRARY_PATH
16167 case $host_os in
16168 freebsd2*)
16169 shlibpath_overrides_runpath=yes
16170 ;;
16171 freebsd3.01* | freebsdelf3.01*)
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16174 ;;
16175 *) # from 3.2 on
16176 shlibpath_overrides_runpath=no
16177 hardcode_into_libs=yes
16178 ;;
16179 esac
16180 ;;
16181
16182gnu*)
16183 version_type=linux
16184 need_lib_prefix=no
16185 need_version=no
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 hardcode_into_libs=yes
16190 ;;
16191
16192hpux9* | hpux10* | hpux11*)
16193 # Give a soname corresponding to the major version so that dld.sl refuses to
16194 # link against other versions.
16195 version_type=sunos
16196 need_lib_prefix=no
16197 need_version=no
16198 case "$host_cpu" in
16199 ia64*)
16200 shrext='.so'
16201 hardcode_into_libs=yes
16202 dynamic_linker="$host_os dld.so"
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 if test "X$HPUX_IA64_MODE" = X32; then
16208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16209 else
16210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16211 fi
16212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16213 ;;
16214 hppa*64*)
16215 shrext='.sl'
16216 hardcode_into_libs=yes
16217 dynamic_linker="$host_os dld.sl"
16218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224 ;;
16225 *)
16226 shrext='.sl'
16227 dynamic_linker="$host_os dld.sl"
16228 shlibpath_var=SHLIB_PATH
16229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 ;;
16233 esac
16234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16235 postinstall_cmds='chmod 555 $lib'
16236 ;;
16237
16238irix5* | irix6* | nonstopux*)
16239 case $host_os in
16240 nonstopux*) version_type=nonstopux ;;
16241 *)
16242 if test "$lt_cv_prog_gnu_ld" = yes; then
16243 version_type=linux
16244 else
16245 version_type=irix
16246 fi ;;
16247 esac
16248 need_lib_prefix=no
16249 need_version=no
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16252 case $host_os in
16253 irix5* | nonstopux*)
16254 libsuff= shlibsuff=
16255 ;;
16256 *)
16257 case $LD in # libtool.m4 will add one of these switches to LD
16258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16259 libsuff= shlibsuff= libmagic=32-bit;;
16260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16261 libsuff=32 shlibsuff=N32 libmagic=N32;;
16262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16264 *) libsuff= shlibsuff= libmagic=never-match;;
16265 esac
16266 ;;
16267 esac
16268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16269 shlibpath_overrides_runpath=no
16270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16272 hardcode_into_libs=yes
16273 ;;
16274
16275# No shared lib support for Linux oldld, aout, or coff.
16276linux*oldld* | linux*aout* | linux*coff*)
16277 dynamic_linker=no
16278 ;;
16279
16280# This must be Linux ELF.
16281linux*)
16282 version_type=linux
16283 need_lib_prefix=no
16284 need_version=no
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=no
16290 # This implies no fast_install, which is unacceptable.
16291 # Some rework will be needed to allow for fast_install
16292 # before this can be enabled.
16293 hardcode_into_libs=yes
16294
16295 # We used to test for /lib/ld.so.1 and disable shared libraries on
16296 # powerpc, because MkLinux only supported shared libraries with the
16297 # GNU dynamic linker. Since this was broken with cross compilers,
16298 # most powerpc-linux boxes support dynamic linking these days and
16299 # people can always --disable-shared, the test was removed, and we
16300 # assume the GNU/Linux dynamic linker is in use.
16301 dynamic_linker='GNU/Linux ld.so'
16302 ;;
16303
16304netbsd*)
16305 version_type=sunos
16306 need_lib_prefix=no
16307 need_version=no
16308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16311 dynamic_linker='NetBSD (a.out) ld.so'
16312 else
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 dynamic_linker='NetBSD ld.elf_so'
16316 fi
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=yes
16319 hardcode_into_libs=yes
16320 ;;
16321
16322newsos6)
16323 version_type=linux
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=yes
16327 ;;
16328
16329nto-qnx)
16330 version_type=linux
16331 need_lib_prefix=no
16332 need_version=no
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 shlibpath_overrides_runpath=yes
16337 ;;
16338
16339openbsd*)
16340 version_type=sunos
16341 need_lib_prefix=no
16342 need_version=no
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347 case $host_os in
16348 openbsd2.[89] | openbsd2.[89].*)
16349 shlibpath_overrides_runpath=no
16350 ;;
16351 *)
16352 shlibpath_overrides_runpath=yes
16353 ;;
16354 esac
16355 else
16356 shlibpath_overrides_runpath=yes
16357 fi
16358 ;;
16359
16360os2*)
16361 libname_spec='$name'
16362 shrext=".dll"
16363 need_lib_prefix=no
16364 library_names_spec='$libname${shared_ext} $libname.a'
16365 dynamic_linker='OS/2 ld.exe'
16366 shlibpath_var=LIBPATH
16367 ;;
16368
16369osf3* | osf4* | osf5*)
16370 version_type=osf
16371 need_lib_prefix=no
16372 need_version=no
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16378 ;;
16379
16380sco3.2v5*)
16381 version_type=osf
16382 soname_spec='${libname}${release}${shared_ext}$major'
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 ;;
16386
16387solaris*)
16388 version_type=linux
16389 need_lib_prefix=no
16390 need_version=no
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath=yes
16395 hardcode_into_libs=yes
16396 # ldd complains unless libraries are executable
16397 postinstall_cmds='chmod +x $lib'
16398 ;;
16399
16400sunos4*)
16401 version_type=sunos
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 if test "$with_gnu_ld" = yes; then
16407 need_lib_prefix=no
16408 fi
16409 need_version=yes
16410 ;;
16411
16412sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16413 version_type=linux
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 case $host_vendor in
16418 sni)
16419 shlibpath_overrides_runpath=no
16420 need_lib_prefix=no
16421 export_dynamic_flag_spec='${wl}-Blargedynsym'
16422 runpath_var=LD_RUN_PATH
16423 ;;
16424 siemens)
16425 need_lib_prefix=no
16426 ;;
16427 motorola)
16428 need_lib_prefix=no
16429 need_version=no
16430 shlibpath_overrides_runpath=no
16431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16432 ;;
16433 esac
16434 ;;
16435
16436sysv4*MP*)
16437 if test -d /usr/nec ;then
16438 version_type=linux
16439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16440 soname_spec='$libname${shared_ext}.$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 fi
16443 ;;
16444
16445uts4*)
16446 version_type=linux
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 soname_spec='${libname}${release}${shared_ext}$major'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 ;;
16451
16452*)
16453 dynamic_linker=no
16454 ;;
16455esac
16456echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16457echo "${ECHO_T}$dynamic_linker" >&6
16458test "$dynamic_linker" = no && can_build_shared=no
16459
16460if test "x$enable_dlopen" != xyes; then
16461 enable_dlopen=unknown
16462 enable_dlopen_self=unknown
16463 enable_dlopen_self_static=unknown
16464else
16465 lt_cv_dlopen=no
16466 lt_cv_dlopen_libs=
16467
16468 case $host_os in
16469 beos*)
16470 lt_cv_dlopen="load_add_on"
16471 lt_cv_dlopen_libs=
16472 lt_cv_dlopen_self=yes
16473 ;;
16474
16475 mingw* | pw32*)
16476 lt_cv_dlopen="LoadLibrary"
16477 lt_cv_dlopen_libs=
16478 ;;
16479
16480 cygwin*)
16481 lt_cv_dlopen="dlopen"
16482 lt_cv_dlopen_libs=
16483 ;;
16484
16485 darwin*)
16486 # if libdl is installed we need to link against it
16487 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16488echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16489if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491else
16492 ac_check_lib_save_LIBS=$LIBS
16493LIBS="-ldl $LIBS"
16494cat >conftest.$ac_ext <<_ACEOF
16495#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016501
16502/* Override any gcc2 internal prototype to avoid an error. */
16503#ifdef __cplusplus
16504extern "C"
16505#endif
16506/* We use char because int might match the return type of a gcc2
16507 builtin and then its argument prototype would still apply. */
16508char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016509int
16510main ()
16511{
16512dlopen ();
16513 ;
16514 return 0;
16515}
16516_ACEOF
16517rm -f conftest.$ac_objext conftest$ac_exeext
16518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16519 (eval $ac_link) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -s conftest$ac_exeext'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529 ac_cv_lib_dl_dlopen=yes
16530else
16531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016532sed 's/^/| /' conftest.$ac_ext >&5
16533
John Criswell47fdd832003-07-14 16:52:07 +000016534ac_cv_lib_dl_dlopen=no
16535fi
16536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16537LIBS=$ac_check_lib_save_LIBS
16538fi
16539echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16540echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16541if test $ac_cv_lib_dl_dlopen = yes; then
16542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16543else
16544
16545 lt_cv_dlopen="dyld"
16546 lt_cv_dlopen_libs=
16547 lt_cv_dlopen_self=yes
16548
16549fi
16550
16551 ;;
16552
16553 *)
16554 echo "$as_me:$LINENO: checking for shl_load" >&5
16555echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16556if test "${ac_cv_func_shl_load+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559 cat >conftest.$ac_ext <<_ACEOF
16560#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016561/* confdefs.h. */
16562_ACEOF
16563cat confdefs.h >>conftest.$ac_ext
16564cat >>conftest.$ac_ext <<_ACEOF
16565/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016566/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016567 which can conflict with char shl_load (); below.
16568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569 <limits.h> exists even on freestanding compilers. */
16570#ifdef __STDC__
16571# include <limits.h>
16572#else
16573# include <assert.h>
16574#endif
John Criswell47fdd832003-07-14 16:52:07 +000016575/* Override any gcc2 internal prototype to avoid an error. */
16576#ifdef __cplusplus
16577extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016578{
John Criswell47fdd832003-07-14 16:52:07 +000016579#endif
16580/* We use char because int might match the return type of a gcc2
16581 builtin and then its argument prototype would still apply. */
16582char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016583/* The GNU C library defines this for functions which it implements
16584 to always fail with ENOSYS. Some functions are actually named
16585 something starting with __ and the normal name is an alias. */
16586#if defined (__stub_shl_load) || defined (__stub___shl_load)
16587choke me
16588#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016589char (*f) () = shl_load;
16590#endif
16591#ifdef __cplusplus
16592}
John Criswell47fdd832003-07-14 16:52:07 +000016593#endif
16594
John Criswell0c38eaf2003-09-10 15:17:25 +000016595int
16596main ()
16597{
16598return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016599 ;
16600 return 0;
16601}
16602_ACEOF
16603rm -f conftest.$ac_objext conftest$ac_exeext
16604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605 (eval $ac_link) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -s conftest$ac_exeext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_func_shl_load=yes
16616else
16617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016618sed 's/^/| /' conftest.$ac_ext >&5
16619
John Criswell47fdd832003-07-14 16:52:07 +000016620ac_cv_func_shl_load=no
16621fi
16622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16623fi
16624echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16625echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16626if test $ac_cv_func_shl_load = yes; then
16627 lt_cv_dlopen="shl_load"
16628else
16629 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16630echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16631if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633else
16634 ac_check_lib_save_LIBS=$LIBS
16635LIBS="-ldld $LIBS"
16636cat >conftest.$ac_ext <<_ACEOF
16637#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016638/* confdefs.h. */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016643
16644/* Override any gcc2 internal prototype to avoid an error. */
16645#ifdef __cplusplus
16646extern "C"
16647#endif
16648/* We use char because int might match the return type of a gcc2
16649 builtin and then its argument prototype would still apply. */
16650char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016651int
16652main ()
16653{
16654shl_load ();
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext conftest$ac_exeext
16660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661 (eval $ac_link) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_lib_dld_shl_load=yes
16672else
16673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016674sed 's/^/| /' conftest.$ac_ext >&5
16675
John Criswell47fdd832003-07-14 16:52:07 +000016676ac_cv_lib_dld_shl_load=no
16677fi
16678rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16679LIBS=$ac_check_lib_save_LIBS
16680fi
16681echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16682echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16683if test $ac_cv_lib_dld_shl_load = yes; then
16684 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16685else
16686 echo "$as_me:$LINENO: checking for dlopen" >&5
16687echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16688if test "${ac_cv_func_dlopen+set}" = set; then
16689 echo $ECHO_N "(cached) $ECHO_C" >&6
16690else
16691 cat >conftest.$ac_ext <<_ACEOF
16692#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016693/* confdefs.h. */
16694_ACEOF
16695cat confdefs.h >>conftest.$ac_ext
16696cat >>conftest.$ac_ext <<_ACEOF
16697/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016698/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016699 which can conflict with char dlopen (); below.
16700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16701 <limits.h> exists even on freestanding compilers. */
16702#ifdef __STDC__
16703# include <limits.h>
16704#else
16705# include <assert.h>
16706#endif
John Criswell47fdd832003-07-14 16:52:07 +000016707/* Override any gcc2 internal prototype to avoid an error. */
16708#ifdef __cplusplus
16709extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016710{
John Criswell47fdd832003-07-14 16:52:07 +000016711#endif
16712/* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016715/* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718#if defined (__stub_dlopen) || defined (__stub___dlopen)
16719choke me
16720#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016721char (*f) () = dlopen;
16722#endif
16723#ifdef __cplusplus
16724}
John Criswell47fdd832003-07-14 16:52:07 +000016725#endif
16726
John Criswell0c38eaf2003-09-10 15:17:25 +000016727int
16728main ()
16729{
16730return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016731 ;
16732 return 0;
16733}
16734_ACEOF
16735rm -f conftest.$ac_objext conftest$ac_exeext
16736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_func_dlopen=yes
16748else
16749 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016750sed 's/^/| /' conftest.$ac_ext >&5
16751
John Criswell47fdd832003-07-14 16:52:07 +000016752ac_cv_func_dlopen=no
16753fi
16754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16755fi
16756echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16757echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16758if test $ac_cv_func_dlopen = yes; then
16759 lt_cv_dlopen="dlopen"
16760else
16761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16762echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16763if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16765else
16766 ac_check_lib_save_LIBS=$LIBS
16767LIBS="-ldl $LIBS"
16768cat >conftest.$ac_ext <<_ACEOF
16769#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016770/* confdefs.h. */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016775
16776/* Override any gcc2 internal prototype to avoid an error. */
16777#ifdef __cplusplus
16778extern "C"
16779#endif
16780/* We use char because int might match the return type of a gcc2
16781 builtin and then its argument prototype would still apply. */
16782char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016783int
16784main ()
16785{
16786dlopen ();
16787 ;
16788 return 0;
16789}
16790_ACEOF
16791rm -f conftest.$ac_objext conftest$ac_exeext
16792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16793 (eval $ac_link) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -s conftest$ac_exeext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_lib_dl_dlopen=yes
16804else
16805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016806sed 's/^/| /' conftest.$ac_ext >&5
16807
John Criswell47fdd832003-07-14 16:52:07 +000016808ac_cv_lib_dl_dlopen=no
16809fi
16810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16811LIBS=$ac_check_lib_save_LIBS
16812fi
16813echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16814echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16815if test $ac_cv_lib_dl_dlopen = yes; then
16816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16817else
16818 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16819echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16820if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16822else
16823 ac_check_lib_save_LIBS=$LIBS
16824LIBS="-lsvld $LIBS"
16825cat >conftest.$ac_ext <<_ACEOF
16826#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016832
16833/* Override any gcc2 internal prototype to avoid an error. */
16834#ifdef __cplusplus
16835extern "C"
16836#endif
16837/* We use char because int might match the return type of a gcc2
16838 builtin and then its argument prototype would still apply. */
16839char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016840int
16841main ()
16842{
16843dlopen ();
16844 ;
16845 return 0;
16846}
16847_ACEOF
16848rm -f conftest.$ac_objext conftest$ac_exeext
16849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850 (eval $ac_link) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -s conftest$ac_exeext'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_lib_svld_dlopen=yes
16861else
16862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016863sed 's/^/| /' conftest.$ac_ext >&5
16864
John Criswell47fdd832003-07-14 16:52:07 +000016865ac_cv_lib_svld_dlopen=no
16866fi
16867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16868LIBS=$ac_check_lib_save_LIBS
16869fi
16870echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16871echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16872if test $ac_cv_lib_svld_dlopen = yes; then
16873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16874else
16875 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16876echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16877if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879else
16880 ac_check_lib_save_LIBS=$LIBS
16881LIBS="-ldld $LIBS"
16882cat >conftest.$ac_ext <<_ACEOF
16883#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016884/* confdefs.h. */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016889
16890/* Override any gcc2 internal prototype to avoid an error. */
16891#ifdef __cplusplus
16892extern "C"
16893#endif
16894/* We use char because int might match the return type of a gcc2
16895 builtin and then its argument prototype would still apply. */
16896char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016897int
16898main ()
16899{
16900dld_link ();
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext conftest$ac_exeext
16906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907 (eval $ac_link) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_lib_dld_dld_link=yes
16918else
16919 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016920sed 's/^/| /' conftest.$ac_ext >&5
16921
John Criswell47fdd832003-07-14 16:52:07 +000016922ac_cv_lib_dld_dld_link=no
16923fi
16924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16925LIBS=$ac_check_lib_save_LIBS
16926fi
16927echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16928echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16929if test $ac_cv_lib_dld_dld_link = yes; then
16930 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16931fi
16932
16933
16934fi
16935
16936
16937fi
16938
16939
16940fi
16941
16942
16943fi
16944
16945
16946fi
16947
16948 ;;
16949 esac
16950
16951 if test "x$lt_cv_dlopen" != xno; then
16952 enable_dlopen=yes
16953 else
16954 enable_dlopen=no
16955 fi
16956
16957 case $lt_cv_dlopen in
16958 dlopen)
16959 save_CPPFLAGS="$CPPFLAGS"
16960 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16961
16962 save_LDFLAGS="$LDFLAGS"
16963 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16964
16965 save_LIBS="$LIBS"
16966 LIBS="$lt_cv_dlopen_libs $LIBS"
16967
16968 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16969echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16970if test "${lt_cv_dlopen_self+set}" = set; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16972else
16973 if test "$cross_compiling" = yes; then :
16974 lt_cv_dlopen_self=cross
16975else
16976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16977 lt_status=$lt_dlunknown
16978 cat > conftest.$ac_ext <<EOF
John Criswell0538d422004-02-20 22:30:22 +000016979#line 16979 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016980#include "confdefs.h"
16981
16982#if HAVE_DLFCN_H
16983#include <dlfcn.h>
16984#endif
16985
16986#include <stdio.h>
16987
16988#ifdef RTLD_GLOBAL
16989# define LT_DLGLOBAL RTLD_GLOBAL
16990#else
16991# ifdef DL_GLOBAL
16992# define LT_DLGLOBAL DL_GLOBAL
16993# else
16994# define LT_DLGLOBAL 0
16995# endif
16996#endif
16997
16998/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16999 find out it does not work in some platform. */
17000#ifndef LT_DLLAZY_OR_NOW
17001# ifdef RTLD_LAZY
17002# define LT_DLLAZY_OR_NOW RTLD_LAZY
17003# else
17004# ifdef DL_LAZY
17005# define LT_DLLAZY_OR_NOW DL_LAZY
17006# else
17007# ifdef RTLD_NOW
17008# define LT_DLLAZY_OR_NOW RTLD_NOW
17009# else
17010# ifdef DL_NOW
17011# define LT_DLLAZY_OR_NOW DL_NOW
17012# else
17013# define LT_DLLAZY_OR_NOW 0
17014# endif
17015# endif
17016# endif
17017# endif
17018#endif
17019
17020#ifdef __cplusplus
17021extern "C" void exit (int);
17022#endif
17023
17024void fnord() { int i=42;}
17025int main ()
17026{
17027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17028 int status = $lt_dlunknown;
17029
17030 if (self)
17031 {
17032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17033 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17034 /* dlclose (self); */
17035 }
17036
17037 exit (status);
17038}
17039EOF
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17045 (./conftest; exit; ) 2>/dev/null
17046 lt_status=$?
17047 case x$lt_status in
17048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17050 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17051 esac
17052 else :
17053 # compilation failed
17054 lt_cv_dlopen_self=no
17055 fi
17056fi
17057rm -fr conftest*
17058
17059
17060fi
17061echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17062echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17063
17064 if test "x$lt_cv_dlopen_self" = xyes; then
17065 LDFLAGS="$LDFLAGS $link_static_flag"
17066 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17067echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17068if test "${lt_cv_dlopen_self_static+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070else
17071 if test "$cross_compiling" = yes; then :
17072 lt_cv_dlopen_self_static=cross
17073else
17074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17075 lt_status=$lt_dlunknown
17076 cat > conftest.$ac_ext <<EOF
John Criswell0538d422004-02-20 22:30:22 +000017077#line 17077 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017078#include "confdefs.h"
17079
17080#if HAVE_DLFCN_H
17081#include <dlfcn.h>
17082#endif
17083
17084#include <stdio.h>
17085
17086#ifdef RTLD_GLOBAL
17087# define LT_DLGLOBAL RTLD_GLOBAL
17088#else
17089# ifdef DL_GLOBAL
17090# define LT_DLGLOBAL DL_GLOBAL
17091# else
17092# define LT_DLGLOBAL 0
17093# endif
17094#endif
17095
17096/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17097 find out it does not work in some platform. */
17098#ifndef LT_DLLAZY_OR_NOW
17099# ifdef RTLD_LAZY
17100# define LT_DLLAZY_OR_NOW RTLD_LAZY
17101# else
17102# ifdef DL_LAZY
17103# define LT_DLLAZY_OR_NOW DL_LAZY
17104# else
17105# ifdef RTLD_NOW
17106# define LT_DLLAZY_OR_NOW RTLD_NOW
17107# else
17108# ifdef DL_NOW
17109# define LT_DLLAZY_OR_NOW DL_NOW
17110# else
17111# define LT_DLLAZY_OR_NOW 0
17112# endif
17113# endif
17114# endif
17115# endif
17116#endif
17117
17118#ifdef __cplusplus
17119extern "C" void exit (int);
17120#endif
17121
17122void fnord() { int i=42;}
17123int main ()
17124{
17125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17126 int status = $lt_dlunknown;
17127
17128 if (self)
17129 {
17130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17132 /* dlclose (self); */
17133 }
17134
17135 exit (status);
17136}
17137EOF
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17143 (./conftest; exit; ) 2>/dev/null
17144 lt_status=$?
17145 case x$lt_status in
17146 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17147 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17148 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17149 esac
17150 else :
17151 # compilation failed
17152 lt_cv_dlopen_self_static=no
17153 fi
17154fi
17155rm -fr conftest*
17156
17157
17158fi
17159echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17160echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17161 fi
17162
17163 CPPFLAGS="$save_CPPFLAGS"
17164 LDFLAGS="$save_LDFLAGS"
17165 LIBS="$save_LIBS"
17166 ;;
17167 esac
17168
17169 case $lt_cv_dlopen_self in
17170 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17171 *) enable_dlopen_self=unknown ;;
17172 esac
17173
17174 case $lt_cv_dlopen_self_static in
17175 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17176 *) enable_dlopen_self_static=unknown ;;
17177 esac
17178fi
17179
17180
17181# The else clause should only fire when bootstrapping the
17182# libtool distribution, otherwise you forgot to ship ltmain.sh
17183# with your package, and you will get complaints that there are
17184# no rules to generate ltmain.sh.
17185if test -f "$ltmain"; then
17186 # See if we are running on zsh, and set the options which allow our commands through
17187 # without removal of \ escapes.
17188 if test -n "${ZSH_VERSION+set}" ; then
17189 setopt NO_GLOB_SUBST
17190 fi
17191 # Now quote all the things that may contain metacharacters while being
17192 # careful not to overquote the AC_SUBSTed values. We take copies of the
17193 # variables and quote the copies for generation of the libtool script.
17194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17195 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17196 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17197 deplibs_check_method reload_flag reload_cmds need_locks \
17198 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17199 lt_cv_sys_global_symbol_to_c_name_address \
17200 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17201 old_postinstall_cmds old_postuninstall_cmds \
17202 compiler_GCJ \
17203 CC_GCJ \
17204 LD_GCJ \
17205 lt_prog_compiler_wl_GCJ \
17206 lt_prog_compiler_pic_GCJ \
17207 lt_prog_compiler_static_GCJ \
17208 lt_prog_compiler_no_builtin_flag_GCJ \
17209 export_dynamic_flag_spec_GCJ \
17210 thread_safe_flag_spec_GCJ \
17211 whole_archive_flag_spec_GCJ \
17212 enable_shared_with_static_runtimes_GCJ \
17213 old_archive_cmds_GCJ \
17214 old_archive_from_new_cmds_GCJ \
17215 predep_objects_GCJ \
17216 postdep_objects_GCJ \
17217 predeps_GCJ \
17218 postdeps_GCJ \
17219 compiler_lib_search_path_GCJ \
17220 archive_cmds_GCJ \
17221 archive_expsym_cmds_GCJ \
17222 postinstall_cmds_GCJ \
17223 postuninstall_cmds_GCJ \
17224 old_archive_from_expsyms_cmds_GCJ \
17225 allow_undefined_flag_GCJ \
17226 no_undefined_flag_GCJ \
17227 export_symbols_cmds_GCJ \
17228 hardcode_libdir_flag_spec_GCJ \
17229 hardcode_libdir_flag_spec_ld_GCJ \
17230 hardcode_libdir_separator_GCJ \
17231 hardcode_automatic_GCJ \
17232 module_cmds_GCJ \
17233 module_expsym_cmds_GCJ \
17234 lt_cv_prog_compiler_c_o_GCJ \
17235 exclude_expsyms_GCJ \
17236 include_expsyms_GCJ; do
17237
17238 case $var in
17239 old_archive_cmds_GCJ | \
17240 old_archive_from_new_cmds_GCJ | \
17241 archive_cmds_GCJ | \
17242 archive_expsym_cmds_GCJ | \
17243 module_cmds_GCJ | \
17244 module_expsym_cmds_GCJ | \
17245 old_archive_from_expsyms_cmds_GCJ | \
17246 export_symbols_cmds_GCJ | \
17247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17248 postinstall_cmds | postuninstall_cmds | \
17249 old_postinstall_cmds | old_postuninstall_cmds | \
17250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17251 # Double-quote double-evaled strings.
17252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17253 ;;
17254 *)
17255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17256 ;;
17257 esac
17258 done
17259
17260 case $lt_echo in
17261 *'\$0 --fallback-echo"')
17262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17263 ;;
17264 esac
17265
17266cfgfile="$ofile"
17267
17268 cat <<__EOF__ >> "$cfgfile"
17269# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17270
17271# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17272
17273# Shell to use when invoking shell scripts.
17274SHELL=$lt_SHELL
17275
17276# Whether or not to build shared libraries.
17277build_libtool_libs=$enable_shared
17278
17279# Whether or not to build static libraries.
17280build_old_libs=$enable_static
17281
17282# Whether or not to add -lc for building shared libraries.
17283build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17284
17285# Whether or not to disallow shared libs when runtime libs are static
17286allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17287
17288# Whether or not to optimize for fast installation.
17289fast_install=$enable_fast_install
17290
17291# The host system.
17292host_alias=$host_alias
17293host=$host
17294
17295# An echo program that does not interpret backslashes.
17296echo=$lt_echo
17297
17298# The archiver.
17299AR=$lt_AR
17300AR_FLAGS=$lt_AR_FLAGS
17301
17302# A C compiler.
17303LTCC=$lt_LTCC
17304
17305# A language-specific compiler.
17306CC=$lt_compiler_GCJ
17307
17308# Is the compiler the GNU C compiler?
17309with_gcc=$GCC_GCJ
17310
17311# An ERE matcher.
17312EGREP=$lt_EGREP
17313
17314# The linker used to build libraries.
17315LD=$lt_LD_GCJ
17316
17317# Whether we need hard or soft links.
17318LN_S=$lt_LN_S
17319
17320# A BSD-compatible nm program.
17321NM=$lt_NM
17322
17323# A symbol stripping program
17324STRIP=$STRIP
17325
17326# Used to examine libraries when file_magic_cmd begins "file"
17327MAGIC_CMD=$MAGIC_CMD
17328
17329# Used on cygwin: DLL creation program.
17330DLLTOOL="$DLLTOOL"
17331
17332# Used on cygwin: object dumper.
17333OBJDUMP="$OBJDUMP"
17334
17335# Used on cygwin: assembler.
17336AS="$AS"
17337
17338# The name of the directory that contains temporary libtool files.
17339objdir=$objdir
17340
17341# How to create reloadable object files.
17342reload_flag=$lt_reload_flag
17343reload_cmds=$lt_reload_cmds
17344
17345# How to pass a linker flag through the compiler.
17346wl=$lt_lt_prog_compiler_wl_GCJ
17347
17348# Object file suffix (normally "o").
17349objext="$ac_objext"
17350
17351# Old archive suffix (normally "a").
17352libext="$libext"
17353
17354# Shared library suffix (normally ".so").
17355shrext='$shrext'
17356
17357# Executable file suffix (normally "").
17358exeext="$exeext"
17359
17360# Additional compiler flags for building library objects.
17361pic_flag=$lt_lt_prog_compiler_pic_GCJ
17362pic_mode=$pic_mode
17363
17364# What is the maximum length of a command?
17365max_cmd_len=$lt_cv_sys_max_cmd_len
17366
17367# Does compiler simultaneously support -c and -o options?
17368compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17369
17370# Must we lock files when doing compilation ?
17371need_locks=$lt_need_locks
17372
17373# Do we need the lib prefix for modules?
17374need_lib_prefix=$need_lib_prefix
17375
17376# Do we need a version for libraries?
17377need_version=$need_version
17378
17379# Whether dlopen is supported.
17380dlopen_support=$enable_dlopen
17381
17382# Whether dlopen of programs is supported.
17383dlopen_self=$enable_dlopen_self
17384
17385# Whether dlopen of statically linked programs is supported.
17386dlopen_self_static=$enable_dlopen_self_static
17387
17388# Compiler flag to prevent dynamic linking.
17389link_static_flag=$lt_lt_prog_compiler_static_GCJ
17390
17391# Compiler flag to turn off builtin functions.
17392no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17393
17394# Compiler flag to allow reflexive dlopens.
17395export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17396
17397# Compiler flag to generate shared objects directly from archives.
17398whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17399
17400# Compiler flag to generate thread-safe objects.
17401thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17402
17403# Library versioning type.
17404version_type=$version_type
17405
17406# Format of library name prefix.
17407libname_spec=$lt_libname_spec
17408
17409# List of archive names. First name is the real one, the rest are links.
17410# The last name is the one that the linker finds with -lNAME.
17411library_names_spec=$lt_library_names_spec
17412
17413# The coded name of the library, if different from the real name.
17414soname_spec=$lt_soname_spec
17415
17416# Commands used to build and install an old-style archive.
17417RANLIB=$lt_RANLIB
17418old_archive_cmds=$lt_old_archive_cmds_GCJ
17419old_postinstall_cmds=$lt_old_postinstall_cmds
17420old_postuninstall_cmds=$lt_old_postuninstall_cmds
17421
17422# Create an old-style archive from a shared archive.
17423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17424
17425# Create a temporary old-style archive to link instead of a shared archive.
17426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17427
17428# Commands used to build and install a shared archive.
17429archive_cmds=$lt_archive_cmds_GCJ
17430archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17431postinstall_cmds=$lt_postinstall_cmds
17432postuninstall_cmds=$lt_postuninstall_cmds
17433
17434# Commands used to build a loadable module (assumed same as above if empty)
17435module_cmds=$lt_module_cmds_GCJ
17436module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17437
17438# Commands to strip libraries.
17439old_striplib=$lt_old_striplib
17440striplib=$lt_striplib
17441
17442# Dependencies to place before the objects being linked to create a
17443# shared library.
17444predep_objects=$lt_predep_objects_GCJ
17445
17446# Dependencies to place after the objects being linked to create a
17447# shared library.
17448postdep_objects=$lt_postdep_objects_GCJ
17449
17450# Dependencies to place before the objects being linked to create a
17451# shared library.
17452predeps=$lt_predeps_GCJ
17453
17454# Dependencies to place after the objects being linked to create a
17455# shared library.
17456postdeps=$lt_postdeps_GCJ
17457
17458# The library search path used internally by the compiler when linking
17459# a shared library.
17460compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17461
17462# Method to check whether dependent libraries are shared objects.
17463deplibs_check_method=$lt_deplibs_check_method
17464
17465# Command to use when deplibs_check_method == file_magic.
17466file_magic_cmd=$lt_file_magic_cmd
17467
17468# Flag that allows shared libraries with undefined symbols to be built.
17469allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17470
17471# Flag that forces no undefined symbols.
17472no_undefined_flag=$lt_no_undefined_flag_GCJ
17473
17474# Commands used to finish a libtool library installation in a directory.
17475finish_cmds=$lt_finish_cmds
17476
17477# Same as above, but a single script fragment to be evaled but not shown.
17478finish_eval=$lt_finish_eval
17479
17480# Take the output of nm and produce a listing of raw symbols and C names.
17481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17482
17483# Transform the output of nm in a proper C declaration
17484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17485
17486# Transform the output of nm in a C name address pair
17487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17488
17489# This is the shared library runtime path variable.
17490runpath_var=$runpath_var
17491
17492# This is the shared library path variable.
17493shlibpath_var=$shlibpath_var
17494
17495# Is shlibpath searched before the hard-coded library search path?
17496shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17497
17498# How to hardcode a shared library path into an executable.
17499hardcode_action=$hardcode_action_GCJ
17500
17501# Whether we should hardcode library paths into libraries.
17502hardcode_into_libs=$hardcode_into_libs
17503
17504# Flag to hardcode \$libdir into a binary during linking.
17505# This must work even if \$libdir does not exist.
17506hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17507
17508# If ld is used when linking, flag to hardcode \$libdir into
17509# a binary during linking. This must work even if \$libdir does
17510# not exist.
17511hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17512
17513# Whether we need a single -rpath flag with a separated argument.
17514hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17515
17516# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17517# resulting binary.
17518hardcode_direct=$hardcode_direct_GCJ
17519
17520# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17521# resulting binary.
17522hardcode_minus_L=$hardcode_minus_L_GCJ
17523
17524# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17525# the resulting binary.
17526hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17527
17528# Set to yes if building a shared library automatically hardcodes DIR into the library
17529# and all subsequent libraries and executables linked against it.
17530hardcode_automatic=$hardcode_automatic_GCJ
17531
17532# Variables whose values should be saved in libtool wrapper scripts and
17533# restored at relink time.
17534variables_saved_for_relink="$variables_saved_for_relink"
17535
17536# Whether libtool must link a program against all its dependency libraries.
17537link_all_deplibs=$link_all_deplibs_GCJ
17538
17539# Compile-time system search path for libraries
17540sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17541
17542# Run-time system search path for libraries
17543sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17544
17545# Fix the shell variable \$srcfile for the compiler.
17546fix_srcfile_path="$fix_srcfile_path_GCJ"
17547
17548# Set to yes if exported symbols are required.
17549always_export_symbols=$always_export_symbols_GCJ
17550
17551# The commands to list exported symbols.
17552export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17553
17554# The commands to extract the exported symbol list from a shared archive.
17555extract_expsyms_cmds=$lt_extract_expsyms_cmds
17556
17557# Symbols that should not be listed in the preloaded symbols.
17558exclude_expsyms=$lt_exclude_expsyms_GCJ
17559
17560# Symbols that must always be exported.
17561include_expsyms=$lt_include_expsyms_GCJ
17562
17563# ### END LIBTOOL TAG CONFIG: $tagname
17564
17565__EOF__
17566
17567
17568else
17569 # If there is no Makefile yet, we rely on a make rule to execute
17570 # `config.status --recheck' to rerun these tests and create the
17571 # libtool script then.
17572 test -f Makefile && make "$ltmain"
17573fi
17574
17575
17576ac_ext=c
17577ac_cpp='$CPP $CPPFLAGS'
17578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580ac_compiler_gnu=$ac_cv_c_compiler_gnu
17581
17582CC="$lt_save_CC"
17583
17584 else
17585 tagname=""
17586 fi
17587 ;;
17588
17589 RC)
17590
17591
17592
17593# Source file extension for RC test sources.
17594ac_ext=rc
17595
17596# Object file extension for compiled RC test sources.
17597objext=o
17598objext_RC=$objext
17599
17600# Code to be used in simple compile tests
17601lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17602
17603# Code to be used in simple link tests
17604lt_simple_link_test_code="$lt_simple_compile_test_code"
17605
17606# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17607
17608# If no C compiler was specified, use CC.
17609LTCC=${LTCC-"$CC"}
17610
17611# Allow CC to be a program name with arguments.
17612compiler=$CC
17613
17614
17615# Allow CC to be a program name with arguments.
17616lt_save_CC="$CC"
17617CC=${RC-"windres"}
17618compiler=$CC
17619compiler_RC=$CC
17620lt_cv_prog_compiler_c_o_RC=yes
17621
17622# The else clause should only fire when bootstrapping the
17623# libtool distribution, otherwise you forgot to ship ltmain.sh
17624# with your package, and you will get complaints that there are
17625# no rules to generate ltmain.sh.
17626if test -f "$ltmain"; then
17627 # See if we are running on zsh, and set the options which allow our commands through
17628 # without removal of \ escapes.
17629 if test -n "${ZSH_VERSION+set}" ; then
17630 setopt NO_GLOB_SUBST
17631 fi
17632 # Now quote all the things that may contain metacharacters while being
17633 # careful not to overquote the AC_SUBSTed values. We take copies of the
17634 # variables and quote the copies for generation of the libtool script.
17635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17636 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17637 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17638 deplibs_check_method reload_flag reload_cmds need_locks \
17639 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17640 lt_cv_sys_global_symbol_to_c_name_address \
17641 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17642 old_postinstall_cmds old_postuninstall_cmds \
17643 compiler_RC \
17644 CC_RC \
17645 LD_RC \
17646 lt_prog_compiler_wl_RC \
17647 lt_prog_compiler_pic_RC \
17648 lt_prog_compiler_static_RC \
17649 lt_prog_compiler_no_builtin_flag_RC \
17650 export_dynamic_flag_spec_RC \
17651 thread_safe_flag_spec_RC \
17652 whole_archive_flag_spec_RC \
17653 enable_shared_with_static_runtimes_RC \
17654 old_archive_cmds_RC \
17655 old_archive_from_new_cmds_RC \
17656 predep_objects_RC \
17657 postdep_objects_RC \
17658 predeps_RC \
17659 postdeps_RC \
17660 compiler_lib_search_path_RC \
17661 archive_cmds_RC \
17662 archive_expsym_cmds_RC \
17663 postinstall_cmds_RC \
17664 postuninstall_cmds_RC \
17665 old_archive_from_expsyms_cmds_RC \
17666 allow_undefined_flag_RC \
17667 no_undefined_flag_RC \
17668 export_symbols_cmds_RC \
17669 hardcode_libdir_flag_spec_RC \
17670 hardcode_libdir_flag_spec_ld_RC \
17671 hardcode_libdir_separator_RC \
17672 hardcode_automatic_RC \
17673 module_cmds_RC \
17674 module_expsym_cmds_RC \
17675 lt_cv_prog_compiler_c_o_RC \
17676 exclude_expsyms_RC \
17677 include_expsyms_RC; do
17678
17679 case $var in
17680 old_archive_cmds_RC | \
17681 old_archive_from_new_cmds_RC | \
17682 archive_cmds_RC | \
17683 archive_expsym_cmds_RC | \
17684 module_cmds_RC | \
17685 module_expsym_cmds_RC | \
17686 old_archive_from_expsyms_cmds_RC | \
17687 export_symbols_cmds_RC | \
17688 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17689 postinstall_cmds | postuninstall_cmds | \
17690 old_postinstall_cmds | old_postuninstall_cmds | \
17691 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17692 # Double-quote double-evaled strings.
17693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17694 ;;
17695 *)
17696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17697 ;;
17698 esac
17699 done
17700
17701 case $lt_echo in
17702 *'\$0 --fallback-echo"')
17703 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17704 ;;
17705 esac
17706
17707cfgfile="$ofile"
17708
17709 cat <<__EOF__ >> "$cfgfile"
17710# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17711
17712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17713
17714# Shell to use when invoking shell scripts.
17715SHELL=$lt_SHELL
17716
17717# Whether or not to build shared libraries.
17718build_libtool_libs=$enable_shared
17719
17720# Whether or not to build static libraries.
17721build_old_libs=$enable_static
17722
17723# Whether or not to add -lc for building shared libraries.
17724build_libtool_need_lc=$archive_cmds_need_lc_RC
17725
17726# Whether or not to disallow shared libs when runtime libs are static
17727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17728
17729# Whether or not to optimize for fast installation.
17730fast_install=$enable_fast_install
17731
17732# The host system.
17733host_alias=$host_alias
17734host=$host
17735
17736# An echo program that does not interpret backslashes.
17737echo=$lt_echo
17738
17739# The archiver.
17740AR=$lt_AR
17741AR_FLAGS=$lt_AR_FLAGS
17742
17743# A C compiler.
17744LTCC=$lt_LTCC
17745
17746# A language-specific compiler.
17747CC=$lt_compiler_RC
17748
17749# Is the compiler the GNU C compiler?
17750with_gcc=$GCC_RC
17751
17752# An ERE matcher.
17753EGREP=$lt_EGREP
17754
17755# The linker used to build libraries.
17756LD=$lt_LD_RC
17757
17758# Whether we need hard or soft links.
17759LN_S=$lt_LN_S
17760
17761# A BSD-compatible nm program.
17762NM=$lt_NM
17763
17764# A symbol stripping program
17765STRIP=$STRIP
17766
17767# Used to examine libraries when file_magic_cmd begins "file"
17768MAGIC_CMD=$MAGIC_CMD
17769
17770# Used on cygwin: DLL creation program.
17771DLLTOOL="$DLLTOOL"
17772
17773# Used on cygwin: object dumper.
17774OBJDUMP="$OBJDUMP"
17775
17776# Used on cygwin: assembler.
17777AS="$AS"
17778
17779# The name of the directory that contains temporary libtool files.
17780objdir=$objdir
17781
17782# How to create reloadable object files.
17783reload_flag=$lt_reload_flag
17784reload_cmds=$lt_reload_cmds
17785
17786# How to pass a linker flag through the compiler.
17787wl=$lt_lt_prog_compiler_wl_RC
17788
17789# Object file suffix (normally "o").
17790objext="$ac_objext"
17791
17792# Old archive suffix (normally "a").
17793libext="$libext"
17794
17795# Shared library suffix (normally ".so").
17796shrext='$shrext'
17797
17798# Executable file suffix (normally "").
17799exeext="$exeext"
17800
17801# Additional compiler flags for building library objects.
17802pic_flag=$lt_lt_prog_compiler_pic_RC
17803pic_mode=$pic_mode
17804
17805# What is the maximum length of a command?
17806max_cmd_len=$lt_cv_sys_max_cmd_len
17807
17808# Does compiler simultaneously support -c and -o options?
17809compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17810
17811# Must we lock files when doing compilation ?
17812need_locks=$lt_need_locks
17813
17814# Do we need the lib prefix for modules?
17815need_lib_prefix=$need_lib_prefix
17816
17817# Do we need a version for libraries?
17818need_version=$need_version
17819
17820# Whether dlopen is supported.
17821dlopen_support=$enable_dlopen
17822
17823# Whether dlopen of programs is supported.
17824dlopen_self=$enable_dlopen_self
17825
17826# Whether dlopen of statically linked programs is supported.
17827dlopen_self_static=$enable_dlopen_self_static
17828
17829# Compiler flag to prevent dynamic linking.
17830link_static_flag=$lt_lt_prog_compiler_static_RC
17831
17832# Compiler flag to turn off builtin functions.
17833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17834
17835# Compiler flag to allow reflexive dlopens.
17836export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17837
17838# Compiler flag to generate shared objects directly from archives.
17839whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17840
17841# Compiler flag to generate thread-safe objects.
17842thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17843
17844# Library versioning type.
17845version_type=$version_type
17846
17847# Format of library name prefix.
17848libname_spec=$lt_libname_spec
17849
17850# List of archive names. First name is the real one, the rest are links.
17851# The last name is the one that the linker finds with -lNAME.
17852library_names_spec=$lt_library_names_spec
17853
17854# The coded name of the library, if different from the real name.
17855soname_spec=$lt_soname_spec
17856
17857# Commands used to build and install an old-style archive.
17858RANLIB=$lt_RANLIB
17859old_archive_cmds=$lt_old_archive_cmds_RC
17860old_postinstall_cmds=$lt_old_postinstall_cmds
17861old_postuninstall_cmds=$lt_old_postuninstall_cmds
17862
17863# Create an old-style archive from a shared archive.
17864old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17865
17866# Create a temporary old-style archive to link instead of a shared archive.
17867old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17868
17869# Commands used to build and install a shared archive.
17870archive_cmds=$lt_archive_cmds_RC
17871archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17872postinstall_cmds=$lt_postinstall_cmds
17873postuninstall_cmds=$lt_postuninstall_cmds
17874
17875# Commands used to build a loadable module (assumed same as above if empty)
17876module_cmds=$lt_module_cmds_RC
17877module_expsym_cmds=$lt_module_expsym_cmds_RC
17878
17879# Commands to strip libraries.
17880old_striplib=$lt_old_striplib
17881striplib=$lt_striplib
17882
17883# Dependencies to place before the objects being linked to create a
17884# shared library.
17885predep_objects=$lt_predep_objects_RC
17886
17887# Dependencies to place after the objects being linked to create a
17888# shared library.
17889postdep_objects=$lt_postdep_objects_RC
17890
17891# Dependencies to place before the objects being linked to create a
17892# shared library.
17893predeps=$lt_predeps_RC
17894
17895# Dependencies to place after the objects being linked to create a
17896# shared library.
17897postdeps=$lt_postdeps_RC
17898
17899# The library search path used internally by the compiler when linking
17900# a shared library.
17901compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17902
17903# Method to check whether dependent libraries are shared objects.
17904deplibs_check_method=$lt_deplibs_check_method
17905
17906# Command to use when deplibs_check_method == file_magic.
17907file_magic_cmd=$lt_file_magic_cmd
17908
17909# Flag that allows shared libraries with undefined symbols to be built.
17910allow_undefined_flag=$lt_allow_undefined_flag_RC
17911
17912# Flag that forces no undefined symbols.
17913no_undefined_flag=$lt_no_undefined_flag_RC
17914
17915# Commands used to finish a libtool library installation in a directory.
17916finish_cmds=$lt_finish_cmds
17917
17918# Same as above, but a single script fragment to be evaled but not shown.
17919finish_eval=$lt_finish_eval
17920
17921# Take the output of nm and produce a listing of raw symbols and C names.
17922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17923
17924# Transform the output of nm in a proper C declaration
17925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17926
17927# Transform the output of nm in a C name address pair
17928global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17929
17930# This is the shared library runtime path variable.
17931runpath_var=$runpath_var
17932
17933# This is the shared library path variable.
17934shlibpath_var=$shlibpath_var
17935
17936# Is shlibpath searched before the hard-coded library search path?
17937shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17938
17939# How to hardcode a shared library path into an executable.
17940hardcode_action=$hardcode_action_RC
17941
17942# Whether we should hardcode library paths into libraries.
17943hardcode_into_libs=$hardcode_into_libs
17944
17945# Flag to hardcode \$libdir into a binary during linking.
17946# This must work even if \$libdir does not exist.
17947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17948
17949# If ld is used when linking, flag to hardcode \$libdir into
17950# a binary during linking. This must work even if \$libdir does
17951# not exist.
17952hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17953
17954# Whether we need a single -rpath flag with a separated argument.
17955hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17956
17957# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17958# resulting binary.
17959hardcode_direct=$hardcode_direct_RC
17960
17961# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17962# resulting binary.
17963hardcode_minus_L=$hardcode_minus_L_RC
17964
17965# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17966# the resulting binary.
17967hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17968
17969# Set to yes if building a shared library automatically hardcodes DIR into the library
17970# and all subsequent libraries and executables linked against it.
17971hardcode_automatic=$hardcode_automatic_RC
17972
17973# Variables whose values should be saved in libtool wrapper scripts and
17974# restored at relink time.
17975variables_saved_for_relink="$variables_saved_for_relink"
17976
17977# Whether libtool must link a program against all its dependency libraries.
17978link_all_deplibs=$link_all_deplibs_RC
17979
17980# Compile-time system search path for libraries
17981sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17982
17983# Run-time system search path for libraries
17984sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17985
17986# Fix the shell variable \$srcfile for the compiler.
17987fix_srcfile_path="$fix_srcfile_path_RC"
17988
17989# Set to yes if exported symbols are required.
17990always_export_symbols=$always_export_symbols_RC
17991
17992# The commands to list exported symbols.
17993export_symbols_cmds=$lt_export_symbols_cmds_RC
17994
17995# The commands to extract the exported symbol list from a shared archive.
17996extract_expsyms_cmds=$lt_extract_expsyms_cmds
17997
17998# Symbols that should not be listed in the preloaded symbols.
17999exclude_expsyms=$lt_exclude_expsyms_RC
18000
18001# Symbols that must always be exported.
18002include_expsyms=$lt_include_expsyms_RC
18003
18004# ### END LIBTOOL TAG CONFIG: $tagname
18005
18006__EOF__
18007
18008
18009else
18010 # If there is no Makefile yet, we rely on a make rule to execute
18011 # `config.status --recheck' to rerun these tests and create the
18012 # libtool script then.
18013 test -f Makefile && make "$ltmain"
18014fi
18015
18016
18017ac_ext=c
18018ac_cpp='$CPP $CPPFLAGS'
18019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021ac_compiler_gnu=$ac_cv_c_compiler_gnu
18022
18023CC="$lt_save_CC"
18024
18025 ;;
18026
18027 *)
18028 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18029echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18030 { (exit 1); exit 1; }; }
18031 ;;
18032 esac
18033
18034 # Append the new tag name to the list of available tags.
18035 if test -n "$tagname" ; then
18036 available_tags="$available_tags $tagname"
18037 fi
18038 fi
18039 done
18040 IFS="$lt_save_ifs"
18041
18042 # Now substitute the updated list of available tags.
18043 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18044 mv "${ofile}T" "$ofile"
18045 chmod +x "$ofile"
18046 else
18047 rm -f "${ofile}T"
18048 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18049echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18050 { (exit 1); exit 1; }; }
18051 fi
18052fi
John Criswell7a73b802003-06-30 21:59:07 +000018053
18054
18055
18056# This can be used to rebuild libtool when needed
18057LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18058
18059# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018060LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018061
18062# Prevent multiple expansion
18063
18064
18065
John Criswell47fdd832003-07-14 16:52:07 +000018066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
John Criswell7a73b802003-06-30 21:59:07 +000018084# Extract the first word of "dot", so it can be a program name with args.
18085set dummy dot; ac_word=$2
18086echo "$as_me:$LINENO: checking for $ac_word" >&5
18087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18088if test "${ac_cv_path_DOT+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090else
18091 case $DOT in
18092 [\\/]* | ?:[\\/]*)
18093 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18094 ;;
18095 *)
18096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097for as_dir in $PATH
18098do
18099 IFS=$as_save_IFS
18100 test -z "$as_dir" && as_dir=.
18101 for ac_exec_ext in '' $ac_executable_extensions; do
18102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18103 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18105 break 2
18106 fi
18107done
18108done
18109
Brian Gaeke26be9c52004-01-13 06:43:16 +000018110 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018111 ;;
18112esac
18113fi
18114DOT=$ac_cv_path_DOT
18115
18116if test -n "$DOT"; then
18117 echo "$as_me:$LINENO: result: $DOT" >&5
18118echo "${ECHO_T}$DOT" >&6
18119else
18120 echo "$as_me:$LINENO: result: no" >&5
18121echo "${ECHO_T}no" >&6
18122fi
18123
18124# Extract the first word of "etags", so it can be a program name with args.
18125set dummy etags; ac_word=$2
18126echo "$as_me:$LINENO: checking for $ac_word" >&5
18127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18128if test "${ac_cv_path_ETAGS+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130else
18131 case $ETAGS in
18132 [\\/]* | ?:[\\/]*)
18133 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18134 ;;
18135 *)
18136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18137for as_dir in $PATH
18138do
18139 IFS=$as_save_IFS
18140 test -z "$as_dir" && as_dir=.
18141 for ac_exec_ext in '' $ac_executable_extensions; do
18142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18143 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18145 break 2
18146 fi
18147done
18148done
18149
Brian Gaeke26be9c52004-01-13 06:43:16 +000018150 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018151 ;;
18152esac
18153fi
18154ETAGS=$ac_cv_path_ETAGS
18155
18156if test -n "$ETAGS"; then
18157 echo "$as_me:$LINENO: result: $ETAGS" >&5
18158echo "${ECHO_T}$ETAGS" >&6
18159else
18160 echo "$as_me:$LINENO: result: no" >&5
18161echo "${ECHO_T}no" >&6
18162fi
18163
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018164etags_version=`$ETAGS --version 2>&1`
18165case "$etags_version" in
18166 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18167 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18168 *) ETAGSFLAGS="" ;;
18169esac
18170ETAGSFLAGS=$ETAGSFLAGS
18171
John Criswellde00db22003-08-25 16:49:54 +000018172# Extract the first word of "python", so it can be a program name with args.
18173set dummy python; ac_word=$2
18174echo "$as_me:$LINENO: checking for $ac_word" >&5
18175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18176if test "${ac_cv_path_PYTHON+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178else
18179 case $PYTHON in
18180 [\\/]* | ?:[\\/]*)
18181 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18182 ;;
18183 *)
18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185for as_dir in $PATH
18186do
18187 IFS=$as_save_IFS
18188 test -z "$as_dir" && as_dir=.
18189 for ac_exec_ext in '' $ac_executable_extensions; do
18190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 break 2
18194 fi
18195done
18196done
18197
Brian Gaeke26be9c52004-01-13 06:43:16 +000018198 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018199 ;;
18200esac
18201fi
18202PYTHON=$ac_cv_path_PYTHON
18203
18204if test -n "$PYTHON"; then
18205 echo "$as_me:$LINENO: result: $PYTHON" >&5
18206echo "${ECHO_T}$PYTHON" >&6
18207else
18208 echo "$as_me:$LINENO: result: no" >&5
18209echo "${ECHO_T}no" >&6
18210fi
18211
Brian Gaeke26be9c52004-01-13 06:43:16 +000018212if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018213then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018214 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18215echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018216fi
John Criswellde00db22003-08-25 16:49:54 +000018217# Extract the first word of "qmtest", so it can be a program name with args.
18218set dummy qmtest; ac_word=$2
18219echo "$as_me:$LINENO: checking for $ac_word" >&5
18220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18221if test "${ac_cv_path_QMTEST+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223else
18224 case $QMTEST in
18225 [\\/]* | ?:[\\/]*)
18226 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18227 ;;
18228 *)
18229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18230for as_dir in $PATH
18231do
18232 IFS=$as_save_IFS
18233 test -z "$as_dir" && as_dir=.
18234 for ac_exec_ext in '' $ac_executable_extensions; do
18235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18236 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18238 break 2
18239 fi
18240done
18241done
18242
Brian Gaeke26be9c52004-01-13 06:43:16 +000018243 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018244 ;;
18245esac
18246fi
18247QMTEST=$ac_cv_path_QMTEST
18248
18249if test -n "$QMTEST"; then
18250 echo "$as_me:$LINENO: result: $QMTEST" >&5
18251echo "${ECHO_T}$QMTEST" >&6
18252else
18253 echo "$as_me:$LINENO: result: no" >&5
18254echo "${ECHO_T}no" >&6
18255fi
18256
Brian Gaeke26be9c52004-01-13 06:43:16 +000018257if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018258then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018259 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18260echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018261fi
John Criswellde00db22003-08-25 16:49:54 +000018262
18263pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18264pymajor=`echo $pyversion | cut -d. -f1`
18265pyminor=`echo $pyversion | cut -d. -f2`
18266
18267if test "$pymajor" -ge "2"
18268then
18269 if test "$pymajor" -eq "2"
18270 then
18271 if test "$pyminor" -lt "2"
18272 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018273 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18274echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018275 fi
18276 fi
18277else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018278 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18279echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018280fi
John Criswell7a73b802003-06-30 21:59:07 +000018281
18282
18283
18284
John Criswell7a73b802003-06-30 21:59:07 +000018285echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18286echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18287if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289else
18290 ac_check_lib_save_LIBS=$LIBS
18291LIBS="-lelf $LIBS"
18292cat >conftest.$ac_ext <<_ACEOF
18293#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018294/* confdefs.h. */
18295_ACEOF
18296cat confdefs.h >>conftest.$ac_ext
18297cat >>conftest.$ac_ext <<_ACEOF
18298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018299
18300/* Override any gcc2 internal prototype to avoid an error. */
18301#ifdef __cplusplus
18302extern "C"
18303#endif
18304/* We use char because int might match the return type of a gcc2
18305 builtin and then its argument prototype would still apply. */
18306char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018307int
18308main ()
18309{
18310elf_begin ();
18311 ;
18312 return 0;
18313}
18314_ACEOF
18315rm -f conftest.$ac_objext conftest$ac_exeext
18316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317 (eval $ac_link) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -s conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_lib_elf_elf_begin=yes
18328else
18329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018330sed 's/^/| /' conftest.$ac_ext >&5
18331
John Criswell7a73b802003-06-30 21:59:07 +000018332ac_cv_lib_elf_elf_begin=no
18333fi
18334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18335LIBS=$ac_check_lib_save_LIBS
18336fi
18337echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18338echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18339if test $ac_cv_lib_elf_elf_begin = yes; then
18340 cat >>confdefs.h <<_ACEOF
18341#define HAVE_LIBELF 1
18342_ACEOF
18343
18344 LIBS="-lelf $LIBS"
18345
18346fi
18347
18348
18349echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18350echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18351if test "${ac_cv_search_dlopen+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18353else
18354 ac_func_search_save_LIBS=$LIBS
18355ac_cv_search_dlopen=no
18356cat >conftest.$ac_ext <<_ACEOF
18357#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018363
18364/* Override any gcc2 internal prototype to avoid an error. */
18365#ifdef __cplusplus
18366extern "C"
18367#endif
18368/* We use char because int might match the return type of a gcc2
18369 builtin and then its argument prototype would still apply. */
18370char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018371int
18372main ()
18373{
18374dlopen ();
18375 ;
18376 return 0;
18377}
18378_ACEOF
18379rm -f conftest.$ac_objext conftest$ac_exeext
18380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381 (eval $ac_link) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
18385 { ac_try='test -s conftest$ac_exeext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_search_dlopen="none required"
18392else
18393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018394sed 's/^/| /' conftest.$ac_ext >&5
18395
John Criswell7a73b802003-06-30 21:59:07 +000018396fi
18397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18398if test "$ac_cv_search_dlopen" = no; then
18399 for ac_lib in dl; do
18400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18401 cat >conftest.$ac_ext <<_ACEOF
18402#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018403/* confdefs.h. */
18404_ACEOF
18405cat confdefs.h >>conftest.$ac_ext
18406cat >>conftest.$ac_ext <<_ACEOF
18407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018408
18409/* Override any gcc2 internal prototype to avoid an error. */
18410#ifdef __cplusplus
18411extern "C"
18412#endif
18413/* We use char because int might match the return type of a gcc2
18414 builtin and then its argument prototype would still apply. */
18415char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018416int
18417main ()
18418{
18419dlopen ();
18420 ;
18421 return 0;
18422}
18423_ACEOF
18424rm -f conftest.$ac_objext conftest$ac_exeext
18425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18426 (eval $ac_link) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 ac_cv_search_dlopen="-l$ac_lib"
18437break
18438else
18439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018440sed 's/^/| /' conftest.$ac_ext >&5
18441
John Criswell7a73b802003-06-30 21:59:07 +000018442fi
18443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18444 done
18445fi
18446LIBS=$ac_func_search_save_LIBS
18447fi
18448echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18449echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18450if test "$ac_cv_search_dlopen" != no; then
18451 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018452
18453cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018454#define HAVE_DLOPEN 1
18455_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018456
18457else
Brian Gaekec45be042003-10-07 06:01:34 +000018458 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18459echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018460fi
18461
18462
18463echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18464echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18465if test "${ac_cv_search_mallinfo+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18467else
18468 ac_func_search_save_LIBS=$LIBS
18469ac_cv_search_mallinfo=no
18470cat >conftest.$ac_ext <<_ACEOF
18471#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018477
18478/* Override any gcc2 internal prototype to avoid an error. */
18479#ifdef __cplusplus
18480extern "C"
18481#endif
18482/* We use char because int might match the return type of a gcc2
18483 builtin and then its argument prototype would still apply. */
18484char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018485int
18486main ()
18487{
18488mallinfo ();
18489 ;
18490 return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
18494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495 (eval $ac_link) 2>&5
18496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -s conftest$ac_exeext'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_cv_search_mallinfo="none required"
18506else
18507 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018508sed 's/^/| /' conftest.$ac_ext >&5
18509
John Criswell7a73b802003-06-30 21:59:07 +000018510fi
18511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18512if test "$ac_cv_search_mallinfo" = no; then
18513 for ac_lib in malloc; do
18514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18516#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018522
18523/* Override any gcc2 internal prototype to avoid an error. */
18524#ifdef __cplusplus
18525extern "C"
18526#endif
18527/* We use char because int might match the return type of a gcc2
18528 builtin and then its argument prototype would still apply. */
18529char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018530int
18531main ()
18532{
18533mallinfo ();
18534 ;
18535 return 0;
18536}
18537_ACEOF
18538rm -f conftest.$ac_objext conftest$ac_exeext
18539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -s conftest$ac_exeext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_cv_search_mallinfo="-l$ac_lib"
18551break
18552else
18553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018554sed 's/^/| /' conftest.$ac_ext >&5
18555
John Criswell7a73b802003-06-30 21:59:07 +000018556fi
18557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18558 done
18559fi
18560LIBS=$ac_func_search_save_LIBS
18561fi
18562echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18563echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18564if test "$ac_cv_search_mallinfo" != no; then
18565 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018566
18567cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018568#define HAVE_MALLINFO 1
18569_ACEOF
18570
18571fi
18572
18573
Brian Gaeke5f268f72003-12-05 19:29:01 +000018574echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18575echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18576if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579 ac_func_search_save_LIBS=$LIBS
18580ac_cv_search_pthread_mutex_lock=no
18581cat >conftest.$ac_ext <<_ACEOF
18582#line $LINENO "configure"
18583/* confdefs.h. */
18584_ACEOF
18585cat confdefs.h >>conftest.$ac_ext
18586cat >>conftest.$ac_ext <<_ACEOF
18587/* end confdefs.h. */
18588
18589/* Override any gcc2 internal prototype to avoid an error. */
18590#ifdef __cplusplus
18591extern "C"
18592#endif
18593/* We use char because int might match the return type of a gcc2
18594 builtin and then its argument prototype would still apply. */
18595char pthread_mutex_lock ();
18596int
18597main ()
18598{
18599pthread_mutex_lock ();
18600 ;
18601 return 0;
18602}
18603_ACEOF
18604rm -f conftest.$ac_objext conftest$ac_exeext
18605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606 (eval $ac_link) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -s conftest$ac_exeext'
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; }; then
18616 ac_cv_search_pthread_mutex_lock="none required"
18617else
18618 echo "$as_me: failed program was:" >&5
18619sed 's/^/| /' conftest.$ac_ext >&5
18620
18621fi
18622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18623if test "$ac_cv_search_pthread_mutex_lock" = no; then
18624 for ac_lib in pthread; do
18625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18626 cat >conftest.$ac_ext <<_ACEOF
18627#line $LINENO "configure"
18628/* confdefs.h. */
18629_ACEOF
18630cat confdefs.h >>conftest.$ac_ext
18631cat >>conftest.$ac_ext <<_ACEOF
18632/* end confdefs.h. */
18633
18634/* Override any gcc2 internal prototype to avoid an error. */
18635#ifdef __cplusplus
18636extern "C"
18637#endif
18638/* We use char because int might match the return type of a gcc2
18639 builtin and then its argument prototype would still apply. */
18640char pthread_mutex_lock ();
18641int
18642main ()
18643{
18644pthread_mutex_lock ();
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext conftest$ac_exeext
18650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651 (eval $ac_link) 2>&5
18652 ac_status=$?
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -s conftest$ac_exeext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18662break
18663else
18664 echo "$as_me: failed program was:" >&5
18665sed 's/^/| /' conftest.$ac_ext >&5
18666
18667fi
18668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18669 done
18670fi
18671LIBS=$ac_func_search_save_LIBS
18672fi
18673echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18674echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18675if test "$ac_cv_search_pthread_mutex_lock" != no; then
18676 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18677
18678cat >>confdefs.h <<\_ACEOF
18679#define HAVE_PTHREAD_MUTEX_LOCK 1
18680_ACEOF
18681
18682fi
18683
18684
John Criswell7a73b802003-06-30 21:59:07 +000018685echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18686echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18687if test "${ac_cv_header_stdc+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689else
18690 cat >conftest.$ac_ext <<_ACEOF
18691#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018692/* confdefs.h. */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018697#include <stdlib.h>
18698#include <stdarg.h>
18699#include <string.h>
18700#include <float.h>
18701
John Criswell0c38eaf2003-09-10 15:17:25 +000018702int
18703main ()
18704{
18705
18706 ;
18707 return 0;
18708}
John Criswell7a73b802003-06-30 21:59:07 +000018709_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018710rm -f conftest.$ac_objext
18711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018713 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018715 (exit $ac_status); } &&
18716 { ac_try='test -s conftest.$ac_objext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018722 ac_cv_header_stdc=yes
18723else
18724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018725sed 's/^/| /' conftest.$ac_ext >&5
18726
18727ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018728fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018729rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018730
18731if test $ac_cv_header_stdc = yes; then
18732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18733 cat >conftest.$ac_ext <<_ACEOF
18734#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018735/* confdefs.h. */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018740#include <string.h>
18741
18742_ACEOF
18743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018744 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018745 :
18746else
18747 ac_cv_header_stdc=no
18748fi
18749rm -f conftest*
18750
18751fi
18752
18753if test $ac_cv_header_stdc = yes; then
18754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18755 cat >conftest.$ac_ext <<_ACEOF
18756#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018757/* confdefs.h. */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018762#include <stdlib.h>
18763
18764_ACEOF
18765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018766 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018767 :
18768else
18769 ac_cv_header_stdc=no
18770fi
18771rm -f conftest*
18772
18773fi
18774
18775if test $ac_cv_header_stdc = yes; then
18776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18777 if test "$cross_compiling" = yes; then
18778 :
18779else
18780 cat >conftest.$ac_ext <<_ACEOF
18781#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018782/* confdefs.h. */
18783_ACEOF
18784cat confdefs.h >>conftest.$ac_ext
18785cat >>conftest.$ac_ext <<_ACEOF
18786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018787#include <ctype.h>
18788#if ((' ' & 0x0FF) == 0x020)
18789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18791#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018792# define ISLOWER(c) \
18793 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018794 || ('j' <= (c) && (c) <= 'r') \
18795 || ('s' <= (c) && (c) <= 'z'))
18796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18797#endif
18798
18799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18800int
18801main ()
18802{
18803 int i;
18804 for (i = 0; i < 256; i++)
18805 if (XOR (islower (i), ISLOWER (i))
18806 || toupper (i) != TOUPPER (i))
18807 exit(2);
18808 exit (0);
18809}
18810_ACEOF
18811rm -f conftest$ac_exeext
18812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; }; then
18822 :
18823else
18824 echo "$as_me: program exited with status $ac_status" >&5
18825echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018826sed 's/^/| /' conftest.$ac_ext >&5
18827
John Criswell7a73b802003-06-30 21:59:07 +000018828( exit $ac_status )
18829ac_cv_header_stdc=no
18830fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018831rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018832fi
18833fi
18834fi
18835echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18836echo "${ECHO_T}$ac_cv_header_stdc" >&6
18837if test $ac_cv_header_stdc = yes; then
18838
18839cat >>confdefs.h <<\_ACEOF
18840#define STDC_HEADERS 1
18841_ACEOF
18842
18843fi
18844
18845echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18846echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18847if test "${ac_cv_header_sys_wait_h+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18849else
18850 cat >conftest.$ac_ext <<_ACEOF
18851#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018852/* confdefs.h. */
18853_ACEOF
18854cat confdefs.h >>conftest.$ac_ext
18855cat >>conftest.$ac_ext <<_ACEOF
18856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018857#include <sys/types.h>
18858#include <sys/wait.h>
18859#ifndef WEXITSTATUS
18860# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18861#endif
18862#ifndef WIFEXITED
18863# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18864#endif
18865
John Criswell7a73b802003-06-30 21:59:07 +000018866int
18867main ()
18868{
18869 int s;
18870 wait (&s);
18871 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18872 ;
18873 return 0;
18874}
18875_ACEOF
18876rm -f conftest.$ac_objext
18877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878 (eval $ac_compile) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -s conftest.$ac_objext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_header_sys_wait_h=yes
18889else
18890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018891sed 's/^/| /' conftest.$ac_ext >&5
18892
John Criswell7a73b802003-06-30 21:59:07 +000018893ac_cv_header_sys_wait_h=no
18894fi
18895rm -f conftest.$ac_objext conftest.$ac_ext
18896fi
18897echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18898echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18899if test $ac_cv_header_sys_wait_h = yes; then
18900
18901cat >>confdefs.h <<\_ACEOF
18902#define HAVE_SYS_WAIT_H 1
18903_ACEOF
18904
18905fi
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
Brian Gaeke26be9c52004-01-13 06:43:16 +000018916
Brian Gaekef5261472004-02-20 06:40:57 +000018917
18918for 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
John Criswell7a73b802003-06-30 21:59:07 +000018919do
18920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18921if eval "test \"\${$as_ac_Header+set}\" = set"; then
18922 echo "$as_me:$LINENO: checking for $ac_header" >&5
18923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18924if eval "test \"\${$as_ac_Header+set}\" = set"; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926fi
18927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18929else
18930 # Is the header compilable?
18931echo "$as_me:$LINENO: checking $ac_header usability" >&5
18932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18933cat >conftest.$ac_ext <<_ACEOF
18934#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018940$ac_includes_default
18941#include <$ac_header>
18942_ACEOF
18943rm -f conftest.$ac_objext
18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_header_compiler=yes
18956else
18957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018958sed 's/^/| /' conftest.$ac_ext >&5
18959
John Criswell7a73b802003-06-30 21:59:07 +000018960ac_header_compiler=no
18961fi
18962rm -f conftest.$ac_objext conftest.$ac_ext
18963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18964echo "${ECHO_T}$ac_header_compiler" >&6
18965
18966# Is the header present?
18967echo "$as_me:$LINENO: checking $ac_header presence" >&5
18968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18969cat >conftest.$ac_ext <<_ACEOF
18970#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018976#include <$ac_header>
18977_ACEOF
18978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18980 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018981 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } >/dev/null; then
18986 if test -s conftest.err; then
18987 ac_cpp_err=$ac_c_preproc_warn_flag
18988 else
18989 ac_cpp_err=
18990 fi
18991else
18992 ac_cpp_err=yes
18993fi
18994if test -z "$ac_cpp_err"; then
18995 ac_header_preproc=yes
18996else
18997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018998sed 's/^/| /' conftest.$ac_ext >&5
18999
John Criswell7a73b802003-06-30 21:59:07 +000019000 ac_header_preproc=no
19001fi
19002rm -f conftest.err conftest.$ac_ext
19003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19004echo "${ECHO_T}$ac_header_preproc" >&6
19005
19006# So? What about this header?
19007case $ac_header_compiler:$ac_header_preproc in
19008 yes:no )
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19013 (
19014 cat <<\_ASBOX
19015## ------------------------------------ ##
19016## Report this to bug-autoconf@gnu.org. ##
19017## ------------------------------------ ##
19018_ASBOX
19019 ) |
19020 sed "s/^/$as_me: WARNING: /" >&2
19021 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019022 no:yes )
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19029 (
19030 cat <<\_ASBOX
19031## ------------------------------------ ##
19032## Report this to bug-autoconf@gnu.org. ##
19033## ------------------------------------ ##
19034_ASBOX
19035 ) |
19036 sed "s/^/$as_me: WARNING: /" >&2
19037 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019038esac
19039echo "$as_me:$LINENO: checking for $ac_header" >&5
19040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19041if eval "test \"\${$as_ac_Header+set}\" = set"; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044 eval "$as_ac_Header=$ac_header_preproc"
19045fi
19046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19048
19049fi
19050if test `eval echo '${'$as_ac_Header'}'` = yes; then
19051 cat >>confdefs.h <<_ACEOF
19052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19053_ACEOF
19054
19055fi
19056
19057done
19058
19059
John Criswell7a73b802003-06-30 21:59:07 +000019060echo "$as_me:$LINENO: checking for pid_t" >&5
19061echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19062if test "${ac_cv_type_pid_t+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065 cat >conftest.$ac_ext <<_ACEOF
19066#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019067/* confdefs.h. */
19068_ACEOF
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019072$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019073int
19074main ()
19075{
19076if ((pid_t *) 0)
19077 return 0;
19078if (sizeof (pid_t))
19079 return 0;
19080 ;
19081 return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext
19085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086 (eval $ac_compile) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 ac_cv_type_pid_t=yes
19097else
19098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019099sed 's/^/| /' conftest.$ac_ext >&5
19100
John Criswell7a73b802003-06-30 21:59:07 +000019101ac_cv_type_pid_t=no
19102fi
19103rm -f conftest.$ac_objext conftest.$ac_ext
19104fi
19105echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19106echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19107if test $ac_cv_type_pid_t = yes; then
19108 :
19109else
19110
19111cat >>confdefs.h <<_ACEOF
19112#define pid_t int
19113_ACEOF
19114
19115fi
19116
19117echo "$as_me:$LINENO: checking for size_t" >&5
19118echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19119if test "${ac_cv_type_size_t+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121else
19122 cat >conftest.$ac_ext <<_ACEOF
19123#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019129$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019130int
19131main ()
19132{
19133if ((size_t *) 0)
19134 return 0;
19135if (sizeof (size_t))
19136 return 0;
19137 ;
19138 return 0;
19139}
19140_ACEOF
19141rm -f conftest.$ac_objext
19142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143 (eval $ac_compile) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -s conftest.$ac_objext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_type_size_t=yes
19154else
19155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019156sed 's/^/| /' conftest.$ac_ext >&5
19157
John Criswell7a73b802003-06-30 21:59:07 +000019158ac_cv_type_size_t=no
19159fi
19160rm -f conftest.$ac_objext conftest.$ac_ext
19161fi
19162echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19163echo "${ECHO_T}$ac_cv_type_size_t" >&6
19164if test $ac_cv_type_size_t = yes; then
19165 :
19166else
19167
19168cat >>confdefs.h <<_ACEOF
19169#define size_t unsigned
19170_ACEOF
19171
19172fi
19173
19174echo "$as_me:$LINENO: checking for int64_t" >&5
19175echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19176if test "${ac_cv_type_int64_t+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178else
19179 cat >conftest.$ac_ext <<_ACEOF
19180#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019181/* confdefs.h. */
19182_ACEOF
19183cat confdefs.h >>conftest.$ac_ext
19184cat >>conftest.$ac_ext <<_ACEOF
19185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019186$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019187int
19188main ()
19189{
19190if ((int64_t *) 0)
19191 return 0;
19192if (sizeof (int64_t))
19193 return 0;
19194 ;
19195 return 0;
19196}
19197_ACEOF
19198rm -f conftest.$ac_objext
19199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19200 (eval $ac_compile) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_cv_type_int64_t=yes
19211else
19212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019213sed 's/^/| /' conftest.$ac_ext >&5
19214
John Criswell7a73b802003-06-30 21:59:07 +000019215ac_cv_type_int64_t=no
19216fi
19217rm -f conftest.$ac_objext conftest.$ac_ext
19218fi
19219echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19220echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19221if test $ac_cv_type_int64_t = yes; then
19222
19223cat >>confdefs.h <<_ACEOF
19224#define HAVE_INT64_T 1
19225_ACEOF
19226
19227
19228else
19229 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19230echo "$as_me: error: Type int64_t required but not found" >&2;}
19231 { (exit 1); exit 1; }; }
19232fi
19233
19234echo "$as_me:$LINENO: checking for uint64_t" >&5
19235echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19236if test "${ac_cv_type_uint64_t+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238else
19239 cat >conftest.$ac_ext <<_ACEOF
19240#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019246$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019247int
19248main ()
19249{
19250if ((uint64_t *) 0)
19251 return 0;
19252if (sizeof (uint64_t))
19253 return 0;
19254 ;
19255 return 0;
19256}
19257_ACEOF
19258rm -f conftest.$ac_objext
19259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260 (eval $ac_compile) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -s conftest.$ac_objext'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_cv_type_uint64_t=yes
19271else
19272 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019273sed 's/^/| /' conftest.$ac_ext >&5
19274
John Criswell7a73b802003-06-30 21:59:07 +000019275ac_cv_type_uint64_t=no
19276fi
19277rm -f conftest.$ac_objext conftest.$ac_ext
19278fi
19279echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19280echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19281if test $ac_cv_type_uint64_t = yes; then
19282
19283cat >>confdefs.h <<_ACEOF
19284#define HAVE_UINT64_T 1
19285_ACEOF
19286
19287
19288else
19289 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19290echo "$as_me: error: Type uint64_t required but not found" >&2;}
19291 { (exit 1); exit 1; }; }
19292fi
19293
19294echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19295echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19296if test "${ac_cv_header_time+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19298else
19299 cat >conftest.$ac_ext <<_ACEOF
19300#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019301/* confdefs.h. */
19302_ACEOF
19303cat confdefs.h >>conftest.$ac_ext
19304cat >>conftest.$ac_ext <<_ACEOF
19305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019306#include <sys/types.h>
19307#include <sys/time.h>
19308#include <time.h>
19309
John Criswell7a73b802003-06-30 21:59:07 +000019310int
19311main ()
19312{
19313if ((struct tm *) 0)
19314return 0;
19315 ;
19316 return 0;
19317}
19318_ACEOF
19319rm -f conftest.$ac_objext
19320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321 (eval $ac_compile) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_header_time=yes
19332else
19333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019334sed 's/^/| /' conftest.$ac_ext >&5
19335
John Criswell7a73b802003-06-30 21:59:07 +000019336ac_cv_header_time=no
19337fi
19338rm -f conftest.$ac_objext conftest.$ac_ext
19339fi
19340echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19341echo "${ECHO_T}$ac_cv_header_time" >&6
19342if test $ac_cv_header_time = yes; then
19343
19344cat >>confdefs.h <<\_ACEOF
19345#define TIME_WITH_SYS_TIME 1
19346_ACEOF
19347
19348fi
19349
19350echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19351echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19352if test "${ac_cv_struct_tm+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 cat >conftest.$ac_ext <<_ACEOF
19356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019362#include <sys/types.h>
19363#include <time.h>
19364
John Criswell7a73b802003-06-30 21:59:07 +000019365int
19366main ()
19367{
19368struct tm *tp; tp->tm_sec;
19369 ;
19370 return 0;
19371}
19372_ACEOF
19373rm -f conftest.$ac_objext
19374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -s conftest.$ac_objext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_struct_tm=time.h
19386else
19387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019388sed 's/^/| /' conftest.$ac_ext >&5
19389
John Criswell7a73b802003-06-30 21:59:07 +000019390ac_cv_struct_tm=sys/time.h
19391fi
19392rm -f conftest.$ac_objext conftest.$ac_ext
19393fi
19394echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19395echo "${ECHO_T}$ac_cv_struct_tm" >&6
19396if test $ac_cv_struct_tm = sys/time.h; then
19397
19398cat >>confdefs.h <<\_ACEOF
19399#define TM_IN_SYS_TIME 1
19400_ACEOF
19401
19402fi
19403
19404
John Criswella0137d32003-10-13 16:22:01 +000019405
19406
19407
19408 ac_ext=c
19409ac_cpp='$CPP $CPPFLAGS'
19410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413
19414 if test "$cross_compiling" = yes; then
19415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19416See \`config.log' for more details." >&5
19417echo "$as_me: error: cannot run test program while cross compiling
19418See \`config.log' for more details." >&2;}
19419 { (exit 1); exit 1; }; }
19420else
19421 cat >conftest.$ac_ext <<_ACEOF
19422#line $LINENO "configure"
19423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428#include <stdio.h>
19429 #include <stdlib.h>
19430int
19431main ()
19432{
19433
19434 volatile double A, B;
19435 char Buffer[100];
19436 A = 1;
19437 A /= 10.0;
19438 sprintf(Buffer, "%a", A);
19439 B = atof(Buffer);
19440 if (A != B)
19441 return (1);
19442 if (A != 0x1.999999999999ap-4)
19443 return (1);
19444 return (0);
19445 ;
19446 return 0;
19447}
19448_ACEOF
19449rm -f conftest$ac_exeext
19450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19451 (eval $ac_link) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_c_printf_a=yes
19461else
19462 echo "$as_me: program exited with status $ac_status" >&5
19463echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466( exit $ac_status )
19467ac_c_printf_a=no
19468fi
19469rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19470fi
19471 ac_ext=c
19472ac_cpp='$CPP $CPPFLAGS'
19473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476
19477 if test "$ac_c_printf_a" = "yes"; then
19478
19479cat >>confdefs.h <<\_ACEOF
19480#define HAVE_PRINTF_A 1
19481_ACEOF
19482
19483 fi
19484
19485
John Criswell0021c312004-02-13 21:57:29 +000019486echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19487echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19488if test "${ac_cv_c_bigendian+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490else
19491 # See if sys/param.h defines the BYTE_ORDER macro.
19492cat >conftest.$ac_ext <<_ACEOF
19493#line $LINENO "configure"
19494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
19499#include <sys/types.h>
19500#include <sys/param.h>
19501
19502int
19503main ()
19504{
19505#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19506 bogus endian macros
19507#endif
19508
19509 ;
19510 return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext
19514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 # It does; now see whether it defined to BIG_ENDIAN or not.
19526cat >conftest.$ac_ext <<_ACEOF
19527#line $LINENO "configure"
19528/* confdefs.h. */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h. */
19533#include <sys/types.h>
19534#include <sys/param.h>
19535
19536int
19537main ()
19538{
19539#if BYTE_ORDER != BIG_ENDIAN
19540 not big endian
19541#endif
19542
19543 ;
19544 return 0;
19545}
19546_ACEOF
19547rm -f conftest.$ac_objext
19548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19549 (eval $ac_compile) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -s conftest.$ac_objext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_c_bigendian=yes
19560else
19561 echo "$as_me: failed program was:" >&5
19562sed 's/^/| /' conftest.$ac_ext >&5
19563
19564ac_cv_c_bigendian=no
19565fi
19566rm -f conftest.$ac_objext conftest.$ac_ext
19567else
19568 echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571# It does not; compile a test program.
19572if test "$cross_compiling" = yes; then
19573 # try to guess the endianness by grepping values into an object file
19574 ac_cv_c_bigendian=unknown
19575 cat >conftest.$ac_ext <<_ACEOF
19576#line $LINENO "configure"
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19583short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19584void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19585short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19586short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19587void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19588int
19589main ()
19590{
19591 _ascii (); _ebcdic ();
19592 ;
19593 return 0;
19594}
19595_ACEOF
19596rm -f conftest.$ac_objext
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19609 ac_cv_c_bigendian=yes
19610fi
19611if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19612 if test "$ac_cv_c_bigendian" = unknown; then
19613 ac_cv_c_bigendian=no
19614 else
19615 # finding both strings is unlikely to happen, but who knows?
19616 ac_cv_c_bigendian=unknown
19617 fi
19618fi
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623fi
19624rm -f conftest.$ac_objext conftest.$ac_ext
19625else
19626 cat >conftest.$ac_ext <<_ACEOF
19627#line $LINENO "configure"
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633int
19634main ()
19635{
19636 /* Are we little or big endian? From Harbison&Steele. */
19637 union
19638 {
19639 long l;
19640 char c[sizeof (long)];
19641 } u;
19642 u.l = 1;
19643 exit (u.c[sizeof (long) - 1] == 1);
19644}
19645_ACEOF
19646rm -f conftest$ac_exeext
19647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648 (eval $ac_link) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_cv_c_bigendian=no
19658else
19659 echo "$as_me: program exited with status $ac_status" >&5
19660echo "$as_me: failed program was:" >&5
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
19663( exit $ac_status )
19664ac_cv_c_bigendian=yes
19665fi
19666rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19667fi
19668fi
19669rm -f conftest.$ac_objext conftest.$ac_ext
19670fi
19671echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19672echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19673case $ac_cv_c_bigendian in
19674 yes)
19675 ENDIAN=big
19676 ;;
19677 no)
19678 ENDIAN=little
19679 ;;
19680 *)
19681 { { echo "$as_me:$LINENO: error: unknown endianness
19682presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19683echo "$as_me: error: unknown endianness
19684presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19685 { (exit 1); exit 1; }; } ;;
19686esac
19687
19688
John Criswell7a73b802003-06-30 21:59:07 +000019689echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19690echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19691if test "${ac_cv_cxx_namespaces+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693else
19694
19695
19696 ac_ext=cc
19697ac_cpp='$CXXCPP $CPPFLAGS'
19698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19701
19702 cat >conftest.$ac_ext <<_ACEOF
19703#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019704/* confdefs.h. */
19705_ACEOF
19706cat confdefs.h >>conftest.$ac_ext
19707cat >>conftest.$ac_ext <<_ACEOF
19708/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019709namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019710int
19711main ()
19712{
19713using namespace Outer::Inner; return i;
19714 ;
19715 return 0;
19716}
19717_ACEOF
19718rm -f conftest.$ac_objext
19719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19720 (eval $ac_compile) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -s conftest.$ac_objext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 ac_cv_cxx_namespaces=yes
19731else
19732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019733sed 's/^/| /' conftest.$ac_ext >&5
19734
John Criswell7a73b802003-06-30 21:59:07 +000019735ac_cv_cxx_namespaces=no
19736fi
19737rm -f conftest.$ac_objext conftest.$ac_ext
19738 ac_ext=c
19739ac_cpp='$CPP $CPPFLAGS'
19740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744
19745fi
19746echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19747echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19748if test "$ac_cv_cxx_namespaces" = yes; then
19749
19750cat >>confdefs.h <<\_ACEOF
19751#define HAVE_NAMESPACES
19752_ACEOF
19753
19754fi
19755
Brian Gaeke90583492003-11-10 03:06:28 +000019756echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19757echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19758if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000019759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761
19762
19763
19764 ac_ext=cc
19765ac_cpp='$CXXCPP $CPPFLAGS'
19766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19769
19770 cat >conftest.$ac_ext <<_ACEOF
19771#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019777#include <ext/hash_map>
19778#ifdef HAVE_NAMESPACES
19779using namespace std;
19780#endif
John Criswell7a73b802003-06-30 21:59:07 +000019781int
19782main ()
19783{
Brian Gaeke90583492003-11-10 03:06:28 +000019784hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000019785 ;
19786 return 0;
19787}
19788_ACEOF
19789rm -f conftest.$ac_objext
19790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -s conftest.$ac_objext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000019801 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000019802else
19803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019804sed 's/^/| /' conftest.$ac_ext >&5
19805
Brian Gaeke90583492003-11-10 03:06:28 +000019806ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000019807fi
19808rm -f conftest.$ac_objext conftest.$ac_ext
19809 ac_ext=c
19810ac_cpp='$CPP $CPPFLAGS'
19811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813ac_compiler_gnu=$ac_cv_c_compiler_gnu
19814
John Criswell7a73b802003-06-30 21:59:07 +000019815fi
Brian Gaeke90583492003-11-10 03:06:28 +000019816echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19817echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19818 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019819
19820cat >>confdefs.h <<\_ACEOF
19821#define HAVE_STD_EXT_HASH_MAP
19822_ACEOF
19823
Brian Gaeke90583492003-11-10 03:06:28 +000019824 fi
19825 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19826echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19827if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829else
19830
19831
19832
19833 ac_ext=cc
19834ac_cpp='$CXXCPP $CPPFLAGS'
19835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19838
19839 cat >conftest.$ac_ext <<_ACEOF
19840#line $LINENO "configure"
19841/* confdefs.h. */
19842_ACEOF
19843cat confdefs.h >>conftest.$ac_ext
19844cat >>conftest.$ac_ext <<_ACEOF
19845/* end confdefs.h. */
19846#include <ext/hash_map>
19847#ifdef HAVE_NAMESPACES
19848using namespace __gnu_cxx;
19849#endif
19850int
19851main ()
19852{
19853hash_map<int,int> t;
19854 ;
19855 return 0;
19856}
19857_ACEOF
19858rm -f conftest.$ac_objext
19859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>&5
19861 ac_status=$?
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -s conftest.$ac_objext'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; }; then
19870 ac_cv_cxx_have_gnu_ext_hash_map=yes
19871else
19872 echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
19874
19875ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000019876fi
Brian Gaeke90583492003-11-10 03:06:28 +000019877rm -f conftest.$ac_objext conftest.$ac_ext
19878 ac_ext=c
19879ac_cpp='$CPP $CPPFLAGS'
19880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883
19884fi
19885echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19886echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19887 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019888
19889cat >>confdefs.h <<\_ACEOF
19890#define HAVE_GNU_EXT_HASH_MAP
19891_ACEOF
19892
Brian Gaeke90583492003-11-10 03:06:28 +000019893 fi
19894 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19895echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19896if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898else
John Criswell7a73b802003-06-30 21:59:07 +000019899
Brian Gaeke90583492003-11-10 03:06:28 +000019900
19901
19902 ac_ext=cc
19903ac_cpp='$CXXCPP $CPPFLAGS'
19904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19907
19908 cat >conftest.$ac_ext <<_ACEOF
19909#line $LINENO "configure"
19910/* confdefs.h. */
19911_ACEOF
19912cat confdefs.h >>conftest.$ac_ext
19913cat >>conftest.$ac_ext <<_ACEOF
19914/* end confdefs.h. */
19915#include <hash_map>
19916int
19917main ()
19918{
19919hash_map<int,int> t;
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext
19925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 ac_cv_cxx_have_global_hash_map=yes
19937else
19938 echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941ac_cv_cxx_have_global_hash_map=no
19942fi
19943rm -f conftest.$ac_objext conftest.$ac_ext
19944 ac_ext=c
19945ac_cpp='$CPP $CPPFLAGS'
19946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948ac_compiler_gnu=$ac_cv_c_compiler_gnu
19949
19950fi
19951echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19952echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19953 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19954
19955cat >>confdefs.h <<\_ACEOF
19956#define HAVE_GLOBAL_HASH_MAP
19957_ACEOF
19958
19959 fi
19960echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19961echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19962if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000019963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965
19966
19967
19968 ac_ext=cc
19969ac_cpp='$CXXCPP $CPPFLAGS'
19970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19973
19974 cat >conftest.$ac_ext <<_ACEOF
19975#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019976/* confdefs.h. */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
19980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019981#include <ext/hash_set>
19982#ifdef HAVE_NAMESPACES
19983using namespace std;
19984#endif
John Criswell7a73b802003-06-30 21:59:07 +000019985int
19986main ()
19987{
Brian Gaeke90583492003-11-10 03:06:28 +000019988hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000019989 ;
19990 return 0;
19991}
19992_ACEOF
19993rm -f conftest.$ac_objext
19994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995 (eval $ac_compile) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
19999 { ac_try='test -s conftest.$ac_objext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020005 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020006else
20007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020008sed 's/^/| /' conftest.$ac_ext >&5
20009
Brian Gaeke90583492003-11-10 03:06:28 +000020010ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020011fi
20012rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020013 ac_ext=c
20014ac_cpp='$CPP $CPPFLAGS'
20015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017ac_compiler_gnu=$ac_cv_c_compiler_gnu
20018
20019fi
20020echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20021echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20022 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20023
20024cat >>confdefs.h <<\_ACEOF
20025#define HAVE_STD_EXT_HASH_SET
20026_ACEOF
20027
20028 fi
20029 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20030echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20031if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034
20035
20036
20037 ac_ext=cc
20038ac_cpp='$CXXCPP $CPPFLAGS'
20039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042
John Criswell7a73b802003-06-30 21:59:07 +000020043 cat >conftest.$ac_ext <<_ACEOF
20044#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020050#include <ext/hash_set>
20051#ifdef HAVE_NAMESPACES
20052using namespace __gnu_cxx;
20053#endif
John Criswell7a73b802003-06-30 21:59:07 +000020054int
20055main ()
20056{
Brian Gaeke90583492003-11-10 03:06:28 +000020057hash_set<int> t;
20058 ;
20059 return 0;
20060}
20061_ACEOF
20062rm -f conftest.$ac_objext
20063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_cxx_have_gnu_ext_hash_set=yes
20075else
20076 echo "$as_me: failed program was:" >&5
20077sed 's/^/| /' conftest.$ac_ext >&5
20078
20079ac_cv_cxx_have_gnu_ext_hash_set=no
20080fi
20081rm -f conftest.$ac_objext conftest.$ac_ext
20082 ac_ext=c
20083ac_cpp='$CPP $CPPFLAGS'
20084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20086ac_compiler_gnu=$ac_cv_c_compiler_gnu
20087
20088fi
20089echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20090echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20091 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20092
20093cat >>confdefs.h <<\_ACEOF
20094#define HAVE_GNU_EXT_HASH_SET
20095_ACEOF
20096
20097 fi
20098 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20099echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20100if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102else
20103
20104
20105
20106 ac_ext=cc
20107ac_cpp='$CXXCPP $CPPFLAGS'
20108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20111
20112 cat >conftest.$ac_ext <<_ACEOF
20113#line $LINENO "configure"
20114/* confdefs.h. */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h. */
20119#include <hash_set>
20120int
20121main ()
20122{
John Criswell7a73b802003-06-30 21:59:07 +000020123hash_set<int> t; return 0;
20124 ;
20125 return 0;
20126}
20127_ACEOF
20128rm -f conftest.$ac_objext
20129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20130 (eval $ac_compile) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -s conftest.$ac_objext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020140 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020141else
20142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020143sed 's/^/| /' conftest.$ac_ext >&5
20144
Brian Gaeke90583492003-11-10 03:06:28 +000020145ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020146fi
20147rm -f conftest.$ac_objext conftest.$ac_ext
20148 ac_ext=c
20149ac_cpp='$CPP $CPPFLAGS'
20150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20152ac_compiler_gnu=$ac_cv_c_compiler_gnu
20153
John Criswell7a73b802003-06-30 21:59:07 +000020154fi
Brian Gaeke90583492003-11-10 03:06:28 +000020155echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20156echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20157 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020158
20159cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000020160#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000020161_ACEOF
20162
Brian Gaeke90583492003-11-10 03:06:28 +000020163 fi
John Criswell7a73b802003-06-30 21:59:07 +000020164echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20165echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20166if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168else
20169
20170
20171
20172 ac_ext=cc
20173ac_cpp='$CXXCPP $CPPFLAGS'
20174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20177
20178 cat >conftest.$ac_ext <<_ACEOF
20179#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020180/* confdefs.h. */
20181_ACEOF
20182cat confdefs.h >>conftest.$ac_ext
20183cat >>conftest.$ac_ext <<_ACEOF
20184/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020185#include <ext/slist>
20186#ifdef HAVE_NAMESPACES
20187using namespace std;
20188#endif
John Criswell7a73b802003-06-30 21:59:07 +000020189int
20190main ()
20191{
20192slist<int> s; return 0;
20193 ;
20194 return 0;
20195}
20196_ACEOF
20197rm -f conftest.$ac_objext
20198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20199 (eval $ac_compile) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_cxx_have_ext_slist=std
20210else
20211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020212sed 's/^/| /' conftest.$ac_ext >&5
20213
John Criswell7a73b802003-06-30 21:59:07 +000020214ac_cv_cxx_have_ext_slist=no
20215fi
20216rm -f conftest.$ac_objext conftest.$ac_ext
20217 cat >conftest.$ac_ext <<_ACEOF
20218#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020219/* confdefs.h. */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020224#include <ext/slist>
20225#ifdef HAVE_NAMESPACES
20226using namespace __gnu_cxx;
20227#endif
John Criswell7a73b802003-06-30 21:59:07 +000020228int
20229main ()
20230{
20231slist<int> s; return 0;
20232 ;
20233 return 0;
20234}
20235_ACEOF
20236rm -f conftest.$ac_objext
20237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238 (eval $ac_compile) 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -s conftest.$ac_objext'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_cxx_have_ext_slist=gnu
20249else
20250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020251sed 's/^/| /' conftest.$ac_ext >&5
20252
John Criswell7a73b802003-06-30 21:59:07 +000020253ac_cv_cxx_have_ext_slist=no
20254fi
20255rm -f conftest.$ac_objext conftest.$ac_ext
20256
20257 ac_ext=c
20258ac_cpp='$CPP $CPPFLAGS'
20259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20261ac_compiler_gnu=$ac_cv_c_compiler_gnu
20262
20263
20264fi
20265echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20266echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20267if test "$ac_cv_cxx_have_ext_slist" = std; then
20268
20269cat >>confdefs.h <<\_ACEOF
20270#define HAVE_EXT_SLIST std
20271_ACEOF
20272
20273fi
20274if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20275
20276cat >>confdefs.h <<\_ACEOF
20277#define HAVE_EXT_SLIST gnu
20278_ACEOF
20279
20280fi
20281
20282echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20283echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20284if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286else
20287
20288
20289
20290 ac_ext=cc
20291ac_cpp='$CXXCPP $CPPFLAGS'
20292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20295
20296 cat >conftest.$ac_ext <<_ACEOF
20297#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020303#include <iterator>
20304#ifdef HAVE_NAMESPACES
20305using namespace std;
20306#endif
John Criswell7a73b802003-06-30 21:59:07 +000020307int
20308main ()
20309{
20310iterator<int,int,int> t; return 0;
20311 ;
20312 return 0;
20313}
20314_ACEOF
20315rm -f conftest.$ac_objext
20316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317 (eval $ac_compile) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_cv_cxx_have_std_iterator=yes
20328else
20329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020330sed 's/^/| /' conftest.$ac_ext >&5
20331
John Criswell7a73b802003-06-30 21:59:07 +000020332ac_cv_cxx_have_std_iterator=no
20333fi
20334rm -f conftest.$ac_objext conftest.$ac_ext
20335 ac_ext=c
20336ac_cpp='$CPP $CPPFLAGS'
20337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20339ac_compiler_gnu=$ac_cv_c_compiler_gnu
20340
20341
20342fi
20343echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20344echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20345if test "$ac_cv_cxx_have_std_iterator" = yes; then
20346
20347cat >>confdefs.h <<\_ACEOF
20348#define HAVE_STD_ITERATOR
20349_ACEOF
20350
20351fi
20352
20353echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20354echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20355if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357else
20358
20359
20360
20361 ac_ext=cc
20362ac_cpp='$CXXCPP $CPPFLAGS'
20363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20366
20367 cat >conftest.$ac_ext <<_ACEOF
20368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020369/* confdefs.h. */
20370_ACEOF
20371cat confdefs.h >>conftest.$ac_ext
20372cat >>conftest.$ac_ext <<_ACEOF
20373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020374#include <iterator>
20375#ifdef HAVE_NAMESPACES
20376using namespace std;
20377#endif
John Criswell7a73b802003-06-30 21:59:07 +000020378int
20379main ()
20380{
John Criswellc78022e2003-07-29 19:11:58 +000020381bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020382 ;
20383 return 0;
20384}
20385_ACEOF
20386rm -f conftest.$ac_objext
20387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388 (eval $ac_compile) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
20392 { ac_try='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_cv_cxx_have_bi_iterator=yes
20399else
20400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020401sed 's/^/| /' conftest.$ac_ext >&5
20402
John Criswell7a73b802003-06-30 21:59:07 +000020403ac_cv_cxx_have_bi_iterator=no
20404fi
20405rm -f conftest.$ac_objext conftest.$ac_ext
20406 ac_ext=c
20407ac_cpp='$CPP $CPPFLAGS'
20408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411
20412
20413fi
20414echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20415echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20416if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20417
20418cat >>confdefs.h <<\_ACEOF
20419#define HAVE_BI_ITERATOR
20420_ACEOF
20421
20422fi
20423
20424echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20425echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20426if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428else
20429
20430
20431
20432 ac_ext=cc
20433ac_cpp='$CXXCPP $CPPFLAGS'
20434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20437
20438 cat >conftest.$ac_ext <<_ACEOF
20439#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020440/* confdefs.h. */
20441_ACEOF
20442cat confdefs.h >>conftest.$ac_ext
20443cat >>conftest.$ac_ext <<_ACEOF
20444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020445#include <iterator>
20446#ifdef HAVE_NAMESPACES
20447using namespace std;
20448#endif
John Criswell7a73b802003-06-30 21:59:07 +000020449int
20450main ()
20451{
John Criswellc78022e2003-07-29 19:11:58 +000020452forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020453 ;
20454 return 0;
20455}
20456_ACEOF
20457rm -f conftest.$ac_objext
20458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20459 (eval $ac_compile) 2>&5
20460 ac_status=$?
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } &&
20463 { ac_try='test -s conftest.$ac_objext'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 ac_cv_cxx_have_fwd_iterator=yes
20470else
20471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020472sed 's/^/| /' conftest.$ac_ext >&5
20473
John Criswell7a73b802003-06-30 21:59:07 +000020474ac_cv_cxx_have_fwd_iterator=no
20475fi
20476rm -f conftest.$ac_objext conftest.$ac_ext
20477 ac_ext=c
20478ac_cpp='$CPP $CPPFLAGS'
20479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20481ac_compiler_gnu=$ac_cv_c_compiler_gnu
20482
20483
20484fi
20485echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20486echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20487if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20488
20489cat >>confdefs.h <<\_ACEOF
20490#define HAVE_FWD_ITERATOR
20491_ACEOF
20492
20493fi
20494
20495
20496# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20497# for constant arguments. Useless!
20498echo "$as_me:$LINENO: checking for working alloca.h" >&5
20499echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20500if test "${ac_cv_working_alloca_h+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502else
20503 cat >conftest.$ac_ext <<_ACEOF
20504#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020510#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020511int
20512main ()
20513{
20514char *p = (char *) alloca (2 * sizeof (int));
20515 ;
20516 return 0;
20517}
20518_ACEOF
20519rm -f conftest.$ac_objext conftest$ac_exeext
20520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20521 (eval $ac_link) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try='test -s conftest$ac_exeext'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531 ac_cv_working_alloca_h=yes
20532else
20533 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020534sed 's/^/| /' conftest.$ac_ext >&5
20535
John Criswell7a73b802003-06-30 21:59:07 +000020536ac_cv_working_alloca_h=no
20537fi
20538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20539fi
20540echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20541echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20542if test $ac_cv_working_alloca_h = yes; then
20543
20544cat >>confdefs.h <<\_ACEOF
20545#define HAVE_ALLOCA_H 1
20546_ACEOF
20547
20548fi
20549
20550echo "$as_me:$LINENO: checking for alloca" >&5
20551echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20552if test "${ac_cv_func_alloca_works+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554else
20555 cat >conftest.$ac_ext <<_ACEOF
20556#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020557/* confdefs.h. */
20558_ACEOF
20559cat confdefs.h >>conftest.$ac_ext
20560cat >>conftest.$ac_ext <<_ACEOF
20561/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020562#ifdef __GNUC__
20563# define alloca __builtin_alloca
20564#else
20565# ifdef _MSC_VER
20566# include <malloc.h>
20567# define alloca _alloca
20568# else
20569# if HAVE_ALLOCA_H
20570# include <alloca.h>
20571# else
20572# ifdef _AIX
20573 #pragma alloca
20574# else
20575# ifndef alloca /* predefined by HP cc +Olibcalls */
20576char *alloca ();
20577# endif
20578# endif
20579# endif
20580# endif
20581#endif
20582
John Criswell7a73b802003-06-30 21:59:07 +000020583int
20584main ()
20585{
20586char *p = (char *) alloca (1);
20587 ;
20588 return 0;
20589}
20590_ACEOF
20591rm -f conftest.$ac_objext conftest$ac_exeext
20592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20593 (eval $ac_link) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -s conftest$ac_exeext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_func_alloca_works=yes
20604else
20605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020606sed 's/^/| /' conftest.$ac_ext >&5
20607
John Criswell7a73b802003-06-30 21:59:07 +000020608ac_cv_func_alloca_works=no
20609fi
20610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20611fi
20612echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20613echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20614
20615if test $ac_cv_func_alloca_works = yes; then
20616
20617cat >>confdefs.h <<\_ACEOF
20618#define HAVE_ALLOCA 1
20619_ACEOF
20620
20621else
20622 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20623# that cause trouble. Some versions do not even contain alloca or
20624# contain a buggy version. If you still want to use their alloca,
20625# use ar to extract alloca.o from them instead of compiling alloca.c.
20626
20627ALLOCA=alloca.$ac_objext
20628
20629cat >>confdefs.h <<\_ACEOF
20630#define C_ALLOCA 1
20631_ACEOF
20632
20633
20634echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20635echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20636if test "${ac_cv_os_cray+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638else
20639 cat >conftest.$ac_ext <<_ACEOF
20640#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020641/* confdefs.h. */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020646#if defined(CRAY) && ! defined(CRAY2)
20647webecray
20648#else
20649wenotbecray
20650#endif
20651
20652_ACEOF
20653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020654 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020655 ac_cv_os_cray=yes
20656else
20657 ac_cv_os_cray=no
20658fi
20659rm -f conftest*
20660
20661fi
20662echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20663echo "${ECHO_T}$ac_cv_os_cray" >&6
20664if test $ac_cv_os_cray = yes; then
20665 for ac_func in _getb67 GETB67 getb67; do
20666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20667echo "$as_me:$LINENO: checking for $ac_func" >&5
20668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20669if eval "test \"\${$as_ac_var+set}\" = set"; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671else
20672 cat >conftest.$ac_ext <<_ACEOF
20673#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020679/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020680 which can conflict with char $ac_func (); below.
20681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20682 <limits.h> exists even on freestanding compilers. */
20683#ifdef __STDC__
20684# include <limits.h>
20685#else
20686# include <assert.h>
20687#endif
John Criswell7a73b802003-06-30 21:59:07 +000020688/* Override any gcc2 internal prototype to avoid an error. */
20689#ifdef __cplusplus
20690extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020691{
John Criswell7a73b802003-06-30 21:59:07 +000020692#endif
20693/* We use char because int might match the return type of a gcc2
20694 builtin and then its argument prototype would still apply. */
20695char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020696/* The GNU C library defines this for functions which it implements
20697 to always fail with ENOSYS. Some functions are actually named
20698 something starting with __ and the normal name is an alias. */
20699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20700choke me
20701#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020702char (*f) () = $ac_func;
20703#endif
20704#ifdef __cplusplus
20705}
John Criswell7a73b802003-06-30 21:59:07 +000020706#endif
20707
John Criswell0c38eaf2003-09-10 15:17:25 +000020708int
20709main ()
20710{
20711return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020712 ;
20713 return 0;
20714}
20715_ACEOF
20716rm -f conftest.$ac_objext conftest$ac_exeext
20717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20718 (eval $ac_link) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } &&
20722 { ac_try='test -s conftest$ac_exeext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 eval "$as_ac_var=yes"
20729else
20730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020731sed 's/^/| /' conftest.$ac_ext >&5
20732
John Criswell7a73b802003-06-30 21:59:07 +000020733eval "$as_ac_var=no"
20734fi
20735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20736fi
20737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20739if test `eval echo '${'$as_ac_var'}'` = yes; then
20740
20741cat >>confdefs.h <<_ACEOF
20742#define CRAY_STACKSEG_END $ac_func
20743_ACEOF
20744
20745 break
20746fi
20747
20748 done
20749fi
20750
20751echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20752echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20753if test "${ac_cv_c_stack_direction+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755else
20756 if test "$cross_compiling" = yes; then
20757 ac_cv_c_stack_direction=0
20758else
20759 cat >conftest.$ac_ext <<_ACEOF
20760#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020761/* confdefs.h. */
20762_ACEOF
20763cat confdefs.h >>conftest.$ac_ext
20764cat >>conftest.$ac_ext <<_ACEOF
20765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020766int
20767find_stack_direction ()
20768{
20769 static char *addr = 0;
20770 auto char dummy;
20771 if (addr == 0)
20772 {
20773 addr = &dummy;
20774 return find_stack_direction ();
20775 }
20776 else
20777 return (&dummy > addr) ? 1 : -1;
20778}
20779
20780int
20781main ()
20782{
20783 exit (find_stack_direction () < 0);
20784}
20785_ACEOF
20786rm -f conftest$ac_exeext
20787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20788 (eval $ac_link) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_c_stack_direction=1
20798else
20799 echo "$as_me: program exited with status $ac_status" >&5
20800echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020801sed 's/^/| /' conftest.$ac_ext >&5
20802
John Criswell7a73b802003-06-30 21:59:07 +000020803( exit $ac_status )
20804ac_cv_c_stack_direction=-1
20805fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020806rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020807fi
20808fi
20809echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20810echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20811
20812cat >>confdefs.h <<_ACEOF
20813#define STACK_DIRECTION $ac_cv_c_stack_direction
20814_ACEOF
20815
20816
20817fi
20818
John Criswell7a73b802003-06-30 21:59:07 +000020819
20820
20821for ac_header in stdlib.h unistd.h
20822do
20823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20824if eval "test \"\${$as_ac_Header+set}\" = set"; then
20825 echo "$as_me:$LINENO: checking for $ac_header" >&5
20826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20827if eval "test \"\${$as_ac_Header+set}\" = set"; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20829fi
20830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20832else
20833 # Is the header compilable?
20834echo "$as_me:$LINENO: checking $ac_header usability" >&5
20835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20836cat >conftest.$ac_ext <<_ACEOF
20837#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020838/* confdefs.h. */
20839_ACEOF
20840cat confdefs.h >>conftest.$ac_ext
20841cat >>conftest.$ac_ext <<_ACEOF
20842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020843$ac_includes_default
20844#include <$ac_header>
20845_ACEOF
20846rm -f conftest.$ac_objext
20847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20848 (eval $ac_compile) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } &&
20852 { ac_try='test -s conftest.$ac_objext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_header_compiler=yes
20859else
20860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020861sed 's/^/| /' conftest.$ac_ext >&5
20862
John Criswell7a73b802003-06-30 21:59:07 +000020863ac_header_compiler=no
20864fi
20865rm -f conftest.$ac_objext conftest.$ac_ext
20866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20867echo "${ECHO_T}$ac_header_compiler" >&6
20868
20869# Is the header present?
20870echo "$as_me:$LINENO: checking $ac_header presence" >&5
20871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20872cat >conftest.$ac_ext <<_ACEOF
20873#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
20878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020879#include <$ac_header>
20880_ACEOF
20881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20883 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000020884 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000020885 rm -f conftest.er1
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } >/dev/null; then
20889 if test -s conftest.err; then
20890 ac_cpp_err=$ac_c_preproc_warn_flag
20891 else
20892 ac_cpp_err=
20893 fi
20894else
20895 ac_cpp_err=yes
20896fi
20897if test -z "$ac_cpp_err"; then
20898 ac_header_preproc=yes
20899else
20900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020901sed 's/^/| /' conftest.$ac_ext >&5
20902
John Criswell7a73b802003-06-30 21:59:07 +000020903 ac_header_preproc=no
20904fi
20905rm -f conftest.err conftest.$ac_ext
20906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20907echo "${ECHO_T}$ac_header_preproc" >&6
20908
20909# So? What about this header?
20910case $ac_header_compiler:$ac_header_preproc in
20911 yes:no )
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20916 (
20917 cat <<\_ASBOX
20918## ------------------------------------ ##
20919## Report this to bug-autoconf@gnu.org. ##
20920## ------------------------------------ ##
20921_ASBOX
20922 ) |
20923 sed "s/^/$as_me: WARNING: /" >&2
20924 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020925 no:yes )
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020931echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20932 (
20933 cat <<\_ASBOX
20934## ------------------------------------ ##
20935## Report this to bug-autoconf@gnu.org. ##
20936## ------------------------------------ ##
20937_ASBOX
20938 ) |
20939 sed "s/^/$as_me: WARNING: /" >&2
20940 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020941esac
20942echo "$as_me:$LINENO: checking for $ac_header" >&5
20943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20944if eval "test \"\${$as_ac_Header+set}\" = set"; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20946else
20947 eval "$as_ac_Header=$ac_header_preproc"
20948fi
20949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20951
20952fi
20953if test `eval echo '${'$as_ac_Header'}'` = yes; then
20954 cat >>confdefs.h <<_ACEOF
20955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20956_ACEOF
20957
20958fi
20959
20960done
20961
20962
20963for ac_func in getpagesize
20964do
20965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20966echo "$as_me:$LINENO: checking for $ac_func" >&5
20967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20968if eval "test \"\${$as_ac_var+set}\" = set"; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970else
20971 cat >conftest.$ac_ext <<_ACEOF
20972#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020973/* confdefs.h. */
20974_ACEOF
20975cat confdefs.h >>conftest.$ac_ext
20976cat >>conftest.$ac_ext <<_ACEOF
20977/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020978/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020979 which can conflict with char $ac_func (); below.
20980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20981 <limits.h> exists even on freestanding compilers. */
20982#ifdef __STDC__
20983# include <limits.h>
20984#else
20985# include <assert.h>
20986#endif
John Criswell7a73b802003-06-30 21:59:07 +000020987/* Override any gcc2 internal prototype to avoid an error. */
20988#ifdef __cplusplus
20989extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020990{
John Criswell7a73b802003-06-30 21:59:07 +000020991#endif
20992/* We use char because int might match the return type of a gcc2
20993 builtin and then its argument prototype would still apply. */
20994char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020995/* The GNU C library defines this for functions which it implements
20996 to always fail with ENOSYS. Some functions are actually named
20997 something starting with __ and the normal name is an alias. */
20998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20999choke me
21000#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021001char (*f) () = $ac_func;
21002#endif
21003#ifdef __cplusplus
21004}
John Criswell7a73b802003-06-30 21:59:07 +000021005#endif
21006
John Criswell0c38eaf2003-09-10 15:17:25 +000021007int
21008main ()
21009{
21010return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021011 ;
21012 return 0;
21013}
21014_ACEOF
21015rm -f conftest.$ac_objext conftest$ac_exeext
21016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017 (eval $ac_link) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -s conftest$ac_exeext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 eval "$as_ac_var=yes"
21028else
21029 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021030sed 's/^/| /' conftest.$ac_ext >&5
21031
John Criswell7a73b802003-06-30 21:59:07 +000021032eval "$as_ac_var=no"
21033fi
21034rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21035fi
21036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21038if test `eval echo '${'$as_ac_var'}'` = yes; then
21039 cat >>confdefs.h <<_ACEOF
21040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21041_ACEOF
21042
21043fi
21044done
21045
21046echo "$as_me:$LINENO: checking for working mmap" >&5
21047echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21048if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050else
21051 if test "$cross_compiling" = yes; then
21052 ac_cv_func_mmap_fixed_mapped=no
21053else
21054 cat >conftest.$ac_ext <<_ACEOF
21055#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021056/* confdefs.h. */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021061$ac_includes_default
21062/* malloc might have been renamed as rpl_malloc. */
21063#undef malloc
21064
21065/* Thanks to Mike Haertel and Jim Avera for this test.
21066 Here is a matrix of mmap possibilities:
21067 mmap private not fixed
21068 mmap private fixed at somewhere currently unmapped
21069 mmap private fixed at somewhere already mapped
21070 mmap shared not fixed
21071 mmap shared fixed at somewhere currently unmapped
21072 mmap shared fixed at somewhere already mapped
21073 For private mappings, we should verify that changes cannot be read()
21074 back from the file, nor mmap's back from the file at a different
21075 address. (There have been systems where private was not correctly
21076 implemented like the infamous i386 svr4.0, and systems where the
21077 VM page cache was not coherent with the file system buffer cache
21078 like early versions of FreeBSD and possibly contemporary NetBSD.)
21079 For shared mappings, we should conversely verify that changes get
21080 propagated back to all the places they're supposed to be.
21081
21082 Grep wants private fixed already mapped.
21083 The main things grep needs to know about mmap are:
21084 * does it exist and is it safe to write into the mmap'd area
21085 * how to use it (BSD variants) */
21086
21087#include <fcntl.h>
21088#include <sys/mman.h>
21089
21090#if !STDC_HEADERS && !HAVE_STDLIB_H
21091char *malloc ();
21092#endif
21093
21094/* This mess was copied from the GNU getpagesize.h. */
21095#if !HAVE_GETPAGESIZE
21096/* Assume that all systems that can run configure have sys/param.h. */
21097# if !HAVE_SYS_PARAM_H
21098# define HAVE_SYS_PARAM_H 1
21099# endif
21100
21101# ifdef _SC_PAGESIZE
21102# define getpagesize() sysconf(_SC_PAGESIZE)
21103# else /* no _SC_PAGESIZE */
21104# if HAVE_SYS_PARAM_H
21105# include <sys/param.h>
21106# ifdef EXEC_PAGESIZE
21107# define getpagesize() EXEC_PAGESIZE
21108# else /* no EXEC_PAGESIZE */
21109# ifdef NBPG
21110# define getpagesize() NBPG * CLSIZE
21111# ifndef CLSIZE
21112# define CLSIZE 1
21113# endif /* no CLSIZE */
21114# else /* no NBPG */
21115# ifdef NBPC
21116# define getpagesize() NBPC
21117# else /* no NBPC */
21118# ifdef PAGESIZE
21119# define getpagesize() PAGESIZE
21120# endif /* PAGESIZE */
21121# endif /* no NBPC */
21122# endif /* no NBPG */
21123# endif /* no EXEC_PAGESIZE */
21124# else /* no HAVE_SYS_PARAM_H */
21125# define getpagesize() 8192 /* punt totally */
21126# endif /* no HAVE_SYS_PARAM_H */
21127# endif /* no _SC_PAGESIZE */
21128
21129#endif /* no HAVE_GETPAGESIZE */
21130
21131int
21132main ()
21133{
21134 char *data, *data2, *data3;
21135 int i, pagesize;
21136 int fd;
21137
21138 pagesize = getpagesize ();
21139
21140 /* First, make a file with some known garbage in it. */
21141 data = (char *) malloc (pagesize);
21142 if (!data)
21143 exit (1);
21144 for (i = 0; i < pagesize; ++i)
21145 *(data + i) = rand ();
21146 umask (0);
21147 fd = creat ("conftest.mmap", 0600);
21148 if (fd < 0)
21149 exit (1);
21150 if (write (fd, data, pagesize) != pagesize)
21151 exit (1);
21152 close (fd);
21153
21154 /* Next, try to mmap the file at a fixed address which already has
21155 something else allocated at it. If we can, also make sure that
21156 we see the same garbage. */
21157 fd = open ("conftest.mmap", O_RDWR);
21158 if (fd < 0)
21159 exit (1);
21160 data2 = (char *) malloc (2 * pagesize);
21161 if (!data2)
21162 exit (1);
21163 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21164 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21165 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21166 exit (1);
21167 for (i = 0; i < pagesize; ++i)
21168 if (*(data + i) != *(data2 + i))
21169 exit (1);
21170
21171 /* Finally, make sure that changes to the mapped area do not
21172 percolate back to the file as seen by read(). (This is a bug on
21173 some variants of i386 svr4.0.) */
21174 for (i = 0; i < pagesize; ++i)
21175 *(data2 + i) = *(data2 + i) + 1;
21176 data3 = (char *) malloc (pagesize);
21177 if (!data3)
21178 exit (1);
21179 if (read (fd, data3, pagesize) != pagesize)
21180 exit (1);
21181 for (i = 0; i < pagesize; ++i)
21182 if (*(data + i) != *(data3 + i))
21183 exit (1);
21184 close (fd);
21185 exit (0);
21186}
21187_ACEOF
21188rm -f conftest$ac_exeext
21189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 ac_cv_func_mmap_fixed_mapped=yes
21200else
21201 echo "$as_me: program exited with status $ac_status" >&5
21202echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021203sed 's/^/| /' conftest.$ac_ext >&5
21204
John Criswell7a73b802003-06-30 21:59:07 +000021205( exit $ac_status )
21206ac_cv_func_mmap_fixed_mapped=no
21207fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021208rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021209fi
21210fi
21211echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21212echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21213if test $ac_cv_func_mmap_fixed_mapped = yes; then
21214
21215cat >>confdefs.h <<\_ACEOF
21216#define HAVE_MMAP 1
21217_ACEOF
21218
21219fi
21220rm -f conftest.mmap
21221
Brian Gaeke26be9c52004-01-13 06:43:16 +000021222if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21223then
21224 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21225echo "$as_me: error: mmap() required but not found" >&2;}
21226 { (exit 1); exit 1; }; }
21227fi
John Criswell7a73b802003-06-30 21:59:07 +000021228echo "$as_me:$LINENO: checking for mmap of files" >&5
21229echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21230if test "${ac_cv_func_mmap_file+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21232else
21233
21234
21235 ac_ext=c
21236ac_cpp='$CPP $CPPFLAGS'
21237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21239ac_compiler_gnu=$ac_cv_c_compiler_gnu
21240
21241 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021242 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21243See \`config.log' for more details." >&5
21244echo "$as_me: error: cannot run test program while cross compiling
21245See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021246 { (exit 1); exit 1; }; }
21247else
21248 cat >conftest.$ac_ext <<_ACEOF
21249#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021250/* confdefs.h. */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021255
John Criswell7a73b802003-06-30 21:59:07 +000021256#ifdef HAVE_SYS_TYPES_H
21257#include <sys/types.h>
21258#endif
21259
John Criswell5ab73462003-10-09 15:44:28 +000021260#ifdef HAVE_SYS_MMAN_H
21261#include <sys/mman.h>
21262#endif
21263
John Criswell7a73b802003-06-30 21:59:07 +000021264#ifdef HAVE_FCNTL_H
21265#include <fcntl.h>
21266#endif
21267
21268 int fd;
21269 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021270 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 +000021271_ACEOF
21272rm -f conftest$ac_exeext
21273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21274 (eval $ac_link) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; }; then
21283 ac_cv_func_mmap_file=yes
21284else
21285 echo "$as_me: program exited with status $ac_status" >&5
21286echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021287sed 's/^/| /' conftest.$ac_ext >&5
21288
John Criswell7a73b802003-06-30 21:59:07 +000021289( exit $ac_status )
21290ac_cv_func_mmap_file=no
21291fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021292rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021293fi
21294 ac_ext=c
21295ac_cpp='$CPP $CPPFLAGS'
21296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299
21300
21301fi
21302echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21303echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21304if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021305
21306cat >>confdefs.h <<\_ACEOF
21307#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000021308_ACEOF
21309
21310 MMAP_FILE=yes
21311
21312fi
21313
Brian Gaeke26be9c52004-01-13 06:43:16 +000021314if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000021315then
21316 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21317echo "$as_me: error: mmap() of files required but not found" >&2;}
21318 { (exit 1); exit 1; }; }
21319fi
21320echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21321echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21322if test "${ac_cv_header_mmap_anon+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324else
21325
21326
21327 ac_ext=c
21328ac_cpp='$CPP $CPPFLAGS'
21329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21331ac_compiler_gnu=$ac_cv_c_compiler_gnu
21332
21333 cat >conftest.$ac_ext <<_ACEOF
21334#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021340#include <sys/mman.h>
21341 #include <unistd.h>
21342 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021343int
21344main ()
21345{
21346mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21347 ;
21348 return 0;
21349}
21350_ACEOF
21351rm -f conftest.$ac_objext
21352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21353 (eval $ac_compile) 2>&5
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } &&
21357 { ac_try='test -s conftest.$ac_objext'
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; }; then
21363 ac_cv_header_mmap_anon=yes
21364else
21365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021366sed 's/^/| /' conftest.$ac_ext >&5
21367
John Criswell7a73b802003-06-30 21:59:07 +000021368ac_cv_header_mmap_anon=no
21369fi
21370rm -f conftest.$ac_objext conftest.$ac_ext
21371 ac_ext=c
21372ac_cpp='$CPP $CPPFLAGS'
21373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375ac_compiler_gnu=$ac_cv_c_compiler_gnu
21376
21377
21378fi
21379echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21380echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21381if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021382
21383cat >>confdefs.h <<\_ACEOF
21384#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000021385_ACEOF
21386
21387fi
21388
21389echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21390echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21391if test "${ac_cv_type_signal+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393else
21394 cat >conftest.$ac_ext <<_ACEOF
21395#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021396/* confdefs.h. */
21397_ACEOF
21398cat confdefs.h >>conftest.$ac_ext
21399cat >>conftest.$ac_ext <<_ACEOF
21400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021401#include <sys/types.h>
21402#include <signal.h>
21403#ifdef signal
21404# undef signal
21405#endif
21406#ifdef __cplusplus
21407extern "C" void (*signal (int, void (*)(int)))(int);
21408#else
21409void (*signal ()) ();
21410#endif
21411
John Criswell7a73b802003-06-30 21:59:07 +000021412int
21413main ()
21414{
21415int i;
21416 ;
21417 return 0;
21418}
21419_ACEOF
21420rm -f conftest.$ac_objext
21421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>&5
21423 ac_status=$?
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); } &&
21426 { ac_try='test -s conftest.$ac_objext'
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21429 ac_status=$?
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 ac_cv_type_signal=void
21433else
21434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021435sed 's/^/| /' conftest.$ac_ext >&5
21436
John Criswell7a73b802003-06-30 21:59:07 +000021437ac_cv_type_signal=int
21438fi
21439rm -f conftest.$ac_objext conftest.$ac_ext
21440fi
21441echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21442echo "${ECHO_T}$ac_cv_type_signal" >&6
21443
21444cat >>confdefs.h <<_ACEOF
21445#define RETSIGTYPE $ac_cv_type_signal
21446_ACEOF
21447
21448
21449
21450
21451
21452
21453
Brian Gaekef5261472004-02-20 06:40:57 +000021454
21455for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace
John Criswell7a73b802003-06-30 21:59:07 +000021456do
21457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21458echo "$as_me:$LINENO: checking for $ac_func" >&5
21459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21460if eval "test \"\${$as_ac_var+set}\" = set"; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462else
21463 cat >conftest.$ac_ext <<_ACEOF
21464#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021465/* confdefs.h. */
21466_ACEOF
21467cat confdefs.h >>conftest.$ac_ext
21468cat >>conftest.$ac_ext <<_ACEOF
21469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021470/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021471 which can conflict with char $ac_func (); below.
21472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21473 <limits.h> exists even on freestanding compilers. */
21474#ifdef __STDC__
21475# include <limits.h>
21476#else
21477# include <assert.h>
21478#endif
John Criswell7a73b802003-06-30 21:59:07 +000021479/* Override any gcc2 internal prototype to avoid an error. */
21480#ifdef __cplusplus
21481extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021482{
John Criswell7a73b802003-06-30 21:59:07 +000021483#endif
21484/* We use char because int might match the return type of a gcc2
21485 builtin and then its argument prototype would still apply. */
21486char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021487/* The GNU C library defines this for functions which it implements
21488 to always fail with ENOSYS. Some functions are actually named
21489 something starting with __ and the normal name is an alias. */
21490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21491choke me
21492#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021493char (*f) () = $ac_func;
21494#endif
21495#ifdef __cplusplus
21496}
John Criswell7a73b802003-06-30 21:59:07 +000021497#endif
21498
John Criswell0c38eaf2003-09-10 15:17:25 +000021499int
21500main ()
21501{
21502return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021503 ;
21504 return 0;
21505}
21506_ACEOF
21507rm -f conftest.$ac_objext conftest$ac_exeext
21508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21509 (eval $ac_link) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -s conftest$ac_exeext'
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 eval "$as_ac_var=yes"
21520else
21521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021522sed 's/^/| /' conftest.$ac_ext >&5
21523
John Criswell7a73b802003-06-30 21:59:07 +000021524eval "$as_ac_var=no"
21525fi
21526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21527fi
21528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21530if test `eval echo '${'$as_ac_var'}'` = yes; then
21531 cat >>confdefs.h <<_ACEOF
21532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21533_ACEOF
21534
21535fi
21536done
21537
John Criswell7a73b802003-06-30 21:59:07 +000021538echo "$as_me:$LINENO: checking for mprotect" >&5
21539echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21540if test "${ac_cv_func_mprotect+set}" = set; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542else
21543 cat >conftest.$ac_ext <<_ACEOF
21544#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021545/* confdefs.h. */
21546_ACEOF
21547cat confdefs.h >>conftest.$ac_ext
21548cat >>conftest.$ac_ext <<_ACEOF
21549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021550/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021551 which can conflict with char mprotect (); below.
21552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21553 <limits.h> exists even on freestanding compilers. */
21554#ifdef __STDC__
21555# include <limits.h>
21556#else
21557# include <assert.h>
21558#endif
John Criswell7a73b802003-06-30 21:59:07 +000021559/* Override any gcc2 internal prototype to avoid an error. */
21560#ifdef __cplusplus
21561extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021562{
John Criswell7a73b802003-06-30 21:59:07 +000021563#endif
21564/* We use char because int might match the return type of a gcc2
21565 builtin and then its argument prototype would still apply. */
21566char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021567/* The GNU C library defines this for functions which it implements
21568 to always fail with ENOSYS. Some functions are actually named
21569 something starting with __ and the normal name is an alias. */
21570#if defined (__stub_mprotect) || defined (__stub___mprotect)
21571choke me
21572#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021573char (*f) () = mprotect;
21574#endif
21575#ifdef __cplusplus
21576}
John Criswell7a73b802003-06-30 21:59:07 +000021577#endif
21578
John Criswell0c38eaf2003-09-10 15:17:25 +000021579int
21580main ()
21581{
21582return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021583 ;
21584 return 0;
21585}
21586_ACEOF
21587rm -f conftest.$ac_objext conftest$ac_exeext
21588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589 (eval $ac_link) 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } &&
21593 { ac_try='test -s conftest$ac_exeext'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 ac_cv_func_mprotect=yes
21600else
21601 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021602sed 's/^/| /' conftest.$ac_ext >&5
21603
John Criswell7a73b802003-06-30 21:59:07 +000021604ac_cv_func_mprotect=no
21605fi
21606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21607fi
21608echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21609echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21610if test $ac_cv_func_mprotect = yes; then
21611 :
21612else
21613 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21614echo "$as_me: error: Function mprotect() required but not found" >&2;}
21615 { (exit 1); exit 1; }; }
21616fi
21617
21618
John Criswellb13092b2003-07-22 21:00:24 +000021619
John Criswellcb7a1eb2003-11-17 19:46:02 +000021620
21621
21622 ac_ext=c
21623ac_cpp='$CPP $CPPFLAGS'
21624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21626ac_compiler_gnu=$ac_cv_c_compiler_gnu
21627
Brian Gaekef91a15c2003-11-18 06:20:41 +000021628 oldcflags="$CFLAGS"
21629 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000021630 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000021631int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000021632_ACEOF
21633rm -f conftest.$ac_objext conftest$ac_exeext
21634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21635 (eval $ac_link) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
21639 { ac_try='test -s conftest$ac_exeext'
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_cv_link_use_r=yes
21646else
21647 echo "$as_me: failed program was:" >&5
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
Brian Gaekef91a15c2003-11-18 06:20:41 +000021650ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000021651fi
21652rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000021653 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000021654 ac_ext=c
21655ac_cpp='$CPP $CPPFLAGS'
21656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21658ac_compiler_gnu=$ac_cv_c_compiler_gnu
21659
Brian Gaekef91a15c2003-11-18 06:20:41 +000021660 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000021661 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000021662
21663cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000021664#define HAVE_LINK_R 1
21665_ACEOF
21666
21667 fi
21668
21669
John Criswell7a73b802003-06-30 21:59:07 +000021670# Check whether --enable-optimized or --disable-optimized was given.
21671if test "${enable_optimized+set}" = set; then
21672 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000021673
21674else
John Criswellb13092b2003-07-22 21:00:24 +000021675 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021676fi;
John Criswellb13092b2003-07-22 21:00:24 +000021677if test ${enableval} = "no"
21678then
21679 ENABLE_OPTIMIZED=
21680
21681else
21682 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21683
21684fi
21685
John Criswell55126592003-10-07 21:57:39 +000021686# Check whether --enable-spec2000 or --disable-spec2000 was given.
21687if test "${enable_spec2000+set}" = set; then
21688 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000021689
21690else
John Criswellb13092b2003-07-22 21:00:24 +000021691 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021692fi;
John Criswellb13092b2003-07-22 21:00:24 +000021693if test ${enableval} = "no"
21694then
John Criswell55126592003-10-07 21:57:39 +000021695 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21696 then
21697 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000021698
John Criswell55126592003-10-07 21:57:39 +000021699 USE_SPEC=USE_SPEC=1
21700
21701 else
21702 USE_SPEC=
21703
21704
21705 fi
John Criswellb13092b2003-07-22 21:00:24 +000021706else
John Criswell55126592003-10-07 21:57:39 +000021707 if test ${enableval} = ""
21708 then
21709 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21710
21711 else
21712 SPEC_ROOT=${enableval}
21713
21714 fi
John Criswellb13092b2003-07-22 21:00:24 +000021715 USE_SPEC=USE_SPEC=1
21716
21717fi
21718
John Criswellcf2e9f72004-02-10 22:36:35 +000021719# Check whether --enable-spec95 or --disable-spec95 was given.
21720if test "${enable_spec95+set}" = set; then
21721 enableval="$enable_spec95"
21722
21723else
21724 enableval=no
21725fi;
21726if test ${enableval} = "no"
21727then
John Criswell542af5f2004-02-16 14:55:18 +000021728 if test -d /home/vadve/shared/benchmarks/spec95/benchspec
John Criswellcf2e9f72004-02-10 22:36:35 +000021729 then
John Criswell542af5f2004-02-16 14:55:18 +000021730 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
John Criswellcf2e9f72004-02-10 22:36:35 +000021731
21732 USE_SPEC95=USE_SPEC95=1
21733
21734 else
21735 USE_SPEC95=
21736
21737
21738 fi
21739else
21740 if test ${enableval} = ""
21741 then
John Criswell542af5f2004-02-16 14:55:18 +000021742 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
John Criswellcf2e9f72004-02-10 22:36:35 +000021743
21744 else
21745 SPEC95_ROOT=${enableval}
21746
21747 fi
21748 USE_SPEC95=USE_SPEC95=1
21749
21750fi
21751
John Criswell0538d422004-02-20 22:30:22 +000021752# Check whether --enable-povray or --disable-povray was given.
21753if test "${enable_povray+set}" = set; then
21754 enableval="$enable_povray"
21755
21756else
21757 enableval=no
21758fi;
21759if test ${enableval} = "no"
21760then
21761 if test -d /home/vadve/criswell/Downloads/povray-3.50c
21762 then
21763 POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21764
21765 USE_POVRAY=USE_POVRAY=1
21766
21767 else
21768 USE_POVRAY=
21769
21770
21771 fi
21772else
21773 if test ${enableval} = ""
21774 then
21775 POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21776
21777 else
21778 POVRAY_ROOT=${enableval}
21779
21780 fi
21781 USE_POVRAY=USE_POVRAY=1
21782
21783fi
21784
21785
John Criswell7a73b802003-06-30 21:59:07 +000021786# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21787if test "${enable_precompiled_bytecode+set}" = set; then
21788 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000021789
21790else
John Criswellb13092b2003-07-22 21:00:24 +000021791 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021792fi;
John Criswellb13092b2003-07-22 21:00:24 +000021793if test ${enableval} = "no"
21794then
21795 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000021796
John Criswellb13092b2003-07-22 21:00:24 +000021797else
21798 UPB=USE_PRECOMPILED_BYTECODE=1
21799
21800fi
John Criswellf02dbf02003-07-22 20:07:49 +000021801
John Criswellf02dbf02003-07-22 20:07:49 +000021802# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21803if test "${enable_llc_diffs+set}" = set; then
21804 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000021805
21806else
John Criswellb13092b2003-07-22 21:00:24 +000021807 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000021808fi;
John Criswellb13092b2003-07-22 21:00:24 +000021809if test ${enableval} = "no"
21810then
21811 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000021812
John Criswellb13092b2003-07-22 21:00:24 +000021813else
21814 DISABLE_LLC_DIFFS=
21815
21816fi
21817
21818# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000021819if test "${enable_jit+set}" = set; then
21820 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000021821
21822else
John Criswellc78022e2003-07-29 19:11:58 +000021823 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000021824fi;
John Criswellb13092b2003-07-22 21:00:24 +000021825if test ${enableval} = "no"
21826then
21827 JIT=
21828
21829else
John Criswellc78022e2003-07-29 19:11:58 +000021830 case $target in
21831 *i*86*)
21832 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000021833
John Criswellc78022e2003-07-29 19:11:58 +000021834 ;;
21835 *sparc*)
21836 JIT=TARGET_HAS_JIT=1
21837
21838 ;;
21839 *)
21840 JIT=
21841
21842 ;;
21843 esac
John Criswellb13092b2003-07-22 21:00:24 +000021844fi
John Criswell7a73b802003-06-30 21:59:07 +000021845
21846
John Criswell7a73b802003-06-30 21:59:07 +000021847# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21848if test "${with_llvmgccdir+set}" = set; then
21849 withval="$with_llvmgccdir"
21850 LLVMGCCDIR=$withval
21851
21852fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000021853echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21854echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21855LLVM_GCC_CHECK=no
21856if test -d "$LLVMGCCDIR"
21857then
21858 if test -x "$LLVMGCCDIR/bin/gcc"
21859 then
21860 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21861 fi
21862fi
21863llvmgccwarn=no
21864echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21865echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21866if test "$LLVM_GCC_CHECK" = "no"
21867then
21868 llvmgccwarn=yes
21869fi
Brian Gaekef3b24102003-11-16 18:38:14 +000021870echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21871echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21872LLVM_GCC_SANE=no
21873if test -x "$LLVM_GCC_CHECK"
21874then
21875 cp /dev/null conftest.c
21876 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21877 if test $? -eq 0
21878 then
21879 LLVM_GCC_SANE=yes
21880 fi
21881 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000021882 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000021883 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000021884
21885 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000021886 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000021887
Brian Gaekef3b24102003-11-16 18:38:14 +000021888fi
21889echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21890echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21891if test "$LLVM_GCC_SANE" = "no"
21892then
21893 llvmgccwarn=yes
21894fi
21895
John Criswellc78022e2003-07-29 19:11:58 +000021896
John Criswell7a73b802003-06-30 21:59:07 +000021897# Check whether --with-bcrepos or --without-bcrepos was given.
21898if test "${with_bcrepos+set}" = set; then
21899 withval="$with_bcrepos"
21900 BCR=$withval
21901
21902else
21903 BCR=/home/vadve/lattner/LLVMPrograms
21904
21905fi;
21906
John Criswellc78022e2003-07-29 19:11:58 +000021907
John Criswell7a73b802003-06-30 21:59:07 +000021908# Check whether --with-papi or --without-papi was given.
21909if test "${with_papi+set}" = set; then
21910 withval="$with_papi"
21911 PAPIDIR=$withval
21912
21913else
John Criswellde00db22003-08-25 16:49:54 +000021914 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000021915
21916fi;
21917
Brian Gaeke554831c2004-01-21 19:39:29 +000021918echo "$as_me:$LINENO: checking for shared library suffix" >&5
21919echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21920eval "SHLIBEXT=$shrext"
21921echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21922echo "${ECHO_T}$SHLIBEXT" >&6
21923SHLIBEXT=$SHLIBEXT
21924
21925
21926cat >>confdefs.h <<_ACEOF
21927#define SHLIBEXT "$SHLIBEXT"
21928_ACEOF
21929
21930
John Criswell0c38eaf2003-09-10 15:17:25 +000021931 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000021932cat >confcache <<\_ACEOF
21933# This file is a shell script that caches the results of configure
21934# tests run on this system so they can be shared between configure
21935# scripts and configure runs, see configure's option --config-cache.
21936# It is not useful on other systems. If it contains results you don't
21937# want to keep, you may remove or edit it.
21938#
21939# config.status only pays attention to the cache file if you give it
21940# the --recheck option to rerun configure.
21941#
John Criswell0c38eaf2003-09-10 15:17:25 +000021942# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021943# loading this file, other *unset* `ac_cv_foo' will be assigned the
21944# following values.
21945
21946_ACEOF
21947
21948# The following way of writing the cache mishandles newlines in values,
21949# but we know of no workaround that is simple, portable, and efficient.
21950# So, don't put newlines in cache variables' values.
21951# Ultrix sh set writes to stderr and can't be redirected directly,
21952# and sets the high bit in the cache file unless we assign to the vars.
21953{
21954 (set) 2>&1 |
21955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21956 *ac_space=\ *)
21957 # `set' does not quote correctly, so add quotes (double-quote
21958 # substitution turns \\\\ into \\, and sed turns \\ into \).
21959 sed -n \
21960 "s/'/'\\\\''/g;
21961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21962 ;;
21963 *)
21964 # `set' quotes correctly as required by POSIX, so do not add quotes.
21965 sed -n \
21966 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21967 ;;
21968 esac;
21969} |
21970 sed '
21971 t clear
21972 : clear
21973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21974 t end
21975 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21976 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000021977if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000021978 if test -w $cache_file; then
21979 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21980 cat confcache >$cache_file
21981 else
21982 echo "not updating unwritable cache $cache_file"
21983 fi
21984fi
21985rm -f confcache
21986
21987test "x$prefix" = xNONE && prefix=$ac_default_prefix
21988# Let make expand exec_prefix.
21989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21990
21991# VPATH may cause trouble with some makes, so we remove $(srcdir),
21992# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21993# trailing colons and then remove the whole line if VPATH becomes empty
21994# (actually we leave an empty line to preserve line numbers).
21995if test "x$srcdir" = x.; then
21996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21997s/:*\$(srcdir):*/:/;
21998s/:*\${srcdir}:*/:/;
21999s/:*@srcdir@:*/:/;
22000s/^\([^=]*=[ ]*\):*/\1/;
22001s/:*$//;
22002s/^[^=]*=[ ]*$//;
22003}'
22004fi
22005
22006DEFS=-DHAVE_CONFIG_H
22007
John Criswell0c38eaf2003-09-10 15:17:25 +000022008ac_libobjs=
22009ac_ltlibobjs=
22010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22011 # 1. Remove the extension, and $U if already installed.
22012 ac_i=`echo "$ac_i" |
22013 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22014 # 2. Add them.
22015 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22016 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22017done
22018LIBOBJS=$ac_libobjs
22019
22020LTLIBOBJS=$ac_ltlibobjs
22021
22022
John Criswell7a73b802003-06-30 21:59:07 +000022023
22024: ${CONFIG_STATUS=./config.status}
22025ac_clean_files_save=$ac_clean_files
22026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22027{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22028echo "$as_me: creating $CONFIG_STATUS" >&6;}
22029cat >$CONFIG_STATUS <<_ACEOF
22030#! $SHELL
22031# Generated by $as_me.
22032# Run this file to recreate the current configuration.
22033# Compiler output produced by configure, useful for debugging
22034# configure, is in config.log if it exists.
22035
22036debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022037ac_cs_recheck=false
22038ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022039SHELL=\${CONFIG_SHELL-$SHELL}
22040_ACEOF
22041
22042cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022043## --------------------- ##
22044## M4sh Initialization. ##
22045## --------------------- ##
22046
22047# Be Bourne compatible
22048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22049 emulate sh
22050 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022051 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22052 # is contrary to our usage. Disable this feature.
22053 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022054elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22055 set -o posix
22056fi
22057
John Criswell7a73b802003-06-30 21:59:07 +000022058# Support unset when possible.
22059if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22060 as_unset=unset
22061else
22062 as_unset=false
22063fi
22064
John Criswell0c38eaf2003-09-10 15:17:25 +000022065
22066# Work around bugs in pre-3.0 UWIN ksh.
22067$as_unset ENV MAIL MAILPATH
22068PS1='$ '
22069PS2='> '
22070PS4='+ '
22071
22072# NLS nuisances.
22073for as_var in \
22074 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22075 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22076 LC_TELEPHONE LC_TIME
22077do
22078 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22079 eval $as_var=C; export $as_var
22080 else
22081 $as_unset $as_var
22082 fi
22083done
22084
22085# Required to use basename.
22086if expr a : '\(a\)' >/dev/null 2>&1; then
22087 as_expr=expr
22088else
22089 as_expr=false
22090fi
22091
22092if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22093 as_basename=basename
22094else
22095 as_basename=false
22096fi
John Criswell7a73b802003-06-30 21:59:07 +000022097
22098
22099# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022100as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022101$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22102 X"$0" : 'X\(//\)$' \| \
22103 X"$0" : 'X\(/\)$' \| \
22104 . : '\(.\)' 2>/dev/null ||
22105echo X/"$0" |
22106 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22107 /^X\/\(\/\/\)$/{ s//\1/; q; }
22108 /^X\/\(\/\).*/{ s//\1/; q; }
22109 s/.*/./; q'`
22110
John Criswell0c38eaf2003-09-10 15:17:25 +000022111
John Criswell7a73b802003-06-30 21:59:07 +000022112# PATH needs CR, and LINENO needs CR and PATH.
22113# Avoid depending upon Character Ranges.
22114as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22115as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22116as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22117as_cr_digits='0123456789'
22118as_cr_alnum=$as_cr_Letters$as_cr_digits
22119
22120# The user is always right.
22121if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022122 echo "#! /bin/sh" >conf$$.sh
22123 echo "exit 0" >>conf$$.sh
22124 chmod +x conf$$.sh
22125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022126 PATH_SEPARATOR=';'
22127 else
22128 PATH_SEPARATOR=:
22129 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022130 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022131fi
22132
22133
22134 as_lineno_1=$LINENO
22135 as_lineno_2=$LINENO
22136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22137 test "x$as_lineno_1" != "x$as_lineno_2" &&
22138 test "x$as_lineno_3" = "x$as_lineno_2" || {
22139 # Find who we are. Look in the path if we contain no path at all
22140 # relative or not.
22141 case $0 in
22142 *[\\/]* ) as_myself=$0 ;;
22143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22144for as_dir in $PATH
22145do
22146 IFS=$as_save_IFS
22147 test -z "$as_dir" && as_dir=.
22148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22149done
22150
22151 ;;
22152 esac
22153 # We did not find ourselves, most probably we were run as `sh COMMAND'
22154 # in which case we are not to be found in the path.
22155 if test "x$as_myself" = x; then
22156 as_myself=$0
22157 fi
22158 if test ! -f "$as_myself"; then
22159 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22160echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22161 { (exit 1); exit 1; }; }
22162 fi
22163 case $CONFIG_SHELL in
22164 '')
22165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22166for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22167do
22168 IFS=$as_save_IFS
22169 test -z "$as_dir" && as_dir=.
22170 for as_base in sh bash ksh sh5; do
22171 case $as_dir in
22172 /*)
22173 if ("$as_dir/$as_base" -c '
22174 as_lineno_1=$LINENO
22175 as_lineno_2=$LINENO
22176 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22177 test "x$as_lineno_1" != "x$as_lineno_2" &&
22178 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022179 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22180 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022181 CONFIG_SHELL=$as_dir/$as_base
22182 export CONFIG_SHELL
22183 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22184 fi;;
22185 esac
22186 done
22187done
22188;;
22189 esac
22190
22191 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22192 # uniformly replaced by the line number. The first 'sed' inserts a
22193 # line-number line before each line; the second 'sed' does the real
22194 # work. The second script uses 'N' to pair each line-number line
22195 # with the numbered line, and appends trailing '-' during
22196 # substitution so that $LINENO is not a special case at line end.
22197 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22198 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22199 sed '=' <$as_myself |
22200 sed '
22201 N
22202 s,$,-,
22203 : loop
22204 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22205 t loop
22206 s,-$,,
22207 s,^['$as_cr_digits']*\n,,
22208 ' >$as_me.lineno &&
22209 chmod +x $as_me.lineno ||
22210 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22211echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22212 { (exit 1); exit 1; }; }
22213
22214 # Don't try to exec as it changes $[0], causing all sort of problems
22215 # (the dirname of $[0] is not the place where we might find the
22216 # original and so on. Autoconf is especially sensible to this).
22217 . ./$as_me.lineno
22218 # Exit status is that of the last command.
22219 exit
22220}
22221
22222
22223case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22224 *c*,-n*) ECHO_N= ECHO_C='
22225' ECHO_T=' ' ;;
22226 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22227 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22228esac
22229
22230if expr a : '\(a\)' >/dev/null 2>&1; then
22231 as_expr=expr
22232else
22233 as_expr=false
22234fi
22235
22236rm -f conf$$ conf$$.exe conf$$.file
22237echo >conf$$.file
22238if ln -s conf$$.file conf$$ 2>/dev/null; then
22239 # We could just check for DJGPP; but this test a) works b) is more generic
22240 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22241 if test -f conf$$.exe; then
22242 # Don't use ln at all; we don't have any links
22243 as_ln_s='cp -p'
22244 else
22245 as_ln_s='ln -s'
22246 fi
22247elif ln conf$$.file conf$$ 2>/dev/null; then
22248 as_ln_s=ln
22249else
22250 as_ln_s='cp -p'
22251fi
22252rm -f conf$$ conf$$.exe conf$$.file
22253
John Criswell0c38eaf2003-09-10 15:17:25 +000022254if mkdir -p . 2>/dev/null; then
22255 as_mkdir_p=:
22256else
22257 as_mkdir_p=false
22258fi
22259
John Criswell7a73b802003-06-30 21:59:07 +000022260as_executable_p="test -f"
22261
22262# Sed expression to map a string onto a valid CPP name.
22263as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22264
22265# Sed expression to map a string onto a valid variable name.
22266as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22267
22268
22269# IFS
22270# We need space, tab and new line, in precisely that order.
22271as_nl='
22272'
22273IFS=" $as_nl"
22274
22275# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000022276$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022277
22278exec 6>&1
22279
22280# Open the log real soon, to keep \$[0] and so on meaningful, and to
22281# report actual input values of CONFIG_FILES etc. instead of their
22282# values after options handling. Logging --version etc. is OK.
22283exec 5>>config.log
22284{
22285 echo
22286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22287## Running $as_me. ##
22288_ASBOX
22289} >&5
22290cat >&5 <<_CSEOF
22291
John Criswelld000e1d2003-12-18 16:43:17 +000022292This file was extended by [LLVM] $as_me [1.1], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000022293generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022294
22295 CONFIG_FILES = $CONFIG_FILES
22296 CONFIG_HEADERS = $CONFIG_HEADERS
22297 CONFIG_LINKS = $CONFIG_LINKS
22298 CONFIG_COMMANDS = $CONFIG_COMMANDS
22299 $ $0 $@
22300
22301_CSEOF
22302echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22303echo >&5
22304_ACEOF
22305
22306# Files that config.status was made for.
22307if test -n "$ac_config_files"; then
22308 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22309fi
22310
22311if test -n "$ac_config_headers"; then
22312 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22313fi
22314
22315if test -n "$ac_config_links"; then
22316 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22317fi
22318
22319if test -n "$ac_config_commands"; then
22320 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22321fi
22322
22323cat >>$CONFIG_STATUS <<\_ACEOF
22324
22325ac_cs_usage="\
22326\`$as_me' instantiates files from templates according to the
22327current configuration.
22328
22329Usage: $0 [OPTIONS] [FILE]...
22330
22331 -h, --help print this help, then exit
22332 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000022333 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022334 -d, --debug don't remove temporary files
22335 --recheck update $as_me by reconfiguring in the same conditions
22336 --file=FILE[:TEMPLATE]
22337 instantiate the configuration file FILE
22338 --header=FILE[:TEMPLATE]
22339 instantiate the configuration header FILE
22340
22341Configuration files:
22342$config_files
22343
22344Configuration headers:
22345$config_headers
22346
John Criswellc764fbc2003-09-06 15:17:13 +000022347Configuration commands:
22348$config_commands
22349
John Criswell7a73b802003-06-30 21:59:07 +000022350Report bugs to <bug-autoconf@gnu.org>."
22351_ACEOF
22352
22353cat >>$CONFIG_STATUS <<_ACEOF
22354ac_cs_version="\\
John Criswelld000e1d2003-12-18 16:43:17 +000022355[LLVM] config.status [1.1]
John Criswell0c38eaf2003-09-10 15:17:25 +000022356configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022357 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22358
22359Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22360Free Software Foundation, Inc.
22361This config.status script is free software; the Free Software Foundation
22362gives unlimited permission to copy, distribute and modify it."
22363srcdir=$srcdir
22364INSTALL="$INSTALL"
22365_ACEOF
22366
22367cat >>$CONFIG_STATUS <<\_ACEOF
22368# If no file are specified by the user, then we need to provide default
22369# value. By we need to know if files were specified by the user.
22370ac_need_defaults=:
22371while test $# != 0
22372do
22373 case $1 in
22374 --*=*)
22375 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22376 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022377 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022378 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022379 -*)
22380 ac_option=$1
22381 ac_optarg=$2
22382 ac_shift=shift
22383 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022384 *) # This is not an option, so the user has probably given explicit
22385 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000022386 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022387 ac_need_defaults=false;;
22388 esac
22389
John Criswell0c38eaf2003-09-10 15:17:25 +000022390 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022391 # Handling of the options.
22392_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022393cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22395 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022396 --version | --vers* | -V )
22397 echo "$ac_cs_version"; exit 0 ;;
22398 --he | --h)
22399 # Conflict between --help and --header
22400 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22401Try \`$0 --help' for more information." >&5
22402echo "$as_me: error: ambiguous option: $1
22403Try \`$0 --help' for more information." >&2;}
22404 { (exit 1); exit 1; }; };;
22405 --help | --hel | -h )
22406 echo "$ac_cs_usage"; exit 0 ;;
22407 --debug | --d* | -d )
22408 debug=: ;;
22409 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022410 $ac_shift
22411 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022412 ac_need_defaults=false;;
22413 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022414 $ac_shift
22415 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022416 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22419 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022420
22421 # This is an error.
22422 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22423Try \`$0 --help' for more information." >&5
22424echo "$as_me: error: unrecognized option: $1
22425Try \`$0 --help' for more information." >&2;}
22426 { (exit 1); exit 1; }; } ;;
22427
22428 *) ac_config_targets="$ac_config_targets $1" ;;
22429
22430 esac
22431 shift
22432done
22433
John Criswell0c38eaf2003-09-10 15:17:25 +000022434ac_configure_extra_args=
22435
22436if $ac_cs_silent; then
22437 exec 6>/dev/null
22438 ac_configure_extra_args="$ac_configure_extra_args --silent"
22439fi
22440
22441_ACEOF
22442cat >>$CONFIG_STATUS <<_ACEOF
22443if \$ac_cs_recheck; then
22444 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22445 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22446fi
22447
John Criswell7a73b802003-06-30 21:59:07 +000022448_ACEOF
22449
John Criswellc764fbc2003-09-06 15:17:13 +000022450cat >>$CONFIG_STATUS <<_ACEOF
22451#
22452# INIT-COMMANDS section.
22453#
John Criswell7a73b802003-06-30 21:59:07 +000022454
John Criswellc764fbc2003-09-06 15:17:13 +000022455${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22456${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000022457${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022458${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022459${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22460${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000022461${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22462${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000022463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000022481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellcf2e9f72004-02-10 22:36:35 +000022482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000022483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000022485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000022498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellc764fbc2003-09-06 15:17:13 +000022500${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000022501${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022502${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022503
22504_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022505
22506
22507
22508cat >>$CONFIG_STATUS <<\_ACEOF
22509for ac_config_target in $ac_config_targets
22510do
22511 case "$ac_config_target" in
22512 # Handling of arguments.
22513 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022514 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22515 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022516 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022517 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022518 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22519 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000022520 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22521 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022522 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22523 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22524 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22525 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22526 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22527 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22528 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22529 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22530 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22531 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22532 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22533 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22534 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22535 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22536 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22537 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22538 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22539 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000022540 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000022541 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022542 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22543 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000022544 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22545 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22546 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22547 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22548 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22549 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22550 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22551 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22552 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22553 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22554 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22555 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22556 "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 +000022557 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22558 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022559 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000022560 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022561 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000022562 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22563 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22564echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22565 { (exit 1); exit 1; }; };;
22566 esac
22567done
22568
22569# If the user did not use the arguments to specify the items to instantiate,
22570# then the envvar interface is used. Set only those that are not.
22571# We use the long form for the default assignment because of an extremely
22572# bizarre bug on SunOS 4.1.3.
22573if $ac_need_defaults; then
22574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022577fi
22578
John Criswell0c38eaf2003-09-10 15:17:25 +000022579# Have a temporary directory for convenience. Make it in the build tree
22580# simply because there is no reason to put it here, and in addition,
22581# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022582# Create a temporary directory, and hook for its removal unless debugging.
22583$debug ||
22584{
22585 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22586 trap '{ (exit 1); exit 1; }' 1 2 13 15
22587}
22588
22589# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022590
John Criswell7a73b802003-06-30 21:59:07 +000022591{
John Criswell0c38eaf2003-09-10 15:17:25 +000022592 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022593 test -n "$tmp" && test -d "$tmp"
22594} ||
22595{
John Criswell0c38eaf2003-09-10 15:17:25 +000022596 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022597 (umask 077 && mkdir $tmp)
22598} ||
22599{
John Criswell0c38eaf2003-09-10 15:17:25 +000022600 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022601 { (exit 1); exit 1; }
22602}
22603
22604_ACEOF
22605
22606cat >>$CONFIG_STATUS <<_ACEOF
22607
22608#
22609# CONFIG_FILES section.
22610#
22611
22612# No need to generate the scripts if there are no CONFIG_FILES.
22613# This happens for instance when ./config.status config.h
22614if test -n "\$CONFIG_FILES"; then
22615 # Protect against being on the right side of a sed subst in config.status.
22616 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22617 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22618s,@SHELL@,$SHELL,;t t
22619s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22620s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22621s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22622s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22623s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22624s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22625s,@exec_prefix@,$exec_prefix,;t t
22626s,@prefix@,$prefix,;t t
22627s,@program_transform_name@,$program_transform_name,;t t
22628s,@bindir@,$bindir,;t t
22629s,@sbindir@,$sbindir,;t t
22630s,@libexecdir@,$libexecdir,;t t
22631s,@datadir@,$datadir,;t t
22632s,@sysconfdir@,$sysconfdir,;t t
22633s,@sharedstatedir@,$sharedstatedir,;t t
22634s,@localstatedir@,$localstatedir,;t t
22635s,@libdir@,$libdir,;t t
22636s,@includedir@,$includedir,;t t
22637s,@oldincludedir@,$oldincludedir,;t t
22638s,@infodir@,$infodir,;t t
22639s,@mandir@,$mandir,;t t
22640s,@build_alias@,$build_alias,;t t
22641s,@host_alias@,$host_alias,;t t
22642s,@target_alias@,$target_alias,;t t
22643s,@DEFS@,$DEFS,;t t
22644s,@ECHO_C@,$ECHO_C,;t t
22645s,@ECHO_N@,$ECHO_N,;t t
22646s,@ECHO_T@,$ECHO_T,;t t
22647s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000022648s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022649s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22650s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22651s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22652s,@build@,$build,;t t
22653s,@build_cpu@,$build_cpu,;t t
22654s,@build_vendor@,$build_vendor,;t t
22655s,@build_os@,$build_os,;t t
22656s,@host@,$host,;t t
22657s,@host_cpu@,$host_cpu,;t t
22658s,@host_vendor@,$host_vendor,;t t
22659s,@host_os@,$host_os,;t t
22660s,@target@,$target,;t t
22661s,@target_cpu@,$target_cpu,;t t
22662s,@target_vendor@,$target_vendor,;t t
22663s,@target_os@,$target_os,;t t
22664s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022665s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022666s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022667s,@CXX@,$CXX,;t t
22668s,@CXXFLAGS@,$CXXFLAGS,;t t
22669s,@LDFLAGS@,$LDFLAGS,;t t
22670s,@CPPFLAGS@,$CPPFLAGS,;t t
22671s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22672s,@EXEEXT@,$EXEEXT,;t t
22673s,@OBJEXT@,$OBJEXT,;t t
22674s,@CC@,$CC,;t t
22675s,@CFLAGS@,$CFLAGS,;t t
22676s,@ac_ct_CC@,$ac_ct_CC,;t t
22677s,@CPP@,$CPP,;t t
22678s,@ifGNUmake@,$ifGNUmake,;t t
22679s,@LEX@,$LEX,;t t
22680s,@LEXLIB@,$LEXLIB,;t t
22681s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22682s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000022683s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022684s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022685s,@LN_S@,$LN_S,;t t
22686s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022687s,@AR@,$AR,;t t
22688s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022689s,@RANLIB@,$RANLIB,;t t
22690s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22691s,@STRIP@,$STRIP,;t t
22692s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022693s,@CXXCPP@,$CXXCPP,;t t
22694s,@F77@,$F77,;t t
22695s,@FFLAGS@,$FFLAGS,;t t
22696s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022697s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022698s,@DOT@,$DOT,;t t
22699s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000022700s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000022701s,@PYTHON@,$PYTHON,;t t
22702s,@QMTEST@,$QMTEST,;t t
John Criswell0021c312004-02-13 21:57:29 +000022703s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022704s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022705s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022706s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000022707s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022708s,@USE_SPEC@,$USE_SPEC,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000022709s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22710s,@USE_SPEC95@,$USE_SPEC95,;t t
John Criswell0538d422004-02-20 22:30:22 +000022711s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22712s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022713s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022714s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022715s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000022716s,@LLVMCC1@,$LLVMCC1,;t t
22717s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022718s,@BCR@,$BCR,;t t
22719s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000022720s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000022721s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000022722s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022723CEOF
22724
22725_ACEOF
22726
22727 cat >>$CONFIG_STATUS <<\_ACEOF
22728 # Split the substitutions into bite-sized pieces for seds with
22729 # small command number limits, like on Digital OSF/1 and HP-UX.
22730 ac_max_sed_lines=48
22731 ac_sed_frag=1 # Number of current file.
22732 ac_beg=1 # First line for current file.
22733 ac_end=$ac_max_sed_lines # Line after last line for current file.
22734 ac_more_lines=:
22735 ac_sed_cmds=
22736 while $ac_more_lines; do
22737 if test $ac_beg -gt 1; then
22738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22739 else
22740 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22741 fi
22742 if test ! -s $tmp/subs.frag; then
22743 ac_more_lines=false
22744 else
22745 # The purpose of the label and of the branching condition is to
22746 # speed up the sed processing (if there are no `@' at all, there
22747 # is no need to browse any of the substitutions).
22748 # These are the two extra sed commands mentioned above.
22749 (echo ':t
22750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22751 if test -z "$ac_sed_cmds"; then
22752 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22753 else
22754 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22755 fi
22756 ac_sed_frag=`expr $ac_sed_frag + 1`
22757 ac_beg=$ac_end
22758 ac_end=`expr $ac_end + $ac_max_sed_lines`
22759 fi
22760 done
22761 if test -z "$ac_sed_cmds"; then
22762 ac_sed_cmds=cat
22763 fi
22764fi # test -n "$CONFIG_FILES"
22765
22766_ACEOF
22767cat >>$CONFIG_STATUS <<\_ACEOF
22768for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22770 case $ac_file in
22771 - | *:- | *:-:* ) # input from stdin
22772 cat >$tmp/stdin
22773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22777 * ) ac_file_in=$ac_file.in ;;
22778 esac
22779
22780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22781 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22782$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22783 X"$ac_file" : 'X\(//\)[^/]' \| \
22784 X"$ac_file" : 'X\(//\)$' \| \
22785 X"$ac_file" : 'X\(/\)' \| \
22786 . : '\(.\)' 2>/dev/null ||
22787echo X"$ac_file" |
22788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22790 /^X\(\/\/\)$/{ s//\1/; q; }
22791 /^X\(\/\).*/{ s//\1/; q; }
22792 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022793 { if $as_mkdir_p; then
22794 mkdir -p "$ac_dir"
22795 else
22796 as_dir="$ac_dir"
22797 as_dirs=
22798 while test ! -d "$as_dir"; do
22799 as_dirs="$as_dir $as_dirs"
22800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22801$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22802 X"$as_dir" : 'X\(//\)[^/]' \| \
22803 X"$as_dir" : 'X\(//\)$' \| \
22804 X"$as_dir" : 'X\(/\)' \| \
22805 . : '\(.\)' 2>/dev/null ||
22806echo X"$as_dir" |
22807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22809 /^X\(\/\/\)$/{ s//\1/; q; }
22810 /^X\(\/\).*/{ s//\1/; q; }
22811 s/.*/./; q'`
22812 done
22813 test ! -n "$as_dirs" || mkdir $as_dirs
22814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22815echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22816 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022817
22818 ac_builddir=.
22819
22820if test "$ac_dir" != .; then
22821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22822 # A "../" for each directory in $ac_dir_suffix.
22823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22824else
22825 ac_dir_suffix= ac_top_builddir=
22826fi
22827
22828case $srcdir in
22829 .) # No --srcdir option. We are building in place.
22830 ac_srcdir=.
22831 if test -z "$ac_top_builddir"; then
22832 ac_top_srcdir=.
22833 else
22834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22835 fi ;;
22836 [\\/]* | ?:[\\/]* ) # Absolute path.
22837 ac_srcdir=$srcdir$ac_dir_suffix;
22838 ac_top_srcdir=$srcdir ;;
22839 *) # Relative path.
22840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22842esac
22843# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22844# absolute.
22845ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000022846ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000022847ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22848ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22849
22850
22851 case $INSTALL in
22852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22853 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22854 esac
22855
22856 if test x"$ac_file" != x-; then
22857 { echo "$as_me:$LINENO: creating $ac_file" >&5
22858echo "$as_me: creating $ac_file" >&6;}
22859 rm -f "$ac_file"
22860 fi
22861 # Let's still pretend it is `configure' which instantiates (i.e., don't
22862 # use $as_me), people would be surprised to read:
22863 # /* config.h. Generated by config.status. */
22864 if test x"$ac_file" = x-; then
22865 configure_input=
22866 else
22867 configure_input="$ac_file. "
22868 fi
22869 configure_input=$configure_input"Generated from `echo $ac_file_in |
22870 sed 's,.*/,,'` by configure."
22871
22872 # First look for the input files in the build tree, otherwise in the
22873 # src tree.
22874 ac_file_inputs=`IFS=:
22875 for f in $ac_file_in; do
22876 case $f in
22877 -) echo $tmp/stdin ;;
22878 [\\/$]*)
22879 # Absolute (can't be DOS-style, as IFS=:)
22880 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22881echo "$as_me: error: cannot find input file: $f" >&2;}
22882 { (exit 1); exit 1; }; }
22883 echo $f;;
22884 *) # Relative
22885 if test -f "$f"; then
22886 # Build tree
22887 echo $f
22888 elif test -f "$srcdir/$f"; then
22889 # Source tree
22890 echo $srcdir/$f
22891 else
22892 # /dev/null tree
22893 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22894echo "$as_me: error: cannot find input file: $f" >&2;}
22895 { (exit 1); exit 1; }; }
22896 fi;;
22897 esac
22898 done` || { (exit 1); exit 1; }
22899_ACEOF
22900cat >>$CONFIG_STATUS <<_ACEOF
22901 sed "$ac_vpsub
22902$extrasub
22903_ACEOF
22904cat >>$CONFIG_STATUS <<\_ACEOF
22905:t
22906/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22907s,@configure_input@,$configure_input,;t t
22908s,@srcdir@,$ac_srcdir,;t t
22909s,@abs_srcdir@,$ac_abs_srcdir,;t t
22910s,@top_srcdir@,$ac_top_srcdir,;t t
22911s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22912s,@builddir@,$ac_builddir,;t t
22913s,@abs_builddir@,$ac_abs_builddir,;t t
22914s,@top_builddir@,$ac_top_builddir,;t t
22915s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22916s,@INSTALL@,$ac_INSTALL,;t t
22917" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22918 rm -f $tmp/stdin
22919 if test x"$ac_file" != x-; then
22920 mv $tmp/out $ac_file
22921 else
22922 cat $tmp/out
22923 rm -f $tmp/out
22924 fi
22925
22926done
22927_ACEOF
22928cat >>$CONFIG_STATUS <<\_ACEOF
22929
22930#
22931# CONFIG_HEADER section.
22932#
22933
22934# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22935# NAME is the cpp macro being defined and VALUE is the value it is being given.
22936#
22937# ac_d sets the value in "#define NAME VALUE" lines.
22938ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22939ac_dB='[ ].*$,\1#\2'
22940ac_dC=' '
22941ac_dD=',;t'
22942# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22943ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22944ac_uB='$,\1#\2define\3'
22945ac_uC=' '
22946ac_uD=',;t'
22947
22948for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22950 case $ac_file in
22951 - | *:- | *:-:* ) # input from stdin
22952 cat >$tmp/stdin
22953 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22955 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22957 * ) ac_file_in=$ac_file.in ;;
22958 esac
22959
22960 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22961echo "$as_me: creating $ac_file" >&6;}
22962
22963 # First look for the input files in the build tree, otherwise in the
22964 # src tree.
22965 ac_file_inputs=`IFS=:
22966 for f in $ac_file_in; do
22967 case $f in
22968 -) echo $tmp/stdin ;;
22969 [\\/$]*)
22970 # Absolute (can't be DOS-style, as IFS=:)
22971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22972echo "$as_me: error: cannot find input file: $f" >&2;}
22973 { (exit 1); exit 1; }; }
22974 echo $f;;
22975 *) # Relative
22976 if test -f "$f"; then
22977 # Build tree
22978 echo $f
22979 elif test -f "$srcdir/$f"; then
22980 # Source tree
22981 echo $srcdir/$f
22982 else
22983 # /dev/null tree
22984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22985echo "$as_me: error: cannot find input file: $f" >&2;}
22986 { (exit 1); exit 1; }; }
22987 fi;;
22988 esac
22989 done` || { (exit 1); exit 1; }
22990 # Remove the trailing spaces.
22991 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22992
22993_ACEOF
22994
22995# Transform confdefs.h into two sed scripts, `conftest.defines' and
22996# `conftest.undefs', that substitutes the proper values into
22997# config.h.in to produce config.h. The first handles `#define'
22998# templates, and the second `#undef' templates.
22999# And first: Protect against being on the right side of a sed subst in
23000# config.status. Protect against being in an unquoted here document
23001# in config.status.
23002rm -f conftest.defines conftest.undefs
23003# Using a here document instead of a string reduces the quoting nightmare.
23004# Putting comments in sed scripts is not portable.
23005#
23006# `end' is used to avoid that the second main sed command (meant for
23007# 0-ary CPP macros) applies to n-ary macro definitions.
23008# See the Autoconf documentation for `clear'.
23009cat >confdef2sed.sed <<\_ACEOF
23010s/[\\&,]/\\&/g
23011s,[\\$`],\\&,g
23012t clear
23013: clear
23014s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23015t end
23016s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23017: end
23018_ACEOF
23019# If some macros were called several times there might be several times
23020# the same #defines, which is useless. Nevertheless, we may not want to
23021# sort them, since we want the *last* AC-DEFINE to be honored.
23022uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23023sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23024rm -f confdef2sed.sed
23025
23026# This sed command replaces #undef with comments. This is necessary, for
23027# example, in the case of _POSIX_SOURCE, which is predefined and required
23028# on some systems where configure will not decide to define it.
23029cat >>conftest.undefs <<\_ACEOF
23030s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23031_ACEOF
23032
23033# Break up conftest.defines because some shells have a limit on the size
23034# of here documents, and old seds have small limits too (100 cmds).
23035echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023036echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023037echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23038echo ' :' >>$CONFIG_STATUS
23039rm -f conftest.tail
23040while grep . conftest.defines >/dev/null
23041do
23042 # Write a limited-size here document to $tmp/defines.sed.
23043 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23044 # Speed up: don't consider the non `#define' lines.
23045 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23046 # Work around the forget-to-reset-the-flag bug.
23047 echo 't clr' >>$CONFIG_STATUS
23048 echo ': clr' >>$CONFIG_STATUS
23049 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23050 echo 'CEOF
23051 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23052 rm -f $tmp/in
23053 mv $tmp/out $tmp/in
23054' >>$CONFIG_STATUS
23055 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23056 rm -f conftest.defines
23057 mv conftest.tail conftest.defines
23058done
23059rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023060echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023061echo >>$CONFIG_STATUS
23062
23063# Break up conftest.undefs because some shells have a limit on the size
23064# of here documents, and old seds have small limits too (100 cmds).
23065echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23066rm -f conftest.tail
23067while grep . conftest.undefs >/dev/null
23068do
23069 # Write a limited-size here document to $tmp/undefs.sed.
23070 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23071 # Speed up: don't consider the non `#undef'
23072 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23073 # Work around the forget-to-reset-the-flag bug.
23074 echo 't clr' >>$CONFIG_STATUS
23075 echo ': clr' >>$CONFIG_STATUS
23076 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23077 echo 'CEOF
23078 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23079 rm -f $tmp/in
23080 mv $tmp/out $tmp/in
23081' >>$CONFIG_STATUS
23082 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23083 rm -f conftest.undefs
23084 mv conftest.tail conftest.undefs
23085done
23086rm -f conftest.undefs
23087
23088cat >>$CONFIG_STATUS <<\_ACEOF
23089 # Let's still pretend it is `configure' which instantiates (i.e., don't
23090 # use $as_me), people would be surprised to read:
23091 # /* config.h. Generated by config.status. */
23092 if test x"$ac_file" = x-; then
23093 echo "/* Generated by configure. */" >$tmp/config.h
23094 else
23095 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23096 fi
23097 cat $tmp/in >>$tmp/config.h
23098 rm -f $tmp/in
23099 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023100 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023101 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23102echo "$as_me: $ac_file is unchanged" >&6;}
23103 else
23104 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23105$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23106 X"$ac_file" : 'X\(//\)[^/]' \| \
23107 X"$ac_file" : 'X\(//\)$' \| \
23108 X"$ac_file" : 'X\(/\)' \| \
23109 . : '\(.\)' 2>/dev/null ||
23110echo X"$ac_file" |
23111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23113 /^X\(\/\/\)$/{ s//\1/; q; }
23114 /^X\(\/\).*/{ s//\1/; q; }
23115 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023116 { if $as_mkdir_p; then
23117 mkdir -p "$ac_dir"
23118 else
23119 as_dir="$ac_dir"
23120 as_dirs=
23121 while test ! -d "$as_dir"; do
23122 as_dirs="$as_dir $as_dirs"
23123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23124$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23125 X"$as_dir" : 'X\(//\)[^/]' \| \
23126 X"$as_dir" : 'X\(//\)$' \| \
23127 X"$as_dir" : 'X\(/\)' \| \
23128 . : '\(.\)' 2>/dev/null ||
23129echo X"$as_dir" |
23130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23132 /^X\(\/\/\)$/{ s//\1/; q; }
23133 /^X\(\/\).*/{ s//\1/; q; }
23134 s/.*/./; q'`
23135 done
23136 test ! -n "$as_dirs" || mkdir $as_dirs
23137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23138echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23139 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023140
23141 rm -f $ac_file
23142 mv $tmp/config.h $ac_file
23143 fi
23144 else
23145 cat $tmp/config.h
23146 rm -f $tmp/config.h
23147 fi
23148done
23149_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023150cat >>$CONFIG_STATUS <<\_ACEOF
23151
23152#
23153# CONFIG_COMMANDS section.
23154#
23155for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23156 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23157 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23158 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23159$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23160 X"$ac_dest" : 'X\(//\)[^/]' \| \
23161 X"$ac_dest" : 'X\(//\)$' \| \
23162 X"$ac_dest" : 'X\(/\)' \| \
23163 . : '\(.\)' 2>/dev/null ||
23164echo X"$ac_dest" |
23165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23167 /^X\(\/\/\)$/{ s//\1/; q; }
23168 /^X\(\/\).*/{ s//\1/; q; }
23169 s/.*/./; q'`
23170 ac_builddir=.
23171
23172if test "$ac_dir" != .; then
23173 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23174 # A "../" for each directory in $ac_dir_suffix.
23175 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23176else
23177 ac_dir_suffix= ac_top_builddir=
23178fi
23179
23180case $srcdir in
23181 .) # No --srcdir option. We are building in place.
23182 ac_srcdir=.
23183 if test -z "$ac_top_builddir"; then
23184 ac_top_srcdir=.
23185 else
23186 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23187 fi ;;
23188 [\\/]* | ?:[\\/]* ) # Absolute path.
23189 ac_srcdir=$srcdir$ac_dir_suffix;
23190 ac_top_srcdir=$srcdir ;;
23191 *) # Relative path.
23192 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23193 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23194esac
23195# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23196# absolute.
23197ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023198ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023199ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23200ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23201
23202
23203 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23204echo "$as_me: executing $ac_dest commands" >&6;}
23205 case $ac_dest in
23206 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23207 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023208 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023209 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023210 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23211 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000023212 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23213 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 +000023214 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23215 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23216 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23217 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23218 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23219 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23220 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23221 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23222 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23223 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23224 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23225 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23226 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23227 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23228 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23229 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23230 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23231 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 +000023232 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 ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000023233 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 +000023234 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23235 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 +000023236 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 ;;
23237 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 ;;
23238 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 ;;
23239 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 ;;
23240 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 ;;
23241 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 ;;
23242 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 ;;
23243 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 ;;
23244 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 ;;
23245 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 ;;
23246 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 ;;
23247 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 ;;
23248 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 +000023249 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23250 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023251 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023252 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023253 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023254 esac
23255done
23256_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023257
23258cat >>$CONFIG_STATUS <<\_ACEOF
23259
23260{ (exit 0); exit 0; }
23261_ACEOF
23262chmod +x $CONFIG_STATUS
23263ac_clean_files=$ac_clean_files_save
23264
23265
23266# configure is writing to config.log, and then calls config.status.
23267# config.status does its own redirection, appending to config.log.
23268# Unfortunately, on DOS this fails, as config.log is still kept open
23269# by configure, so config.status won't be able to write to it; its
23270# output is simply discarded. So we exec the FD to /dev/null,
23271# effectively closing config.log, so it can be properly (re)opened and
23272# appended to by config.status. When coming back to configure, we
23273# need to make the FD available again.
23274if test "$no_create" != yes; then
23275 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023276 ac_config_status_args=
23277 test "$silent" = yes &&
23278 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023279 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023281 exec 5>>config.log
23282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23283 # would make configure fail if this is the last instruction.
23284 $ac_cs_success || { (exit 1); exit 1; }
23285fi
23286
John Criswell12399a12003-09-30 15:55:44 +000023287#
23288# CONFIG_SUBDIRS section.
23289#
23290if test "$no_recursion" != yes; then
23291
23292 # Remove --cache-file and --srcdir arguments so they do not pile up.
23293 ac_sub_configure_args=
23294 ac_prev=
23295 for ac_arg in $ac_configure_args; do
23296 if test -n "$ac_prev"; then
23297 ac_prev=
23298 continue
23299 fi
23300 case $ac_arg in
23301 -cache-file | --cache-file | --cache-fil | --cache-fi \
23302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23303 ac_prev=cache_file ;;
23304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23306 | --c=*)
23307 ;;
23308 --config-cache | -C)
23309 ;;
23310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23311 ac_prev=srcdir ;;
23312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23313 ;;
23314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23315 ac_prev=prefix ;;
23316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23317 ;;
23318 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23319 esac
23320 done
23321
23322 # Always prepend --prefix to ensure using the same prefix
23323 # in subdir configurations.
23324 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23325
23326 ac_popdir=`pwd`
23327 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23328
23329 # Do not complain, so a configure script can configure whichever
23330 # parts of a large source tree are present.
23331 test -d $srcdir/$ac_dir || continue
23332
23333 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23334echo "$as_me: configuring in $ac_dir" >&6;}
23335 { if $as_mkdir_p; then
23336 mkdir -p "$ac_dir"
23337 else
23338 as_dir="$ac_dir"
23339 as_dirs=
23340 while test ! -d "$as_dir"; do
23341 as_dirs="$as_dir $as_dirs"
23342 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23344 X"$as_dir" : 'X\(//\)[^/]' \| \
23345 X"$as_dir" : 'X\(//\)$' \| \
23346 X"$as_dir" : 'X\(/\)' \| \
23347 . : '\(.\)' 2>/dev/null ||
23348echo X"$as_dir" |
23349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23351 /^X\(\/\/\)$/{ s//\1/; q; }
23352 /^X\(\/\).*/{ s//\1/; q; }
23353 s/.*/./; q'`
23354 done
23355 test ! -n "$as_dirs" || mkdir $as_dirs
23356 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23357echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23358 { (exit 1); exit 1; }; }; }
23359
23360 ac_builddir=.
23361
23362if test "$ac_dir" != .; then
23363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23364 # A "../" for each directory in $ac_dir_suffix.
23365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23366else
23367 ac_dir_suffix= ac_top_builddir=
23368fi
23369
23370case $srcdir in
23371 .) # No --srcdir option. We are building in place.
23372 ac_srcdir=.
23373 if test -z "$ac_top_builddir"; then
23374 ac_top_srcdir=.
23375 else
23376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23377 fi ;;
23378 [\\/]* | ?:[\\/]* ) # Absolute path.
23379 ac_srcdir=$srcdir$ac_dir_suffix;
23380 ac_top_srcdir=$srcdir ;;
23381 *) # Relative path.
23382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23383 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23384esac
23385# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23386# absolute.
23387ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23388ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23389ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23390ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23391
23392
23393 cd $ac_dir
23394
23395 # Check for guested configure; otherwise get Cygnus style configure.
23396 if test -f $ac_srcdir/configure.gnu; then
23397 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23398 elif test -f $ac_srcdir/configure; then
23399 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23400 elif test -f $ac_srcdir/configure.in; then
23401 ac_sub_configure=$ac_configure
23402 else
23403 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23404echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23405 ac_sub_configure=
23406 fi
23407
23408 # The recursion is here.
23409 if test -n "$ac_sub_configure"; then
23410 # Make the cache file name correct relative to the subdirectory.
23411 case $cache_file in
23412 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23413 *) # Relative path.
23414 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23415 esac
23416
23417 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23418echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23419 # The eval makes quoting arguments work.
23420 eval $ac_sub_configure $ac_sub_configure_args \
23421 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23422 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23423echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23424 { (exit 1); exit 1; }; }
23425 fi
23426
23427 cd $ac_popdir
23428 done
23429fi
23430
Brian Gaekef3b24102003-11-16 18:38:14 +000023431
23432if test $llvmgccwarn = yes
23433then
23434 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23435echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23436 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23437echo "$as_me: WARNING: ***** appear to be working." >&2;}
23438 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23439echo "$as_me: WARNING: ***** " >&2;}
23440 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23441echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23442 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23443echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23444 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23445echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23446fi
Brian Gaeke554831c2004-01-21 19:39:29 +000023447