blob: c504f4c7e631a002845c3fa1ab0bc4798e05f659 [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 Criswell0021c312004-02-13 21:57:29 +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 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 Criswell7a73b802003-06-30 21:59:07 +00001036 --enable-precompiled_bytecode
1037 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001038 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001039 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001052
1053Some influential environment variables:
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001066
1067Use these variables to override the choices made by `configure' or to help
1068it to find libraries and programs with nonstandard names/locations.
1069
1070Report bugs to <llvmbugs@cs.uiuc.edu>.
1071_ACEOF
1072fi
1073
1074if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085else
1086 ac_dir_suffix= ac_top_builddir=
1087fi
1088
1089case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103esac
1104# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1105# absolute.
1106ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001107ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001108ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1109ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1110
1111 cd $ac_dir
1112 # Check for guested configure; otherwise get Cygnus style configure.
1113 if test -f $ac_srcdir/configure.gnu; then
1114 echo
1115 $SHELL $ac_srcdir/configure.gnu --help=recursive
1116 elif test -f $ac_srcdir/configure; then
1117 echo
1118 $SHELL $ac_srcdir/configure --help=recursive
1119 elif test -f $ac_srcdir/configure.ac ||
1120 test -f $ac_srcdir/configure.in; then
1121 echo
1122 $ac_configure --help
1123 else
1124 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1125 fi
1126 cd $ac_popdir
1127 done
1128fi
1129
1130test -n "$ac_init_help" && exit 0
1131if $ac_init_version; then
1132 cat <<\_ACEOF
John Criswelld000e1d2003-12-18 16:43:17 +00001133[LLVM] configure [1.1]
John Criswell0c38eaf2003-09-10 15:17:25 +00001134generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001135
1136Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1137Free Software Foundation, Inc.
1138This configure script is free software; the Free Software Foundation
1139gives unlimited permission to copy, distribute and modify it.
1140_ACEOF
1141 exit 0
1142fi
1143exec 5>config.log
1144cat >&5 <<_ACEOF
1145This file contains any messages produced by compilers while
1146running configure, to aid debugging if configure makes a mistake.
1147
John Criswelld000e1d2003-12-18 16:43:17 +00001148It was created by [LLVM] $as_me [1.1], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001149generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 $ $0 $@
1152
1153_ACEOF
1154{
1155cat <<_ASUNAME
1156## --------- ##
1157## Platform. ##
1158## --------- ##
1159
1160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168
1169/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1173/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176
1177_ASUNAME
1178
1179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180for as_dir in $PATH
1181do
1182 IFS=$as_save_IFS
1183 test -z "$as_dir" && as_dir=.
1184 echo "PATH: $as_dir"
1185done
1186
1187} >&5
1188
1189cat >&5 <<_ACEOF
1190
1191
1192## ----------- ##
1193## Core tests. ##
1194## ----------- ##
1195
1196_ACEOF
1197
1198
1199# Keep a trace of the command line.
1200# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001201# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001202# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001203# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001204ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001205ac_configure_args0=
1206ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_must_keep_next=false
1209for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001210do
John Criswell0c38eaf2003-09-10 15:17:25 +00001211 for ac_arg
1212 do
1213 case $ac_arg in
1214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 continue ;;
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 esac
1221 case $ac_pass in
1222 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 2)
1224 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225 if test $ac_must_keep_next = true; then
1226 ac_must_keep_next=false # Got value, back to normal.
1227 else
1228 case $ac_arg in
1229 *=* | --config-cache | -C | -disable-* | --disable-* \
1230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232 | -with-* | --with-* | -without-* | --without-* | --x)
1233 case "$ac_configure_args0 " in
1234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235 esac
1236 ;;
1237 -* ) ac_must_keep_next=true ;;
1238 esac
1239 fi
1240 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241 # Get rid of the leading space.
1242 ac_sep=" "
1243 ;;
1244 esac
1245 done
John Criswell7a73b802003-06-30 21:59:07 +00001246done
John Criswell0c38eaf2003-09-10 15:17:25 +00001247$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248$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 +00001249
1250# When interrupted or exit'd, cleanup temporary files, and complete
1251# config.log. We remove comments because anyway the quotes in there
1252# would cause problems or look ugly.
1253# WARNING: Be sure not to use single quotes in there, as some shells,
1254# such as our DU 5.0 friend, will then `close' the trap.
1255trap 'exit_status=$?
1256 # Save into config.log some information that might help in debugging.
1257 {
1258 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001259
John Criswell7a73b802003-06-30 21:59:07 +00001260 cat <<\_ASBOX
1261## ---------------- ##
1262## Cache variables. ##
1263## ---------------- ##
1264_ASBOX
1265 echo
1266 # The following way of writing the cache mishandles newlines in values,
1267{
1268 (set) 2>&1 |
1269 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270 *ac_space=\ *)
1271 sed -n \
1272 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274 ;;
1275 *)
1276 sed -n \
1277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 ;;
1279 esac;
1280}
1281 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001282
1283 cat <<\_ASBOX
1284## ----------------- ##
1285## Output variables. ##
1286## ----------------- ##
1287_ASBOX
1288 echo
1289 for ac_var in $ac_subst_vars
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295
1296 if test -n "$ac_subst_files"; then
1297 cat <<\_ASBOX
1298## ------------- ##
1299## Output files. ##
1300## ------------- ##
1301_ASBOX
1302 echo
1303 for ac_var in $ac_subst_files
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309 fi
1310
John Criswell7a73b802003-06-30 21:59:07 +00001311 if test -s confdefs.h; then
1312 cat <<\_ASBOX
1313## ----------- ##
1314## confdefs.h. ##
1315## ----------- ##
1316_ASBOX
1317 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001318 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001319 echo
1320 fi
1321 test "$ac_signal" != 0 &&
1322 echo "$as_me: caught signal $ac_signal"
1323 echo "$as_me: exit $exit_status"
1324 } >&5
1325 rm -f core core.* *.core &&
1326 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327 exit $exit_status
1328 ' 0
1329for ac_signal in 1 2 13 15; do
1330 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331done
1332ac_signal=0
1333
1334# confdefs.h avoids OS command line length limits that DEFS can exceed.
1335rm -rf conftest* confdefs.h
1336# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337echo >confdefs.h
1338
1339# Predefined preprocessor variables.
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_NAME "$PACKAGE_NAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_VERSION "$PACKAGE_VERSION"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_STRING "$PACKAGE_STRING"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363_ACEOF
1364
1365
1366# Let the site file select an alternate cache file if it wants to.
1367# Prefer explicitly selected file to automatically selected ones.
1368if test -z "$CONFIG_SITE"; then
1369 if test "x$prefix" != xNONE; then
1370 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 else
1372 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 fi
1374fi
1375for ac_site_file in $CONFIG_SITE; do
1376 if test -r "$ac_site_file"; then
1377 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378echo "$as_me: loading site script $ac_site_file" >&6;}
1379 sed 's/^/| /' "$ac_site_file" >&5
1380 . "$ac_site_file"
1381 fi
1382done
1383
1384if test -r "$cache_file"; then
1385 # Some versions of bash will fail to source /dev/null (special
1386 # files actually), so we avoid doing that.
1387 if test -f "$cache_file"; then
1388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389echo "$as_me: loading cache $cache_file" >&6;}
1390 case $cache_file in
1391 [\\/]* | ?:[\\/]* ) . $cache_file;;
1392 *) . ./$cache_file;;
1393 esac
1394 fi
1395else
1396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397echo "$as_me: creating cache $cache_file" >&6;}
1398 >$cache_file
1399fi
1400
1401# Check that the precious variables saved in the cache have kept the same
1402# value.
1403ac_cache_corrupted=false
1404for ac_var in `(set) 2>&1 |
1405 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407 eval ac_new_set=\$ac_env_${ac_var}_set
1408 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409 eval ac_new_val="\$ac_env_${ac_var}_value"
1410 case $ac_old_set,$ac_new_set in
1411 set,)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,set)
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1419 ,);;
1420 *)
1421 if test "x$ac_old_val" != "x$ac_new_val"; then
1422 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1425echo "$as_me: former value: $ac_old_val" >&2;}
1426 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1427echo "$as_me: current value: $ac_new_val" >&2;}
1428 ac_cache_corrupted=:
1429 fi;;
1430 esac
1431 # Pass precious variables to config.status.
1432 if test "$ac_new_set" = set; then
1433 case $ac_new_val in
1434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1436 *) ac_arg=$ac_var=$ac_new_val ;;
1437 esac
1438 case " $ac_configure_args " in
1439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1440 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1441 esac
1442 fi
1443done
1444if $ac_cache_corrupted; then
1445 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1446echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1447 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1448echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1449 { (exit 1); exit 1; }; }
1450fi
1451
1452ac_ext=c
1453ac_cpp='$CPP $CPPFLAGS'
1454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456ac_compiler_gnu=$ac_cv_c_compiler_gnu
1457
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
John Criswell0c38eaf2003-09-10 15:17:25 +00001484
John Criswell7a73b802003-06-30 21:59:07 +00001485ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001486for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001487 if test -f $ac_dir/install-sh; then
1488 ac_aux_dir=$ac_dir
1489 ac_install_sh="$ac_aux_dir/install-sh -c"
1490 break
1491 elif test -f $ac_dir/install.sh; then
1492 ac_aux_dir=$ac_dir
1493 ac_install_sh="$ac_aux_dir/install.sh -c"
1494 break
1495 elif test -f $ac_dir/shtool; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/shtool install -c"
1498 break
1499 fi
1500done
1501if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001502 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1503echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001504 { (exit 1); exit 1; }; }
1505fi
1506ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
John Criswell392aaa32003-07-22 19:18:09 +00001510
John Criswell1b824322003-09-15 17:19:42 +00001511if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001512then
John Criswell1b824322003-09-15 17:19:42 +00001513 if test -f ${srcdir}/include/Config/config.h
1514 then
1515 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001516echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1517 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001518 fi
John Criswell93e1c722003-09-15 17:04:06 +00001519fi
1520
John Criswell33a911a2003-11-25 20:36:46 +00001521for i in `ls ${srcdir}/projects`
1522do
1523 if test ${i} != "CVS"
1524 then
John Criswell2f2741b2003-12-12 20:15:23 +00001525 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001526 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001527
1528
John Criswell33a911a2003-11-25 20:36:46 +00001529subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001530
John Criswell33a911a2003-11-25 20:36:46 +00001531 fi
1532 fi
1533done
John Criswell559a6c12003-09-30 16:31:48 +00001534
John Criswell0c38eaf2003-09-10 15:17:25 +00001535 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001536
John Criswell0c38eaf2003-09-10 15:17:25 +00001537 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001538
1539
John Criswell0c38eaf2003-09-10 15:17:25 +00001540 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001541
1542
John Criswell0c38eaf2003-09-10 15:17:25 +00001543 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001544
1545
John Criswell0c38eaf2003-09-10 15:17:25 +00001546 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001547
1548
John Criswell0c38eaf2003-09-10 15:17:25 +00001549 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001550
1551
John Criswell0c38eaf2003-09-10 15:17:25 +00001552 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001553
1554
John Criswellf424d742003-10-07 21:13:47 +00001555 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1556
1557
1558 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001559
1560
John Criswell0c38eaf2003-09-10 15:17:25 +00001561 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001562
1563
John Criswell0c38eaf2003-09-10 15:17:25 +00001564 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001565
1566
John Criswell0c38eaf2003-09-10 15:17:25 +00001567 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001568
1569
John Criswell0c38eaf2003-09-10 15:17:25 +00001570 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001571
1572
John Criswell0c38eaf2003-09-10 15:17:25 +00001573 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001574
1575
John Criswell0c38eaf2003-09-10 15:17:25 +00001576 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001577
1578
John Criswell0c38eaf2003-09-10 15:17:25 +00001579 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001580
1581
John Criswell0c38eaf2003-09-10 15:17:25 +00001582 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001583
1584
John Criswell0c38eaf2003-09-10 15:17:25 +00001585 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001586
1587
John Criswell0c38eaf2003-09-10 15:17:25 +00001588 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001589
1590
John Criswell0c38eaf2003-09-10 15:17:25 +00001591 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001592
1593
John Criswell0c38eaf2003-09-10 15:17:25 +00001594 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001595
1596
John Criswell0c38eaf2003-09-10 15:17:25 +00001597 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001598
1599
John Criswell0c38eaf2003-09-10 15:17:25 +00001600 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001601
1602
John Criswell0c38eaf2003-09-10 15:17:25 +00001603 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001604
1605
John Criswell0c38eaf2003-09-10 15:17:25 +00001606 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001607
1608
John Criswell0c38eaf2003-09-10 15:17:25 +00001609 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001610
1611
John Criswell0c38eaf2003-09-10 15:17:25 +00001612 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001613
1614
John Criswell613758d2003-09-11 18:03:50 +00001615 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1616
1617
John Criswellcf2e9f72004-02-10 22:36:35 +00001618 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1619
1620
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001622
1623
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001625
1626
Misha Brukman811ce9f2003-11-12 22:16:51 +00001627 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1628
1629
1630 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1631
1632
1633 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1634
1635
1636 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1637
1638
1639 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1640
1641
1642 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1643
1644
1645 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1646
1647
1648 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1649
1650
1651 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1652
1653
1654 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1655
1656
1657 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1658
1659
1660 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1661
1662
1663 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1664
1665
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001667
1668
John Criswell0c38eaf2003-09-10 15:17:25 +00001669 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001670
1671
John Criswell0c38eaf2003-09-10 15:17:25 +00001672 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001673
1674
Brian Gaekec45be042003-10-07 06:01:34 +00001675 ac_config_commands="$ac_config_commands utils/Makefile"
1676
1677
John Criswell0c38eaf2003-09-10 15:17:25 +00001678 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001679
1680
John Criswell392aaa32003-07-22 19:18:09 +00001681
John Criswell7a73b802003-06-30 21:59:07 +00001682# Find a good install program. We prefer a C program (faster),
1683# so one script is as good as another. But avoid the broken or
1684# incompatible versions:
1685# SysV /etc/install, /usr/sbin/install
1686# SunOS /usr/etc/install
1687# IRIX /sbin/install
1688# AIX /bin/install
1689# AmigaOS /C/install, which installs bootblocks on floppy discs
1690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1693# ./install, which can be erroneously created by make from ./install.sh.
1694echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1695echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1696if test -z "$INSTALL"; then
1697if test "${ac_cv_path_install+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH
1702do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 # Account for people who put trailing slashes in PATH elements.
1706case $as_dir/ in
1707 ./ | .// | /cC/* | \
1708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1709 /usr/ucb/* ) ;;
1710 *)
1711 # OSF1 and SCO ODT 3.0 have their own names for install.
1712 # Don't use installbsd from OSF since it installs stuff as root
1713 # by default.
1714 for ac_prog in ginstall scoinst install; do
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1717 if test $ac_prog = install &&
1718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1719 # AIX install. It has an incompatible calling convention.
1720 :
1721 elif test $ac_prog = install &&
1722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # program-specific install script used by HP pwplus--don't use.
1724 :
1725 else
1726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1727 break 3
1728 fi
1729 fi
1730 done
1731 done
1732 ;;
1733esac
1734done
1735
1736
1737fi
1738 if test "${ac_cv_path_install+set}" = set; then
1739 INSTALL=$ac_cv_path_install
1740 else
1741 # As a last resort, use the slow shell script. We don't cache a
1742 # path for INSTALL within a source directory, because that will
1743 # break other packages using the cache if that directory is
1744 # removed, or if the path is relative.
1745 INSTALL=$ac_install_sh
1746 fi
1747fi
1748echo "$as_me:$LINENO: result: $INSTALL" >&5
1749echo "${ECHO_T}$INSTALL" >&6
1750
1751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1752# It thinks the first close brace ends the variable substitution.
1753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754
1755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1756
1757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1758
1759
1760# Make sure we can run config.sub.
1761$ac_config_sub sun4 >/dev/null 2>&1 ||
1762 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1763echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1764 { (exit 1); exit 1; }; }
1765
1766echo "$as_me:$LINENO: checking build system type" >&5
1767echo $ECHO_N "checking build system type... $ECHO_C" >&6
1768if test "${ac_cv_build+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771 ac_cv_build_alias=$build_alias
1772test -z "$ac_cv_build_alias" &&
1773 ac_cv_build_alias=`$ac_config_guess`
1774test -z "$ac_cv_build_alias" &&
1775 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1776echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1777 { (exit 1); exit 1; }; }
1778ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1779 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1780echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1781 { (exit 1); exit 1; }; }
1782
1783fi
1784echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1785echo "${ECHO_T}$ac_cv_build" >&6
1786build=$ac_cv_build
1787build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1788build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1789build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1790
1791
1792echo "$as_me:$LINENO: checking host system type" >&5
1793echo $ECHO_N "checking host system type... $ECHO_C" >&6
1794if test "${ac_cv_host+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796else
1797 ac_cv_host_alias=$host_alias
1798test -z "$ac_cv_host_alias" &&
1799 ac_cv_host_alias=$ac_cv_build_alias
1800ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1801 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1802echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1803 { (exit 1); exit 1; }; }
1804
1805fi
1806echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807echo "${ECHO_T}$ac_cv_host" >&6
1808host=$ac_cv_host
1809host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1810host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1811host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1812
1813
1814echo "$as_me:$LINENO: checking target system type" >&5
1815echo $ECHO_N "checking target system type... $ECHO_C" >&6
1816if test "${ac_cv_target+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819 ac_cv_target_alias=$target_alias
1820test "x$ac_cv_target_alias" = "x" &&
1821 ac_cv_target_alias=$ac_cv_host_alias
1822ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1823 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1824echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1825 { (exit 1); exit 1; }; }
1826
1827fi
1828echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1829echo "${ECHO_T}$ac_cv_target" >&6
1830target=$ac_cv_target
1831target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1832target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1833target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1834
1835
1836# The aliases save the names the user supplied, while $host etc.
1837# will get canonicalized.
1838test -n "$target_alias" &&
1839 test "$program_prefix$program_suffix$program_transform_name" = \
1840 NONENONEs,x,x, &&
1841 program_prefix=${target_alias}-
1842
1843case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001844 *-*-linux*)
1845 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001846
Brian Gaekef3b24102003-11-16 18:38:14 +00001847 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1848 then
1849 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001850
Brian Gaekef3b24102003-11-16 18:38:14 +00001851 fi
John Criswell7a73b802003-06-30 21:59:07 +00001852 ;;
1853
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001854 *-*-solaris*)
1855 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001856
Brian Gaekef3b24102003-11-16 18:38:14 +00001857 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1858 then
1859 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001860
Brian Gaekef3b24102003-11-16 18:38:14 +00001861 fi
John Criswell7a73b802003-06-30 21:59:07 +00001862 ;;
1863
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001864 *-*-darwin*)
1865 OS=Darwin
1866
1867 ;;
1868
John Criswell7a73b802003-06-30 21:59:07 +00001869 *) OS=Unknown
1870
1871 ;;
1872esac
1873
1874case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001875 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001876
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001877 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878esac
1879
John Criswell76595452003-07-01 22:07:39 +00001880case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001881 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001882
1883 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001884 sparc*-*) ARCH=Sparc
1885
1886 ;;
1887 powerpc*-*) ARCH=PowerPC
1888
1889 ;;
1890 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001891
1892 ;;
1893esac
1894
John Criswell7a73b802003-06-30 21:59:07 +00001895ac_ext=cc
1896ac_cpp='$CXXCPP $CPPFLAGS'
1897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1900if test -n "$ac_tool_prefix"; then
1901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1902 do
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905echo "$as_me:$LINENO: checking for $ac_word" >&5
1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907if test "${ac_cv_prog_CXX+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910 if test -n "$CXX"; then
1911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1912else
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1923 fi
1924done
1925done
1926
1927fi
1928fi
1929CXX=$ac_cv_prog_CXX
1930if test -n "$CXX"; then
1931 echo "$as_me:$LINENO: result: $CXX" >&5
1932echo "${ECHO_T}$CXX" >&6
1933else
1934 echo "$as_me:$LINENO: result: no" >&5
1935echo "${ECHO_T}no" >&6
1936fi
1937
1938 test -n "$CXX" && break
1939 done
1940fi
1941if test -z "$CXX"; then
1942 ac_ct_CXX=$CXX
1943 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1944do
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946set dummy $ac_prog; ac_word=$2
1947echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 if test -n "$ac_ct_CXX"; then
1953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1954else
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CXX="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1965 fi
1966done
1967done
1968
1969fi
1970fi
1971ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1972if test -n "$ac_ct_CXX"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1974echo "${ECHO_T}$ac_ct_CXX" >&6
1975else
1976 echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6
1978fi
1979
1980 test -n "$ac_ct_CXX" && break
1981done
1982test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1983
1984 CXX=$ac_ct_CXX
1985fi
1986
1987
1988# Provide some information about the compiler.
1989echo "$as_me:$LINENO:" \
1990 "checking for C++ compiler version" >&5
1991ac_compiler=`set X $ac_compile; echo $2`
1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993 (eval $ac_compiler --version </dev/null >&5) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998 (eval $ac_compiler -v </dev/null >&5) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003 (eval $ac_compiler -V </dev/null >&5) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2007
2008cat >conftest.$ac_ext <<_ACEOF
2009#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002010/* confdefs.h. */
2011_ACEOF
2012cat confdefs.h >>conftest.$ac_ext
2013cat >>conftest.$ac_ext <<_ACEOF
2014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002015
John Criswell7a73b802003-06-30 21:59:07 +00002016int
2017main ()
2018{
2019
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002025ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002026# Try to create an executable without -o first, disregard a.out.
2027# It will help us diagnose broken compilers, and finding out an intuition
2028# of exeext.
2029echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2030echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2031ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033 (eval $ac_link_default) 2>&5
2034 ac_status=$?
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # Find the output, starting from the most likely. This scheme is
2038# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2039# resort.
2040
2041# Be careful to initialize this variable, since it used to be cached.
2042# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2043ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002044# b.out is created by i960 compilers.
2045for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2046do
2047 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002048 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2050 ;;
2051 conftest.$ac_ext )
2052 # This is the source file.
2053 ;;
2054 [ab].out )
2055 # We found the default executable, but exeext='' is most
2056 # certainly right.
2057 break;;
2058 *.* )
2059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 # FIXME: I believe we export ac_cv_exeext for Libtool,
2061 # but it would be cool to find out if it's true. Does anybody
2062 # maintain Libtool? --akim.
2063 export ac_cv_exeext
2064 break;;
2065 * )
2066 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002067 esac
2068done
2069else
2070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074See \`config.log' for more details." >&5
2075echo "$as_me: error: C++ compiler cannot create executables
2076See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002077 { (exit 77); exit 77; }; }
2078fi
2079
2080ac_exeext=$ac_cv_exeext
2081echo "$as_me:$LINENO: result: $ac_file" >&5
2082echo "${ECHO_T}$ac_file" >&6
2083
2084# Check the compiler produces executables we can run. If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089# If not cross compiling, check that we can run a simple program.
2090if test "$cross_compiling" != yes; then
2091 if { ac_try='./$ac_file'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2097 cross_compiling=no
2098 else
2099 if test "$cross_compiling" = maybe; then
2100 cross_compiling=yes
2101 else
2102 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002103If you meant to cross compile, use \`--host'.
2104See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002105echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002106If you meant to cross compile, use \`--host'.
2107See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002108 { (exit 1); exit 1; }; }
2109 fi
2110 fi
2111fi
2112echo "$as_me:$LINENO: result: yes" >&5
2113echo "${ECHO_T}yes" >&6
2114
John Criswell0c38eaf2003-09-10 15:17:25 +00002115rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002116ac_clean_files=$ac_clean_files_save
2117# Check the compiler produces executables we can run. If not, either
2118# the compiler is broken, or we cross compile.
2119echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122echo "${ECHO_T}$cross_compiling" >&6
2123
2124echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127 (eval $ac_link) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2133# work properly (i.e., refer to `conftest.exe'), while it won't with
2134# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002135for ac_file in conftest.exe conftest conftest.*; do
2136 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002137 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140 export ac_cv_exeext
2141 break;;
2142 * ) break;;
2143 esac
2144done
2145else
John Criswell0c38eaf2003-09-10 15:17:25 +00002146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002150 { (exit 1); exit 1; }; }
2151fi
2152
2153rm -f conftest$ac_cv_exeext
2154echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155echo "${ECHO_T}$ac_cv_exeext" >&6
2156
2157rm -f conftest.$ac_ext
2158EXEEXT=$ac_cv_exeext
2159ac_exeext=$EXEEXT
2160echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162if test "${ac_cv_objext+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165 cat >conftest.$ac_ext <<_ACEOF
2166#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002167/* confdefs.h. */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002172
John Criswell7a73b802003-06-30 21:59:07 +00002173int
2174main ()
2175{
2176
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181rm -f conftest.o conftest.obj
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2188 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191 break;;
2192 esac
2193done
2194else
2195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002202 { (exit 1); exit 1; }; }
2203fi
2204
2205rm -f conftest.$ac_cv_objext conftest.$ac_ext
2206fi
2207echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208echo "${ECHO_T}$ac_cv_objext" >&6
2209OBJEXT=$ac_cv_objext
2210ac_objext=$OBJEXT
2211echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2212echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2213if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216 cat >conftest.$ac_ext <<_ACEOF
2217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002218/* confdefs.h. */
2219_ACEOF
2220cat confdefs.h >>conftest.$ac_ext
2221cat >>conftest.$ac_ext <<_ACEOF
2222/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002223
John Criswell7a73b802003-06-30 21:59:07 +00002224int
2225main ()
2226{
2227#ifndef __GNUC__
2228 choke me
2229#endif
2230
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235rm -f conftest.$ac_objext
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 ac_compiler_gnu=yes
2248else
2249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002250sed 's/^/| /' conftest.$ac_ext >&5
2251
John Criswell7a73b802003-06-30 21:59:07 +00002252ac_compiler_gnu=no
2253fi
2254rm -f conftest.$ac_objext conftest.$ac_ext
2255ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2256
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2259echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2260GXX=`test $ac_compiler_gnu = yes && echo yes`
2261ac_test_CXXFLAGS=${CXXFLAGS+set}
2262ac_save_CXXFLAGS=$CXXFLAGS
2263CXXFLAGS="-g"
2264echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2265echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2266if test "${ac_cv_prog_cxx_g+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 cat >conftest.$ac_ext <<_ACEOF
2270#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002271/* confdefs.h. */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002276
John Criswell7a73b802003-06-30 21:59:07 +00002277int
2278main ()
2279{
2280
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285rm -f conftest.$ac_objext
2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cxx_g=yes
2298else
2299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002300sed 's/^/| /' conftest.$ac_ext >&5
2301
John Criswell7a73b802003-06-30 21:59:07 +00002302ac_cv_prog_cxx_g=no
2303fi
2304rm -f conftest.$ac_objext conftest.$ac_ext
2305fi
2306echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2307echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2308if test "$ac_test_CXXFLAGS" = set; then
2309 CXXFLAGS=$ac_save_CXXFLAGS
2310elif test $ac_cv_prog_cxx_g = yes; then
2311 if test "$GXX" = yes; then
2312 CXXFLAGS="-g -O2"
2313 else
2314 CXXFLAGS="-g"
2315 fi
2316else
2317 if test "$GXX" = yes; then
2318 CXXFLAGS="-O2"
2319 else
2320 CXXFLAGS=
2321 fi
2322fi
2323for ac_declaration in \
2324 ''\
2325 '#include <stdlib.h>' \
2326 'extern "C" void std::exit (int) throw (); using std::exit;' \
2327 'extern "C" void std::exit (int); using std::exit;' \
2328 'extern "C" void exit (int) throw ();' \
2329 'extern "C" void exit (int);' \
2330 'void exit (int);'
2331do
2332 cat >conftest.$ac_ext <<_ACEOF
2333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002339#include <stdlib.h>
2340$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002341int
2342main ()
2343{
2344exit (42);
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349rm -f conftest.$ac_objext
2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 :
2362else
2363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002364sed 's/^/| /' conftest.$ac_ext >&5
2365
John Criswell7a73b802003-06-30 21:59:07 +00002366continue
2367fi
2368rm -f conftest.$ac_objext conftest.$ac_ext
2369 cat >conftest.$ac_ext <<_ACEOF
2370#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002376$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002377int
2378main ()
2379{
2380exit (42);
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385rm -f conftest.$ac_objext
2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 break
2398else
2399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002400sed 's/^/| /' conftest.$ac_ext >&5
2401
John Criswell7a73b802003-06-30 21:59:07 +00002402fi
2403rm -f conftest.$ac_objext conftest.$ac_ext
2404done
2405rm -f conftest*
2406if test -n "$ac_declaration"; then
2407 echo '#ifdef __cplusplus' >>confdefs.h
2408 echo $ac_declaration >>confdefs.h
2409 echo '#endif' >>confdefs.h
2410fi
2411
2412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418ac_ext=c
2419ac_cpp='$CPP $CPPFLAGS'
2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423if test -n "$ac_tool_prefix"; then
2424 for ac_prog in gcc
2425 do
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428echo "$as_me:$LINENO: checking for $ac_word" >&5
2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447done
2448done
2449
2450fi
2451fi
2452CC=$ac_cv_prog_CC
2453if test -n "$CC"; then
2454 echo "$as_me:$LINENO: result: $CC" >&5
2455echo "${ECHO_T}$CC" >&6
2456else
2457 echo "$as_me:$LINENO: result: no" >&5
2458echo "${ECHO_T}no" >&6
2459fi
2460
2461 test -n "$CC" && break
2462 done
2463fi
2464if test -z "$CC"; then
2465 ac_ct_CC=$CC
2466 for ac_prog in gcc
2467do
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469set dummy $ac_prog; ac_word=$2
2470echo "$as_me:$LINENO: checking for $ac_word" >&5
2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_ac_ct_CC="$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489done
2490done
2491
2492fi
2493fi
2494ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495if test -n "$ac_ct_CC"; then
2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497echo "${ECHO_T}$ac_ct_CC" >&6
2498else
2499 echo "$as_me:$LINENO: result: no" >&5
2500echo "${ECHO_T}no" >&6
2501fi
2502
2503 test -n "$ac_ct_CC" && break
2504done
2505
2506 CC=$ac_ct_CC
2507fi
2508
2509
John Criswell0c38eaf2003-09-10 15:17:25 +00002510test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511See \`config.log' for more details." >&5
2512echo "$as_me: error: no acceptable C compiler found in \$PATH
2513See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002514 { (exit 1); exit 1; }; }
2515
2516# Provide some information about the compiler.
2517echo "$as_me:$LINENO:" \
2518 "checking for C compiler version" >&5
2519ac_compiler=`set X $ac_compile; echo $2`
2520{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521 (eval $ac_compiler --version </dev/null >&5) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526 (eval $ac_compiler -v </dev/null >&5) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531 (eval $ac_compiler -V </dev/null >&5) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535
2536echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 cat >conftest.$ac_ext <<_ACEOF
2542#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002548
John Criswell7a73b802003-06-30 21:59:07 +00002549int
2550main ()
2551{
2552#ifndef __GNUC__
2553 choke me
2554#endif
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 ac_compiler_gnu=yes
2573else
2574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002575sed 's/^/| /' conftest.$ac_ext >&5
2576
John Criswell7a73b802003-06-30 21:59:07 +00002577ac_compiler_gnu=no
2578fi
2579rm -f conftest.$ac_objext conftest.$ac_ext
2580ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581
2582fi
2583echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2584echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2585GCC=`test $ac_compiler_gnu = yes && echo yes`
2586ac_test_CFLAGS=${CFLAGS+set}
2587ac_save_CFLAGS=$CFLAGS
2588CFLAGS="-g"
2589echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2591if test "${ac_cv_prog_cc_g+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002601
John Criswell7a73b802003-06-30 21:59:07 +00002602int
2603main ()
2604{
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 ac_cv_prog_cc_g=yes
2623else
2624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002625sed 's/^/| /' conftest.$ac_ext >&5
2626
John Criswell7a73b802003-06-30 21:59:07 +00002627ac_cv_prog_cc_g=no
2628fi
2629rm -f conftest.$ac_objext conftest.$ac_ext
2630fi
2631echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS=$ac_save_CFLAGS
2635elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2637 CFLAGS="-g -O2"
2638 else
2639 CFLAGS="-g"
2640 fi
2641else
2642 if test "$GCC" = yes; then
2643 CFLAGS="-O2"
2644 else
2645 CFLAGS=
2646 fi
2647fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002648echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653 ac_cv_prog_cc_stdc=no
2654ac_save_CC=$CC
2655cat >conftest.$ac_ext <<_ACEOF
2656#line $LINENO "configure"
2657/* confdefs.h. */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h. */
2662#include <stdarg.h>
2663#include <stdio.h>
2664#include <sys/types.h>
2665#include <sys/stat.h>
2666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2667struct buf { int x; };
2668FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669static char *e (p, i)
2670 char **p;
2671 int i;
2672{
2673 return p[i];
2674}
2675static char *f (char * (*g) (char **, int), char **p, ...)
2676{
2677 char *s;
2678 va_list v;
2679 va_start (v,p);
2680 s = g (p, va_arg (v,int));
2681 va_end (v);
2682 return s;
2683}
2684int test (int i, double x);
2685struct s1 {int (*f) (int a);};
2686struct s2 {int (*f) (double a);};
2687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688int argc;
2689char **argv;
2690int
2691main ()
2692{
2693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698# Don't try gcc -ansi; that turns off useful extensions and
2699# breaks some systems' header files.
2700# AIX -qlanglvl=ansi
2701# Ultrix and OSF/1 -std1
2702# HP-UX 10.20 and later -Ae
2703# HP-UX older versions -Aa -D_HPUX_SOURCE
2704# SVR4 -Xc -D__EXTENSIONS__
2705for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706do
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_prog_cc_stdc=$ac_arg
2721break
2722else
2723 echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.$ac_objext
2728done
2729rm -f conftest.$ac_ext conftest.$ac_objext
2730CC=$ac_save_CC
2731
2732fi
2733
2734case "x$ac_cv_prog_cc_stdc" in
2735 x|xno)
2736 echo "$as_me:$LINENO: result: none needed" >&5
2737echo "${ECHO_T}none needed" >&6 ;;
2738 *)
2739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2740echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2741 CC="$CC $ac_cv_prog_cc_stdc" ;;
2742esac
2743
John Criswell7a73b802003-06-30 21:59:07 +00002744# Some people use a C++ compiler to compile C. Since we use `exit',
2745# in C++ we need to declare it. In case someone uses the same compiler
2746# for both compiling C and C++ we need to have the C++ compiler decide
2747# the declaration of exit, since it's the most demanding environment.
2748cat >conftest.$ac_ext <<_ACEOF
2749#ifndef __cplusplus
2750 choke me
2751#endif
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 for ac_declaration in \
2766 ''\
2767 '#include <stdlib.h>' \
2768 'extern "C" void std::exit (int) throw (); using std::exit;' \
2769 'extern "C" void std::exit (int); using std::exit;' \
2770 'extern "C" void exit (int) throw ();' \
2771 'extern "C" void exit (int);' \
2772 'void exit (int);'
2773do
2774 cat >conftest.$ac_ext <<_ACEOF
2775#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002781#include <stdlib.h>
2782$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002783int
2784main ()
2785{
2786exit (42);
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 :
2804else
2805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002806sed 's/^/| /' conftest.$ac_ext >&5
2807
John Criswell7a73b802003-06-30 21:59:07 +00002808continue
2809fi
2810rm -f conftest.$ac_objext conftest.$ac_ext
2811 cat >conftest.$ac_ext <<_ACEOF
2812#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002818$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002819int
2820main ()
2821{
2822exit (42);
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext
2828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 break
2840else
2841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002842sed 's/^/| /' conftest.$ac_ext >&5
2843
John Criswell7a73b802003-06-30 21:59:07 +00002844fi
2845rm -f conftest.$ac_objext conftest.$ac_ext
2846done
2847rm -f conftest*
2848if test -n "$ac_declaration"; then
2849 echo '#ifdef __cplusplus' >>confdefs.h
2850 echo $ac_declaration >>confdefs.h
2851 echo '#endif' >>confdefs.h
2852fi
2853
2854else
2855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002856sed 's/^/| /' conftest.$ac_ext >&5
2857
John Criswell7a73b802003-06-30 21:59:07 +00002858fi
2859rm -f conftest.$ac_objext conftest.$ac_ext
2860ac_ext=c
2861ac_cpp='$CPP $CPPFLAGS'
2862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866ac_ext=c
2867ac_cpp='$CPP $CPPFLAGS'
2868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873# On Suns, sometimes $CPP names a directory.
2874if test -n "$CPP" && test -d "$CPP"; then
2875 CPP=
2876fi
2877if test -z "$CPP"; then
2878 if test "${ac_cv_prog_CPP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 # Double quotes because CPP needs to be expanded
2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883 do
2884 ac_preproc_ok=false
2885for ac_c_preproc_warn_flag in '' yes
2886do
2887 # Use a header file that comes with gcc, so configuring glibc
2888 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002891 # On the NeXT, cc -E runs the code through the compiler's parser,
2892 # not just through cpp. "Syntax error" is here to catch this case.
2893 cat >conftest.$ac_ext <<_ACEOF
2894#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002895/* confdefs.h. */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h. */
2900#ifdef __STDC__
2901# include <limits.h>
2902#else
2903# include <assert.h>
2904#endif
John Criswell7a73b802003-06-30 21:59:07 +00002905 Syntax error
2906_ACEOF
2907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002910 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } >/dev/null; then
2915 if test -s conftest.err; then
2916 ac_cpp_err=$ac_c_preproc_warn_flag
2917 else
2918 ac_cpp_err=
2919 fi
2920else
2921 ac_cpp_err=yes
2922fi
2923if test -z "$ac_cpp_err"; then
2924 :
2925else
2926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002927sed 's/^/| /' conftest.$ac_ext >&5
2928
John Criswell7a73b802003-06-30 21:59:07 +00002929 # Broken: fails on valid input.
2930continue
2931fi
2932rm -f conftest.err conftest.$ac_ext
2933
2934 # OK, works on sane cases. Now check whether non-existent headers
2935 # can be detected and how.
2936 cat >conftest.$ac_ext <<_ACEOF
2937#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002943#include <ac_nonexistent.h>
2944_ACEOF
2945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002948 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2955 else
2956 ac_cpp_err=
2957 fi
2958else
2959 ac_cpp_err=yes
2960fi
2961if test -z "$ac_cpp_err"; then
2962 # Broken: success on invalid input.
2963continue
2964else
2965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002966sed 's/^/| /' conftest.$ac_ext >&5
2967
John Criswell7a73b802003-06-30 21:59:07 +00002968 # Passes both tests.
2969ac_preproc_ok=:
2970break
2971fi
2972rm -f conftest.err conftest.$ac_ext
2973
2974done
2975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976rm -f conftest.err conftest.$ac_ext
2977if $ac_preproc_ok; then
2978 break
2979fi
2980
2981 done
2982 ac_cv_prog_CPP=$CPP
2983
2984fi
2985 CPP=$ac_cv_prog_CPP
2986else
2987 ac_cv_prog_CPP=$CPP
2988fi
2989echo "$as_me:$LINENO: result: $CPP" >&5
2990echo "${ECHO_T}$CPP" >&6
2991ac_preproc_ok=false
2992for ac_c_preproc_warn_flag in '' yes
2993do
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3001#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
3007#ifdef __STDC__
3008# include <limits.h>
3009#else
3010# include <assert.h>
3011#endif
John Criswell7a73b802003-06-30 21:59:07 +00003012 Syntax error
3013_ACEOF
3014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003017 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null; then
3022 if test -s conftest.err; then
3023 ac_cpp_err=$ac_c_preproc_warn_flag
3024 else
3025 ac_cpp_err=
3026 fi
3027else
3028 ac_cpp_err=yes
3029fi
3030if test -z "$ac_cpp_err"; then
3031 :
3032else
3033 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003034sed 's/^/| /' conftest.$ac_ext >&5
3035
John Criswell7a73b802003-06-30 21:59:07 +00003036 # Broken: fails on valid input.
3037continue
3038fi
3039rm -f conftest.err conftest.$ac_ext
3040
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
3043 cat >conftest.$ac_ext <<_ACEOF
3044#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003050#include <ac_nonexistent.h>
3051_ACEOF
3052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003055 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3062 else
3063 ac_cpp_err=
3064 fi
3065else
3066 ac_cpp_err=yes
3067fi
3068if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3070continue
3071else
3072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003073sed 's/^/| /' conftest.$ac_ext >&5
3074
John Criswell7a73b802003-06-30 21:59:07 +00003075 # Passes both tests.
3076ac_preproc_ok=:
3077break
3078fi
3079rm -f conftest.err conftest.$ac_ext
3080
3081done
3082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083rm -f conftest.err conftest.$ac_ext
3084if $ac_preproc_ok; then
3085 :
3086else
John Criswell0c38eaf2003-09-10 15:17:25 +00003087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088See \`config.log' for more details." >&5
3089echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003091 { (exit 1); exit 1; }; }
3092fi
3093
3094ac_ext=c
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101if test "$GCC" != "yes"
3102then
3103 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3104echo "$as_me: error: gcc required but not found" >&2;}
3105 { (exit 1); exit 1; }; }
3106fi
John Criswell7a73b802003-06-30 21:59:07 +00003107if test "$GXX" != "yes"
3108then
3109 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3110echo "$as_me: error: g++ required but not found" >&2;}
3111 { (exit 1); exit 1; }; }
3112fi
3113
John Criswellde00db22003-08-25 16:49:54 +00003114gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3115if test "$gccmajor" -lt "3"
3116then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003117 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3118echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003119 { (exit 1); exit 1; }; }
3120fi
3121
John Criswell7a73b802003-06-30 21:59:07 +00003122 echo "$as_me:$LINENO: checking for GNU make" >&5
3123echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3124if test "${_cv_gnu_make_command+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127 _cv_gnu_make_command='' ;
3128 for a in "$MAKE" make gmake gnumake ; do
3129 if test -z "$a" ; then continue ; fi ;
3130 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3131 _cv_gnu_make_command=$a ;
3132 break;
3133 fi
3134 done ;
3135
3136fi
3137echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3138echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3139 if test "x$_cv_gnu_make_command" != "x" ; then
3140 ifGNUmake='' ;
3141 else
3142 ifGNUmake='#' ;
3143 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3144echo "${ECHO_T}\"Not found\"" >&6;
3145 fi
3146
3147
3148if test -z "$_cv_gnu_make_command"
3149then
3150 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3151echo "$as_me: error: GNU Make required but not found" >&2;}
3152 { (exit 1); exit 1; }; }
3153fi
3154
3155
3156echo "$as_me:$LINENO: checking " >&5
3157echo $ECHO_N "checking ... $ECHO_C" >&6
3158if test "${ac_cv_has_flex+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161 for ac_prog in flex lex
3162do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164set dummy $ac_prog; ac_word=$2
3165echo "$as_me:$LINENO: checking for $ac_word" >&5
3166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167if test "${ac_cv_prog_LEX+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169else
3170 if test -n "$LEX"; then
3171 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_LEX="$ac_prog"
3181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184done
3185done
3186
3187fi
3188fi
3189LEX=$ac_cv_prog_LEX
3190if test -n "$LEX"; then
3191 echo "$as_me:$LINENO: result: $LEX" >&5
3192echo "${ECHO_T}$LEX" >&6
3193else
3194 echo "$as_me:$LINENO: result: no" >&5
3195echo "${ECHO_T}no" >&6
3196fi
3197
3198 test -n "$LEX" && break
3199done
3200test -n "$LEX" || LEX=":"
3201
3202if test -z "$LEXLIB"
3203then
3204 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3205echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3206if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 ac_check_lib_save_LIBS=$LIBS
3210LIBS="-lfl $LIBS"
3211cat >conftest.$ac_ext <<_ACEOF
3212#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003213/* confdefs.h. */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
3217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003218
3219/* Override any gcc2 internal prototype to avoid an error. */
3220#ifdef __cplusplus
3221extern "C"
3222#endif
3223/* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3225char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003226int
3227main ()
3228{
3229yywrap ();
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext conftest$ac_exeext
3235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236 (eval $ac_link) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_lib_fl_yywrap=yes
3247else
3248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003249sed 's/^/| /' conftest.$ac_ext >&5
3250
John Criswell7a73b802003-06-30 21:59:07 +00003251ac_cv_lib_fl_yywrap=no
3252fi
3253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3254LIBS=$ac_check_lib_save_LIBS
3255fi
3256echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3257echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3258if test $ac_cv_lib_fl_yywrap = yes; then
3259 LEXLIB="-lfl"
3260else
3261 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3262echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3263if test "${ac_cv_lib_l_yywrap+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266 ac_check_lib_save_LIBS=$LIBS
3267LIBS="-ll $LIBS"
3268cat >conftest.$ac_ext <<_ACEOF
3269#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003270/* confdefs.h. */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003275
3276/* Override any gcc2 internal prototype to avoid an error. */
3277#ifdef __cplusplus
3278extern "C"
3279#endif
3280/* We use char because int might match the return type of a gcc2
3281 builtin and then its argument prototype would still apply. */
3282char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003283int
3284main ()
3285{
3286yywrap ();
3287 ;
3288 return 0;
3289}
3290_ACEOF
3291rm -f conftest.$ac_objext conftest$ac_exeext
3292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -s conftest$ac_exeext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_lib_l_yywrap=yes
3304else
3305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003306sed 's/^/| /' conftest.$ac_ext >&5
3307
John Criswell7a73b802003-06-30 21:59:07 +00003308ac_cv_lib_l_yywrap=no
3309fi
3310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3311LIBS=$ac_check_lib_save_LIBS
3312fi
3313echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3314echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3315if test $ac_cv_lib_l_yywrap = yes; then
3316 LEXLIB="-ll"
3317fi
3318
3319fi
3320
3321fi
3322
3323if test "x$LEX" != "x:"; then
3324 echo "$as_me:$LINENO: checking lex output file root" >&5
3325echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3326if test "${ac_cv_prog_lex_root+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329 # The minimal lex program is just a single line: %%. But some broken lexes
3330# (Solaris, I think it was) want two %% lines, so accommodate them.
3331cat >conftest.l <<_ACEOF
3332%%
3333%%
3334_ACEOF
3335{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3336 (eval $LEX conftest.l) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3340if test -f lex.yy.c; then
3341 ac_cv_prog_lex_root=lex.yy
3342elif test -f lexyy.c; then
3343 ac_cv_prog_lex_root=lexyy
3344else
3345 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3346echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3347 { (exit 1); exit 1; }; }
3348fi
3349fi
3350echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3351echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3352rm -f conftest.l
3353LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3354
3355echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3356echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3357if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360 # POSIX says lex can declare yytext either as a pointer or an array; the
3361# default is implementation-dependent. Figure out which it is, since
3362# not all implementations provide the %pointer and %array declarations.
3363ac_cv_prog_lex_yytext_pointer=no
3364echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3365ac_save_LIBS=$LIBS
3366LIBS="$LIBS $LEXLIB"
3367cat >conftest.$ac_ext <<_ACEOF
3368`cat $LEX_OUTPUT_ROOT.c`
3369_ACEOF
3370rm -f conftest.$ac_objext conftest$ac_exeext
3371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372 (eval $ac_link) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -s conftest$ac_exeext'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3382 ac_cv_prog_lex_yytext_pointer=yes
3383else
3384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003385sed 's/^/| /' conftest.$ac_ext >&5
3386
John Criswell7a73b802003-06-30 21:59:07 +00003387fi
3388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3389LIBS=$ac_save_LIBS
3390rm -f "${LEX_OUTPUT_ROOT}.c"
3391
3392fi
3393echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3394echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3395if test $ac_cv_prog_lex_yytext_pointer = yes; then
3396
3397cat >>confdefs.h <<\_ACEOF
3398#define YYTEXT_POINTER 1
3399_ACEOF
3400
3401fi
3402
3403fi
3404
3405fi
3406echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3407echo "${ECHO_T}$ac_cv_has_flex" >&6
3408if test "$LEX" != "flex"; then
3409 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3410echo "$as_me: error: flex not found but required" >&2;}
3411 { (exit 1); exit 1; }; }
3412fi
3413
3414echo "$as_me:$LINENO: checking " >&5
3415echo $ECHO_N "checking ... $ECHO_C" >&6
3416if test "${ac_cv_has_bison+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 for ac_prog in 'bison -y' byacc
3420do
3421 # Extract the first word of "$ac_prog", so it can be a program name with args.
3422set dummy $ac_prog; ac_word=$2
3423echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425if test "${ac_cv_prog_YACC+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428 if test -n "$YACC"; then
3429 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_YACC="$ac_prog"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442done
3443done
3444
3445fi
3446fi
3447YACC=$ac_cv_prog_YACC
3448if test -n "$YACC"; then
3449 echo "$as_me:$LINENO: result: $YACC" >&5
3450echo "${ECHO_T}$YACC" >&6
3451else
3452 echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454fi
3455
3456 test -n "$YACC" && break
3457done
3458test -n "$YACC" || YACC="yacc"
3459
3460
3461fi
3462echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3463echo "${ECHO_T}$ac_cv_has_bison" >&6
3464if test "$YACC" != "bison -y"; then
3465 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3466echo "$as_me: error: bison not found but required" >&2;}
3467 { (exit 1); exit 1; }; }
3468else
Brian Gaeke12810632004-01-13 06:52:10 +00003469 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003470
3471fi
3472
John Criswell7a73b802003-06-30 21:59:07 +00003473# Check whether --enable-shared or --disable-shared was given.
3474if test "${enable_shared+set}" = set; then
3475 enableval="$enable_shared"
3476 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003477 case $enableval in
3478 yes) enable_shared=yes ;;
3479 no) enable_shared=no ;;
3480 *)
3481 enable_shared=no
3482 # Look at the argument we got. We use all the common list separators.
3483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3484 for pkg in $enableval; do
3485 IFS="$lt_save_ifs"
3486 if test "X$pkg" = "X$p"; then
3487 enable_shared=yes
3488 fi
3489 done
3490 IFS="$lt_save_ifs"
3491 ;;
3492 esac
John Criswell7a73b802003-06-30 21:59:07 +00003493else
3494 enable_shared=yes
3495fi;
John Criswell47fdd832003-07-14 16:52:07 +00003496
John Criswell7a73b802003-06-30 21:59:07 +00003497# Check whether --enable-static or --disable-static was given.
3498if test "${enable_static+set}" = set; then
3499 enableval="$enable_static"
3500 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003501 case $enableval in
3502 yes) enable_static=yes ;;
3503 no) enable_static=no ;;
3504 *)
3505 enable_static=no
3506 # Look at the argument we got. We use all the common list separators.
3507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3508 for pkg in $enableval; do
3509 IFS="$lt_save_ifs"
3510 if test "X$pkg" = "X$p"; then
3511 enable_static=yes
3512 fi
3513 done
3514 IFS="$lt_save_ifs"
3515 ;;
3516 esac
John Criswell7a73b802003-06-30 21:59:07 +00003517else
3518 enable_static=yes
3519fi;
John Criswell47fdd832003-07-14 16:52:07 +00003520
John Criswell7a73b802003-06-30 21:59:07 +00003521# Check whether --enable-fast-install or --disable-fast-install was given.
3522if test "${enable_fast_install+set}" = set; then
3523 enableval="$enable_fast_install"
3524 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003525 case $enableval in
3526 yes) enable_fast_install=yes ;;
3527 no) enable_fast_install=no ;;
3528 *)
3529 enable_fast_install=no
3530 # Look at the argument we got. We use all the common list separators.
3531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3532 for pkg in $enableval; do
3533 IFS="$lt_save_ifs"
3534 if test "X$pkg" = "X$p"; then
3535 enable_fast_install=yes
3536 fi
3537 done
3538 IFS="$lt_save_ifs"
3539 ;;
3540 esac
John Criswell7a73b802003-06-30 21:59:07 +00003541else
3542 enable_fast_install=yes
3543fi;
John Criswell47fdd832003-07-14 16:52:07 +00003544
3545echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3546echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3547if test "${lt_cv_path_SED+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 # Loop through the user's path and test for sed and gsed.
3551# Then use that list of sed's as ones to test for truncation.
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for lt_ac_prog in sed gsed; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3560 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3561 fi
3562 done
3563 done
3564done
3565lt_ac_max=0
3566lt_ac_count=0
3567# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3568# along with /bin/sed that truncates output.
3569for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3570 test ! -f $lt_ac_sed && break
3571 cat /dev/null > conftest.in
3572 lt_ac_count=0
3573 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3574 # Check for GNU sed and select it if it is found.
3575 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3576 lt_cv_path_SED=$lt_ac_sed
3577 break
3578 fi
3579 while true; do
3580 cat conftest.in conftest.in >conftest.tmp
3581 mv conftest.tmp conftest.in
3582 cp conftest.in conftest.nl
3583 echo >>conftest.nl
3584 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3585 cmp -s conftest.out conftest.nl || break
3586 # 10000 chars as input seems more than enough
3587 test $lt_ac_count -gt 10 && break
3588 lt_ac_count=`expr $lt_ac_count + 1`
3589 if test $lt_ac_count -gt $lt_ac_max; then
3590 lt_ac_max=$lt_ac_count
3591 lt_cv_path_SED=$lt_ac_sed
3592 fi
3593 done
3594done
3595SED=$lt_cv_path_SED
3596
John Criswell7a73b802003-06-30 21:59:07 +00003597fi
3598
John Criswell47fdd832003-07-14 16:52:07 +00003599echo "$as_me:$LINENO: result: $SED" >&5
3600echo "${ECHO_T}$SED" >&6
3601
3602echo "$as_me:$LINENO: checking for egrep" >&5
3603echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3604if test "${ac_cv_prog_egrep+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3608 then ac_cv_prog_egrep='grep -E'
3609 else ac_cv_prog_egrep='egrep'
3610 fi
3611fi
3612echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3613echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3614 EGREP=$ac_cv_prog_egrep
3615
3616
John Criswell7a73b802003-06-30 21:59:07 +00003617
3618# Check whether --with-gnu-ld or --without-gnu-ld was given.
3619if test "${with_gnu_ld+set}" = set; then
3620 withval="$with_gnu_ld"
3621 test "$withval" = no || with_gnu_ld=yes
3622else
3623 with_gnu_ld=no
3624fi;
3625ac_prog=ld
3626if test "$GCC" = yes; then
3627 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003628 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3629echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003630 case $host in
3631 *-*-mingw*)
3632 # gcc leaves a trailing carriage return which upsets mingw
3633 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3634 *)
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3636 esac
3637 case $ac_prog in
3638 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003639 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003640 re_direlt='/[^/][^/]*/\.\./'
3641 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003642 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003643 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003644 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003645 done
3646 test -z "$LD" && LD="$ac_prog"
3647 ;;
3648 "")
3649 # If it fails, then pretend we aren't using GCC.
3650 ac_prog=ld
3651 ;;
3652 *)
3653 # If it is relative, then search for the first ld in PATH.
3654 with_gnu_ld=unknown
3655 ;;
3656 esac
3657elif test "$with_gnu_ld" = yes; then
3658 echo "$as_me:$LINENO: checking for GNU ld" >&5
3659echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3660else
3661 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3662echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3663fi
3664if test "${lt_cv_path_LD+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003669 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003670 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003671 test -z "$ac_dir" && ac_dir=.
3672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3673 lt_cv_path_LD="$ac_dir/$ac_prog"
3674 # Check to see if the program is GNU ld. I'd rather use --version,
3675 # but apparently some GNU ld's only accept -v.
3676 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003677 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3678 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003679 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003680 ;;
3681 *)
John Criswell7a73b802003-06-30 21:59:07 +00003682 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003683 ;;
3684 esac
John Criswell7a73b802003-06-30 21:59:07 +00003685 fi
3686 done
John Criswell47fdd832003-07-14 16:52:07 +00003687 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003688else
3689 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3690fi
3691fi
3692
3693LD="$lt_cv_path_LD"
3694if test -n "$LD"; then
3695 echo "$as_me:$LINENO: result: $LD" >&5
3696echo "${ECHO_T}$LD" >&6
3697else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700fi
3701test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3702echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3703 { (exit 1); exit 1; }; }
3704echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3705echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3706if test "${lt_cv_prog_gnu_ld+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
3709 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003710case `"$LD" -v 2>&1 </dev/null` in
3711*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003712 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003713 ;;
3714*)
John Criswell7a73b802003-06-30 21:59:07 +00003715 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003716 ;;
3717esac
John Criswell7a73b802003-06-30 21:59:07 +00003718fi
3719echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3720echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3721with_gnu_ld=$lt_cv_prog_gnu_ld
3722
3723
3724echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3725echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3726if test "${lt_cv_ld_reload_flag+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729 lt_cv_ld_reload_flag='-r'
3730fi
3731echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3732echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3733reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003734case $reload_flag in
3735"" | " "*) ;;
3736*) reload_flag=" $reload_flag" ;;
3737esac
3738reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003739
3740echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3741echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3742if test "${lt_cv_path_NM+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 if test -n "$NM"; then
3746 # Let the user override the test.
3747 lt_cv_path_NM="$NM"
3748else
John Criswell47fdd832003-07-14 16:52:07 +00003749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003750 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003751 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003752 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003753 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003755 # Check to see if the nm accepts a BSD-compat flag.
3756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3757 # nm: unknown option "B" ignored
3758 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003759 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3760 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003761 lt_cv_path_NM="$tmp_nm -B"
3762 break
John Criswell47fdd832003-07-14 16:52:07 +00003763 ;;
3764 *)
3765 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3766 */dev/null*)
3767 lt_cv_path_NM="$tmp_nm -p"
3768 break
3769 ;;
3770 *)
3771 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3772 continue # so that we can try to find one that supports BSD flags
3773 ;;
3774 esac
3775 esac
John Criswell7a73b802003-06-30 21:59:07 +00003776 fi
3777 done
John Criswell47fdd832003-07-14 16:52:07 +00003778 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003779 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3780fi
3781fi
John Criswell47fdd832003-07-14 16:52:07 +00003782echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3783echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003784NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003785
3786echo "$as_me:$LINENO: checking whether ln -s works" >&5
3787echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3788LN_S=$as_ln_s
3789if test "$LN_S" = "ln -s"; then
3790 echo "$as_me:$LINENO: result: yes" >&5
3791echo "${ECHO_T}yes" >&6
3792else
3793 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3794echo "${ECHO_T}no, using $LN_S" >&6
3795fi
3796
John Criswell47fdd832003-07-14 16:52:07 +00003797echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3798echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003799if test "${lt_cv_deplibs_check_method+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802 lt_cv_file_magic_cmd='$MAGIC_CMD'
3803lt_cv_file_magic_test_file=
3804lt_cv_deplibs_check_method='unknown'
3805# Need to set the preceding variable on all platforms that support
3806# interlibrary dependencies.
3807# 'none' -- dependencies not supported.
3808# `unknown' -- same as none, but documents that we really don't know.
3809# 'pass_all' -- all dependencies passed with no checks.
3810# 'test_compile' -- check by making test program.
3811# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003812# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003813# If you have `file' or equivalent on your system and you're not sure
3814# whether `pass_all' will *always* work, you probably want this one.
3815
3816case $host_os in
3817aix4* | aix5*)
3818 lt_cv_deplibs_check_method=pass_all
3819 ;;
3820
3821beos*)
3822 lt_cv_deplibs_check_method=pass_all
3823 ;;
3824
3825bsdi4*)
3826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3827 lt_cv_file_magic_cmd='/usr/bin/file -L'
3828 lt_cv_file_magic_test_file=/shlib/libc.so
3829 ;;
3830
3831cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003832 # win32_libid is a shell function defined in ltmain.sh
3833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3834 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003835 ;;
3836
3837darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003838 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003839 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3840 lt_cv_file_magic_cmd='/usr/bin/file -L'
3841 case "$host_os" in
3842 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003843 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003844 ;;
3845 *) # Darwin 1.3 on
3846 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3847 ;;
3848 esac
John Criswell47fdd832003-07-14 16:52:07 +00003849 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003850 ;;
3851
3852freebsd*)
3853 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3854 case $host_cpu in
3855 i*86 )
3856 # Not sure whether the presence of OpenBSD here was a mistake.
3857 # Let's accept both of them until this is cleared up.
3858 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3859 lt_cv_file_magic_cmd=/usr/bin/file
3860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3861 ;;
3862 esac
3863 else
3864 lt_cv_deplibs_check_method=pass_all
3865 fi
3866 ;;
3867
3868gnu*)
3869 lt_cv_deplibs_check_method=pass_all
3870 ;;
3871
John Criswell47fdd832003-07-14 16:52:07 +00003872hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003873 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003874 case "$host_cpu" in
3875 ia64*)
3876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3877 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3878 ;;
3879 hppa*64*)
3880 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]'
3881 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3882 ;;
3883 *)
3884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3885 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3886 ;;
3887 esac
John Criswell7a73b802003-06-30 21:59:07 +00003888 ;;
3889
John Criswell47fdd832003-07-14 16:52:07 +00003890irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003891 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003892 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003893 # this will be overridden with pass_all, but let us keep it just in case
3894 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3895 ;;
3896 *)
3897 case $LD in
3898 *-32|*"-32 ") libmagic=32-bit;;
3899 *-n32|*"-n32 ") libmagic=N32;;
3900 *-64|*"-64 ") libmagic=64-bit;;
3901 *) libmagic=never-match;;
3902 esac
3903 # this will be overridden with pass_all, but let us keep it just in case
3904 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3905 ;;
3906 esac
3907 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3908 lt_cv_deplibs_check_method=pass_all
3909 ;;
3910
3911# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003912linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003913 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003914 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003915 lt_cv_deplibs_check_method=pass_all ;;
3916 *)
3917 # glibc up to 2.1.1 does not perform some relocations on ARM
3918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3919 esac
3920 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3921 ;;
3922
3923netbsd*)
3924 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003926 else
John Criswell47fdd832003-07-14 16:52:07 +00003927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003928 fi
3929 ;;
3930
3931newos6*)
3932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3933 lt_cv_file_magic_cmd=/usr/bin/file
3934 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3935 ;;
3936
John Criswell47fdd832003-07-14 16:52:07 +00003937nto-qnx)
3938 lt_cv_deplibs_check_method=unknown
3939 ;;
3940
John Criswell7a73b802003-06-30 21:59:07 +00003941openbsd*)
3942 lt_cv_file_magic_cmd=/usr/bin/file
3943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3946 else
3947 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3948 fi
3949 ;;
3950
3951osf3* | osf4* | osf5*)
3952 # this will be overridden with pass_all, but let us keep it just in case
3953 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3954 lt_cv_file_magic_test_file=/shlib/libc.so
3955 lt_cv_deplibs_check_method=pass_all
3956 ;;
3957
3958sco3.2v5*)
3959 lt_cv_deplibs_check_method=pass_all
3960 ;;
3961
3962solaris*)
3963 lt_cv_deplibs_check_method=pass_all
3964 lt_cv_file_magic_test_file=/lib/libc.so
3965 ;;
3966
John Criswell7a73b802003-06-30 21:59:07 +00003967sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3968 case $host_vendor in
3969 motorola)
3970 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]'
3971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3972 ;;
3973 ncr)
3974 lt_cv_deplibs_check_method=pass_all
3975 ;;
3976 sequent)
3977 lt_cv_file_magic_cmd='/bin/file'
3978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3979 ;;
3980 sni)
3981 lt_cv_file_magic_cmd='/bin/file'
3982 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3983 lt_cv_file_magic_test_file=/lib/libc.so
3984 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003985 siemens)
3986 lt_cv_deplibs_check_method=pass_all
3987 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003988 esac
3989 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003990
3991sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3992 lt_cv_deplibs_check_method=pass_all
3993 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003994esac
3995
3996fi
3997echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3998echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3999file_magic_cmd=$lt_cv_file_magic_cmd
4000deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004001test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004002
4003
4004
4005
John Criswell47fdd832003-07-14 16:52:07 +00004006# If no C compiler was specified, use CC.
4007LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004008
John Criswell47fdd832003-07-14 16:52:07 +00004009# Allow CC to be a program name with arguments.
4010compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004011
John Criswell47fdd832003-07-14 16:52:07 +00004012# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4013if test "${enable_libtool_lock+set}" = set; then
4014 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004015
John Criswell47fdd832003-07-14 16:52:07 +00004016fi;
4017test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004018
John Criswell47fdd832003-07-14 16:52:07 +00004019# Some flags need to be propagated to the compiler or linker for good
4020# libtool support.
4021case $host in
4022ia64-*-hpux*)
4023 # Find out which ABI we are using.
4024 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004030 case `/usr/bin/file conftest.$ac_objext` in
4031 *ELF-32*)
4032 HPUX_IA64_MODE="32"
4033 ;;
4034 *ELF-64*)
4035 HPUX_IA64_MODE="64"
4036 ;;
4037 esac
4038 fi
4039 rm -rf conftest*
4040 ;;
4041*-*-irix6*)
4042 # Find out which ABI we are using.
John Criswellcf2e9f72004-02-10 22:36:35 +00004043 echo '#line 4043 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004048 (exit $ac_status); }; then
4049 if test "$lt_cv_prog_gnu_ld" = yes; then
4050 case `/usr/bin/file conftest.$ac_objext` in
4051 *32-bit*)
4052 LD="${LD-ld} -melf32bsmip"
4053 ;;
4054 *N32*)
4055 LD="${LD-ld} -melf32bmipn32"
4056 ;;
4057 *64-bit*)
4058 LD="${LD-ld} -melf64bmip"
4059 ;;
4060 esac
4061 else
4062 case `/usr/bin/file conftest.$ac_objext` in
4063 *32-bit*)
4064 LD="${LD-ld} -32"
4065 ;;
4066 *N32*)
4067 LD="${LD-ld} -n32"
4068 ;;
4069 *64-bit*)
4070 LD="${LD-ld} -64"
4071 ;;
4072 esac
4073 fi
4074 fi
4075 rm -rf conftest*
4076 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004077
John Criswell47fdd832003-07-14 16:52:07 +00004078x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4079 # Find out which ABI we are using.
4080 echo 'int i;' > conftest.$ac_ext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; then
4086 case "`/usr/bin/file conftest.o`" in
4087 *32-bit*)
4088 case $host in
4089 x86_64-*linux*)
4090 LD="${LD-ld} -m elf_i386"
4091 ;;
4092 ppc64-*linux*)
4093 LD="${LD-ld} -m elf32ppclinux"
4094 ;;
4095 s390x-*linux*)
4096 LD="${LD-ld} -m elf_s390"
4097 ;;
4098 sparc64-*linux*)
4099 LD="${LD-ld} -m elf32_sparc"
4100 ;;
4101 esac
4102 ;;
4103 *64-bit*)
4104 case $host in
4105 x86_64-*linux*)
4106 LD="${LD-ld} -m elf_x86_64"
4107 ;;
4108 ppc*-*linux*|powerpc*-*linux*)
4109 LD="${LD-ld} -m elf64ppc"
4110 ;;
4111 s390*-*linux*)
4112 LD="${LD-ld} -m elf64_s390"
4113 ;;
4114 sparc*-*linux*)
4115 LD="${LD-ld} -m elf64_sparc"
4116 ;;
4117 esac
4118 ;;
4119 esac
4120 fi
4121 rm -rf conftest*
4122 ;;
4123
4124*-*-sco3.2v5*)
4125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4126 SAVE_CFLAGS="$CFLAGS"
4127 CFLAGS="$CFLAGS -belf"
4128 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4129echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4130if test "${lt_cv_cc_needs_belf+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139 cat >conftest.$ac_ext <<_ACEOF
4140#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004146
John Criswell47fdd832003-07-14 16:52:07 +00004147int
4148main ()
John Criswell7a73b802003-06-30 21:59:07 +00004149{
John Criswell7a73b802003-06-30 21:59:07 +00004150
John Criswell47fdd832003-07-14 16:52:07 +00004151 ;
4152 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004153}
John Criswell47fdd832003-07-14 16:52:07 +00004154_ACEOF
4155rm -f conftest.$ac_objext conftest$ac_exeext
4156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004157 (eval $ac_link) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest$ac_exeext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004168else
John Criswell47fdd832003-07-14 16:52:07 +00004169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004170sed 's/^/| /' conftest.$ac_ext >&5
4171
John Criswell47fdd832003-07-14 16:52:07 +00004172lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004173fi
John Criswell47fdd832003-07-14 16:52:07 +00004174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4175 ac_ext=c
4176ac_cpp='$CPP $CPPFLAGS'
4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
John Criswell7a73b802003-06-30 21:59:07 +00004181fi
John Criswell47fdd832003-07-14 16:52:07 +00004182echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4183echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4184 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4186 CFLAGS="$SAVE_CFLAGS"
4187 fi
4188 ;;
4189
4190esac
4191
4192need_locks="$enable_libtool_lock"
4193
John Criswell7a73b802003-06-30 21:59:07 +00004194
4195
4196echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4197echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4198if test "${ac_cv_header_stdc+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 cat >conftest.$ac_ext <<_ACEOF
4202#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004208#include <stdlib.h>
4209#include <stdarg.h>
4210#include <string.h>
4211#include <float.h>
4212
John Criswell0c38eaf2003-09-10 15:17:25 +00004213int
4214main ()
4215{
4216
4217 ;
4218 return 0;
4219}
John Criswell7a73b802003-06-30 21:59:07 +00004220_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004221rm -f conftest.$ac_objext
4222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004224 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004226 (exit $ac_status); } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004233 ac_cv_header_stdc=yes
4234else
4235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004239fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004240rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004241
4242if test $ac_cv_header_stdc = yes; then
4243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244 cat >conftest.$ac_ext <<_ACEOF
4245#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004251#include <string.h>
4252
4253_ACEOF
4254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004255 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004256 :
4257else
4258 ac_cv_header_stdc=no
4259fi
4260rm -f conftest*
4261
4262fi
4263
4264if test $ac_cv_header_stdc = yes; then
4265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4266 cat >conftest.$ac_ext <<_ACEOF
4267#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004273#include <stdlib.h>
4274
4275_ACEOF
4276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004277 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004278 :
4279else
4280 ac_cv_header_stdc=no
4281fi
4282rm -f conftest*
4283
4284fi
4285
4286if test $ac_cv_header_stdc = yes; then
4287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4288 if test "$cross_compiling" = yes; then
4289 :
4290else
4291 cat >conftest.$ac_ext <<_ACEOF
4292#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004298#include <ctype.h>
4299#if ((' ' & 0x0FF) == 0x020)
4300# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4301# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4302#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004303# define ISLOWER(c) \
4304 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004305 || ('j' <= (c) && (c) <= 'r') \
4306 || ('s' <= (c) && (c) <= 'z'))
4307# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4308#endif
4309
4310#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4311int
4312main ()
4313{
4314 int i;
4315 for (i = 0; i < 256; i++)
4316 if (XOR (islower (i), ISLOWER (i))
4317 || toupper (i) != TOUPPER (i))
4318 exit(2);
4319 exit (0);
4320}
4321_ACEOF
4322rm -f conftest$ac_exeext
4323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 :
4334else
4335 echo "$as_me: program exited with status $ac_status" >&5
4336echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004337sed 's/^/| /' conftest.$ac_ext >&5
4338
John Criswell7a73b802003-06-30 21:59:07 +00004339( exit $ac_status )
4340ac_cv_header_stdc=no
4341fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004342rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004343fi
4344fi
4345fi
4346echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4347echo "${ECHO_T}$ac_cv_header_stdc" >&6
4348if test $ac_cv_header_stdc = yes; then
4349
4350cat >>confdefs.h <<\_ACEOF
4351#define STDC_HEADERS 1
4352_ACEOF
4353
4354fi
4355
4356# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367 inttypes.h stdint.h unistd.h
4368do
4369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370echo "$as_me:$LINENO: checking for $ac_header" >&5
4371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 cat >conftest.$ac_ext <<_ACEOF
4376#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004377/* confdefs.h. */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004382$ac_includes_default
4383
4384#include <$ac_header>
4385_ACEOF
4386rm -f conftest.$ac_objext
4387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 eval "$as_ac_Header=yes"
4399else
4400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004401sed 's/^/| /' conftest.$ac_ext >&5
4402
John Criswell7a73b802003-06-30 21:59:07 +00004403eval "$as_ac_Header=no"
4404fi
4405rm -f conftest.$ac_objext conftest.$ac_ext
4406fi
4407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4409if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410 cat >>confdefs.h <<_ACEOF
4411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4412_ACEOF
4413
4414fi
4415
4416done
4417
4418
4419
4420for ac_header in dlfcn.h
4421do
4422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4423if eval "test \"\${$as_ac_Header+set}\" = set"; then
4424 echo "$as_me:$LINENO: checking for $ac_header" >&5
4425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428fi
4429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4431else
4432 # Is the header compilable?
4433echo "$as_me:$LINENO: checking $ac_header usability" >&5
4434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4435cat >conftest.$ac_ext <<_ACEOF
4436#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004442$ac_includes_default
4443#include <$ac_header>
4444_ACEOF
4445rm -f conftest.$ac_objext
4446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 ac_header_compiler=yes
4458else
4459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004460sed 's/^/| /' conftest.$ac_ext >&5
4461
John Criswell7a73b802003-06-30 21:59:07 +00004462ac_header_compiler=no
4463fi
4464rm -f conftest.$ac_objext conftest.$ac_ext
4465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4466echo "${ECHO_T}$ac_header_compiler" >&6
4467
4468# Is the header present?
4469echo "$as_me:$LINENO: checking $ac_header presence" >&5
4470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4471cat >conftest.$ac_ext <<_ACEOF
4472#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004473/* confdefs.h. */
4474_ACEOF
4475cat confdefs.h >>conftest.$ac_ext
4476cat >>conftest.$ac_ext <<_ACEOF
4477/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004478#include <$ac_header>
4479_ACEOF
4480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4482 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004483 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004484 rm -f conftest.er1
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } >/dev/null; then
4488 if test -s conftest.err; then
4489 ac_cpp_err=$ac_c_preproc_warn_flag
4490 else
4491 ac_cpp_err=
4492 fi
4493else
4494 ac_cpp_err=yes
4495fi
4496if test -z "$ac_cpp_err"; then
4497 ac_header_preproc=yes
4498else
4499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004500sed 's/^/| /' conftest.$ac_ext >&5
4501
John Criswell7a73b802003-06-30 21:59:07 +00004502 ac_header_preproc=no
4503fi
4504rm -f conftest.err conftest.$ac_ext
4505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4506echo "${ECHO_T}$ac_header_preproc" >&6
4507
4508# So? What about this header?
4509case $ac_header_compiler:$ac_header_preproc in
4510 yes:no )
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4515 (
4516 cat <<\_ASBOX
4517## ------------------------------------ ##
4518## Report this to bug-autoconf@gnu.org. ##
4519## ------------------------------------ ##
4520_ASBOX
4521 ) |
4522 sed "s/^/$as_me: WARNING: /" >&2
4523 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004524 no:yes )
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4531 (
4532 cat <<\_ASBOX
4533## ------------------------------------ ##
4534## Report this to bug-autoconf@gnu.org. ##
4535## ------------------------------------ ##
4536_ASBOX
4537 ) |
4538 sed "s/^/$as_me: WARNING: /" >&2
4539 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004540esac
4541echo "$as_me:$LINENO: checking for $ac_header" >&5
4542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4543if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 eval "$as_ac_Header=$ac_header_preproc"
4547fi
4548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4550
4551fi
4552if test `eval echo '${'$as_ac_Header'}'` = yes; then
4553 cat >>confdefs.h <<_ACEOF
4554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4555_ACEOF
4556
4557fi
4558
4559done
4560
John Criswell47fdd832003-07-14 16:52:07 +00004561ac_ext=cc
4562ac_cpp='$CXXCPP $CPPFLAGS'
4563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4566echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4567echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4568if test -z "$CXXCPP"; then
4569 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
John Criswell47fdd832003-07-14 16:52:07 +00004572 # Double quotes because CXXCPP needs to be expanded
4573 for CXXCPP in "$CXX -E" "/lib/cpp"
4574 do
4575 ac_preproc_ok=false
4576for ac_cxx_preproc_warn_flag in '' yes
4577do
4578 # Use a header file that comes with gcc, so configuring glibc
4579 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004582 # On the NeXT, cc -E runs the code through the compiler's parser,
4583 # not just through cpp. "Syntax error" is here to catch this case.
4584 cat >conftest.$ac_ext <<_ACEOF
4585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004586/* confdefs.h. */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h. */
4591#ifdef __STDC__
4592# include <limits.h>
4593#else
4594# include <assert.h>
4595#endif
John Criswell47fdd832003-07-14 16:52:07 +00004596 Syntax error
4597_ACEOF
4598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4600 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004601 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } >/dev/null; then
4606 if test -s conftest.err; then
4607 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004608 else
John Criswell47fdd832003-07-14 16:52:07 +00004609 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004610 fi
John Criswell47fdd832003-07-14 16:52:07 +00004611else
4612 ac_cpp_err=yes
4613fi
4614if test -z "$ac_cpp_err"; then
4615 :
4616else
4617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004618sed 's/^/| /' conftest.$ac_ext >&5
4619
John Criswell47fdd832003-07-14 16:52:07 +00004620 # Broken: fails on valid input.
4621continue
4622fi
4623rm -f conftest.err conftest.$ac_ext
4624
4625 # OK, works on sane cases. Now check whether non-existent headers
4626 # can be detected and how.
4627 cat >conftest.$ac_ext <<_ACEOF
4628#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004634#include <ac_nonexistent.h>
4635_ACEOF
4636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004639 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null; then
4644 if test -s conftest.err; then
4645 ac_cpp_err=$ac_cxx_preproc_warn_flag
4646 else
4647 ac_cpp_err=
4648 fi
4649else
4650 ac_cpp_err=yes
4651fi
4652if test -z "$ac_cpp_err"; then
4653 # Broken: success on invalid input.
4654continue
4655else
4656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004657sed 's/^/| /' conftest.$ac_ext >&5
4658
John Criswell47fdd832003-07-14 16:52:07 +00004659 # Passes both tests.
4660ac_preproc_ok=:
4661break
4662fi
4663rm -f conftest.err conftest.$ac_ext
4664
4665done
4666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4667rm -f conftest.err conftest.$ac_ext
4668if $ac_preproc_ok; then
4669 break
John Criswell7a73b802003-06-30 21:59:07 +00004670fi
4671
John Criswell47fdd832003-07-14 16:52:07 +00004672 done
4673 ac_cv_prog_CXXCPP=$CXXCPP
4674
4675fi
4676 CXXCPP=$ac_cv_prog_CXXCPP
4677else
4678 ac_cv_prog_CXXCPP=$CXXCPP
4679fi
4680echo "$as_me:$LINENO: result: $CXXCPP" >&5
4681echo "${ECHO_T}$CXXCPP" >&6
4682ac_preproc_ok=false
4683for ac_cxx_preproc_warn_flag in '' yes
4684do
4685 # Use a header file that comes with gcc, so configuring glibc
4686 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004689 # On the NeXT, cc -E runs the code through the compiler's parser,
4690 # not just through cpp. "Syntax error" is here to catch this case.
4691 cat >conftest.$ac_ext <<_ACEOF
4692#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004693/* confdefs.h. */
4694_ACEOF
4695cat confdefs.h >>conftest.$ac_ext
4696cat >>conftest.$ac_ext <<_ACEOF
4697/* end confdefs.h. */
4698#ifdef __STDC__
4699# include <limits.h>
4700#else
4701# include <assert.h>
4702#endif
John Criswell47fdd832003-07-14 16:52:07 +00004703 Syntax error
4704_ACEOF
4705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4707 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004708 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004709 rm -f conftest.er1
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } >/dev/null; then
4713 if test -s conftest.err; then
4714 ac_cpp_err=$ac_cxx_preproc_warn_flag
4715 else
4716 ac_cpp_err=
4717 fi
4718else
4719 ac_cpp_err=yes
4720fi
4721if test -z "$ac_cpp_err"; then
4722 :
4723else
4724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004725sed 's/^/| /' conftest.$ac_ext >&5
4726
John Criswell47fdd832003-07-14 16:52:07 +00004727 # Broken: fails on valid input.
4728continue
4729fi
4730rm -f conftest.err conftest.$ac_ext
4731
4732 # OK, works on sane cases. Now check whether non-existent headers
4733 # can be detected and how.
4734 cat >conftest.$ac_ext <<_ACEOF
4735#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004741#include <ac_nonexistent.h>
4742_ACEOF
4743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4745 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004746 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } >/dev/null; then
4751 if test -s conftest.err; then
4752 ac_cpp_err=$ac_cxx_preproc_warn_flag
4753 else
4754 ac_cpp_err=
4755 fi
4756else
4757 ac_cpp_err=yes
4758fi
4759if test -z "$ac_cpp_err"; then
4760 # Broken: success on invalid input.
4761continue
4762else
4763 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004764sed 's/^/| /' conftest.$ac_ext >&5
4765
John Criswell47fdd832003-07-14 16:52:07 +00004766 # Passes both tests.
4767ac_preproc_ok=:
4768break
4769fi
4770rm -f conftest.err conftest.$ac_ext
4771
4772done
4773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4774rm -f conftest.err conftest.$ac_ext
4775if $ac_preproc_ok; then
4776 :
4777else
John Criswell0c38eaf2003-09-10 15:17:25 +00004778 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4779See \`config.log' for more details." >&5
4780echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004782 { (exit 1); exit 1; }; }
4783fi
4784
4785ac_ext=cc
4786ac_cpp='$CXXCPP $CPPFLAGS'
4787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790
4791
4792ac_ext=f
4793ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4794ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4796if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004797 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 +00004798 do
4799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4801echo "$as_me:$LINENO: checking for $ac_word" >&5
4802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803if test "${ac_cv_prog_F77+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806 if test -n "$F77"; then
4807 ac_cv_prog_F77="$F77" # Let the user override the test.
4808else
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4819 fi
4820done
4821done
4822
4823fi
4824fi
4825F77=$ac_cv_prog_F77
4826if test -n "$F77"; then
4827 echo "$as_me:$LINENO: result: $F77" >&5
4828echo "${ECHO_T}$F77" >&6
4829else
4830 echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6
4832fi
4833
4834 test -n "$F77" && break
4835 done
4836fi
4837if test -z "$F77"; then
4838 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004839 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 +00004840do
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842set dummy $ac_prog; ac_word=$2
4843echo "$as_me:$LINENO: checking for $ac_word" >&5
4844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848 if test -n "$ac_ct_F77"; then
4849 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_F77="$ac_prog"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862done
4863done
4864
4865fi
4866fi
4867ac_ct_F77=$ac_cv_prog_ac_ct_F77
4868if test -n "$ac_ct_F77"; then
4869 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4870echo "${ECHO_T}$ac_ct_F77" >&6
4871else
4872 echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
4874fi
4875
4876 test -n "$ac_ct_F77" && break
4877done
4878
4879 F77=$ac_ct_F77
4880fi
4881
4882
4883# Provide some information about the compiler.
John Criswellcf2e9f72004-02-10 22:36:35 +00004884echo "$as_me:4884:" \
John Criswell47fdd832003-07-14 16:52:07 +00004885 "checking for Fortran 77 compiler version" >&5
4886ac_compiler=`set X $ac_compile; echo $2`
4887{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4888 (eval $ac_compiler --version </dev/null >&5) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }
4892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4893 (eval $ac_compiler -v </dev/null >&5) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4898 (eval $ac_compiler -V </dev/null >&5) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4902
4903# If we don't use `.F' as extension, the preprocessor is not run on the
4904# input file.
4905ac_save_ext=$ac_ext
4906ac_ext=F
4907echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4908echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4909if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 cat >conftest.$ac_ext <<_ACEOF
4913 program main
4914#ifndef __GNUC__
4915 choke me
4916#endif
4917
4918 end
4919_ACEOF
4920rm -f conftest.$ac_objext
4921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 ac_compiler_gnu=yes
4933else
4934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004935sed 's/^/| /' conftest.$ac_ext >&5
4936
John Criswell47fdd832003-07-14 16:52:07 +00004937ac_compiler_gnu=no
4938fi
4939rm -f conftest.$ac_objext conftest.$ac_ext
4940ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4941
4942fi
4943echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4944echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4945ac_ext=$ac_save_ext
4946G77=`test $ac_compiler_gnu = yes && echo yes`
4947ac_test_FFLAGS=${FFLAGS+set}
4948ac_save_FFLAGS=$FFLAGS
4949FFLAGS=
4950echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4951echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4952if test "${ac_cv_prog_f77_g+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955 FFLAGS=-g
4956cat >conftest.$ac_ext <<_ACEOF
4957 program main
4958
4959 end
4960_ACEOF
4961rm -f conftest.$ac_objext
4962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_cv_prog_f77_g=yes
4974else
4975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004976sed 's/^/| /' conftest.$ac_ext >&5
4977
John Criswell47fdd832003-07-14 16:52:07 +00004978ac_cv_prog_f77_g=no
4979fi
4980rm -f conftest.$ac_objext conftest.$ac_ext
4981
4982fi
4983echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4984echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4985if test "$ac_test_FFLAGS" = set; then
4986 FFLAGS=$ac_save_FFLAGS
4987elif test $ac_cv_prog_f77_g = yes; then
4988 if test "$G77" = yes; then
4989 FFLAGS="-g -O2"
4990 else
4991 FFLAGS="-g"
4992 fi
4993else
4994 if test "$G77" = yes; then
4995 FFLAGS="-O2"
4996 else
4997 FFLAGS=
4998 fi
4999fi
5000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005
5006
5007
5008# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5009
5010# find the maximum length of command line arguments
5011echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5012echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5013if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015else
5016 i=0
5017 testring="ABCD"
5018
5019 case $build_os in
5020 msdosdjgpp*)
5021 # On DJGPP, this test can blow up pretty badly due to problems in libc
5022 # (any single argument exceeding 2000 bytes causes a buffer overrun
5023 # during glob expansion). Even if it were fixed, the result of this
5024 # check would be larger than it should be.
5025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5026 ;;
5027
5028 gnu*)
5029 # Under GNU Hurd, this test is not required because there is
5030 # no limit to the length of command line arguments.
5031 # Libtool will interpret -1 as no limit whatsoever
5032 lt_cv_sys_max_cmd_len=-1;
5033 ;;
5034
5035 cygwin* | mingw*)
5036 # On Win9x/ME, this test blows up -- it succeeds, but takes
5037 # about 5 minutes as the teststring grows exponentially.
5038 # Worse, since 9x/ME are not pre-emptively multitasking,
5039 # you end up with a "frozen" computer, even though with patience
5040 # the test eventually succeeds (with a max line length of 256k).
5041 # Instead, let's just punt: use the minimum linelength reported by
5042 # all of the supported platforms: 8192 (on NT/2K/XP).
5043 lt_cv_sys_max_cmd_len=8192;
5044 ;;
5045
5046 *)
5047 # If test is not a shell built-in, we'll probably end up computing a
5048 # maximum length that is only half of the actual maximum length, but
5049 # we can't tell.
5050 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5051 = "XX$testring") >/dev/null 2>&1 &&
5052 new_result=`expr "X$testring" : ".*" 2>&1` &&
5053 lt_cv_sys_max_cmd_len=$new_result &&
5054 test $i != 17 # 1/2 MB should be enough
5055 do
5056 i=`expr $i + 1`
5057 testring=$testring$testring
5058 done
5059 testring=
5060 # Add a significant safety factor because C++ compilers can tack on massive
5061 # amounts of additional arguments before passing them to the linker.
5062 # It appears as though 1/2 is a usable value.
5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5064 ;;
5065 esac
5066
5067fi
5068
5069if test -n $lt_cv_sys_max_cmd_len ; then
5070 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5071echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5072else
5073 echo "$as_me:$LINENO: result: none" >&5
5074echo "${ECHO_T}none" >&6
5075fi
5076
5077
5078
5079
5080# Check for command to grab the raw symbol name followed by C symbol from nm.
5081echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5082echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5083if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086
5087# These are sane defaults that work on at least a few old systems.
5088# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5089
5090# Character class describing NM global symbol codes.
5091symcode='[BCDEGRST]'
5092
5093# Regexp to match symbols that can be accessed directly from C.
5094sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5095
5096# Transform the above into a raw symbol and a C symbol.
5097symxfrm='\1 \2\3 \3'
5098
5099# Transform an extracted symbol line into a proper C declaration
5100lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5101
5102# Transform an extracted symbol line into symbol name and symbol address
5103lt_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'"
5104
5105# Define system-specific variables.
5106case $host_os in
5107aix*)
5108 symcode='[BCDT]'
5109 ;;
5110cygwin* | mingw* | pw32*)
5111 symcode='[ABCDGISTW]'
5112 ;;
5113hpux*) # Its linker distinguishes data from code symbols
5114 if test "$host_cpu" = ia64; then
5115 symcode='[ABCDEGRST]'
5116 fi
5117 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5118 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'"
5119 ;;
5120irix* | nonstopux*)
5121 symcode='[BCDEGRST]'
5122 ;;
5123osf*)
5124 symcode='[BCDEGQRST]'
5125 ;;
5126solaris* | sysv5*)
5127 symcode='[BDT]'
5128 ;;
5129sysv4)
5130 symcode='[DFNSTU]'
5131 ;;
5132esac
5133
5134# Handle CRLF in mingw tool chain
5135opt_cr=
5136case $build_os in
5137mingw*)
5138 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5139 ;;
5140esac
5141
5142# If we're using GNU nm, then use its standard symbol codes.
5143case `$NM -V 2>&1` in
5144*GNU* | *'with BFD'*)
5145 symcode='[ABCDGISTW]' ;;
5146esac
5147
5148# Try without a prefix undercore, then with it.
5149for ac_symprfx in "" "_"; do
5150
5151 # Write the raw and C identifiers.
5152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5153
5154 # Check to see that the pipe works correctly.
5155 pipe_works=no
5156
5157 rm -f conftest*
5158 cat > conftest.$ac_ext <<EOF
5159#ifdef __cplusplus
5160extern "C" {
5161#endif
5162char nm_test_var;
5163void nm_test_func(){}
5164#ifdef __cplusplus
5165}
5166#endif
5167int main(){nm_test_var='a';nm_test_func();return(0);}
5168EOF
5169
5170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; then
5175 # Now try to grab the symbols.
5176 nlist=conftest.nm
5177 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5178 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && test -s "$nlist"; then
5182 # Try sorting and uniquifying the output.
5183 if sort "$nlist" | uniq > "$nlist"T; then
5184 mv -f "$nlist"T "$nlist"
5185 else
5186 rm -f "$nlist"T
5187 fi
5188
5189 # Make sure that we snagged all the symbols we need.
5190 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5191 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5192 cat <<EOF > conftest.$ac_ext
5193#ifdef __cplusplus
5194extern "C" {
5195#endif
5196
5197EOF
5198 # Now generate the symbol file.
5199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5200
5201 cat <<EOF >> conftest.$ac_ext
5202#if defined (__STDC__) && __STDC__
5203# define lt_ptr_t void *
5204#else
5205# define lt_ptr_t char *
5206# define const
5207#endif
5208
5209/* The mapping between symbol names and symbols. */
5210const struct {
5211 const char *name;
5212 lt_ptr_t address;
5213}
5214lt_preloaded_symbols[] =
5215{
5216EOF
5217 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5218 cat <<\EOF >> conftest.$ac_ext
5219 {0, (lt_ptr_t) 0}
5220};
5221
5222#ifdef __cplusplus
5223}
5224#endif
5225EOF
5226 # Now try linking the two files.
5227 mv conftest.$ac_objext conftstm.$ac_objext
5228 lt_save_LIBS="$LIBS"
5229 lt_save_CFLAGS="$CFLAGS"
5230 LIBS="conftstm.$ac_objext"
5231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5233 (eval $ac_link) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5237 pipe_works=yes
5238 fi
5239 LIBS="$lt_save_LIBS"
5240 CFLAGS="$lt_save_CFLAGS"
5241 else
5242 echo "cannot find nm_test_func in $nlist" >&5
5243 fi
5244 else
5245 echo "cannot find nm_test_var in $nlist" >&5
5246 fi
5247 else
5248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5249 fi
5250 else
5251 echo "$progname: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 fi
5254 rm -f conftest* conftst*
5255
5256 # Do not use the global_symbol_pipe unless it works.
5257 if test "$pipe_works" = yes; then
5258 break
5259 else
5260 lt_cv_sys_global_symbol_pipe=
5261 fi
5262done
5263
5264fi
5265
5266if test -z "$lt_cv_sys_global_symbol_pipe"; then
5267 lt_cv_sys_global_symbol_to_cdecl=
5268fi
5269if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5270 echo "$as_me:$LINENO: result: failed" >&5
5271echo "${ECHO_T}failed" >&6
5272else
5273 echo "$as_me:$LINENO: result: ok" >&5
5274echo "${ECHO_T}ok" >&6
5275fi
5276
5277echo "$as_me:$LINENO: checking for objdir" >&5
5278echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5279if test "${lt_cv_objdir+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 rm -f .libs 2>/dev/null
5283mkdir .libs 2>/dev/null
5284if test -d .libs; then
5285 lt_cv_objdir=.libs
5286else
5287 # MS-DOS does not allow filenames that begin with a dot.
5288 lt_cv_objdir=_libs
5289fi
5290rmdir .libs 2>/dev/null
5291fi
5292echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5293echo "${ECHO_T}$lt_cv_objdir" >&6
5294objdir=$lt_cv_objdir
5295
5296
5297
5298
5299
5300case $host_os in
5301aix3*)
5302 # AIX sometimes has problems with the GCC collect2 program. For some
5303 # reason, if we set the COLLECT_NAMES environment variable, the problems
5304 # vanish in a puff of smoke.
5305 if test "X${COLLECT_NAMES+set}" != Xset; then
5306 COLLECT_NAMES=
5307 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005308 fi
5309 ;;
5310esac
5311
John Criswell47fdd832003-07-14 16:52:07 +00005312# Sed substitution that helps us do robust quoting. It backslashifies
5313# metacharacters that are still active within double-quoted strings.
5314Xsed='sed -e s/^X//'
5315sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5316
5317# Same as above, but do not quote variable references.
5318double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5319
5320# Sed substitution to delay expansion of an escaped shell variable in a
5321# double_quote_subst'ed string.
5322delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5323
5324# Sed substitution to avoid accidental globbing in evaled expressions
5325no_glob_subst='s/\*/\\\*/g'
5326
5327# Constants:
5328rm="rm -f"
5329
5330# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005331default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005332can_build_shared=yes
5333
5334# All known linkers require a `.a' archive for static linking (except M$VC,
5335# which needs '.lib').
5336libext=a
5337ltmain="$ac_aux_dir/ltmain.sh"
5338ofile="$default_ofile"
5339with_gnu_ld="$lt_cv_prog_gnu_ld"
5340
5341if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5343set dummy ${ac_tool_prefix}ar; ac_word=$2
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346if test "${ac_cv_prog_AR+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349 if test -n "$AR"; then
5350 ac_cv_prog_AR="$AR" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_AR="${ac_tool_prefix}ar"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363done
5364done
5365
5366fi
5367fi
5368AR=$ac_cv_prog_AR
5369if test -n "$AR"; then
5370 echo "$as_me:$LINENO: result: $AR" >&5
5371echo "${ECHO_T}$AR" >&6
5372else
5373 echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
5375fi
5376
5377fi
5378if test -z "$ac_cv_prog_AR"; then
5379 ac_ct_AR=$AR
5380 # Extract the first word of "ar", so it can be a program name with args.
5381set dummy ar; ac_word=$2
5382echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 if test -n "$ac_ct_AR"; then
5388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_ac_ct_AR="ar"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
5403
5404 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5405fi
5406fi
5407ac_ct_AR=$ac_cv_prog_ac_ct_AR
5408if test -n "$ac_ct_AR"; then
5409 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5410echo "${ECHO_T}$ac_ct_AR" >&6
5411else
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
5414fi
5415
5416 AR=$ac_ct_AR
5417else
5418 AR="$ac_cv_prog_AR"
5419fi
5420
John Criswell7a73b802003-06-30 21:59:07 +00005421if test -n "$ac_tool_prefix"; then
5422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5423set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5424echo "$as_me:$LINENO: checking for $ac_word" >&5
5425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426if test "${ac_cv_prog_RANLIB+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428else
5429 if test -n "$RANLIB"; then
5430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443done
5444done
5445
5446fi
5447fi
5448RANLIB=$ac_cv_prog_RANLIB
5449if test -n "$RANLIB"; then
5450 echo "$as_me:$LINENO: result: $RANLIB" >&5
5451echo "${ECHO_T}$RANLIB" >&6
5452else
5453 echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
5455fi
5456
5457fi
5458if test -z "$ac_cv_prog_RANLIB"; then
5459 ac_ct_RANLIB=$RANLIB
5460 # Extract the first word of "ranlib", so it can be a program name with args.
5461set dummy ranlib; ac_word=$2
5462echo "$as_me:$LINENO: checking for $ac_word" >&5
5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 if test -n "$ac_ct_RANLIB"; then
5468 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_RANLIB="ranlib"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482done
5483
5484 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5485fi
5486fi
5487ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488if test -n "$ac_ct_RANLIB"; then
5489 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5490echo "${ECHO_T}$ac_ct_RANLIB" >&6
5491else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494fi
5495
5496 RANLIB=$ac_ct_RANLIB
5497else
5498 RANLIB="$ac_cv_prog_RANLIB"
5499fi
5500
5501if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}strip; ac_word=$2
5504echo "$as_me:$LINENO: checking for $ac_word" >&5
5505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506if test "${ac_cv_prog_STRIP+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509 if test -n "$STRIP"; then
5510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524done
5525
5526fi
5527fi
5528STRIP=$ac_cv_prog_STRIP
5529if test -n "$STRIP"; then
5530 echo "$as_me:$LINENO: result: $STRIP" >&5
5531echo "${ECHO_T}$STRIP" >&6
5532else
5533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535fi
5536
5537fi
5538if test -z "$ac_cv_prog_STRIP"; then
5539 ac_ct_STRIP=$STRIP
5540 # Extract the first word of "strip", so it can be a program name with args.
5541set dummy strip; ac_word=$2
5542echo "$as_me:$LINENO: checking for $ac_word" >&5
5543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 if test -n "$ac_ct_STRIP"; then
5548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_ac_ct_STRIP="strip"
5558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561done
5562done
5563
5564 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5565fi
5566fi
5567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568if test -n "$ac_ct_STRIP"; then
5569 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5570echo "${ECHO_T}$ac_ct_STRIP" >&6
5571else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574fi
5575
5576 STRIP=$ac_ct_STRIP
5577else
5578 STRIP="$ac_cv_prog_STRIP"
5579fi
5580
5581
John Criswell7a73b802003-06-30 21:59:07 +00005582old_CC="$CC"
5583old_CFLAGS="$CFLAGS"
5584
5585# Set sane defaults for various variables
5586test -z "$AR" && AR=ar
5587test -z "$AR_FLAGS" && AR_FLAGS=cru
5588test -z "$AS" && AS=as
5589test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005590test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005591test -z "$DLLTOOL" && DLLTOOL=dlltool
5592test -z "$LD" && LD=ld
5593test -z "$LN_S" && LN_S="ln -s"
5594test -z "$MAGIC_CMD" && MAGIC_CMD=file
5595test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005596test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005597test -z "$OBJDUMP" && OBJDUMP=objdump
5598test -z "$RANLIB" && RANLIB=:
5599test -z "$STRIP" && STRIP=:
5600test -z "$ac_objext" && ac_objext=o
5601
John Criswell7a73b802003-06-30 21:59:07 +00005602# Determine commands to create old-style static archives.
5603old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5604old_postinstall_cmds='chmod 644 $oldlib'
5605old_postuninstall_cmds=
5606
5607if test -n "$RANLIB"; then
5608 case $host_os in
5609 openbsd*)
5610 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5611 ;;
5612 *)
5613 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5614 ;;
5615 esac
5616 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5617fi
5618
John Criswell47fdd832003-07-14 16:52:07 +00005619# Only perform the check for file, if the check method requires it
5620case $deplibs_check_method in
5621file_magic*)
5622 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5623 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5624echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5625if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005627else
John Criswell47fdd832003-07-14 16:52:07 +00005628 case $MAGIC_CMD in
5629[\\/*] | ?:[\\/]*)
5630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5631 ;;
5632*)
5633 lt_save_MAGIC_CMD="$MAGIC_CMD"
5634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5636 for ac_dir in $ac_dummy; do
5637 IFS="$lt_save_ifs"
5638 test -z "$ac_dir" && ac_dir=.
5639 if test -f $ac_dir/${ac_tool_prefix}file; then
5640 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5641 if test -n "$file_magic_test_file"; then
5642 case $deplibs_check_method in
5643 "file_magic "*)
5644 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5647 $EGREP "$file_magic_regex" > /dev/null; then
5648 :
5649 else
5650 cat <<EOF 1>&2
5651
5652*** Warning: the command libtool uses to detect shared libraries,
5653*** $file_magic_cmd, produces output that libtool cannot recognize.
5654*** The result is that libtool may fail to recognize shared libraries
5655*** as such. This will affect the creation of libtool libraries that
5656*** depend on shared libraries, but programs linked with such libtool
5657*** libraries will work regardless of this problem. Nevertheless, you
5658*** may want to report the problem to your system manager and/or to
5659*** bug-libtool@gnu.org
5660
5661EOF
5662 fi ;;
5663 esac
5664 fi
5665 break
5666 fi
5667 done
5668 IFS="$lt_save_ifs"
5669 MAGIC_CMD="$lt_save_MAGIC_CMD"
5670 ;;
5671esac
John Criswell7a73b802003-06-30 21:59:07 +00005672fi
John Criswell7a73b802003-06-30 21:59:07 +00005673
John Criswell47fdd832003-07-14 16:52:07 +00005674MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5675if test -n "$MAGIC_CMD"; then
5676 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5677echo "${ECHO_T}$MAGIC_CMD" >&6
5678else
5679 echo "$as_me:$LINENO: result: no" >&5
5680echo "${ECHO_T}no" >&6
5681fi
John Criswell7a73b802003-06-30 21:59:07 +00005682
John Criswell47fdd832003-07-14 16:52:07 +00005683if test -z "$lt_cv_path_MAGIC_CMD"; then
5684 if test -n "$ac_tool_prefix"; then
5685 echo "$as_me:$LINENO: checking for file" >&5
5686echo $ECHO_N "checking for file... $ECHO_C" >&6
5687if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689else
5690 case $MAGIC_CMD in
5691[\\/*] | ?:[\\/]*)
5692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5693 ;;
5694*)
5695 lt_save_MAGIC_CMD="$MAGIC_CMD"
5696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5698 for ac_dir in $ac_dummy; do
5699 IFS="$lt_save_ifs"
5700 test -z "$ac_dir" && ac_dir=.
5701 if test -f $ac_dir/file; then
5702 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5703 if test -n "$file_magic_test_file"; then
5704 case $deplibs_check_method in
5705 "file_magic "*)
5706 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5709 $EGREP "$file_magic_regex" > /dev/null; then
5710 :
5711 else
5712 cat <<EOF 1>&2
5713
5714*** Warning: the command libtool uses to detect shared libraries,
5715*** $file_magic_cmd, produces output that libtool cannot recognize.
5716*** The result is that libtool may fail to recognize shared libraries
5717*** as such. This will affect the creation of libtool libraries that
5718*** depend on shared libraries, but programs linked with such libtool
5719*** libraries will work regardless of this problem. Nevertheless, you
5720*** may want to report the problem to your system manager and/or to
5721*** bug-libtool@gnu.org
5722
5723EOF
5724 fi ;;
5725 esac
5726 fi
5727 break
5728 fi
5729 done
5730 IFS="$lt_save_ifs"
5731 MAGIC_CMD="$lt_save_MAGIC_CMD"
5732 ;;
5733esac
5734fi
5735
5736MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5737if test -n "$MAGIC_CMD"; then
5738 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5739echo "${ECHO_T}$MAGIC_CMD" >&6
5740else
5741 echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743fi
5744
5745 else
5746 MAGIC_CMD=:
5747 fi
5748fi
5749
5750 fi
5751 ;;
5752esac
5753
5754enable_dlopen=no
5755enable_win32_dll=no
5756
5757# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5758if test "${enable_libtool_lock+set}" = set; then
5759 enableval="$enable_libtool_lock"
5760
5761fi;
5762test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5763
John Criswell7a73b802003-06-30 21:59:07 +00005764
5765# Check whether --with-pic or --without-pic was given.
5766if test "${with_pic+set}" = set; then
5767 withval="$with_pic"
5768 pic_mode="$withval"
5769else
5770 pic_mode=default
5771fi;
5772test -z "$pic_mode" && pic_mode=default
5773
John Criswell47fdd832003-07-14 16:52:07 +00005774# Use C for the default configuration in the libtool script
5775tagname=
5776lt_save_CC="$CC"
5777ac_ext=c
5778ac_cpp='$CPP $CPPFLAGS'
5779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782
5783
5784# Source file extension for C test sources.
5785ac_ext=c
5786
5787# Object file extension for compiled C test sources.
5788objext=o
5789objext=$objext
5790
5791# Code to be used in simple compile tests
5792lt_simple_compile_test_code="int some_variable = 0;\n"
5793
5794# Code to be used in simple link tests
5795lt_simple_link_test_code='int main(){return(0);}\n'
5796
5797
5798# If no C compiler was specified, use CC.
5799LTCC=${LTCC-"$CC"}
5800
5801# Allow CC to be a program name with arguments.
5802compiler=$CC
5803
5804
5805#
5806# Check for any special shared library compilation flags.
5807#
5808lt_prog_cc_shlib=
5809if test "$GCC" = no; then
5810 case $host_os in
5811 sco3.2v5*)
5812 lt_prog_cc_shlib='-belf'
5813 ;;
5814 esac
5815fi
5816if test -n "$lt_prog_cc_shlib"; then
5817 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5818echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5819 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5820 else
5821 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5822echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5823 lt_cv_prog_cc_can_build_shared=no
5824 fi
5825fi
5826
5827
5828#
5829# Check to make sure the static flag actually works.
5830#
5831echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5832echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5833if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
John Criswell47fdd832003-07-14 16:52:07 +00005836 lt_prog_compiler_static_works=no
5837 save_LDFLAGS="$LDFLAGS"
5838 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5839 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5840 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5841 # The compiler can only warn and ignore the option if not recognized
5842 # So say no if there are warnings
5843 if test -s conftest.err; then
5844 # Append any errors to the config.log.
5845 cat conftest.err 1>&5
5846 else
5847 lt_prog_compiler_static_works=yes
5848 fi
5849 fi
5850 $rm conftest*
5851 LDFLAGS="$save_LDFLAGS"
5852
5853fi
5854echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5855echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5856
5857if test x"$lt_prog_compiler_static_works" = xyes; then
5858 :
5859else
5860 lt_prog_compiler_static=
5861fi
5862
5863
5864
John Criswell47fdd832003-07-14 16:52:07 +00005865
5866lt_prog_compiler_no_builtin_flag=
5867
5868if test "$GCC" = yes; then
5869 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5870
5871 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5872echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5873if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 lt_cv_prog_compiler_rtti_exceptions=no
5877 ac_outfile=conftest.$ac_objext
5878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5879 lt_compiler_flag="-fno-rtti -fno-exceptions"
5880 # Insert the option either (1) after the last *FLAGS variable, or
5881 # (2) before a word containing "conftest.", or (3) at the end.
5882 # Note that $ac_compile itself does not contain backslashes and begins
5883 # with a dollar sign (not a hyphen), so the echo should work correctly.
5884 # The option is referenced via a variable to avoid confusing sed.
5885 lt_compile=`echo "$ac_compile" | $SED \
5886 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5888 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +00005889 (eval echo "\"\$as_me:5889: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005890 (eval "$lt_compile" 2>conftest.err)
5891 ac_status=$?
5892 cat conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +00005893 echo "$as_me:5893: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005894 if (exit $ac_status) && test -s "$ac_outfile"; then
5895 # The compiler can only warn and ignore the option if not recognized
5896 # So say no if there are warnings
5897 if test ! -s conftest.err; then
5898 lt_cv_prog_compiler_rtti_exceptions=yes
5899 fi
5900 fi
5901 $rm conftest*
5902
5903fi
5904echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5905echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5906
5907if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5908 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5909else
5910 :
5911fi
5912
5913fi
5914
5915lt_prog_compiler_wl=
5916lt_prog_compiler_pic=
5917lt_prog_compiler_static=
5918
5919echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5920echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005921
5922 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005923 lt_prog_compiler_wl='-Wl,'
5924 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005925
5926 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005927 aix*)
5928 # All AIX code is PIC.
5929 if test "$host_cpu" = ia64; then
5930 # AIX 5 now supports IA64 processor
5931 lt_prog_compiler_static='-Bstatic'
5932 fi
John Criswell7a73b802003-06-30 21:59:07 +00005933 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005934
John Criswell7a73b802003-06-30 21:59:07 +00005935 amigaos*)
5936 # FIXME: we need at least 68020 code to build shared libraries, but
5937 # adding the `-m68020' flag to GCC prevents building anything better,
5938 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005939 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005940 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005941
5942 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005943 # PIC is the default for these OSes.
5944 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005945
5946 mingw* | pw32* | os2*)
5947 # This hack is so that the source file can tell whether it is being
5948 # built for inclusion in a dll (and should export symbols for example).
5949 lt_prog_compiler_pic='-DDLL_EXPORT'
5950 ;;
5951
John Criswell7a73b802003-06-30 21:59:07 +00005952 darwin* | rhapsody*)
5953 # PIC is the default on this platform
5954 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005955 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005956 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005957
5958 msdosdjgpp*)
5959 # Just because we use GCC doesn't mean we suddenly get shared libraries
5960 # on systems that don't support them.
5961 lt_prog_compiler_can_build_shared=no
5962 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005963 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005964
John Criswell7a73b802003-06-30 21:59:07 +00005965 sysv4*MP*)
5966 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005967 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005968 fi
5969 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005970
5971 hpux*)
5972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5973 # not for PA HP-UX.
5974 case "$host_cpu" in
5975 hppa*64*|ia64*)
5976 # +Z the default
5977 ;;
5978 *)
5979 lt_prog_compiler_pic='-fPIC'
5980 ;;
5981 esac
5982 ;;
5983
John Criswell7a73b802003-06-30 21:59:07 +00005984 *)
John Criswell47fdd832003-07-14 16:52:07 +00005985 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005986 ;;
5987 esac
5988 else
John Criswell47fdd832003-07-14 16:52:07 +00005989 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005990 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005991 aix*)
5992 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005993 if test "$host_cpu" = ia64; then
5994 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005995 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005996 else
John Criswell47fdd832003-07-14 16:52:07 +00005997 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005998 fi
5999 ;;
6000
John Criswell47fdd832003-07-14 16:52:07 +00006001 mingw* | pw32* | os2*)
6002 # This hack is so that the source file can tell whether it is being
6003 # built for inclusion in a dll (and should export symbols for example).
6004 lt_prog_compiler_pic='-DDLL_EXPORT'
6005 ;;
6006
John Criswell7a73b802003-06-30 21:59:07 +00006007 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006008 lt_prog_compiler_wl='-Wl,'
6009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6010 # not for PA HP-UX.
6011 case "$host_cpu" in
6012 hppa*64*|ia64*)
6013 # +Z the default
6014 ;;
6015 *)
6016 lt_prog_compiler_pic='+Z'
6017 ;;
6018 esac
6019 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6020 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006021 ;;
6022
John Criswell47fdd832003-07-14 16:52:07 +00006023 irix5* | irix6* | nonstopux*)
6024 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006025 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006026 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006027 ;;
6028
6029 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006030 lt_prog_compiler_pic='-KPIC'
6031 lt_prog_compiler_static='-Bstatic'
6032 ;;
6033
6034 linux*)
6035 case $CC in
6036 icc|ecc)
6037 lt_prog_compiler_wl='-Wl,'
6038 lt_prog_compiler_pic='-KPIC'
6039 lt_prog_compiler_static='-static'
6040 ;;
6041 ccc)
6042 lt_prog_compiler_wl='-Wl,'
6043 # All Alpha code is PIC.
6044 lt_prog_compiler_static='-non_shared'
6045 ;;
6046 esac
John Criswell7a73b802003-06-30 21:59:07 +00006047 ;;
6048
6049 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006050 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006051 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006052 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006053 ;;
6054
6055 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006056 lt_prog_compiler_pic='-Kpic'
6057 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006058 ;;
6059
6060 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006061 lt_prog_compiler_wl='-Wl,'
6062 lt_prog_compiler_pic='-KPIC'
6063 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006064 ;;
6065
6066 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006067 lt_prog_compiler_wl='-Qoption ld '
6068 lt_prog_compiler_pic='-PIC'
6069 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006070 ;;
6071
6072 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006073 lt_prog_compiler_wl='-Wl,'
6074 lt_prog_compiler_pic='-KPIC'
6075 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006076 ;;
6077
6078 sysv4*MP*)
6079 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006080 lt_prog_compiler_pic='-Kconform_pic'
6081 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006082 fi
6083 ;;
6084
John Criswell47fdd832003-07-14 16:52:07 +00006085 uts4*)
6086 lt_prog_compiler_pic='-pic'
6087 lt_prog_compiler_static='-Bstatic'
6088 ;;
6089
John Criswell7a73b802003-06-30 21:59:07 +00006090 *)
John Criswell47fdd832003-07-14 16:52:07 +00006091 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006092 ;;
6093 esac
6094 fi
6095
John Criswell47fdd832003-07-14 16:52:07 +00006096echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6097echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006098
John Criswell47fdd832003-07-14 16:52:07 +00006099#
6100# Check to make sure the PIC flag actually works.
6101#
6102if test -n "$lt_prog_compiler_pic"; then
6103 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6104echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6105if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
John Criswell47fdd832003-07-14 16:52:07 +00006108 lt_prog_compiler_pic_works=no
6109 ac_outfile=conftest.$ac_objext
6110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6112 # Insert the option either (1) after the last *FLAGS variable, or
6113 # (2) before a word containing "conftest.", or (3) at the end.
6114 # Note that $ac_compile itself does not contain backslashes and begins
6115 # with a dollar sign (not a hyphen), so the echo should work correctly.
6116 # The option is referenced via a variable to avoid confusing sed.
6117 lt_compile=`echo "$ac_compile" | $SED \
6118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6120 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +00006121 (eval echo "\"\$as_me:6121: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006122 (eval "$lt_compile" 2>conftest.err)
6123 ac_status=$?
6124 cat conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +00006125 echo "$as_me:6125: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006126 if (exit $ac_status) && test -s "$ac_outfile"; then
6127 # The compiler can only warn and ignore the option if not recognized
6128 # So say no if there are warnings
6129 if test ! -s conftest.err; then
6130 lt_prog_compiler_pic_works=yes
6131 fi
6132 fi
6133 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006134
John Criswell47fdd832003-07-14 16:52:07 +00006135fi
6136echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6137echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006138
John Criswell47fdd832003-07-14 16:52:07 +00006139if test x"$lt_prog_compiler_pic_works" = xyes; then
6140 case $lt_prog_compiler_pic in
6141 "" | " "*) ;;
6142 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6143 esac
John Criswell7a73b802003-06-30 21:59:07 +00006144else
John Criswell47fdd832003-07-14 16:52:07 +00006145 lt_prog_compiler_pic=
6146 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006147fi
6148
John Criswell7a73b802003-06-30 21:59:07 +00006149fi
John Criswell47fdd832003-07-14 16:52:07 +00006150case "$host_os" in
6151 # For platforms which do not support PIC, -DPIC is meaningless:
6152 *djgpp*)
6153 lt_prog_compiler_pic=
6154 ;;
6155 *)
6156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6157 ;;
6158esac
John Criswell7a73b802003-06-30 21:59:07 +00006159
John Criswell7a73b802003-06-30 21:59:07 +00006160echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6161echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006162if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
John Criswell47fdd832003-07-14 16:52:07 +00006165 lt_cv_prog_compiler_c_o=no
6166 $rm -r conftest 2>/dev/null
6167 mkdir conftest
6168 cd conftest
6169 mkdir out
6170 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006171
John Criswell47fdd832003-07-14 16:52:07 +00006172 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6173 # that will create temporary files in the current directory regardless of
6174 # the output directory. Thus, making CWD read-only will cause this test
6175 # to fail, enabling locking or at least warning the user not to do parallel
6176 # builds.
6177 chmod -w .
6178
6179 lt_compiler_flag="-o out/conftest2.$ac_objext"
6180 # Insert the option either (1) after the last *FLAGS variable, or
6181 # (2) before a word containing "conftest.", or (3) at the end.
6182 # Note that $ac_compile itself does not contain backslashes and begins
6183 # with a dollar sign (not a hyphen), so the echo should work correctly.
6184 lt_compile=`echo "$ac_compile" | $SED \
6185 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6187 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +00006188 (eval echo "\"\$as_me:6188: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006189 (eval "$lt_compile" 2>out/conftest.err)
6190 ac_status=$?
6191 cat out/conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +00006192 echo "$as_me:6192: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6194 then
6195 # The compiler can only warn and ignore the option if not recognized
6196 # So say no if there are warnings
6197 if test ! -s out/conftest.err; then
6198 lt_cv_prog_compiler_c_o=yes
6199 fi
6200 fi
6201 chmod u+w .
6202 $rm conftest* out/*
6203 rmdir out
6204 cd ..
6205 rmdir conftest
6206 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006207
6208fi
John Criswell47fdd832003-07-14 16:52:07 +00006209echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6210echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006211
John Criswell7a73b802003-06-30 21:59:07 +00006212
John Criswell7a73b802003-06-30 21:59:07 +00006213hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006214if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006215 # do not overwrite the value of need_locks provided by the user
6216 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6217echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6218 hard_links=yes
6219 $rm conftest*
6220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6221 touch conftest.a
6222 ln conftest.a conftest.b 2>&5 || hard_links=no
6223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6224 echo "$as_me:$LINENO: result: $hard_links" >&5
6225echo "${ECHO_T}$hard_links" >&6
6226 if test "$hard_links" = no; then
6227 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6228echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6229 need_locks=warn
6230 fi
6231else
6232 need_locks=no
6233fi
John Criswell7a73b802003-06-30 21:59:07 +00006234
John Criswell47fdd832003-07-14 16:52:07 +00006235echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6236echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6237
6238 runpath_var=
6239 allow_undefined_flag=
6240 enable_shared_with_static_runtimes=no
6241 archive_cmds=
6242 archive_expsym_cmds=
6243 old_archive_From_new_cmds=
6244 old_archive_from_expsyms_cmds=
6245 export_dynamic_flag_spec=
6246 whole_archive_flag_spec=
6247 thread_safe_flag_spec=
6248 hardcode_libdir_flag_spec=
6249 hardcode_libdir_flag_spec_ld=
6250 hardcode_libdir_separator=
6251 hardcode_direct=no
6252 hardcode_minus_L=no
6253 hardcode_shlibpath_var=unsupported
6254 link_all_deplibs=unknown
6255 hardcode_automatic=no
6256 module_cmds=
6257 module_expsym_cmds=
6258 always_export_symbols=no
6259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6260 # include_expsyms should be a list of space-separated symbols to be *always*
6261 # included in the symbol list
6262 include_expsyms=
6263 # exclude_expsyms can be an extended regexp of symbols to exclude
6264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6266 # as well as any symbol that contains `d'.
6267 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6269 # platforms (ab)use it in PIC code, but their linkers get confused if
6270 # the symbol is explicitly referenced. Since portable code cannot
6271 # rely on this symbol name, it's probably fine to never include it in
6272 # preloaded symbol tables.
6273 extract_expsyms_cmds=
6274
6275 case $host_os in
6276 cygwin* | mingw* | pw32*)
6277 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6278 # When not using gcc, we currently assume that we are using
6279 # Microsoft Visual C++.
6280 if test "$GCC" != yes; then
6281 with_gnu_ld=no
6282 fi
6283 ;;
6284 openbsd*)
6285 with_gnu_ld=no
6286 ;;
6287 esac
6288
6289 ld_shlibs=yes
6290 if test "$with_gnu_ld" = yes; then
6291 # If archive_cmds runs LD, not CC, wlarc should be empty
6292 wlarc='${wl}'
6293
6294 # See if GNU ld supports shared libraries.
6295 case $host_os in
6296 aix3* | aix4* | aix5*)
6297 # On AIX/PPC, the GNU linker is very broken
6298 if test "$host_cpu" != ia64; then
6299 ld_shlibs=no
6300 cat <<EOF 1>&2
6301
6302*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6303*** to be unable to reliably create shared libraries on AIX.
6304*** Therefore, libtool is disabling shared libraries support. If you
6305*** really care for shared libraries, you may want to modify your PATH
6306*** so that a non-GNU linker is found, and then restart.
6307
6308EOF
6309 fi
6310 ;;
6311
6312 amigaos*)
6313 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)'
6314 hardcode_libdir_flag_spec='-L$libdir'
6315 hardcode_minus_L=yes
6316
6317 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6318 # that the semantics of dynamic libraries on AmigaOS, at least up
6319 # to version 4, is to share data among multiple programs linked
6320 # with the same dynamic library. Since this doesn't match the
6321 # behavior of shared libraries on other platforms, we can't use
6322 # them.
6323 ld_shlibs=no
6324 ;;
6325
6326 beos*)
6327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6328 allow_undefined_flag=unsupported
6329 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6330 # support --undefined. This deserves some investigation. FIXME
6331 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6332 else
6333 ld_shlibs=no
6334 fi
6335 ;;
6336
6337 cygwin* | mingw* | pw32*)
6338 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6339 # as there is no search path for DLLs.
6340 hardcode_libdir_flag_spec='-L$libdir'
6341 allow_undefined_flag=unsupported
6342 always_export_symbols=no
6343 enable_shared_with_static_runtimes=yes
6344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6345
6346 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6348 # If the export-symbols file already is a .def file (1st line
6349 # is EXPORTS), use it as is; otherwise, prepend...
6350 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6351 cp $export_symbols $output_objdir/$soname.def;
6352 else
6353 echo EXPORTS > $output_objdir/$soname.def;
6354 cat $export_symbols >> $output_objdir/$soname.def;
6355 fi~
6356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6357 else
6358 ld_shlibs=no
6359 fi
6360 ;;
6361
6362 netbsd*)
6363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6364 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6365 wlarc=
6366 else
6367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6369 fi
6370 ;;
6371
6372 solaris* | sysv5*)
6373 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6374 ld_shlibs=no
6375 cat <<EOF 1>&2
6376
6377*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6378*** create shared libraries on Solaris systems. Therefore, libtool
6379*** is disabling shared libraries support. We urge you to upgrade GNU
6380*** binutils to release 2.9.1 or newer. Another option is to modify
6381*** your PATH or compiler configuration so that the native linker is
6382*** used, and then restart.
6383
6384EOF
6385 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6388 else
6389 ld_shlibs=no
6390 fi
6391 ;;
6392
6393 sunos4*)
6394 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6395 wlarc=
6396 hardcode_direct=yes
6397 hardcode_shlibpath_var=no
6398 ;;
6399
6400 *)
6401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6404 else
6405 ld_shlibs=no
6406 fi
6407 ;;
6408 esac
6409
6410 if test "$ld_shlibs" = yes; then
6411 runpath_var=LD_RUN_PATH
6412 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6413 export_dynamic_flag_spec='${wl}--export-dynamic'
6414 # ancient GNU ld didn't support --whole-archive et. al.
6415 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6416 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6417 else
6418 whole_archive_flag_spec=
6419 fi
6420 fi
6421 else
6422 # PORTME fill in a description of your system's linker (not GNU ld)
6423 case $host_os in
6424 aix3*)
6425 allow_undefined_flag=unsupported
6426 always_export_symbols=yes
6427 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'
6428 # Note: this linker hardcodes the directories in LIBPATH if there
6429 # are no directories specified by -L.
6430 hardcode_minus_L=yes
6431 if test "$GCC" = yes && test -z "$link_static_flag"; then
6432 # Neither direct hardcoding nor static linking is supported with a
6433 # broken collect2.
6434 hardcode_direct=unsupported
6435 fi
6436 ;;
6437
6438 aix4* | aix5*)
6439 if test "$host_cpu" = ia64; then
6440 # On IA64, the linker does run time linking by default, so we don't
6441 # have to do anything special.
6442 aix_use_runtimelinking=no
6443 exp_sym_flag='-Bexport'
6444 no_entry_flag=""
6445 else
6446 # If we're using GNU nm, then we don't want the "-C" option.
6447 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6448 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6449 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'
6450 else
6451 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'
6452 fi
6453 aix_use_runtimelinking=no
6454
6455 # Test if we are trying to use run time linking or normal
6456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6457 # need to do runtime linking.
6458 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6459 for ld_flag in $LDFLAGS; do
6460 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6461 aix_use_runtimelinking=yes
6462 break
6463 fi
6464 done
6465 esac
6466
6467 exp_sym_flag='-bexport'
6468 no_entry_flag='-bnoentry'
6469 fi
6470
6471 # When large executables or shared objects are built, AIX ld can
6472 # have problems creating the table of contents. If linking a library
6473 # or program results in "error TOC overflow" add -mminimal-toc to
6474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6476
6477 archive_cmds=''
6478 hardcode_direct=yes
6479 hardcode_libdir_separator=':'
6480 link_all_deplibs=yes
6481
6482 if test "$GCC" = yes; then
6483 case $host_os in aix4.012|aix4.012.*)
6484 # We only want to do this on AIX 4.2 and lower, the check
6485 # below for broken collect2 doesn't work under 4.3+
6486 collect2name=`${CC} -print-prog-name=collect2`
6487 if test -f "$collect2name" && \
6488 strings "$collect2name" | grep resolve_lib_name >/dev/null
6489 then
6490 # We have reworked collect2
6491 hardcode_direct=yes
6492 else
6493 # We have old collect2
6494 hardcode_direct=unsupported
6495 # It fails to find uninstalled libraries when the uninstalled
6496 # path is not listed in the libpath. Setting hardcode_minus_L
6497 # to unsupported forces relinking
6498 hardcode_minus_L=yes
6499 hardcode_libdir_flag_spec='-L$libdir'
6500 hardcode_libdir_separator=
6501 fi
6502 esac
6503 shared_flag='-shared'
6504 else
6505 # not using gcc
6506 if test "$host_cpu" = ia64; then
6507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6508 # chokes on -Wl,-G. The following line is correct:
6509 shared_flag='-G'
6510 else
6511 if test "$aix_use_runtimelinking" = yes; then
6512 shared_flag='${wl}-G'
6513 else
6514 shared_flag='${wl}-bM:SRE'
6515 fi
6516 fi
6517 fi
6518
6519 # It seems that -bexpall does not export symbols beginning with
6520 # underscore (_), so it is better to generate a list of symbols to export.
6521 always_export_symbols=yes
6522 if test "$aix_use_runtimelinking" = yes; then
6523 # Warning - without using the other runtime loading flags (-brtl),
6524 # -berok will link without error, but may produce a broken library.
6525 allow_undefined_flag='-berok'
6526 # Determine the default libpath from the value encoded in an empty executable.
6527 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006528#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006534
John Criswell7a73b802003-06-30 21:59:07 +00006535int
6536main ()
6537{
John Criswell47fdd832003-07-14 16:52:07 +00006538
John Criswell7a73b802003-06-30 21:59:07 +00006539 ;
6540 return 0;
6541}
6542_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006543rm -f conftest.$ac_objext conftest$ac_exeext
6544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6545 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006549 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006555
John Criswell47fdd832003-07-14 16:52:07 +00006556aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6557}'`
6558# Check for a 64-bit object if we didn't find anything.
6559if 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; }
6560}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006561else
6562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006563sed 's/^/| /' conftest.$ac_ext >&5
6564
John Criswell7a73b802003-06-30 21:59:07 +00006565fi
John Criswell47fdd832003-07-14 16:52:07 +00006566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006568
John Criswell47fdd832003-07-14 16:52:07 +00006569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6570 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"
6571 else
6572 if test "$host_cpu" = ia64; then
6573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6574 allow_undefined_flag="-z nodefs"
6575 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"
6576 else
6577 # Determine the default libpath from the value encoded in an empty executable.
6578 cat >conftest.$ac_ext <<_ACEOF
6579#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006585
John Criswell47fdd832003-07-14 16:52:07 +00006586int
6587main ()
6588{
John Criswell7a73b802003-06-30 21:59:07 +00006589
John Criswell47fdd832003-07-14 16:52:07 +00006590 ;
6591 return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006606
John Criswell47fdd832003-07-14 16:52:07 +00006607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6608}'`
6609# Check for a 64-bit object if we didn't find anything.
6610if 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; }
6611}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006612else
John Criswell47fdd832003-07-14 16:52:07 +00006613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006614sed 's/^/| /' conftest.$ac_ext >&5
6615
John Criswell47fdd832003-07-14 16:52:07 +00006616fi
6617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006619
John Criswell47fdd832003-07-14 16:52:07 +00006620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6621 # Warning - without using the other run time loading flags,
6622 # -berok will link without error, but may produce a broken library.
6623 no_undefined_flag=' ${wl}-bernotok'
6624 allow_undefined_flag=' ${wl}-berok'
6625 # -bexpall does not export symbols beginning with underscore (_)
6626 always_export_symbols=yes
6627 # Exported symbols can be pulled into shared objects from archives
6628 whole_archive_flag_spec=' '
6629 archive_cmds_need_lc=yes
6630 # This is similar to how AIX traditionally builds it's shared libraries.
6631 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 +00006632 fi
6633 fi
John Criswell7a73b802003-06-30 21:59:07 +00006634 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006635
6636 amigaos*)
6637 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)'
6638 hardcode_libdir_flag_spec='-L$libdir'
6639 hardcode_minus_L=yes
6640 # see comment about different semantics on the GNU ld section
6641 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006642 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006643
John Criswell47fdd832003-07-14 16:52:07 +00006644 bsdi4*)
6645 export_dynamic_flag_spec=-rdynamic
6646 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006647
John Criswell47fdd832003-07-14 16:52:07 +00006648 cygwin* | mingw* | pw32*)
6649 # When not using gcc, we currently assume that we are using
6650 # Microsoft Visual C++.
6651 # hardcode_libdir_flag_spec is actually meaningless, as there is
6652 # no search path for DLLs.
6653 hardcode_libdir_flag_spec=' '
6654 allow_undefined_flag=unsupported
6655 # Tell ltmain to make .lib files, not .a files.
6656 libext=lib
6657 # Tell ltmain to make .dll files, not .so files.
6658 shrext=".dll"
6659 # FIXME: Setting linknames here is a bad hack.
6660 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6661 # The linker will automatically build a .lib file if we build a DLL.
6662 old_archive_From_new_cmds='true'
6663 # FIXME: Should let the user specify the lib program.
6664 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6665 fix_srcfile_path='`cygpath -w "$srcfile"`'
6666 enable_shared_with_static_runtimes=yes
6667 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006668
John Criswell47fdd832003-07-14 16:52:07 +00006669 darwin* | rhapsody*)
6670 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6671 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006672 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006673 rhapsody* | darwin1.[012])
6674 allow_undefined_flag='-undefined suppress'
6675 ;;
6676 *) # Darwin 1.3 on
6677 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006678 ;;
6679 esac
John Criswell47fdd832003-07-14 16:52:07 +00006680 # FIXME: Relying on posixy $() will cause problems for
6681 # cross-compilation, but unfortunately the echo tests do not
6682 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6683 # `"' quotes if we put them in here... so don't!
6684 lt_int_apple_cc_single_mod=no
6685 output_verbose_link_cmd='echo'
6686 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6687 lt_int_apple_cc_single_mod=yes
6688 fi
6689 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6690 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6691 else
6692 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'
6693 fi
6694 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6695 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6696 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6697 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}'
6698 else
6699 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}'
6700 fi
6701 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}'
6702 hardcode_direct=no
6703 hardcode_automatic=yes
6704 hardcode_shlibpath_var=unsupported
6705 whole_archive_flag_spec='-all_load $convenience'
6706 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006707 fi
John Criswell47fdd832003-07-14 16:52:07 +00006708 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006709
John Criswell47fdd832003-07-14 16:52:07 +00006710 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006712 hardcode_libdir_flag_spec='-L$libdir'
6713 hardcode_shlibpath_var=no
6714 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006715
John Criswell47fdd832003-07-14 16:52:07 +00006716 freebsd1*)
6717 ld_shlibs=no
6718 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006719
John Criswell47fdd832003-07-14 16:52:07 +00006720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6721 # support. Future versions do this automatically, but an explicit c++rt0.o
6722 # does not break anything, and helps significantly (at the cost of a little
6723 # extra space).
6724 freebsd2.2*)
6725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6726 hardcode_libdir_flag_spec='-R$libdir'
6727 hardcode_direct=yes
6728 hardcode_shlibpath_var=no
6729 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006730
John Criswell47fdd832003-07-14 16:52:07 +00006731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6732 freebsd2*)
6733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6734 hardcode_direct=yes
6735 hardcode_minus_L=yes
6736 hardcode_shlibpath_var=no
6737 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006738
John Criswell47fdd832003-07-14 16:52:07 +00006739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6740 freebsd*)
6741 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6742 hardcode_libdir_flag_spec='-R$libdir'
6743 hardcode_direct=yes
6744 hardcode_shlibpath_var=no
6745 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006746
John Criswell47fdd832003-07-14 16:52:07 +00006747 hpux9*)
6748 if test "$GCC" = yes; then
6749 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'
6750 else
6751 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'
6752 fi
6753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6754 hardcode_libdir_separator=:
6755 hardcode_direct=yes
6756
6757 # hardcode_minus_L: Not really in the search PATH,
6758 # but as the default location of the library.
6759 hardcode_minus_L=yes
6760 export_dynamic_flag_spec='${wl}-E'
6761 ;;
6762
6763 hpux10* | hpux11*)
6764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6765 case "$host_cpu" in
6766 hppa*64*|ia64*)
6767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6768 ;;
6769 *)
6770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6771 ;;
6772 esac
6773 else
6774 case "$host_cpu" in
6775 hppa*64*|ia64*)
6776 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6777 ;;
6778 *)
6779 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6780 ;;
6781 esac
6782 fi
6783 if test "$with_gnu_ld" = no; then
6784 case "$host_cpu" in
6785 hppa*64*)
6786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6787 hardcode_libdir_flag_spec_ld='+b $libdir'
6788 hardcode_libdir_separator=:
6789 hardcode_direct=no
6790 hardcode_shlibpath_var=no
6791 ;;
6792 ia64*)
6793 hardcode_libdir_flag_spec='-L$libdir'
6794 hardcode_direct=no
6795 hardcode_shlibpath_var=no
6796
6797 # hardcode_minus_L: Not really in the search PATH,
6798 # but as the default location of the library.
6799 hardcode_minus_L=yes
6800 ;;
6801 *)
6802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803 hardcode_libdir_separator=:
6804 hardcode_direct=yes
6805 export_dynamic_flag_spec='${wl}-E'
6806
6807 # hardcode_minus_L: Not really in the search PATH,
6808 # but as the default location of the library.
6809 hardcode_minus_L=yes
6810 ;;
6811 esac
6812 fi
6813 ;;
6814
6815 irix5* | irix6* | nonstopux*)
6816 if test "$GCC" = yes; then
6817 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'
6818 else
6819 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'
6820 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6821 fi
6822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6823 hardcode_libdir_separator=:
6824 link_all_deplibs=yes
6825 ;;
6826
6827 netbsd*)
6828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6830 else
6831 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6832 fi
6833 hardcode_libdir_flag_spec='-R$libdir'
6834 hardcode_direct=yes
6835 hardcode_shlibpath_var=no
6836 ;;
6837
6838 newsos6)
6839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6840 hardcode_direct=yes
6841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6842 hardcode_libdir_separator=:
6843 hardcode_shlibpath_var=no
6844 ;;
6845
6846 openbsd*)
6847 hardcode_direct=yes
6848 hardcode_shlibpath_var=no
6849 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6852 export_dynamic_flag_spec='${wl}-E'
6853 else
6854 case $host_os in
6855 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6857 hardcode_libdir_flag_spec='-R$libdir'
6858 ;;
6859 *)
6860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6862 ;;
6863 esac
6864 fi
6865 ;;
6866
6867 os2*)
6868 hardcode_libdir_flag_spec='-L$libdir'
6869 hardcode_minus_L=yes
6870 allow_undefined_flag=unsupported
6871 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'
6872 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6873 ;;
6874
6875 osf3*)
6876 if test "$GCC" = yes; then
6877 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6878 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'
6879 else
6880 allow_undefined_flag=' -expect_unresolved \*'
6881 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'
6882 fi
6883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6884 hardcode_libdir_separator=:
6885 ;;
6886
6887 osf4* | osf5*) # as osf3* with the addition of -msym flag
6888 if test "$GCC" = yes; then
6889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6890 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'
6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892 else
6893 allow_undefined_flag=' -expect_unresolved \*'
6894 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'
6895 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6896 $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'
6897
6898 # Both c and cxx compiler support -rpath directly
6899 hardcode_libdir_flag_spec='-rpath $libdir'
6900 fi
6901 hardcode_libdir_separator=:
6902 ;;
6903
6904 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006907 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006908 runpath_var=LD_RUN_PATH
6909 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006910 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006911
John Criswell47fdd832003-07-14 16:52:07 +00006912 solaris*)
6913 no_undefined_flag=' -z text'
6914 if test "$GCC" = yes; then
6915 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6916 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6917 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6918 else
6919 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6920 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6922 fi
6923 hardcode_libdir_flag_spec='-R$libdir'
6924 hardcode_shlibpath_var=no
6925 case $host_os in
6926 solaris2.[0-5] | solaris2.[0-5].*) ;;
6927 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6928 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6929 esac
6930 link_all_deplibs=yes
6931 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006932
John Criswell47fdd832003-07-14 16:52:07 +00006933 sunos4*)
6934 if test "x$host_vendor" = xsequent; then
6935 # Use $CC to link under sequent, because it throws in some extra .o
6936 # files that make .init and .fini sections work.
6937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6938 else
6939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6940 fi
6941 hardcode_libdir_flag_spec='-L$libdir'
6942 hardcode_direct=yes
6943 hardcode_minus_L=yes
6944 hardcode_shlibpath_var=no
6945 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006946
John Criswell47fdd832003-07-14 16:52:07 +00006947 sysv4)
6948 case $host_vendor in
6949 sni)
6950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6951 hardcode_direct=yes # is this really true???
6952 ;;
6953 siemens)
6954 ## LD is ld it makes a PLAMLIB
6955 ## CC just makes a GrossModule.
6956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6957 reload_cmds='$CC -r -o $output$reload_objs'
6958 hardcode_direct=no
6959 ;;
6960 motorola)
6961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6963 ;;
6964 esac
6965 runpath_var='LD_RUN_PATH'
6966 hardcode_shlibpath_var=no
6967 ;;
6968
6969 sysv4.3*)
6970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971 hardcode_shlibpath_var=no
6972 export_dynamic_flag_spec='-Bexport'
6973 ;;
6974
6975 sysv4*MP*)
6976 if test -d /usr/nec; then
6977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978 hardcode_shlibpath_var=no
6979 runpath_var=LD_RUN_PATH
6980 hardcode_runpath_var=yes
6981 ld_shlibs=yes
6982 fi
6983 ;;
6984
6985 sysv4.2uw2*)
6986 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_direct=yes
6988 hardcode_minus_L=no
6989 hardcode_shlibpath_var=no
6990 hardcode_runpath_var=yes
6991 runpath_var=LD_RUN_PATH
6992 ;;
6993
6994 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6995 no_undefined_flag='${wl}-z ${wl}text'
6996 if test "$GCC" = yes; then
6997 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6998 else
6999 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7000 fi
7001 runpath_var='LD_RUN_PATH'
7002 hardcode_shlibpath_var=no
7003 ;;
7004
7005 sysv5*)
7006 no_undefined_flag=' -z text'
7007 # $CC -shared without GNU ld will not create a library from C++
7008 # object files and a static libstdc++, better avoid it by now
7009 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7010 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7012 hardcode_libdir_flag_spec=
7013 hardcode_shlibpath_var=no
7014 runpath_var='LD_RUN_PATH'
7015 ;;
7016
7017 uts4*)
7018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7019 hardcode_libdir_flag_spec='-L$libdir'
7020 hardcode_shlibpath_var=no
7021 ;;
7022
7023 *)
7024 ld_shlibs=no
7025 ;;
7026 esac
7027 fi
7028
John Criswell7a73b802003-06-30 21:59:07 +00007029echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7030echo "${ECHO_T}$ld_shlibs" >&6
7031test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007032
John Criswell47fdd832003-07-14 16:52:07 +00007033variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7034if test "$GCC" = yes; then
7035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7036fi
7037
7038#
7039# Do we need to explicitly link libc?
7040#
7041case "x$archive_cmds_need_lc" in
7042x|xyes)
7043 # Assume -lc should be added
7044 archive_cmds_need_lc=yes
7045
7046 if test "$enable_shared" = yes && test "$GCC" = yes; then
7047 case $archive_cmds in
7048 *'~'*)
7049 # FIXME: we may have to deal with multi-command sequences.
7050 ;;
7051 '$CC '*)
7052 # Test whether the compiler implicitly links with -lc since on some
7053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7054 # to ld, don't add -lc before -lgcc.
7055 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7056echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7057 $rm conftest*
7058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7059
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } 2>conftest.err; then
7065 soname=conftest
7066 lib=conftest
7067 libobjs=conftest.$ac_objext
7068 deplibs=
7069 wl=$lt_prog_compiler_wl
7070 compiler_flags=-v
7071 linker_flags=-v
7072 verstring=
7073 output_objdir=.
7074 libname=conftest
7075 lt_save_allow_undefined_flag=$allow_undefined_flag
7076 allow_undefined_flag=
7077 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7078 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }
7082 then
7083 archive_cmds_need_lc=no
7084 else
7085 archive_cmds_need_lc=yes
7086 fi
7087 allow_undefined_flag=$lt_save_allow_undefined_flag
7088 else
7089 cat conftest.err 1>&5
7090 fi
7091 $rm conftest*
7092 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7093echo "${ECHO_T}$archive_cmds_need_lc" >&6
7094 ;;
7095 esac
7096 fi
7097 ;;
7098esac
7099
John Criswell7a73b802003-06-30 21:59:07 +00007100echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7101echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7102hardcode_action=
7103if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007104 test -n "$runpath_var " || \
7105 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007106
7107 # We can hardcode non-existant directories.
7108 if test "$hardcode_direct" != no &&
7109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7110 # have to relink, otherwise we might link with an installed library
7111 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007112 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007113 test "$hardcode_minus_L" != no; then
7114 # Linking always hardcodes the temporary library directory.
7115 hardcode_action=relink
7116 else
7117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7118 hardcode_action=immediate
7119 fi
7120else
7121 # We cannot hardcode anything, or else we can only hardcode existing
7122 # directories.
7123 hardcode_action=unsupported
7124fi
7125echo "$as_me:$LINENO: result: $hardcode_action" >&5
7126echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007127
John Criswell47fdd832003-07-14 16:52:07 +00007128if test "$hardcode_action" = relink; then
7129 # Fast installation is not supported
7130 enable_fast_install=no
7131elif test "$shlibpath_overrides_runpath" = yes ||
7132 test "$enable_shared" = no; then
7133 # Fast installation is not necessary
7134 enable_fast_install=needless
7135fi
7136
John Criswell7a73b802003-06-30 21:59:07 +00007137striplib=
7138old_striplib=
7139echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7140echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7141if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7144 echo "$as_me:$LINENO: result: yes" >&5
7145echo "${ECHO_T}yes" >&6
7146else
John Criswell47fdd832003-07-14 16:52:07 +00007147# FIXME - insert some real tests, host_os isn't really good enough
7148 case $host_os in
7149 darwin*)
7150 if test -n "$STRIP" ; then
7151 striplib="$STRIP -x"
7152 echo "$as_me:$LINENO: result: yes" >&5
7153echo "${ECHO_T}yes" >&6
7154 else
John Criswell7a73b802003-06-30 21:59:07 +00007155 echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6
7157fi
John Criswell47fdd832003-07-14 16:52:07 +00007158 ;;
7159 *)
7160 echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
7162 ;;
7163 esac
7164fi
John Criswell7a73b802003-06-30 21:59:07 +00007165
John Criswell7a73b802003-06-30 21:59:07 +00007166echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7167echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7168library_names_spec=
7169libname_spec='lib$name'
7170soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007171shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007172postinstall_cmds=
7173postuninstall_cmds=
7174finish_cmds=
7175finish_eval=
7176shlibpath_var=
7177shlibpath_overrides_runpath=unknown
7178version_type=none
7179dynamic_linker="$host_os ld.so"
7180sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007181if test "$GCC" = yes; then
7182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7183 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7184 # if the path contains ";" then we assume it to be the separator
7185 # otherwise default to the standard path separator (i.e. ":") - it is
7186 # assumed that no part of a normal pathname contains ";" but that should
7187 # okay in the real world where ";" in dirpaths is itself problematic.
7188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7189 else
7190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7191 fi
7192else
7193 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7194fi
7195need_lib_prefix=unknown
7196hardcode_into_libs=no
7197
7198# when you set need_version to no, make sure it does not cause -set_version
7199# flags to be left without arguments
7200need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007201
7202case $host_os in
7203aix3*)
7204 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007206 shlibpath_var=LIBPATH
7207
John Criswell47fdd832003-07-14 16:52:07 +00007208 # AIX 3 has no versioning support, so we append a major version to the name.
7209 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007210 ;;
7211
7212aix4* | aix5*)
7213 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007214 need_lib_prefix=no
7215 need_version=no
7216 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007217 if test "$host_cpu" = ia64; then
7218 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007220 shlibpath_var=LD_LIBRARY_PATH
7221 else
7222 # With GCC up to 2.95.x, collect2 would create an import file
7223 # for dependence libraries. The import file would start with
7224 # the line `#! .'. This would cause the generated library to
7225 # depend on `.', always an invalid library. This was fixed in
7226 # development snapshots of GCC prior to 3.0.
7227 case $host_os in
7228 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7230 echo ' yes '
7231 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7232 :
7233 else
7234 can_build_shared=no
7235 fi
7236 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007237 esac
John Criswell47fdd832003-07-14 16:52:07 +00007238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7239 # soname into executable. Probably we can add versioning support to
7240 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007241 if test "$aix_use_runtimelinking" = yes; then
7242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7243 # instead of lib<name>.a to let people know that these are not
7244 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007246 else
7247 # We preserve .a as extension for shared libraries through AIX4.2
7248 # and later when we are not doing run time linking.
7249 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007250 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007251 fi
7252 shlibpath_var=LIBPATH
7253 fi
7254 ;;
7255
7256amigaos*)
7257 library_names_spec='$libname.ixlibrary $libname.a'
7258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7259 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'
7260 ;;
7261
7262beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007263 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007264 dynamic_linker="$host_os ld.so"
7265 shlibpath_var=LIBRARY_PATH
7266 ;;
7267
7268bsdi4*)
7269 version_type=linux
7270 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7274 shlibpath_var=LD_LIBRARY_PATH
7275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007277 # the default ld.so.conf also contains /usr/contrib/lib and
7278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7279 # libtool to hard-code these into programs
7280 ;;
7281
7282cygwin* | mingw* | pw32*)
7283 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007284 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007285 need_version=no
7286 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007287
John Criswell7a73b802003-06-30 21:59:07 +00007288 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007289 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007290 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7292 postinstall_cmds='base_file=`basename \${file}`~
7293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007294 dldir=$destdir/`dirname \$dlpath`~
7295 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007296 $install_prog $dir/$dlname \$dldir/$dlname'
7297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007298 dlpath=$dir/\$dldll~
7299 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007300 shlibpath_overrides_runpath=yes
7301
7302 case $host_os in
7303 cygwin*)
7304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7306 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7307 ;;
7308 mingw*)
7309 # MinGW DLLs use traditional 'lib' prefix
7310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7311 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7312 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7313 # It is most probably a Windows format PATH printed by
7314 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7315 # path with ; separators, and with drive letters. We can handle the
7316 # drive letters (cygwin fileutils understands them), so leave them,
7317 # especially as we might pass files found there to a mingw objdump,
7318 # which wouldn't understand a cygwinified path. Ahh.
7319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7320 else
7321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7322 fi
7323 ;;
7324 pw32*)
7325 # pw32 DLLs use 'pw' prefix rather than 'lib'
7326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7327 ;;
7328 esac
John Criswell7a73b802003-06-30 21:59:07 +00007329 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007330
John Criswell7a73b802003-06-30 21:59:07 +00007331 *)
John Criswell47fdd832003-07-14 16:52:07 +00007332 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007333 ;;
7334 esac
7335 dynamic_linker='Win32 ld.exe'
7336 # FIXME: first we should search . and the directory the executable is in
7337 shlibpath_var=PATH
7338 ;;
7339
7340darwin* | rhapsody*)
7341 dynamic_linker="$host_os dyld"
7342 version_type=darwin
7343 need_lib_prefix=no
7344 need_version=no
7345 # FIXME: Relying on posixy $() will cause problems for
7346 # cross-compilation, but unfortunately the echo tests do not
7347 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007348 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7349 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007350 shlibpath_overrides_runpath=yes
7351 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007352 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7353 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7354 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7355 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"`
7356 fi
7357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7358 ;;
7359
7360dgux*)
7361 version_type=linux
7362 need_lib_prefix=no
7363 need_version=no
7364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7365 soname_spec='${libname}${release}${shared_ext}$major'
7366 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007367 ;;
7368
7369freebsd1*)
7370 dynamic_linker=no
7371 ;;
7372
7373freebsd*)
7374 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7375 version_type=freebsd-$objformat
7376 case $version_type in
7377 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007379 need_version=no
7380 need_lib_prefix=no
7381 ;;
7382 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007384 need_version=yes
7385 ;;
7386 esac
7387 shlibpath_var=LD_LIBRARY_PATH
7388 case $host_os in
7389 freebsd2*)
7390 shlibpath_overrides_runpath=yes
7391 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007392 freebsd3.01* | freebsdelf3.01*)
7393 shlibpath_overrides_runpath=yes
7394 hardcode_into_libs=yes
7395 ;;
7396 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007397 shlibpath_overrides_runpath=no
7398 hardcode_into_libs=yes
7399 ;;
7400 esac
7401 ;;
7402
7403gnu*)
7404 version_type=linux
7405 need_lib_prefix=no
7406 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7408 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007409 shlibpath_var=LD_LIBRARY_PATH
7410 hardcode_into_libs=yes
7411 ;;
7412
7413hpux9* | hpux10* | hpux11*)
7414 # Give a soname corresponding to the major version so that dld.sl refuses to
7415 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007416 version_type=sunos
7417 need_lib_prefix=no
7418 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007419 case "$host_cpu" in
7420 ia64*)
7421 shrext='.so'
7422 hardcode_into_libs=yes
7423 dynamic_linker="$host_os dld.so"
7424 shlibpath_var=LD_LIBRARY_PATH
7425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7427 soname_spec='${libname}${release}${shared_ext}$major'
7428 if test "X$HPUX_IA64_MODE" = X32; then
7429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7430 else
7431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7432 fi
7433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7434 ;;
7435 hppa*64*)
7436 shrext='.sl'
7437 hardcode_into_libs=yes
7438 dynamic_linker="$host_os dld.sl"
7439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7442 soname_spec='${libname}${release}${shared_ext}$major'
7443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7445 ;;
7446 *)
7447 shrext='.sl'
7448 dynamic_linker="$host_os dld.sl"
7449 shlibpath_var=SHLIB_PATH
7450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7452 soname_spec='${libname}${release}${shared_ext}$major'
7453 ;;
7454 esac
John Criswell7a73b802003-06-30 21:59:07 +00007455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7456 postinstall_cmds='chmod 555 $lib'
7457 ;;
7458
John Criswell47fdd832003-07-14 16:52:07 +00007459irix5* | irix6* | nonstopux*)
7460 case $host_os in
7461 nonstopux*) version_type=nonstopux ;;
7462 *)
7463 if test "$lt_cv_prog_gnu_ld" = yes; then
7464 version_type=linux
7465 else
7466 version_type=irix
7467 fi ;;
7468 esac
John Criswell7a73b802003-06-30 21:59:07 +00007469 need_lib_prefix=no
7470 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007471 soname_spec='${libname}${release}${shared_ext}$major'
7472 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 +00007473 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007474 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007475 libsuff= shlibsuff=
7476 ;;
7477 *)
7478 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007479 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7480 libsuff= shlibsuff= libmagic=32-bit;;
7481 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7482 libsuff=32 shlibsuff=N32 libmagic=N32;;
7483 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7484 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007485 *) libsuff= shlibsuff= libmagic=never-match;;
7486 esac
7487 ;;
7488 esac
7489 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7490 shlibpath_overrides_runpath=no
7491 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7492 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007493 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007494 ;;
7495
7496# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007497linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007498 dynamic_linker=no
7499 ;;
7500
7501# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007502linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007503 version_type=linux
7504 need_lib_prefix=no
7505 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7507 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7509 shlibpath_var=LD_LIBRARY_PATH
7510 shlibpath_overrides_runpath=no
7511 # This implies no fast_install, which is unacceptable.
7512 # Some rework will be needed to allow for fast_install
7513 # before this can be enabled.
7514 hardcode_into_libs=yes
7515
7516 # We used to test for /lib/ld.so.1 and disable shared libraries on
7517 # powerpc, because MkLinux only supported shared libraries with the
7518 # GNU dynamic linker. Since this was broken with cross compilers,
7519 # most powerpc-linux boxes support dynamic linking these days and
7520 # people can always --disable-shared, the test was removed, and we
7521 # assume the GNU/Linux dynamic linker is in use.
7522 dynamic_linker='GNU/Linux ld.so'
7523 ;;
7524
7525netbsd*)
7526 version_type=sunos
7527 need_lib_prefix=no
7528 need_version=no
7529 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7532 dynamic_linker='NetBSD (a.out) ld.so'
7533 else
John Criswell47fdd832003-07-14 16:52:07 +00007534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7535 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007536 dynamic_linker='NetBSD ld.elf_so'
7537 fi
7538 shlibpath_var=LD_LIBRARY_PATH
7539 shlibpath_overrides_runpath=yes
7540 hardcode_into_libs=yes
7541 ;;
7542
7543newsos6)
7544 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 ;;
7549
7550nto-qnx)
7551 version_type=linux
7552 need_lib_prefix=no
7553 need_version=no
7554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7555 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007556 shlibpath_var=LD_LIBRARY_PATH
7557 shlibpath_overrides_runpath=yes
7558 ;;
7559
7560openbsd*)
7561 version_type=sunos
7562 need_lib_prefix=no
7563 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7566 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007567 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 +00007568 case $host_os in
7569 openbsd2.[89] | openbsd2.[89].*)
7570 shlibpath_overrides_runpath=no
7571 ;;
7572 *)
7573 shlibpath_overrides_runpath=yes
7574 ;;
7575 esac
John Criswell7a73b802003-06-30 21:59:07 +00007576 else
7577 shlibpath_overrides_runpath=yes
7578 fi
John Criswell7a73b802003-06-30 21:59:07 +00007579 ;;
7580
7581os2*)
7582 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007583 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007584 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007585 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007586 dynamic_linker='OS/2 ld.exe'
7587 shlibpath_var=LIBPATH
7588 ;;
7589
7590osf3* | osf4* | osf5*)
7591 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007592 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007593 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007594 soname_spec='${libname}${release}${shared_ext}$major'
7595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007596 shlibpath_var=LD_LIBRARY_PATH
7597 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7598 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7599 ;;
7600
7601sco3.2v5*)
7602 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007603 soname_spec='${libname}${release}${shared_ext}$major'
7604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007605 shlibpath_var=LD_LIBRARY_PATH
7606 ;;
7607
7608solaris*)
7609 version_type=linux
7610 need_lib_prefix=no
7611 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007614 shlibpath_var=LD_LIBRARY_PATH
7615 shlibpath_overrides_runpath=yes
7616 hardcode_into_libs=yes
7617 # ldd complains unless libraries are executable
7618 postinstall_cmds='chmod +x $lib'
7619 ;;
7620
7621sunos4*)
7622 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7625 shlibpath_var=LD_LIBRARY_PATH
7626 shlibpath_overrides_runpath=yes
7627 if test "$with_gnu_ld" = yes; then
7628 need_lib_prefix=no
7629 fi
7630 need_version=yes
7631 ;;
7632
7633sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7634 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7636 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007637 shlibpath_var=LD_LIBRARY_PATH
7638 case $host_vendor in
7639 sni)
7640 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007641 need_lib_prefix=no
7642 export_dynamic_flag_spec='${wl}-Blargedynsym'
7643 runpath_var=LD_RUN_PATH
7644 ;;
7645 siemens)
7646 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007647 ;;
7648 motorola)
7649 need_lib_prefix=no
7650 need_version=no
7651 shlibpath_overrides_runpath=no
7652 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7653 ;;
7654 esac
7655 ;;
7656
John Criswell7a73b802003-06-30 21:59:07 +00007657sysv4*MP*)
7658 if test -d /usr/nec ;then
7659 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007660 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7661 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007662 shlibpath_var=LD_LIBRARY_PATH
7663 fi
7664 ;;
7665
John Criswell47fdd832003-07-14 16:52:07 +00007666uts4*)
7667 version_type=linux
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7671 ;;
7672
John Criswell7a73b802003-06-30 21:59:07 +00007673*)
7674 dynamic_linker=no
7675 ;;
7676esac
7677echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7678echo "${ECHO_T}$dynamic_linker" >&6
7679test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007680
7681if test "x$enable_dlopen" != xyes; then
7682 enable_dlopen=unknown
7683 enable_dlopen_self=unknown
7684 enable_dlopen_self_static=unknown
7685else
7686 lt_cv_dlopen=no
7687 lt_cv_dlopen_libs=
7688
7689 case $host_os in
7690 beos*)
7691 lt_cv_dlopen="load_add_on"
7692 lt_cv_dlopen_libs=
7693 lt_cv_dlopen_self=yes
7694 ;;
7695
John Criswell47fdd832003-07-14 16:52:07 +00007696 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007697 lt_cv_dlopen="LoadLibrary"
7698 lt_cv_dlopen_libs=
7699 ;;
7700
John Criswell47fdd832003-07-14 16:52:07 +00007701 cygwin*)
7702 lt_cv_dlopen="dlopen"
7703 lt_cv_dlopen_libs=
7704 ;;
7705
7706 darwin*)
7707 # if libdl is installed we need to link against it
7708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7709echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7710if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713 ac_check_lib_save_LIBS=$LIBS
7714LIBS="-ldl $LIBS"
7715cat >conftest.$ac_ext <<_ACEOF
7716#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007717/* confdefs.h. */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007722
7723/* Override any gcc2 internal prototype to avoid an error. */
7724#ifdef __cplusplus
7725extern "C"
7726#endif
7727/* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7729char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007730int
7731main ()
7732{
7733dlopen ();
7734 ;
7735 return 0;
7736}
7737_ACEOF
7738rm -f conftest.$ac_objext conftest$ac_exeext
7739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_lib_dl_dlopen=yes
7751else
7752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007753sed 's/^/| /' conftest.$ac_ext >&5
7754
John Criswell47fdd832003-07-14 16:52:07 +00007755ac_cv_lib_dl_dlopen=no
7756fi
7757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758LIBS=$ac_check_lib_save_LIBS
7759fi
7760echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7761echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7762if test $ac_cv_lib_dl_dlopen = yes; then
7763 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7764else
7765
7766 lt_cv_dlopen="dyld"
7767 lt_cv_dlopen_libs=
7768 lt_cv_dlopen_self=yes
7769
7770fi
7771
7772 ;;
7773
John Criswell7a73b802003-06-30 21:59:07 +00007774 *)
7775 echo "$as_me:$LINENO: checking for shl_load" >&5
7776echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7777if test "${ac_cv_func_shl_load+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780 cat >conftest.$ac_ext <<_ACEOF
7781#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007782/* confdefs.h. */
7783_ACEOF
7784cat confdefs.h >>conftest.$ac_ext
7785cat >>conftest.$ac_ext <<_ACEOF
7786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007787/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007788 which can conflict with char shl_load (); below.
7789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790 <limits.h> exists even on freestanding compilers. */
7791#ifdef __STDC__
7792# include <limits.h>
7793#else
7794# include <assert.h>
7795#endif
John Criswell7a73b802003-06-30 21:59:07 +00007796/* Override any gcc2 internal prototype to avoid an error. */
7797#ifdef __cplusplus
7798extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007799{
John Criswell7a73b802003-06-30 21:59:07 +00007800#endif
7801/* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007804/* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807#if defined (__stub_shl_load) || defined (__stub___shl_load)
7808choke me
7809#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007810char (*f) () = shl_load;
7811#endif
7812#ifdef __cplusplus
7813}
John Criswell7a73b802003-06-30 21:59:07 +00007814#endif
7815
John Criswell0c38eaf2003-09-10 15:17:25 +00007816int
7817main ()
7818{
7819return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007820 ;
7821 return 0;
7822}
7823_ACEOF
7824rm -f conftest.$ac_objext conftest$ac_exeext
7825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_func_shl_load=yes
7837else
7838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007839sed 's/^/| /' conftest.$ac_ext >&5
7840
John Criswell7a73b802003-06-30 21:59:07 +00007841ac_cv_func_shl_load=no
7842fi
7843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7844fi
7845echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7846echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7847if test $ac_cv_func_shl_load = yes; then
7848 lt_cv_dlopen="shl_load"
7849else
7850 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7851echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7852if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855 ac_check_lib_save_LIBS=$LIBS
7856LIBS="-ldld $LIBS"
7857cat >conftest.$ac_ext <<_ACEOF
7858#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007864
7865/* Override any gcc2 internal prototype to avoid an error. */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869/* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007872int
7873main ()
7874{
7875shl_load ();
7876 ;
7877 return 0;
7878}
7879_ACEOF
7880rm -f conftest.$ac_objext conftest$ac_exeext
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_lib_dld_shl_load=yes
7893else
7894 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007895sed 's/^/| /' conftest.$ac_ext >&5
7896
John Criswell7a73b802003-06-30 21:59:07 +00007897ac_cv_lib_dld_shl_load=no
7898fi
7899rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7900LIBS=$ac_check_lib_save_LIBS
7901fi
7902echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7903echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7904if test $ac_cv_lib_dld_shl_load = yes; then
7905 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7906else
7907 echo "$as_me:$LINENO: checking for dlopen" >&5
7908echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7909if test "${ac_cv_func_dlopen+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 cat >conftest.$ac_ext <<_ACEOF
7913#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007919/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007920 which can conflict with char dlopen (); below.
7921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7922 <limits.h> exists even on freestanding compilers. */
7923#ifdef __STDC__
7924# include <limits.h>
7925#else
7926# include <assert.h>
7927#endif
John Criswell7a73b802003-06-30 21:59:07 +00007928/* Override any gcc2 internal prototype to avoid an error. */
7929#ifdef __cplusplus
7930extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007931{
John Criswell7a73b802003-06-30 21:59:07 +00007932#endif
7933/* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007936/* The GNU C library defines this for functions which it implements
7937 to always fail with ENOSYS. Some functions are actually named
7938 something starting with __ and the normal name is an alias. */
7939#if defined (__stub_dlopen) || defined (__stub___dlopen)
7940choke me
7941#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007942char (*f) () = dlopen;
7943#endif
7944#ifdef __cplusplus
7945}
John Criswell7a73b802003-06-30 21:59:07 +00007946#endif
7947
John Criswell0c38eaf2003-09-10 15:17:25 +00007948int
7949main ()
7950{
7951return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007952 ;
7953 return 0;
7954}
7955_ACEOF
7956rm -f conftest.$ac_objext conftest$ac_exeext
7957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958 (eval $ac_link) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_func_dlopen=yes
7969else
7970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007971sed 's/^/| /' conftest.$ac_ext >&5
7972
John Criswell7a73b802003-06-30 21:59:07 +00007973ac_cv_func_dlopen=no
7974fi
7975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7976fi
7977echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7978echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7979if test $ac_cv_func_dlopen = yes; then
7980 lt_cv_dlopen="dlopen"
7981else
7982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7983echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7984if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987 ac_check_lib_save_LIBS=$LIBS
7988LIBS="-ldl $LIBS"
7989cat >conftest.$ac_ext <<_ACEOF
7990#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007991/* confdefs.h. */
7992_ACEOF
7993cat confdefs.h >>conftest.$ac_ext
7994cat >>conftest.$ac_ext <<_ACEOF
7995/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007996
7997/* Override any gcc2 internal prototype to avoid an error. */
7998#ifdef __cplusplus
7999extern "C"
8000#endif
8001/* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8003char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008004int
8005main ()
8006{
8007dlopen ();
8008 ;
8009 return 0;
8010}
8011_ACEOF
8012rm -f conftest.$ac_objext conftest$ac_exeext
8013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014 (eval $ac_link) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -s conftest$ac_exeext'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_cv_lib_dl_dlopen=yes
8025else
8026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008027sed 's/^/| /' conftest.$ac_ext >&5
8028
John Criswell7a73b802003-06-30 21:59:07 +00008029ac_cv_lib_dl_dlopen=no
8030fi
8031rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8032LIBS=$ac_check_lib_save_LIBS
8033fi
8034echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8035echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8036if test $ac_cv_lib_dl_dlopen = yes; then
8037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8038else
8039 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8040echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8041if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043else
8044 ac_check_lib_save_LIBS=$LIBS
8045LIBS="-lsvld $LIBS"
8046cat >conftest.$ac_ext <<_ACEOF
8047#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008048/* confdefs.h. */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008053
8054/* Override any gcc2 internal prototype to avoid an error. */
8055#ifdef __cplusplus
8056extern "C"
8057#endif
8058/* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008061int
8062main ()
8063{
8064dlopen ();
8065 ;
8066 return 0;
8067}
8068_ACEOF
8069rm -f conftest.$ac_objext conftest$ac_exeext
8070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_lib_svld_dlopen=yes
8082else
8083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008084sed 's/^/| /' conftest.$ac_ext >&5
8085
John Criswell7a73b802003-06-30 21:59:07 +00008086ac_cv_lib_svld_dlopen=no
8087fi
8088rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8089LIBS=$ac_check_lib_save_LIBS
8090fi
8091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8093if test $ac_cv_lib_svld_dlopen = yes; then
8094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8095else
8096 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8097echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8098if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101 ac_check_lib_save_LIBS=$LIBS
8102LIBS="-ldld $LIBS"
8103cat >conftest.$ac_ext <<_ACEOF
8104#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008110
8111/* Override any gcc2 internal prototype to avoid an error. */
8112#ifdef __cplusplus
8113extern "C"
8114#endif
8115/* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8117char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008118int
8119main ()
8120{
8121dld_link ();
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126rm -f conftest.$ac_objext conftest$ac_exeext
8127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128 (eval $ac_link) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -s conftest$ac_exeext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_lib_dld_dld_link=yes
8139else
8140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008141sed 's/^/| /' conftest.$ac_ext >&5
8142
John Criswell7a73b802003-06-30 21:59:07 +00008143ac_cv_lib_dld_dld_link=no
8144fi
8145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8146LIBS=$ac_check_lib_save_LIBS
8147fi
8148echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8149echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8150if test $ac_cv_lib_dld_dld_link = yes; then
8151 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8152fi
8153
8154
8155fi
8156
8157
8158fi
8159
8160
8161fi
8162
8163
8164fi
8165
8166
8167fi
8168
8169 ;;
8170 esac
8171
8172 if test "x$lt_cv_dlopen" != xno; then
8173 enable_dlopen=yes
8174 else
8175 enable_dlopen=no
8176 fi
8177
8178 case $lt_cv_dlopen in
8179 dlopen)
8180 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008181 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008182
8183 save_LDFLAGS="$LDFLAGS"
8184 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8185
8186 save_LIBS="$LIBS"
8187 LIBS="$lt_cv_dlopen_libs $LIBS"
8188
8189 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8190echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8191if test "${lt_cv_dlopen_self+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194 if test "$cross_compiling" = yes; then :
8195 lt_cv_dlopen_self=cross
8196else
John Criswell47fdd832003-07-14 16:52:07 +00008197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008198 lt_status=$lt_dlunknown
8199 cat > conftest.$ac_ext <<EOF
John Criswellcf2e9f72004-02-10 22:36:35 +00008200#line 8200 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008201#include "confdefs.h"
8202
8203#if HAVE_DLFCN_H
8204#include <dlfcn.h>
8205#endif
8206
8207#include <stdio.h>
8208
8209#ifdef RTLD_GLOBAL
8210# define LT_DLGLOBAL RTLD_GLOBAL
8211#else
8212# ifdef DL_GLOBAL
8213# define LT_DLGLOBAL DL_GLOBAL
8214# else
8215# define LT_DLGLOBAL 0
8216# endif
8217#endif
8218
8219/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8220 find out it does not work in some platform. */
8221#ifndef LT_DLLAZY_OR_NOW
8222# ifdef RTLD_LAZY
8223# define LT_DLLAZY_OR_NOW RTLD_LAZY
8224# else
8225# ifdef DL_LAZY
8226# define LT_DLLAZY_OR_NOW DL_LAZY
8227# else
8228# ifdef RTLD_NOW
8229# define LT_DLLAZY_OR_NOW RTLD_NOW
8230# else
8231# ifdef DL_NOW
8232# define LT_DLLAZY_OR_NOW DL_NOW
8233# else
8234# define LT_DLLAZY_OR_NOW 0
8235# endif
8236# endif
8237# endif
8238# endif
8239#endif
8240
8241#ifdef __cplusplus
8242extern "C" void exit (int);
8243#endif
8244
8245void fnord() { int i=42;}
8246int main ()
8247{
8248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8249 int status = $lt_dlunknown;
8250
8251 if (self)
8252 {
8253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8254 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8255 /* dlclose (self); */
8256 }
8257
8258 exit (status);
8259}
8260EOF
8261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8262 (eval $ac_link) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8266 (./conftest; exit; ) 2>/dev/null
8267 lt_status=$?
8268 case x$lt_status in
8269 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8270 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8271 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8272 esac
8273 else :
8274 # compilation failed
8275 lt_cv_dlopen_self=no
8276 fi
8277fi
8278rm -fr conftest*
8279
8280
8281fi
8282echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8283echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8284
8285 if test "x$lt_cv_dlopen_self" = xyes; then
8286 LDFLAGS="$LDFLAGS $link_static_flag"
8287 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8288echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8289if test "${lt_cv_dlopen_self_static+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 if test "$cross_compiling" = yes; then :
8293 lt_cv_dlopen_self_static=cross
8294else
John Criswell47fdd832003-07-14 16:52:07 +00008295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008296 lt_status=$lt_dlunknown
8297 cat > conftest.$ac_ext <<EOF
John Criswellcf2e9f72004-02-10 22:36:35 +00008298#line 8298 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008299#include "confdefs.h"
8300
8301#if HAVE_DLFCN_H
8302#include <dlfcn.h>
8303#endif
8304
8305#include <stdio.h>
8306
8307#ifdef RTLD_GLOBAL
8308# define LT_DLGLOBAL RTLD_GLOBAL
8309#else
8310# ifdef DL_GLOBAL
8311# define LT_DLGLOBAL DL_GLOBAL
8312# else
8313# define LT_DLGLOBAL 0
8314# endif
8315#endif
8316
8317/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8318 find out it does not work in some platform. */
8319#ifndef LT_DLLAZY_OR_NOW
8320# ifdef RTLD_LAZY
8321# define LT_DLLAZY_OR_NOW RTLD_LAZY
8322# else
8323# ifdef DL_LAZY
8324# define LT_DLLAZY_OR_NOW DL_LAZY
8325# else
8326# ifdef RTLD_NOW
8327# define LT_DLLAZY_OR_NOW RTLD_NOW
8328# else
8329# ifdef DL_NOW
8330# define LT_DLLAZY_OR_NOW DL_NOW
8331# else
8332# define LT_DLLAZY_OR_NOW 0
8333# endif
8334# endif
8335# endif
8336# endif
8337#endif
8338
8339#ifdef __cplusplus
8340extern "C" void exit (int);
8341#endif
8342
8343void fnord() { int i=42;}
8344int main ()
8345{
8346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8347 int status = $lt_dlunknown;
8348
8349 if (self)
8350 {
8351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8353 /* dlclose (self); */
8354 }
8355
8356 exit (status);
8357}
8358EOF
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8364 (./conftest; exit; ) 2>/dev/null
8365 lt_status=$?
8366 case x$lt_status in
8367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8369 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8370 esac
8371 else :
8372 # compilation failed
8373 lt_cv_dlopen_self_static=no
8374 fi
8375fi
8376rm -fr conftest*
8377
8378
8379fi
8380echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8381echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8382 fi
8383
8384 CPPFLAGS="$save_CPPFLAGS"
8385 LDFLAGS="$save_LDFLAGS"
8386 LIBS="$save_LIBS"
8387 ;;
8388 esac
8389
8390 case $lt_cv_dlopen_self in
8391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8392 *) enable_dlopen_self=unknown ;;
8393 esac
8394
8395 case $lt_cv_dlopen_self_static in
8396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8397 *) enable_dlopen_self_static=unknown ;;
8398 esac
8399fi
8400
8401
John Criswell47fdd832003-07-14 16:52:07 +00008402# Report which librarie types wil actually be built
8403echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8404echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8405echo "$as_me:$LINENO: result: $can_build_shared" >&5
8406echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008407
John Criswell47fdd832003-07-14 16:52:07 +00008408echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8409echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8410test "$can_build_shared" = "no" && enable_shared=no
8411
8412# On AIX, shared libraries and static libraries use the same namespace, and
8413# are all built from PIC.
8414case "$host_os" in
8415aix3*)
8416 test "$enable_shared" = yes && enable_static=no
8417 if test -n "$RANLIB"; then
8418 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8419 postinstall_cmds='$RANLIB $lib'
8420 fi
8421 ;;
8422
8423aix4*)
8424 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8425 test "$enable_shared" = yes && enable_static=no
8426 fi
8427 ;;
8428 darwin* | rhapsody*)
8429 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8430 archive_cmds_need_lc=no
8431 case "$host_os" in
8432 rhapsody* | darwin1.[012])
8433 allow_undefined_flag='-undefined suppress'
8434 ;;
8435 *) # Darwin 1.3 on
8436 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8437 ;;
8438 esac
8439 # FIXME: Relying on posixy $() will cause problems for
8440 # cross-compilation, but unfortunately the echo tests do not
8441 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8442 # `"' quotes if we put them in here... so don't!
8443 output_verbose_link_cmd='echo'
8444 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8445 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8447 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}'
8448 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}'
8449 hardcode_direct=no
8450 hardcode_automatic=yes
8451 hardcode_shlibpath_var=unsupported
8452 whole_archive_flag_spec='-all_load $convenience'
8453 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008454 fi
John Criswell7a73b802003-06-30 21:59:07 +00008455 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008456esac
8457echo "$as_me:$LINENO: result: $enable_shared" >&5
8458echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008459
John Criswell47fdd832003-07-14 16:52:07 +00008460echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8461echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8462# Make sure either enable_shared or enable_static is yes.
8463test "$enable_shared" = yes || enable_static=yes
8464echo "$as_me:$LINENO: result: $enable_static" >&5
8465echo "${ECHO_T}$enable_static" >&6
8466
8467# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008468# libtool distribution, otherwise you forgot to ship ltmain.sh
8469# with your package, and you will get complaints that there are
8470# no rules to generate ltmain.sh.
8471if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008472 # See if we are running on zsh, and set the options which allow our commands through
8473 # without removal of \ escapes.
8474 if test -n "${ZSH_VERSION+set}" ; then
8475 setopt NO_GLOB_SUBST
8476 fi
John Criswell7a73b802003-06-30 21:59:07 +00008477 # Now quote all the things that may contain metacharacters while being
8478 # careful not to overquote the AC_SUBSTed values. We take copies of the
8479 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008480 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8483 deplibs_check_method reload_flag reload_cmds need_locks \
8484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8485 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008487 old_postinstall_cmds old_postuninstall_cmds \
8488 compiler \
8489 CC \
8490 LD \
8491 lt_prog_compiler_wl \
8492 lt_prog_compiler_pic \
8493 lt_prog_compiler_static \
8494 lt_prog_compiler_no_builtin_flag \
8495 export_dynamic_flag_spec \
8496 thread_safe_flag_spec \
8497 whole_archive_flag_spec \
8498 enable_shared_with_static_runtimes \
8499 old_archive_cmds \
8500 old_archive_from_new_cmds \
8501 predep_objects \
8502 postdep_objects \
8503 predeps \
8504 postdeps \
8505 compiler_lib_search_path \
8506 archive_cmds \
8507 archive_expsym_cmds \
8508 postinstall_cmds \
8509 postuninstall_cmds \
8510 old_archive_from_expsyms_cmds \
8511 allow_undefined_flag \
8512 no_undefined_flag \
8513 export_symbols_cmds \
8514 hardcode_libdir_flag_spec \
8515 hardcode_libdir_flag_spec_ld \
8516 hardcode_libdir_separator \
8517 hardcode_automatic \
8518 module_cmds \
8519 module_expsym_cmds \
8520 lt_cv_prog_compiler_c_o \
8521 exclude_expsyms \
8522 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008523
8524 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008525 old_archive_cmds | \
8526 old_archive_from_new_cmds | \
8527 archive_cmds | \
8528 archive_expsym_cmds | \
8529 module_cmds | \
8530 module_expsym_cmds | \
8531 old_archive_from_expsyms_cmds | \
8532 export_symbols_cmds | \
8533 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008534 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008535 old_postinstall_cmds | old_postuninstall_cmds | \
8536 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008537 # Double-quote double-evaled strings.
8538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8539 ;;
8540 *)
8541 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8542 ;;
8543 esac
8544 done
8545
John Criswell47fdd832003-07-14 16:52:07 +00008546 case $lt_echo in
8547 *'\$0 --fallback-echo"')
8548 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8549 ;;
8550 esac
8551
8552cfgfile="${ofile}T"
8553 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8554 $rm -f "$cfgfile"
8555 { echo "$as_me:$LINENO: creating $ofile" >&5
8556echo "$as_me: creating $ofile" >&6;}
8557
8558 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008559#! $SHELL
8560
John Criswell47fdd832003-07-14 16:52:07 +00008561# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008562# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8563# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8564#
John Criswell47fdd832003-07-14 16:52:07 +00008565# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8566# Free Software Foundation, Inc.
8567#
8568# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008569# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8570#
8571# This program is free software; you can redistribute it and/or modify
8572# it under the terms of the GNU General Public License as published by
8573# the Free Software Foundation; either version 2 of the License, or
8574# (at your option) any later version.
8575#
8576# This program is distributed in the hope that it will be useful, but
8577# WITHOUT ANY WARRANTY; without even the implied warranty of
8578# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8579# General Public License for more details.
8580#
8581# You should have received a copy of the GNU General Public License
8582# along with this program; if not, write to the Free Software
8583# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8584#
8585# As a special exception to the GNU General Public License, if you
8586# distribute this file as part of a program that contains a
8587# configuration script generated by Autoconf, you may include it under
8588# the same distribution terms that you use for the rest of that program.
8589
John Criswell47fdd832003-07-14 16:52:07 +00008590# A sed program that does not truncate output.
8591SED=$lt_SED
8592
John Criswell7a73b802003-06-30 21:59:07 +00008593# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008594Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008595
8596# The HP-UX ksh and POSIX shell print the target directory to stdout
8597# if CDPATH is set.
8598if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8599
John Criswell47fdd832003-07-14 16:52:07 +00008600# The names of the tagged configurations supported by this script.
8601available_tags=
8602
John Criswell7a73b802003-06-30 21:59:07 +00008603# ### BEGIN LIBTOOL CONFIG
8604
8605# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8606
8607# Shell to use when invoking shell scripts.
8608SHELL=$lt_SHELL
8609
8610# Whether or not to build shared libraries.
8611build_libtool_libs=$enable_shared
8612
8613# Whether or not to build static libraries.
8614build_old_libs=$enable_static
8615
8616# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008617build_libtool_need_lc=$archive_cmds_need_lc
8618
8619# Whether or not to disallow shared libs when runtime libs are static
8620allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008621
8622# Whether or not to optimize for fast installation.
8623fast_install=$enable_fast_install
8624
8625# The host system.
8626host_alias=$host_alias
8627host=$host
8628
8629# An echo program that does not interpret backslashes.
8630echo=$lt_echo
8631
8632# The archiver.
8633AR=$lt_AR
8634AR_FLAGS=$lt_AR_FLAGS
8635
John Criswell47fdd832003-07-14 16:52:07 +00008636# A C compiler.
8637LTCC=$lt_LTCC
8638
8639# A language-specific compiler.
8640CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008641
8642# Is the compiler the GNU C compiler?
8643with_gcc=$GCC
8644
John Criswell47fdd832003-07-14 16:52:07 +00008645# An ERE matcher.
8646EGREP=$lt_EGREP
8647
John Criswell7a73b802003-06-30 21:59:07 +00008648# The linker used to build libraries.
8649LD=$lt_LD
8650
8651# Whether we need hard or soft links.
8652LN_S=$lt_LN_S
8653
8654# A BSD-compatible nm program.
8655NM=$lt_NM
8656
8657# A symbol stripping program
8658STRIP=$STRIP
8659
8660# Used to examine libraries when file_magic_cmd begins "file"
8661MAGIC_CMD=$MAGIC_CMD
8662
8663# Used on cygwin: DLL creation program.
8664DLLTOOL="$DLLTOOL"
8665
8666# Used on cygwin: object dumper.
8667OBJDUMP="$OBJDUMP"
8668
8669# Used on cygwin: assembler.
8670AS="$AS"
8671
8672# The name of the directory that contains temporary libtool files.
8673objdir=$objdir
8674
8675# How to create reloadable object files.
8676reload_flag=$lt_reload_flag
8677reload_cmds=$lt_reload_cmds
8678
8679# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008680wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008681
8682# Object file suffix (normally "o").
8683objext="$ac_objext"
8684
8685# Old archive suffix (normally "a").
8686libext="$libext"
8687
John Criswell47fdd832003-07-14 16:52:07 +00008688# Shared library suffix (normally ".so").
8689shrext='$shrext'
8690
John Criswell7a73b802003-06-30 21:59:07 +00008691# Executable file suffix (normally "").
8692exeext="$exeext"
8693
8694# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008695pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008696pic_mode=$pic_mode
8697
John Criswell47fdd832003-07-14 16:52:07 +00008698# What is the maximum length of a command?
8699max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008700
John Criswell47fdd832003-07-14 16:52:07 +00008701# Does compiler simultaneously support -c and -o options?
8702compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008703
8704# Must we lock files when doing compilation ?
8705need_locks=$lt_need_locks
8706
8707# Do we need the lib prefix for modules?
8708need_lib_prefix=$need_lib_prefix
8709
8710# Do we need a version for libraries?
8711need_version=$need_version
8712
8713# Whether dlopen is supported.
8714dlopen_support=$enable_dlopen
8715
8716# Whether dlopen of programs is supported.
8717dlopen_self=$enable_dlopen_self
8718
8719# Whether dlopen of statically linked programs is supported.
8720dlopen_self_static=$enable_dlopen_self_static
8721
8722# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008723link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008724
8725# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008726no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008727
8728# Compiler flag to allow reflexive dlopens.
8729export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8730
8731# Compiler flag to generate shared objects directly from archives.
8732whole_archive_flag_spec=$lt_whole_archive_flag_spec
8733
8734# Compiler flag to generate thread-safe objects.
8735thread_safe_flag_spec=$lt_thread_safe_flag_spec
8736
8737# Library versioning type.
8738version_type=$version_type
8739
8740# Format of library name prefix.
8741libname_spec=$lt_libname_spec
8742
8743# List of archive names. First name is the real one, the rest are links.
8744# The last name is the one that the linker finds with -lNAME.
8745library_names_spec=$lt_library_names_spec
8746
8747# The coded name of the library, if different from the real name.
8748soname_spec=$lt_soname_spec
8749
8750# Commands used to build and install an old-style archive.
8751RANLIB=$lt_RANLIB
8752old_archive_cmds=$lt_old_archive_cmds
8753old_postinstall_cmds=$lt_old_postinstall_cmds
8754old_postuninstall_cmds=$lt_old_postuninstall_cmds
8755
8756# Create an old-style archive from a shared archive.
8757old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8758
8759# Create a temporary old-style archive to link instead of a shared archive.
8760old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8761
8762# Commands used to build and install a shared archive.
8763archive_cmds=$lt_archive_cmds
8764archive_expsym_cmds=$lt_archive_expsym_cmds
8765postinstall_cmds=$lt_postinstall_cmds
8766postuninstall_cmds=$lt_postuninstall_cmds
8767
John Criswell47fdd832003-07-14 16:52:07 +00008768# Commands used to build a loadable module (assumed same as above if empty)
8769module_cmds=$lt_module_cmds
8770module_expsym_cmds=$lt_module_expsym_cmds
8771
John Criswell7a73b802003-06-30 21:59:07 +00008772# Commands to strip libraries.
8773old_striplib=$lt_old_striplib
8774striplib=$lt_striplib
8775
John Criswell47fdd832003-07-14 16:52:07 +00008776# Dependencies to place before the objects being linked to create a
8777# shared library.
8778predep_objects=$lt_predep_objects
8779
8780# Dependencies to place after the objects being linked to create a
8781# shared library.
8782postdep_objects=$lt_postdep_objects
8783
8784# Dependencies to place before the objects being linked to create a
8785# shared library.
8786predeps=$lt_predeps
8787
8788# Dependencies to place after the objects being linked to create a
8789# shared library.
8790postdeps=$lt_postdeps
8791
8792# The library search path used internally by the compiler when linking
8793# a shared library.
8794compiler_lib_search_path=$lt_compiler_lib_search_path
8795
John Criswell7a73b802003-06-30 21:59:07 +00008796# Method to check whether dependent libraries are shared objects.
8797deplibs_check_method=$lt_deplibs_check_method
8798
8799# Command to use when deplibs_check_method == file_magic.
8800file_magic_cmd=$lt_file_magic_cmd
8801
8802# Flag that allows shared libraries with undefined symbols to be built.
8803allow_undefined_flag=$lt_allow_undefined_flag
8804
8805# Flag that forces no undefined symbols.
8806no_undefined_flag=$lt_no_undefined_flag
8807
8808# Commands used to finish a libtool library installation in a directory.
8809finish_cmds=$lt_finish_cmds
8810
8811# Same as above, but a single script fragment to be evaled but not shown.
8812finish_eval=$lt_finish_eval
8813
8814# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008816
8817# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008819
8820# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008822
8823# This is the shared library runtime path variable.
8824runpath_var=$runpath_var
8825
8826# This is the shared library path variable.
8827shlibpath_var=$shlibpath_var
8828
8829# Is shlibpath searched before the hard-coded library search path?
8830shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8831
8832# How to hardcode a shared library path into an executable.
8833hardcode_action=$hardcode_action
8834
8835# Whether we should hardcode library paths into libraries.
8836hardcode_into_libs=$hardcode_into_libs
8837
8838# Flag to hardcode \$libdir into a binary during linking.
8839# This must work even if \$libdir does not exist.
8840hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8841
John Criswell47fdd832003-07-14 16:52:07 +00008842# If ld is used when linking, flag to hardcode \$libdir into
8843# a binary during linking. This must work even if \$libdir does
8844# not exist.
8845hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8846
John Criswell7a73b802003-06-30 21:59:07 +00008847# Whether we need a single -rpath flag with a separated argument.
8848hardcode_libdir_separator=$lt_hardcode_libdir_separator
8849
John Criswell47fdd832003-07-14 16:52:07 +00008850# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008851# resulting binary.
8852hardcode_direct=$hardcode_direct
8853
8854# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8855# resulting binary.
8856hardcode_minus_L=$hardcode_minus_L
8857
8858# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8859# the resulting binary.
8860hardcode_shlibpath_var=$hardcode_shlibpath_var
8861
John Criswell47fdd832003-07-14 16:52:07 +00008862# Set to yes if building a shared library automatically hardcodes DIR into the library
8863# and all subsequent libraries and executables linked against it.
8864hardcode_automatic=$hardcode_automatic
8865
John Criswell7a73b802003-06-30 21:59:07 +00008866# Variables whose values should be saved in libtool wrapper scripts and
8867# restored at relink time.
8868variables_saved_for_relink="$variables_saved_for_relink"
8869
8870# Whether libtool must link a program against all its dependency libraries.
8871link_all_deplibs=$link_all_deplibs
8872
8873# Compile-time system search path for libraries
8874sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8875
8876# Run-time system search path for libraries
8877sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8878
8879# Fix the shell variable \$srcfile for the compiler.
8880fix_srcfile_path="$fix_srcfile_path"
8881
8882# Set to yes if exported symbols are required.
8883always_export_symbols=$always_export_symbols
8884
8885# The commands to list exported symbols.
8886export_symbols_cmds=$lt_export_symbols_cmds
8887
8888# The commands to extract the exported symbol list from a shared archive.
8889extract_expsyms_cmds=$lt_extract_expsyms_cmds
8890
8891# Symbols that should not be listed in the preloaded symbols.
8892exclude_expsyms=$lt_exclude_expsyms
8893
8894# Symbols that must always be exported.
8895include_expsyms=$lt_include_expsyms
8896
8897# ### END LIBTOOL CONFIG
8898
8899__EOF__
8900
John Criswell47fdd832003-07-14 16:52:07 +00008901
John Criswell7a73b802003-06-30 21:59:07 +00008902 case $host_os in
8903 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008904 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008905
8906# AIX sometimes has problems with the GCC collect2 program. For some
8907# reason, if we set the COLLECT_NAMES environment variable, the problems
8908# vanish in a puff of smoke.
8909if test "X${COLLECT_NAMES+set}" != Xset; then
8910 COLLECT_NAMES=
8911 export COLLECT_NAMES
8912fi
8913EOF
8914 ;;
8915 esac
8916
John Criswell7a73b802003-06-30 21:59:07 +00008917 # We use sed instead of cat because bash on DJGPP gets confused if
8918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8919 # text mode, it properly converts lines to CR/LF. This bash problem
8920 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008921 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008922
John Criswell47fdd832003-07-14 16:52:07 +00008923 mv -f "$cfgfile" "$ofile" || \
8924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008925 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008926
8927else
8928 # If there is no Makefile yet, we rely on a make rule to execute
8929 # `config.status --recheck' to rerun these tests and create the
8930 # libtool script then.
8931 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008932fi
John Criswell7a73b802003-06-30 21:59:07 +00008933
8934
John Criswell47fdd832003-07-14 16:52:07 +00008935ac_ext=c
8936ac_cpp='$CPP $CPPFLAGS'
8937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941CC="$lt_save_CC"
8942
8943
8944# Check whether --with-tags or --without-tags was given.
8945if test "${with_tags+set}" = set; then
8946 withval="$with_tags"
8947 tagnames="$withval"
8948fi;
8949
8950if test -f "$ltmain" && test -n "$tagnames"; then
8951 if test ! -f "${ofile}"; then
8952 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8953echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8954 fi
8955
8956 if test -z "$LTCC"; then
8957 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8958 if test -z "$LTCC"; then
8959 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8960echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8961 else
8962 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8963echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8964 fi
8965 fi
8966
8967 # Extract list of available tagged configurations in $ofile.
8968 # Note that this assumes the entire list is on one line.
8969 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8970
8971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8972 for tagname in $tagnames; do
8973 IFS="$lt_save_ifs"
8974 # Check whether tagname contains only valid characters
8975 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8976 "") ;;
8977 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8978echo "$as_me: error: invalid tag name: $tagname" >&2;}
8979 { (exit 1); exit 1; }; }
8980 ;;
8981 esac
8982
8983 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8984 then
8985 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8986echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8987 { (exit 1); exit 1; }; }
8988 fi
8989
8990 # Update the list of available tags.
8991 if test -n "$tagname"; then
8992 echo appending configuration tag \"$tagname\" to $ofile
8993
8994 case $tagname in
8995 CXX)
8996 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8997 ac_ext=cc
8998ac_cpp='$CXXCPP $CPPFLAGS'
8999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9002
9003
9004
9005
9006archive_cmds_need_lc_CXX=no
9007allow_undefined_flag_CXX=
9008always_export_symbols_CXX=no
9009archive_expsym_cmds_CXX=
9010export_dynamic_flag_spec_CXX=
9011hardcode_direct_CXX=no
9012hardcode_libdir_flag_spec_CXX=
9013hardcode_libdir_flag_spec_ld_CXX=
9014hardcode_libdir_separator_CXX=
9015hardcode_minus_L_CXX=no
9016hardcode_automatic_CXX=no
9017module_cmds_CXX=
9018module_expsym_cmds_CXX=
9019link_all_deplibs_CXX=unknown
9020old_archive_cmds_CXX=$old_archive_cmds
9021no_undefined_flag_CXX=
9022whole_archive_flag_spec_CXX=
9023enable_shared_with_static_runtimes_CXX=no
9024
9025# Dependencies to place before and after the object being linked:
9026predep_objects_CXX=
9027postdep_objects_CXX=
9028predeps_CXX=
9029postdeps_CXX=
9030compiler_lib_search_path_CXX=
9031
9032# Source file extension for C++ test sources.
9033ac_ext=cc
9034
9035# Object file extension for compiled C++ test sources.
9036objext=o
9037objext_CXX=$objext
9038
9039# Code to be used in simple compile tests
9040lt_simple_compile_test_code="int some_variable = 0;\n"
9041
9042# Code to be used in simple link tests
9043lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9044
9045# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9046
9047# If no C compiler was specified, use CC.
9048LTCC=${LTCC-"$CC"}
9049
9050# Allow CC to be a program name with arguments.
9051compiler=$CC
9052
9053
9054# Allow CC to be a program name with arguments.
9055lt_save_CC=$CC
9056lt_save_LD=$LD
9057lt_save_GCC=$GCC
9058GCC=$GXX
9059lt_save_with_gnu_ld=$with_gnu_ld
9060lt_save_path_LD=$lt_cv_path_LD
9061if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9062 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9063else
9064 unset lt_cv_prog_gnu_ld
9065fi
9066if test -n "${lt_cv_path_LDCXX+set}"; then
9067 lt_cv_path_LD=$lt_cv_path_LDCXX
9068else
9069 unset lt_cv_path_LD
9070fi
9071test -z "${LDCXX+set}" || LD=$LDCXX
9072CC=${CXX-"c++"}
9073compiler=$CC
9074compiler_CXX=$CC
9075cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9076
9077# We don't want -fno-exception wen compiling C++ code, so set the
9078# no_builtin_flag separately
9079if test "$GXX" = yes; then
9080 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9081else
9082 lt_prog_compiler_no_builtin_flag_CXX=
9083fi
9084
9085if test "$GXX" = yes; then
9086 # Set up default GNU C++ configuration
9087
9088
9089# Check whether --with-gnu-ld or --without-gnu-ld was given.
9090if test "${with_gnu_ld+set}" = set; then
9091 withval="$with_gnu_ld"
9092 test "$withval" = no || with_gnu_ld=yes
9093else
9094 with_gnu_ld=no
9095fi;
9096ac_prog=ld
9097if test "$GCC" = yes; then
9098 # Check if gcc -print-prog-name=ld gives a path.
9099 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9100echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9101 case $host in
9102 *-*-mingw*)
9103 # gcc leaves a trailing carriage return which upsets mingw
9104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9105 *)
9106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9107 esac
9108 case $ac_prog in
9109 # Accept absolute paths.
9110 [\\/]* | ?:[\\/]*)
9111 re_direlt='/[^/][^/]*/\.\./'
9112 # Canonicalize the path of ld
9113 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9115 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9116 done
9117 test -z "$LD" && LD="$ac_prog"
9118 ;;
9119 "")
9120 # If it fails, then pretend we aren't using GCC.
9121 ac_prog=ld
9122 ;;
9123 *)
9124 # If it is relative, then search for the first ld in PATH.
9125 with_gnu_ld=unknown
9126 ;;
9127 esac
9128elif test "$with_gnu_ld" = yes; then
9129 echo "$as_me:$LINENO: checking for GNU ld" >&5
9130echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9131else
9132 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9133echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9134fi
9135if test "${lt_cv_path_LD+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138 if test -z "$LD"; then
9139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9140 for ac_dir in $PATH; do
9141 IFS="$lt_save_ifs"
9142 test -z "$ac_dir" && ac_dir=.
9143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9144 lt_cv_path_LD="$ac_dir/$ac_prog"
9145 # Check to see if the program is GNU ld. I'd rather use --version,
9146 # but apparently some GNU ld's only accept -v.
9147 # Break only if it was the GNU/non-GNU ld that we prefer.
9148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9149 *GNU* | *'with BFD'*)
9150 test "$with_gnu_ld" != no && break
9151 ;;
9152 *)
9153 test "$with_gnu_ld" != yes && break
9154 ;;
9155 esac
9156 fi
9157 done
9158 IFS="$lt_save_ifs"
9159else
9160 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9161fi
9162fi
9163
9164LD="$lt_cv_path_LD"
9165if test -n "$LD"; then
9166 echo "$as_me:$LINENO: result: $LD" >&5
9167echo "${ECHO_T}$LD" >&6
9168else
9169 echo "$as_me:$LINENO: result: no" >&5
9170echo "${ECHO_T}no" >&6
9171fi
9172test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9173echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9174 { (exit 1); exit 1; }; }
9175echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9176echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9177if test "${lt_cv_prog_gnu_ld+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179else
9180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9181case `"$LD" -v 2>&1 </dev/null` in
9182*GNU* | *'with BFD'*)
9183 lt_cv_prog_gnu_ld=yes
9184 ;;
9185*)
9186 lt_cv_prog_gnu_ld=no
9187 ;;
9188esac
9189fi
9190echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9191echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9192with_gnu_ld=$lt_cv_prog_gnu_ld
9193
9194
9195
9196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9197 # archiving commands below assume that GNU ld is being used.
9198 if test "$with_gnu_ld" = yes; then
9199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 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'
9201
9202 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9204
9205 # If archive_cmds runs LD, not CC, wlarc should be empty
9206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9207 # investigate it a little bit more. (MM)
9208 wlarc='${wl}'
9209
9210 # ancient GNU ld didn't support --whole-archive et. al.
9211 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9212 grep 'no-whole-archive' > /dev/null; then
9213 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9214 else
9215 whole_archive_flag_spec_CXX=
9216 fi
9217 else
9218 with_gnu_ld=no
9219 wlarc=
9220
9221 # A generic and very simple default shared library creation
9222 # command for GNU C++ for the case where it uses the native
9223 # linker, instead of GNU ld. If possible, this setting should
9224 # overridden to take advantage of the native linker features on
9225 # the platform it is being used on.
9226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9227 fi
9228
9229 # Commands to make compiler produce verbose output that lists
9230 # what "hidden" libraries, object files and flags are used when
9231 # linking a shared library.
9232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9233
9234else
9235 GXX=no
9236 with_gnu_ld=no
9237 wlarc=
9238fi
9239
9240# PORTME: fill in a description of your system's C++ link characteristics
9241echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9242echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9243ld_shlibs_CXX=yes
9244case $host_os in
9245 aix3*)
9246 # FIXME: insert proper C++ library support
9247 ld_shlibs_CXX=no
9248 ;;
9249 aix4* | aix5*)
9250 if test "$host_cpu" = ia64; then
9251 # On IA64, the linker does run time linking by default, so we don't
9252 # have to do anything special.
9253 aix_use_runtimelinking=no
9254 exp_sym_flag='-Bexport'
9255 no_entry_flag=""
9256 else
9257 aix_use_runtimelinking=no
9258
9259 # Test if we are trying to use run time linking or normal
9260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9261 # need to do runtime linking.
9262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9263 for ld_flag in $LDFLAGS; do
9264 case $ld_flag in
9265 *-brtl*)
9266 aix_use_runtimelinking=yes
9267 break
9268 ;;
9269 esac
9270 done
9271 esac
9272
9273 exp_sym_flag='-bexport'
9274 no_entry_flag='-bnoentry'
9275 fi
9276
9277 # When large executables or shared objects are built, AIX ld can
9278 # have problems creating the table of contents. If linking a library
9279 # or program results in "error TOC overflow" add -mminimal-toc to
9280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9282
9283 archive_cmds_CXX=''
9284 hardcode_direct_CXX=yes
9285 hardcode_libdir_separator_CXX=':'
9286 link_all_deplibs_CXX=yes
9287
9288 if test "$GXX" = yes; then
9289 case $host_os in aix4.012|aix4.012.*)
9290 # We only want to do this on AIX 4.2 and lower, the check
9291 # below for broken collect2 doesn't work under 4.3+
9292 collect2name=`${CC} -print-prog-name=collect2`
9293 if test -f "$collect2name" && \
9294 strings "$collect2name" | grep resolve_lib_name >/dev/null
9295 then
9296 # We have reworked collect2
9297 hardcode_direct_CXX=yes
9298 else
9299 # We have old collect2
9300 hardcode_direct_CXX=unsupported
9301 # It fails to find uninstalled libraries when the uninstalled
9302 # path is not listed in the libpath. Setting hardcode_minus_L
9303 # to unsupported forces relinking
9304 hardcode_minus_L_CXX=yes
9305 hardcode_libdir_flag_spec_CXX='-L$libdir'
9306 hardcode_libdir_separator_CXX=
9307 fi
9308 esac
9309 shared_flag='-shared'
9310 else
9311 # not using gcc
9312 if test "$host_cpu" = ia64; then
9313 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9314 # chokes on -Wl,-G. The following line is correct:
9315 shared_flag='-G'
9316 else
9317 if test "$aix_use_runtimelinking" = yes; then
9318 shared_flag='${wl}-G'
9319 else
9320 shared_flag='${wl}-bM:SRE'
9321 fi
9322 fi
9323 fi
9324
9325 # It seems that -bexpall does not export symbols beginning with
9326 # underscore (_), so it is better to generate a list of symbols to export.
9327 always_export_symbols_CXX=yes
9328 if test "$aix_use_runtimelinking" = yes; then
9329 # Warning - without using the other runtime loading flags (-brtl),
9330 # -berok will link without error, but may produce a broken library.
9331 allow_undefined_flag_CXX='-berok'
9332 # Determine the default libpath from the value encoded in an empty executable.
9333 cat >conftest.$ac_ext <<_ACEOF
9334#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009335/* confdefs.h. */
9336_ACEOF
9337cat confdefs.h >>conftest.$ac_ext
9338cat >>conftest.$ac_ext <<_ACEOF
9339/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009340
John Criswell47fdd832003-07-14 16:52:07 +00009341int
9342main ()
9343{
9344
9345 ;
9346 return 0;
9347}
9348_ACEOF
9349rm -f conftest.$ac_objext conftest$ac_exeext
9350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361
9362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9363}'`
9364# Check for a 64-bit object if we didn't find anything.
9365if 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; }
9366}'`; fi
9367else
9368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009369sed 's/^/| /' conftest.$ac_ext >&5
9370
John Criswell47fdd832003-07-14 16:52:07 +00009371fi
9372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9374
9375 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9376
9377 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"
9378 else
9379 if test "$host_cpu" = ia64; then
9380 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9381 allow_undefined_flag_CXX="-z nodefs"
9382 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"
9383 else
9384 # Determine the default libpath from the value encoded in an empty executable.
9385 cat >conftest.$ac_ext <<_ACEOF
9386#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009387/* confdefs.h. */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009392
John Criswell47fdd832003-07-14 16:52:07 +00009393int
9394main ()
9395{
9396
9397 ;
9398 return 0;
9399}
9400_ACEOF
9401rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413
9414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9415}'`
9416# Check for a 64-bit object if we didn't find anything.
9417if 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; }
9418}'`; fi
9419else
9420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009421sed 's/^/| /' conftest.$ac_ext >&5
9422
John Criswell47fdd832003-07-14 16:52:07 +00009423fi
9424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9425if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9426
9427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9428 # Warning - without using the other run time loading flags,
9429 # -berok will link without error, but may produce a broken library.
9430 no_undefined_flag_CXX=' ${wl}-bernotok'
9431 allow_undefined_flag_CXX=' ${wl}-berok'
9432 # -bexpall does not export symbols beginning with underscore (_)
9433 always_export_symbols_CXX=yes
9434 # Exported symbols can be pulled into shared objects from archives
9435 whole_archive_flag_spec_CXX=' '
9436 archive_cmds_need_lc_CXX=yes
9437 # This is similar to how AIX traditionally builds it's shared libraries.
9438 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'
9439 fi
9440 fi
9441 ;;
9442 chorus*)
9443 case $cc_basename in
9444 *)
9445 # FIXME: insert proper C++ library support
9446 ld_shlibs_CXX=no
9447 ;;
9448 esac
9449 ;;
9450
9451 cygwin* | mingw* | pw32*)
9452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9453 # as there is no search path for DLLs.
9454 hardcode_libdir_flag_spec_CXX='-L$libdir'
9455 allow_undefined_flag_CXX=unsupported
9456 always_export_symbols_CXX=no
9457 enable_shared_with_static_runtimes_CXX=yes
9458
9459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9460 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'
9461 # If the export-symbols file already is a .def file (1st line
9462 # is EXPORTS), use it as is; otherwise, prepend...
9463 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464 cp $export_symbols $output_objdir/$soname.def;
9465 else
9466 echo EXPORTS > $output_objdir/$soname.def;
9467 cat $export_symbols >> $output_objdir/$soname.def;
9468 fi~
9469 $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'
9470 else
9471 ld_shlibs_CXX=no
9472 fi
9473 ;;
9474
9475 darwin* | rhapsody*)
9476 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9477 archive_cmds_need_lc_CXX=no
9478 case "$host_os" in
9479 rhapsody* | darwin1.[012])
9480 allow_undefined_flag_CXX='-undefined suppress'
9481 ;;
9482 *) # Darwin 1.3 on
9483 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9484 ;;
9485 esac
9486 lt_int_apple_cc_single_mod=no
9487 output_verbose_link_cmd='echo'
9488 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9489 lt_int_apple_cc_single_mod=yes
9490 fi
9491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9492 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9493 else
9494 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'
9495 fi
9496 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9497
9498 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9499 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9500 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}'
9501 else
9502 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}'
9503 fi
9504 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}'
9505 hardcode_direct_CXX=no
9506 hardcode_automatic_CXX=yes
9507 hardcode_shlibpath_var_CXX=unsupported
9508 whole_archive_flag_spec_CXX='-all_load $convenience'
9509 link_all_deplibs_CXX=yes
9510 fi
9511 ;;
9512
9513 dgux*)
9514 case $cc_basename in
9515 ec++)
9516 # FIXME: insert proper C++ library support
9517 ld_shlibs_CXX=no
9518 ;;
9519 ghcx)
9520 # Green Hills C++ Compiler
9521 # FIXME: insert proper C++ library support
9522 ld_shlibs_CXX=no
9523 ;;
9524 *)
9525 # FIXME: insert proper C++ library support
9526 ld_shlibs_CXX=no
9527 ;;
9528 esac
9529 ;;
9530 freebsd12*)
9531 # C++ shared libraries reported to be fairly broken before switch to ELF
9532 ld_shlibs_CXX=no
9533 ;;
9534 freebsd-elf*)
9535 archive_cmds_need_lc_CXX=no
9536 ;;
9537 freebsd*)
9538 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9539 # conventions
9540 ld_shlibs_CXX=yes
9541 ;;
9542 gnu*)
9543 ;;
9544 hpux9*)
9545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9546 hardcode_libdir_separator_CXX=:
9547 export_dynamic_flag_spec_CXX='${wl}-E'
9548 hardcode_direct_CXX=yes
9549 hardcode_minus_L_CXX=yes # Not in the search PATH,
9550 # but as the default
9551 # location of the library.
9552
9553 case $cc_basename in
9554 CC)
9555 # FIXME: insert proper C++ library support
9556 ld_shlibs_CXX=no
9557 ;;
9558 aCC)
9559 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'
9560 # Commands to make compiler produce verbose output that lists
9561 # what "hidden" libraries, object files and flags are used when
9562 # linking a shared library.
9563 #
9564 # There doesn't appear to be a way to prevent this compiler from
9565 # explicitly linking system object files so we need to strip them
9566 # from the output so that they don't get included in the library
9567 # dependencies.
9568 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'
9569 ;;
9570 *)
9571 if test "$GXX" = yes; then
9572 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'
9573 else
9574 # FIXME: insert proper C++ library support
9575 ld_shlibs_CXX=no
9576 fi
9577 ;;
9578 esac
9579 ;;
9580 hpux10*|hpux11*)
9581 if test $with_gnu_ld = no; then
9582 case "$host_cpu" in
9583 hppa*64*)
9584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9585 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9586 hardcode_libdir_separator_CXX=:
9587 ;;
9588 ia64*)
9589 hardcode_libdir_flag_spec_CXX='-L$libdir'
9590 ;;
9591 *)
9592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9593 hardcode_libdir_separator_CXX=:
9594 export_dynamic_flag_spec_CXX='${wl}-E'
9595 ;;
9596 esac
9597 fi
9598 case "$host_cpu" in
9599 hppa*64*)
9600 hardcode_direct_CXX=no
9601 hardcode_shlibpath_var_CXX=no
9602 ;;
9603 ia64*)
9604 hardcode_direct_CXX=no
9605 hardcode_shlibpath_var_CXX=no
9606 hardcode_minus_L_CXX=yes # Not in the search PATH,
9607 # but as the default
9608 # location of the library.
9609 ;;
9610 *)
9611 hardcode_direct_CXX=yes
9612 hardcode_minus_L_CXX=yes # Not in the search PATH,
9613 # but as the default
9614 # location of the library.
9615 ;;
9616 esac
9617
9618 case $cc_basename in
9619 CC)
9620 # FIXME: insert proper C++ library support
9621 ld_shlibs_CXX=no
9622 ;;
9623 aCC)
9624 case "$host_cpu" in
9625 hppa*64*|ia64*)
9626 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9627 ;;
9628 *)
9629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9630 ;;
9631 esac
9632 # Commands to make compiler produce verbose output that lists
9633 # what "hidden" libraries, object files and flags are used when
9634 # linking a shared library.
9635 #
9636 # There doesn't appear to be a way to prevent this compiler from
9637 # explicitly linking system object files so we need to strip them
9638 # from the output so that they don't get included in the library
9639 # dependencies.
9640 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'
9641 ;;
9642 *)
9643 if test "$GXX" = yes; then
9644 if test $with_gnu_ld = no; then
9645 case "$host_cpu" in
9646 ia64*|hppa*64*)
9647 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9648 ;;
9649 *)
9650 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'
9651 ;;
9652 esac
9653 fi
9654 else
9655 # FIXME: insert proper C++ library support
9656 ld_shlibs_CXX=no
9657 fi
9658 ;;
9659 esac
9660 ;;
9661 irix5* | irix6*)
9662 case $cc_basename in
9663 CC)
9664 # SGI C++
9665 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'
9666
9667 # Archives containing C++ object files must be created using
9668 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9669 # necessary to make sure instantiated templates are included
9670 # in the archive.
9671 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9672 ;;
9673 *)
9674 if test "$GXX" = yes; then
9675 if test "$with_gnu_ld" = no; then
9676 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'
9677 else
9678 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'
9679 fi
9680 fi
9681 link_all_deplibs_CXX=yes
9682 ;;
9683 esac
9684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9685 hardcode_libdir_separator_CXX=:
9686 ;;
9687 linux*)
9688 case $cc_basename in
9689 KCC)
9690 # Kuck and Associates, Inc. (KAI) C++ Compiler
9691
9692 # KCC will only create a shared library if the output file
9693 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9694 # to its proper name (with version) after linking.
9695 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'
9696 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'
9697 # Commands to make compiler produce verbose output that lists
9698 # what "hidden" libraries, object files and flags are used when
9699 # linking a shared library.
9700 #
9701 # There doesn't appear to be a way to prevent this compiler from
9702 # explicitly linking system object files so we need to strip them
9703 # from the output so that they don't get included in the library
9704 # dependencies.
9705 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'
9706
9707 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9709
9710 # Archives containing C++ object files must be created using
9711 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9712 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9713 ;;
9714 icpc)
9715 # Intel C++
9716 with_gnu_ld=yes
9717 archive_cmds_need_lc_CXX=no
9718 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719 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'
9720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9723 ;;
9724 cxx)
9725 # Compaq C++
9726 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 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'
9728
9729 runpath_var=LD_RUN_PATH
9730 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9731 hardcode_libdir_separator_CXX=:
9732
9733 # Commands to make compiler produce verbose output that lists
9734 # what "hidden" libraries, object files and flags are used when
9735 # linking a shared library.
9736 #
9737 # There doesn't appear to be a way to prevent this compiler from
9738 # explicitly linking system object files so we need to strip them
9739 # from the output so that they don't get included in the library
9740 # dependencies.
9741 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'
9742 ;;
9743 esac
9744 ;;
9745 lynxos*)
9746 # FIXME: insert proper C++ library support
9747 ld_shlibs_CXX=no
9748 ;;
9749 m88k*)
9750 # FIXME: insert proper C++ library support
9751 ld_shlibs_CXX=no
9752 ;;
9753 mvs*)
9754 case $cc_basename in
9755 cxx)
9756 # FIXME: insert proper C++ library support
9757 ld_shlibs_CXX=no
9758 ;;
9759 *)
9760 # FIXME: insert proper C++ library support
9761 ld_shlibs_CXX=no
9762 ;;
9763 esac
9764 ;;
9765 netbsd*)
9766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9767 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9768 wlarc=
9769 hardcode_libdir_flag_spec_CXX='-R$libdir'
9770 hardcode_direct_CXX=yes
9771 hardcode_shlibpath_var_CXX=no
9772 fi
9773 # Workaround some broken pre-1.5 toolchains
9774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9775 ;;
9776 osf3*)
9777 case $cc_basename in
9778 KCC)
9779 # Kuck and Associates, Inc. (KAI) C++ Compiler
9780
9781 # KCC will only create a shared library if the output file
9782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9783 # to its proper name (with version) after linking.
9784 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'
9785
9786 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9787 hardcode_libdir_separator_CXX=:
9788
9789 # Archives containing C++ object files must be created using
9790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9792
9793 ;;
9794 RCC)
9795 # Rational C++ 2.4.1
9796 # FIXME: insert proper C++ library support
9797 ld_shlibs_CXX=no
9798 ;;
9799 cxx)
9800 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9801 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'
9802
9803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9804 hardcode_libdir_separator_CXX=:
9805
9806 # Commands to make compiler produce verbose output that lists
9807 # what "hidden" libraries, object files and flags are used when
9808 # linking a shared library.
9809 #
9810 # There doesn't appear to be a way to prevent this compiler from
9811 # explicitly linking system object files so we need to strip them
9812 # from the output so that they don't get included in the library
9813 # dependencies.
9814 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'
9815 ;;
9816 *)
9817 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9818 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9819 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'
9820
9821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9822 hardcode_libdir_separator_CXX=:
9823
9824 # Commands to make compiler produce verbose output that lists
9825 # what "hidden" libraries, object files and flags are used when
9826 # linking a shared library.
9827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9828
9829 else
9830 # FIXME: insert proper C++ library support
9831 ld_shlibs_CXX=no
9832 fi
9833 ;;
9834 esac
9835 ;;
9836 osf4* | osf5*)
9837 case $cc_basename in
9838 KCC)
9839 # Kuck and Associates, Inc. (KAI) C++ Compiler
9840
9841 # KCC will only create a shared library if the output file
9842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9843 # to its proper name (with version) after linking.
9844 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'
9845
9846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9847 hardcode_libdir_separator_CXX=:
9848
9849 # Archives containing C++ object files must be created using
9850 # the KAI C++ compiler.
9851 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9852 ;;
9853 RCC)
9854 # Rational C++ 2.4.1
9855 # FIXME: insert proper C++ library support
9856 ld_shlibs_CXX=no
9857 ;;
9858 cxx)
9859 allow_undefined_flag_CXX=' -expect_unresolved \*'
9860 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'
9861 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9862 echo "-hidden">> $lib.exp~
9863 $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~
9864 $rm $lib.exp'
9865
9866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9867 hardcode_libdir_separator_CXX=:
9868
9869 # Commands to make compiler produce verbose output that lists
9870 # what "hidden" libraries, object files and flags are used when
9871 # linking a shared library.
9872 #
9873 # There doesn't appear to be a way to prevent this compiler from
9874 # explicitly linking system object files so we need to strip them
9875 # from the output so that they don't get included in the library
9876 # dependencies.
9877 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'
9878 ;;
9879 *)
9880 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9881 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9882 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'
9883
9884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9885 hardcode_libdir_separator_CXX=:
9886
9887 # Commands to make compiler produce verbose output that lists
9888 # what "hidden" libraries, object files and flags are used when
9889 # linking a shared library.
9890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9891
9892 else
9893 # FIXME: insert proper C++ library support
9894 ld_shlibs_CXX=no
9895 fi
9896 ;;
9897 esac
9898 ;;
9899 psos*)
9900 # FIXME: insert proper C++ library support
9901 ld_shlibs_CXX=no
9902 ;;
9903 sco*)
9904 archive_cmds_need_lc_CXX=no
9905 case $cc_basename in
9906 CC)
9907 # FIXME: insert proper C++ library support
9908 ld_shlibs_CXX=no
9909 ;;
9910 *)
9911 # FIXME: insert proper C++ library support
9912 ld_shlibs_CXX=no
9913 ;;
9914 esac
9915 ;;
9916 sunos4*)
9917 case $cc_basename in
9918 CC)
9919 # Sun C++ 4.x
9920 # FIXME: insert proper C++ library support
9921 ld_shlibs_CXX=no
9922 ;;
9923 lcc)
9924 # Lucid
9925 # FIXME: insert proper C++ library support
9926 ld_shlibs_CXX=no
9927 ;;
9928 *)
9929 # FIXME: insert proper C++ library support
9930 ld_shlibs_CXX=no
9931 ;;
9932 esac
9933 ;;
9934 solaris*)
9935 case $cc_basename in
9936 CC)
9937 # Sun C++ 4.2, 5.x and Centerline C++
9938 no_undefined_flag_CXX=' -zdefs'
9939 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9940 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9941 $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'
9942
9943 hardcode_libdir_flag_spec_CXX='-R$libdir'
9944 hardcode_shlibpath_var_CXX=no
9945 case $host_os in
9946 solaris2.0-5 | solaris2.0-5.*) ;;
9947 *)
9948 # The C++ compiler is used as linker so we must use $wl
9949 # flag to pass the commands to the underlying system
9950 # linker.
9951 # Supported since Solaris 2.6 (maybe 2.5.1?)
9952 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9953 ;;
9954 esac
9955 link_all_deplibs_CXX=yes
9956
9957 # Commands to make compiler produce verbose output that lists
9958 # what "hidden" libraries, object files and flags are used when
9959 # linking a shared library.
9960 #
9961 # There doesn't appear to be a way to prevent this compiler from
9962 # explicitly linking system object files so we need to strip them
9963 # from the output so that they don't get included in the library
9964 # dependencies.
9965 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'
9966
9967 # Archives containing C++ object files must be created using
9968 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9969 # necessary to make sure instantiated templates are included
9970 # in the archive.
9971 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9972 ;;
9973 gcx)
9974 # Green Hills C++ Compiler
9975 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9976
9977 # The C++ compiler must be used to create the archive.
9978 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9979 ;;
9980 *)
9981 # GNU C++ compiler with Solaris linker
9982 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9983 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9984 if $CC --version | grep -v '^2\.7' > /dev/null; then
9985 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9986 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9987 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9988
9989 # Commands to make compiler produce verbose output that lists
9990 # what "hidden" libraries, object files and flags are used when
9991 # linking a shared library.
9992 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9993 else
9994 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9995 # platform.
9996 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9997 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9998 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9999
10000 # Commands to make compiler produce verbose output that lists
10001 # what "hidden" libraries, object files and flags are used when
10002 # linking a shared library.
10003 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10004 fi
10005
10006 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10007 fi
10008 ;;
10009 esac
10010 ;;
10011 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10012 archive_cmds_need_lc_CXX=no
10013 ;;
10014 tandem*)
10015 case $cc_basename in
10016 NCC)
10017 # NonStop-UX NCC 3.20
10018 # FIXME: insert proper C++ library support
10019 ld_shlibs_CXX=no
10020 ;;
10021 *)
10022 # FIXME: insert proper C++ library support
10023 ld_shlibs_CXX=no
10024 ;;
10025 esac
10026 ;;
10027 vxworks*)
10028 # FIXME: insert proper C++ library support
10029 ld_shlibs_CXX=no
10030 ;;
10031 *)
10032 # FIXME: insert proper C++ library support
10033 ld_shlibs_CXX=no
10034 ;;
10035esac
10036echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10037echo "${ECHO_T}$ld_shlibs_CXX" >&6
10038test "$ld_shlibs_CXX" = no && can_build_shared=no
10039
10040GCC_CXX="$GXX"
10041LD_CXX="$LD"
10042
John Criswell47fdd832003-07-14 16:52:07 +000010043
10044cat > conftest.$ac_ext <<EOF
10045class Foo
10046{
10047public:
10048 Foo (void) { a = 0; }
10049private:
10050 int a;
10051};
10052EOF
10053
10054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; then
10059 # Parse the compiler output and extract the necessary
10060 # objects, libraries and library flags.
10061
10062 # Sentinel used to keep track of whether or not we are before
10063 # the conftest object file.
10064 pre_test_object_deps_done=no
10065
10066 # The `*' in the case matches for architectures that use `case' in
10067 # $output_verbose_cmd can trigger glob expansion during the loop
10068 # eval without this substitution.
10069 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10070
10071 for p in `eval $output_verbose_link_cmd`; do
10072 case $p in
10073
10074 -L* | -R* | -l*)
10075 # Some compilers place space between "-{L,R}" and the path.
10076 # Remove the space.
10077 if test $p = "-L" \
10078 || test $p = "-R"; then
10079 prev=$p
10080 continue
10081 else
10082 prev=
10083 fi
10084
10085 if test "$pre_test_object_deps_done" = no; then
10086 case $p in
10087 -L* | -R*)
10088 # Internal compiler library paths should come after those
10089 # provided the user. The postdeps already come after the
10090 # user supplied libs so there is no need to process them.
10091 if test -z "$compiler_lib_search_path_CXX"; then
10092 compiler_lib_search_path_CXX="${prev}${p}"
10093 else
10094 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10095 fi
10096 ;;
10097 # The "-l" case would never come before the object being
10098 # linked, so don't bother handling this case.
10099 esac
10100 else
10101 if test -z "$postdeps_CXX"; then
10102 postdeps_CXX="${prev}${p}"
10103 else
10104 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10105 fi
10106 fi
10107 ;;
10108
10109 *.$objext)
10110 # This assumes that the test object file only shows up
10111 # once in the compiler output.
10112 if test "$p" = "conftest.$objext"; then
10113 pre_test_object_deps_done=yes
10114 continue
10115 fi
10116
10117 if test "$pre_test_object_deps_done" = no; then
10118 if test -z "$predep_objects_CXX"; then
10119 predep_objects_CXX="$p"
10120 else
10121 predep_objects_CXX="$predep_objects_CXX $p"
10122 fi
10123 else
10124 if test -z "$postdep_objects_CXX"; then
10125 postdep_objects_CXX="$p"
10126 else
10127 postdep_objects_CXX="$postdep_objects_CXX $p"
10128 fi
10129 fi
10130 ;;
10131
10132 *) ;; # Ignore the rest.
10133
10134 esac
10135 done
10136
10137 # Clean up.
10138 rm -f a.out a.exe
10139else
10140 echo "libtool.m4: error: problem compiling CXX test program"
10141fi
10142
10143$rm -f confest.$objext
10144
10145case " $postdeps_CXX " in
10146*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10147esac
10148
10149lt_prog_compiler_wl_CXX=
10150lt_prog_compiler_pic_CXX=
10151lt_prog_compiler_static_CXX=
10152
10153echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10154echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10155
10156 # C++ specific cases for pic, static, wl, etc.
10157 if test "$GXX" = yes; then
10158 lt_prog_compiler_wl_CXX='-Wl,'
10159 lt_prog_compiler_static_CXX='-static'
10160
10161 case $host_os in
10162 aix*)
10163 # All AIX code is PIC.
10164 if test "$host_cpu" = ia64; then
10165 # AIX 5 now supports IA64 processor
10166 lt_prog_compiler_static_CXX='-Bstatic'
10167 fi
10168 ;;
10169 amigaos*)
10170 # FIXME: we need at least 68020 code to build shared libraries, but
10171 # adding the `-m68020' flag to GCC prevents building anything better,
10172 # like `-m68040'.
10173 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10174 ;;
10175 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10176 # PIC is the default for these OSes.
10177 ;;
10178 mingw* | os2* | pw32*)
10179 # This hack is so that the source file can tell whether it is being
10180 # built for inclusion in a dll (and should export symbols for example).
10181 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10182 ;;
10183 darwin* | rhapsody*)
10184 # PIC is the default on this platform
10185 # Common symbols not allowed in MH_DYLIB files
10186 lt_prog_compiler_pic_CXX='-fno-common'
10187 ;;
10188 *djgpp*)
10189 # DJGPP does not support shared libraries at all
10190 lt_prog_compiler_pic_CXX=
10191 ;;
10192 sysv4*MP*)
10193 if test -d /usr/nec; then
10194 lt_prog_compiler_pic_CXX=-Kconform_pic
10195 fi
10196 ;;
10197 hpux*)
10198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10199 # not for PA HP-UX.
10200 case "$host_cpu" in
10201 hppa*64*|ia64*)
10202 ;;
10203 *)
10204 lt_prog_compiler_pic_CXX='-fPIC'
10205 ;;
10206 esac
10207 ;;
10208 *)
10209 lt_prog_compiler_pic_CXX='-fPIC'
10210 ;;
10211 esac
10212 else
10213 case $host_os in
10214 aix4* | aix5*)
10215 # All AIX code is PIC.
10216 if test "$host_cpu" = ia64; then
10217 # AIX 5 now supports IA64 processor
10218 lt_prog_compiler_static_CXX='-Bstatic'
10219 else
10220 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10221 fi
10222 ;;
10223 chorus*)
10224 case $cc_basename in
10225 cxch68)
10226 # Green Hills C++ Compiler
10227 # _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"
10228 ;;
10229 esac
10230 ;;
10231 dgux*)
10232 case $cc_basename in
10233 ec++)
10234 lt_prog_compiler_pic_CXX='-KPIC'
10235 ;;
10236 ghcx)
10237 # Green Hills C++ Compiler
10238 lt_prog_compiler_pic_CXX='-pic'
10239 ;;
10240 *)
10241 ;;
10242 esac
10243 ;;
10244 freebsd*)
10245 # FreeBSD uses GNU C++
10246 ;;
10247 hpux9* | hpux10* | hpux11*)
10248 case $cc_basename in
10249 CC)
10250 lt_prog_compiler_wl_CXX='-Wl,'
10251 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10252 if test "$host_cpu" != ia64; then
10253 lt_prog_compiler_pic_CXX='+Z'
10254 fi
10255 ;;
10256 aCC)
10257 lt_prog_compiler_wl_CXX='-Wl,'
10258 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10259 case "$host_cpu" in
10260 hppa*64*|ia64*)
10261 # +Z the default
10262 ;;
10263 *)
10264 lt_prog_compiler_pic_CXX='+Z'
10265 ;;
10266 esac
10267 ;;
10268 *)
10269 ;;
10270 esac
10271 ;;
10272 irix5* | irix6* | nonstopux*)
10273 case $cc_basename in
10274 CC)
10275 lt_prog_compiler_wl_CXX='-Wl,'
10276 lt_prog_compiler_static_CXX='-non_shared'
10277 # CC pic flag -KPIC is the default.
10278 ;;
10279 *)
10280 ;;
10281 esac
10282 ;;
10283 linux*)
10284 case $cc_basename in
10285 KCC)
10286 # KAI C++ Compiler
10287 lt_prog_compiler_wl_CXX='--backend -Wl,'
10288 lt_prog_compiler_pic_CXX='-fPIC'
10289 ;;
10290 icpc)
10291 # Intel C++
10292 lt_prog_compiler_wl_CXX='-Wl,'
10293 lt_prog_compiler_pic_CXX='-KPIC'
10294 lt_prog_compiler_static_CXX='-static'
10295 ;;
10296 cxx)
10297 # Compaq C++
10298 # Make sure the PIC flag is empty. It appears that all Alpha
10299 # Linux and Compaq Tru64 Unix objects are PIC.
10300 lt_prog_compiler_pic_CXX=
10301 lt_prog_compiler_static_CXX='-non_shared'
10302 ;;
10303 *)
10304 ;;
10305 esac
10306 ;;
10307 lynxos*)
10308 ;;
10309 m88k*)
10310 ;;
10311 mvs*)
10312 case $cc_basename in
10313 cxx)
10314 lt_prog_compiler_pic_CXX='-W c,exportall'
10315 ;;
10316 *)
10317 ;;
10318 esac
10319 ;;
10320 netbsd*)
10321 ;;
10322 osf3* | osf4* | osf5*)
10323 case $cc_basename in
10324 KCC)
10325 lt_prog_compiler_wl_CXX='--backend -Wl,'
10326 ;;
10327 RCC)
10328 # Rational C++ 2.4.1
10329 lt_prog_compiler_pic_CXX='-pic'
10330 ;;
10331 cxx)
10332 # Digital/Compaq C++
10333 lt_prog_compiler_wl_CXX='-Wl,'
10334 # Make sure the PIC flag is empty. It appears that all Alpha
10335 # Linux and Compaq Tru64 Unix objects are PIC.
10336 lt_prog_compiler_pic_CXX=
10337 lt_prog_compiler_static_CXX='-non_shared'
10338 ;;
10339 *)
10340 ;;
10341 esac
10342 ;;
10343 psos*)
10344 ;;
10345 sco*)
10346 case $cc_basename in
10347 CC)
10348 lt_prog_compiler_pic_CXX='-fPIC'
10349 ;;
10350 *)
10351 ;;
10352 esac
10353 ;;
10354 solaris*)
10355 case $cc_basename in
10356 CC)
10357 # Sun C++ 4.2, 5.x and Centerline C++
10358 lt_prog_compiler_pic_CXX='-KPIC'
10359 lt_prog_compiler_static_CXX='-Bstatic'
10360 lt_prog_compiler_wl_CXX='-Qoption ld '
10361 ;;
10362 gcx)
10363 # Green Hills C++ Compiler
10364 lt_prog_compiler_pic_CXX='-PIC'
10365 ;;
10366 *)
10367 ;;
10368 esac
10369 ;;
10370 sunos4*)
10371 case $cc_basename in
10372 CC)
10373 # Sun C++ 4.x
10374 lt_prog_compiler_pic_CXX='-pic'
10375 lt_prog_compiler_static_CXX='-Bstatic'
10376 ;;
10377 lcc)
10378 # Lucid
10379 lt_prog_compiler_pic_CXX='-pic'
10380 ;;
10381 *)
10382 ;;
10383 esac
10384 ;;
10385 tandem*)
10386 case $cc_basename in
10387 NCC)
10388 # NonStop-UX NCC 3.20
10389 lt_prog_compiler_pic_CXX='-KPIC'
10390 ;;
10391 *)
10392 ;;
10393 esac
10394 ;;
10395 unixware*)
10396 ;;
10397 vxworks*)
10398 ;;
10399 *)
10400 lt_prog_compiler_can_build_shared_CXX=no
10401 ;;
10402 esac
10403 fi
10404
10405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10406echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10407
10408#
10409# Check to make sure the PIC flag actually works.
10410#
10411if test -n "$lt_prog_compiler_pic_CXX"; then
10412 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10413echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10414if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416else
10417 lt_prog_compiler_pic_works_CXX=no
10418 ac_outfile=conftest.$ac_objext
10419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10421 # Insert the option either (1) after the last *FLAGS variable, or
10422 # (2) before a word containing "conftest.", or (3) at the end.
10423 # Note that $ac_compile itself does not contain backslashes and begins
10424 # with a dollar sign (not a hyphen), so the echo should work correctly.
10425 # The option is referenced via a variable to avoid confusing sed.
10426 lt_compile=`echo "$ac_compile" | $SED \
10427 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +000010430 (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010431 (eval "$lt_compile" 2>conftest.err)
10432 ac_status=$?
10433 cat conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +000010434 echo "$as_me:10434: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010435 if (exit $ac_status) && test -s "$ac_outfile"; then
10436 # The compiler can only warn and ignore the option if not recognized
10437 # So say no if there are warnings
10438 if test ! -s conftest.err; then
10439 lt_prog_compiler_pic_works_CXX=yes
10440 fi
10441 fi
10442 $rm conftest*
10443
10444fi
10445echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10446echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10447
10448if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10449 case $lt_prog_compiler_pic_CXX in
10450 "" | " "*) ;;
10451 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10452 esac
10453else
10454 lt_prog_compiler_pic_CXX=
10455 lt_prog_compiler_can_build_shared_CXX=no
10456fi
10457
10458fi
10459case "$host_os" in
10460 # For platforms which do not support PIC, -DPIC is meaningless:
10461 *djgpp*)
10462 lt_prog_compiler_pic_CXX=
10463 ;;
10464 *)
10465 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10466 ;;
10467esac
10468
10469echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10470echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10471if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 lt_cv_prog_compiler_c_o_CXX=no
10475 $rm -r conftest 2>/dev/null
10476 mkdir conftest
10477 cd conftest
10478 mkdir out
10479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10482 # that will create temporary files in the current directory regardless of
10483 # the output directory. Thus, making CWD read-only will cause this test
10484 # to fail, enabling locking or at least warning the user not to do parallel
10485 # builds.
10486 chmod -w .
10487
10488 lt_compiler_flag="-o out/conftest2.$ac_objext"
10489 # Insert the option either (1) after the last *FLAGS variable, or
10490 # (2) before a word containing "conftest.", or (3) at the end.
10491 # Note that $ac_compile itself does not contain backslashes and begins
10492 # with a dollar sign (not a hyphen), so the echo should work correctly.
10493 lt_compile=`echo "$ac_compile" | $SED \
10494 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10496 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +000010497 (eval echo "\"\$as_me:10497: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010498 (eval "$lt_compile" 2>out/conftest.err)
10499 ac_status=$?
10500 cat out/conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +000010501 echo "$as_me:10501: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10503 then
10504 # The compiler can only warn and ignore the option if not recognized
10505 # So say no if there are warnings
10506 if test ! -s out/conftest.err; then
10507 lt_cv_prog_compiler_c_o_CXX=yes
10508 fi
10509 fi
10510 chmod u+w .
10511 $rm conftest* out/*
10512 rmdir out
10513 cd ..
10514 rmdir conftest
10515 $rm conftest*
10516
10517fi
10518echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10519echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10520
10521
10522hard_links="nottested"
10523if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10524 # do not overwrite the value of need_locks provided by the user
10525 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10526echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10527 hard_links=yes
10528 $rm conftest*
10529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10530 touch conftest.a
10531 ln conftest.a conftest.b 2>&5 || hard_links=no
10532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10533 echo "$as_me:$LINENO: result: $hard_links" >&5
10534echo "${ECHO_T}$hard_links" >&6
10535 if test "$hard_links" = no; then
10536 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10537echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10538 need_locks=warn
10539 fi
10540else
10541 need_locks=no
10542fi
10543
10544echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10545echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10546
10547 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10548 case $host_os in
10549 aix4* | aix5*)
10550 # If we're using GNU nm, then we don't want the "-C" option.
10551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10552 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10553 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'
10554 else
10555 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'
10556 fi
10557 ;;
10558 pw32*)
10559 export_symbols_cmds_CXX="$ltdll_cmds"
10560 ;;
10561 cygwin* | mingw*)
10562 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10563 ;;
10564 *)
10565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10566 ;;
10567 esac
10568
10569echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10570echo "${ECHO_T}$ld_shlibs_CXX" >&6
10571test "$ld_shlibs_CXX" = no && can_build_shared=no
10572
10573variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10574if test "$GCC" = yes; then
10575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10576fi
10577
10578#
10579# Do we need to explicitly link libc?
10580#
10581case "x$archive_cmds_need_lc_CXX" in
10582x|xyes)
10583 # Assume -lc should be added
10584 archive_cmds_need_lc_CXX=yes
10585
10586 if test "$enable_shared" = yes && test "$GCC" = yes; then
10587 case $archive_cmds_CXX in
10588 *'~'*)
10589 # FIXME: we may have to deal with multi-command sequences.
10590 ;;
10591 '$CC '*)
10592 # Test whether the compiler implicitly links with -lc since on some
10593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10594 # to ld, don't add -lc before -lgcc.
10595 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10597 $rm conftest*
10598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10599
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } 2>conftest.err; then
10605 soname=conftest
10606 lib=conftest
10607 libobjs=conftest.$ac_objext
10608 deplibs=
10609 wl=$lt_prog_compiler_wl_CXX
10610 compiler_flags=-v
10611 linker_flags=-v
10612 verstring=
10613 output_objdir=.
10614 libname=conftest
10615 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10616 allow_undefined_flag_CXX=
10617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10618 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }
10622 then
10623 archive_cmds_need_lc_CXX=no
10624 else
10625 archive_cmds_need_lc_CXX=yes
10626 fi
10627 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10628 else
10629 cat conftest.err 1>&5
10630 fi
10631 $rm conftest*
10632 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10633echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10634 ;;
10635 esac
10636 fi
10637 ;;
10638esac
10639
10640echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10641echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10642hardcode_action_CXX=
10643if test -n "$hardcode_libdir_flag_spec_CXX" || \
10644 test -n "$runpath_var CXX" || \
10645 test "X$hardcode_automatic_CXX"="Xyes" ; then
10646
10647 # We can hardcode non-existant directories.
10648 if test "$hardcode_direct_CXX" != no &&
10649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650 # have to relink, otherwise we might link with an installed library
10651 # when we should be linking with a yet-to-be-installed one
10652 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10653 test "$hardcode_minus_L_CXX" != no; then
10654 # Linking always hardcodes the temporary library directory.
10655 hardcode_action_CXX=relink
10656 else
10657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658 hardcode_action_CXX=immediate
10659 fi
10660else
10661 # We cannot hardcode anything, or else we can only hardcode existing
10662 # directories.
10663 hardcode_action_CXX=unsupported
10664fi
10665echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10666echo "${ECHO_T}$hardcode_action_CXX" >&6
10667
10668if test "$hardcode_action_CXX" = relink; then
10669 # Fast installation is not supported
10670 enable_fast_install=no
10671elif test "$shlibpath_overrides_runpath" = yes ||
10672 test "$enable_shared" = no; then
10673 # Fast installation is not necessary
10674 enable_fast_install=needless
10675fi
10676
10677striplib=
10678old_striplib=
10679echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10680echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10681if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10682 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10683 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10684 echo "$as_me:$LINENO: result: yes" >&5
10685echo "${ECHO_T}yes" >&6
10686else
10687# FIXME - insert some real tests, host_os isn't really good enough
10688 case $host_os in
10689 darwin*)
10690 if test -n "$STRIP" ; then
10691 striplib="$STRIP -x"
10692 echo "$as_me:$LINENO: result: yes" >&5
10693echo "${ECHO_T}yes" >&6
10694 else
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
10697fi
10698 ;;
10699 *)
10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
10702 ;;
10703 esac
10704fi
10705
10706echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10707echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10708library_names_spec=
10709libname_spec='lib$name'
10710soname_spec=
10711shrext=".so"
10712postinstall_cmds=
10713postuninstall_cmds=
10714finish_cmds=
10715finish_eval=
10716shlibpath_var=
10717shlibpath_overrides_runpath=unknown
10718version_type=none
10719dynamic_linker="$host_os ld.so"
10720sys_lib_dlsearch_path_spec="/lib /usr/lib"
10721if test "$GCC" = yes; then
10722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10724 # if the path contains ";" then we assume it to be the separator
10725 # otherwise default to the standard path separator (i.e. ":") - it is
10726 # assumed that no part of a normal pathname contains ";" but that should
10727 # okay in the real world where ";" in dirpaths is itself problematic.
10728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10729 else
10730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10731 fi
10732else
10733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10734fi
10735need_lib_prefix=unknown
10736hardcode_into_libs=no
10737
10738# when you set need_version to no, make sure it does not cause -set_version
10739# flags to be left without arguments
10740need_version=unknown
10741
10742case $host_os in
10743aix3*)
10744 version_type=linux
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746 shlibpath_var=LIBPATH
10747
10748 # AIX 3 has no versioning support, so we append a major version to the name.
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 ;;
10751
10752aix4* | aix5*)
10753 version_type=linux
10754 need_lib_prefix=no
10755 need_version=no
10756 hardcode_into_libs=yes
10757 if test "$host_cpu" = ia64; then
10758 # AIX 5 supports IA64
10759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 else
10762 # With GCC up to 2.95.x, collect2 would create an import file
10763 # for dependence libraries. The import file would start with
10764 # the line `#! .'. This would cause the generated library to
10765 # depend on `.', always an invalid library. This was fixed in
10766 # development snapshots of GCC prior to 3.0.
10767 case $host_os in
10768 aix4 | aix4.[01] | aix4.[01].*)
10769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10770 echo ' yes '
10771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10772 :
10773 else
10774 can_build_shared=no
10775 fi
10776 ;;
10777 esac
10778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779 # soname into executable. Probably we can add versioning support to
10780 # collect2, so additional links can be useful in future.
10781 if test "$aix_use_runtimelinking" = yes; then
10782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783 # instead of lib<name>.a to let people know that these are not
10784 # typical AIX shared libraries.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 else
10787 # We preserve .a as extension for shared libraries through AIX4.2
10788 # and later when we are not doing run time linking.
10789 library_names_spec='${libname}${release}.a $libname.a'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 fi
10792 shlibpath_var=LIBPATH
10793 fi
10794 ;;
10795
10796amigaos*)
10797 library_names_spec='$libname.ixlibrary $libname.a'
10798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799 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'
10800 ;;
10801
10802beos*)
10803 library_names_spec='${libname}${shared_ext}'
10804 dynamic_linker="$host_os ld.so"
10805 shlibpath_var=LIBRARY_PATH
10806 ;;
10807
10808bsdi4*)
10809 version_type=linux
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10817 # the default ld.so.conf also contains /usr/contrib/lib and
10818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10819 # libtool to hard-code these into programs
10820 ;;
10821
10822cygwin* | mingw* | pw32*)
10823 version_type=windows
10824 shrext=".dll"
10825 need_version=no
10826 need_lib_prefix=no
10827
10828 case $GCC,$host_os in
10829 yes,cygwin* | yes,mingw* | yes,pw32*)
10830 library_names_spec='$libname.dll.a'
10831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832 postinstall_cmds='base_file=`basename \${file}`~
10833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10834 dldir=$destdir/`dirname \$dlpath`~
10835 test -d \$dldir || mkdir -p \$dldir~
10836 $install_prog $dir/$dlname \$dldir/$dlname'
10837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10838 dlpath=$dir/\$dldll~
10839 $rm \$dlpath'
10840 shlibpath_overrides_runpath=yes
10841
10842 case $host_os in
10843 cygwin*)
10844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10846 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10847 ;;
10848 mingw*)
10849 # MinGW DLLs use traditional 'lib' prefix
10850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10853 # It is most probably a Windows format PATH printed by
10854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10855 # path with ; separators, and with drive letters. We can handle the
10856 # drive letters (cygwin fileutils understands them), so leave them,
10857 # especially as we might pass files found there to a mingw objdump,
10858 # which wouldn't understand a cygwinified path. Ahh.
10859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10860 else
10861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10862 fi
10863 ;;
10864 pw32*)
10865 # pw32 DLLs use 'pw' prefix rather than 'lib'
10866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10867 ;;
10868 esac
10869 ;;
10870
10871 *)
10872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10873 ;;
10874 esac
10875 dynamic_linker='Win32 ld.exe'
10876 # FIXME: first we should search . and the directory the executable is in
10877 shlibpath_var=PATH
10878 ;;
10879
10880darwin* | rhapsody*)
10881 dynamic_linker="$host_os dyld"
10882 version_type=darwin
10883 need_lib_prefix=no
10884 need_version=no
10885 # FIXME: Relying on posixy $() will cause problems for
10886 # cross-compilation, but unfortunately the echo tests do not
10887 # yet detect zsh echo's removal of \ escapes.
10888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10889 soname_spec='${libname}${release}${major}$shared_ext'
10890 shlibpath_overrides_runpath=yes
10891 shlibpath_var=DYLD_LIBRARY_PATH
10892 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10894 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10895 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"`
10896 fi
10897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10898 ;;
10899
10900dgux*)
10901 version_type=linux
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 ;;
10908
10909freebsd1*)
10910 dynamic_linker=no
10911 ;;
10912
10913freebsd*)
10914 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10915 version_type=freebsd-$objformat
10916 case $version_type in
10917 freebsd-elf*)
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 need_version=no
10920 need_lib_prefix=no
10921 ;;
10922 freebsd-*)
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10924 need_version=yes
10925 ;;
10926 esac
10927 shlibpath_var=LD_LIBRARY_PATH
10928 case $host_os in
10929 freebsd2*)
10930 shlibpath_overrides_runpath=yes
10931 ;;
10932 freebsd3.01* | freebsdelf3.01*)
10933 shlibpath_overrides_runpath=yes
10934 hardcode_into_libs=yes
10935 ;;
10936 *) # from 3.2 on
10937 shlibpath_overrides_runpath=no
10938 hardcode_into_libs=yes
10939 ;;
10940 esac
10941 ;;
10942
10943gnu*)
10944 version_type=linux
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 hardcode_into_libs=yes
10951 ;;
10952
10953hpux9* | hpux10* | hpux11*)
10954 # Give a soname corresponding to the major version so that dld.sl refuses to
10955 # link against other versions.
10956 version_type=sunos
10957 need_lib_prefix=no
10958 need_version=no
10959 case "$host_cpu" in
10960 ia64*)
10961 shrext='.so'
10962 hardcode_into_libs=yes
10963 dynamic_linker="$host_os dld.so"
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 if test "X$HPUX_IA64_MODE" = X32; then
10969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10970 else
10971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10972 fi
10973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10974 ;;
10975 hppa*64*)
10976 shrext='.sl'
10977 hardcode_into_libs=yes
10978 dynamic_linker="$host_os dld.sl"
10979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10985 ;;
10986 *)
10987 shrext='.sl'
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=SHLIB_PATH
10990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 ;;
10994 esac
10995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10996 postinstall_cmds='chmod 555 $lib'
10997 ;;
10998
10999irix5* | irix6* | nonstopux*)
11000 case $host_os in
11001 nonstopux*) version_type=nonstopux ;;
11002 *)
11003 if test "$lt_cv_prog_gnu_ld" = yes; then
11004 version_type=linux
11005 else
11006 version_type=irix
11007 fi ;;
11008 esac
11009 need_lib_prefix=no
11010 need_version=no
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11013 case $host_os in
11014 irix5* | nonstopux*)
11015 libsuff= shlibsuff=
11016 ;;
11017 *)
11018 case $LD in # libtool.m4 will add one of these switches to LD
11019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11020 libsuff= shlibsuff= libmagic=32-bit;;
11021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11022 libsuff=32 shlibsuff=N32 libmagic=N32;;
11023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11025 *) libsuff= shlibsuff= libmagic=never-match;;
11026 esac
11027 ;;
11028 esac
11029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11030 shlibpath_overrides_runpath=no
11031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11033 hardcode_into_libs=yes
11034 ;;
11035
11036# No shared lib support for Linux oldld, aout, or coff.
11037linux*oldld* | linux*aout* | linux*coff*)
11038 dynamic_linker=no
11039 ;;
11040
11041# This must be Linux ELF.
11042linux*)
11043 version_type=linux
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 # This implies no fast_install, which is unacceptable.
11052 # Some rework will be needed to allow for fast_install
11053 # before this can be enabled.
11054 hardcode_into_libs=yes
11055
11056 # We used to test for /lib/ld.so.1 and disable shared libraries on
11057 # powerpc, because MkLinux only supported shared libraries with the
11058 # GNU dynamic linker. Since this was broken with cross compilers,
11059 # most powerpc-linux boxes support dynamic linking these days and
11060 # people can always --disable-shared, the test was removed, and we
11061 # assume the GNU/Linux dynamic linker is in use.
11062 dynamic_linker='GNU/Linux ld.so'
11063 ;;
11064
11065netbsd*)
11066 version_type=sunos
11067 need_lib_prefix=no
11068 need_version=no
11069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072 dynamic_linker='NetBSD (a.out) ld.so'
11073 else
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 dynamic_linker='NetBSD ld.elf_so'
11077 fi
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=yes
11080 hardcode_into_libs=yes
11081 ;;
11082
11083newsos6)
11084 version_type=linux
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 ;;
11089
11090nto-qnx)
11091 version_type=linux
11092 need_lib_prefix=no
11093 need_version=no
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 ;;
11099
11100openbsd*)
11101 version_type=sunos
11102 need_lib_prefix=no
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11108 case $host_os in
11109 openbsd2.[89] | openbsd2.[89].*)
11110 shlibpath_overrides_runpath=no
11111 ;;
11112 *)
11113 shlibpath_overrides_runpath=yes
11114 ;;
11115 esac
11116 else
11117 shlibpath_overrides_runpath=yes
11118 fi
11119 ;;
11120
11121os2*)
11122 libname_spec='$name'
11123 shrext=".dll"
11124 need_lib_prefix=no
11125 library_names_spec='$libname${shared_ext} $libname.a'
11126 dynamic_linker='OS/2 ld.exe'
11127 shlibpath_var=LIBPATH
11128 ;;
11129
11130osf3* | osf4* | osf5*)
11131 version_type=osf
11132 need_lib_prefix=no
11133 need_version=no
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11138 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11139 ;;
11140
11141sco3.2v5*)
11142 version_type=osf
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 ;;
11147
11148solaris*)
11149 version_type=linux
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 hardcode_into_libs=yes
11157 # ldd complains unless libraries are executable
11158 postinstall_cmds='chmod +x $lib'
11159 ;;
11160
11161sunos4*)
11162 version_type=sunos
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 if test "$with_gnu_ld" = yes; then
11168 need_lib_prefix=no
11169 fi
11170 need_version=yes
11171 ;;
11172
11173sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11174 version_type=linux
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 case $host_vendor in
11179 sni)
11180 shlibpath_overrides_runpath=no
11181 need_lib_prefix=no
11182 export_dynamic_flag_spec='${wl}-Blargedynsym'
11183 runpath_var=LD_RUN_PATH
11184 ;;
11185 siemens)
11186 need_lib_prefix=no
11187 ;;
11188 motorola)
11189 need_lib_prefix=no
11190 need_version=no
11191 shlibpath_overrides_runpath=no
11192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11193 ;;
11194 esac
11195 ;;
11196
11197sysv4*MP*)
11198 if test -d /usr/nec ;then
11199 version_type=linux
11200 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11201 soname_spec='$libname${shared_ext}.$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 fi
11204 ;;
11205
11206uts4*)
11207 version_type=linux
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 ;;
11212
11213*)
11214 dynamic_linker=no
11215 ;;
11216esac
11217echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11218echo "${ECHO_T}$dynamic_linker" >&6
11219test "$dynamic_linker" = no && can_build_shared=no
11220
11221if test "x$enable_dlopen" != xyes; then
11222 enable_dlopen=unknown
11223 enable_dlopen_self=unknown
11224 enable_dlopen_self_static=unknown
11225else
11226 lt_cv_dlopen=no
11227 lt_cv_dlopen_libs=
11228
11229 case $host_os in
11230 beos*)
11231 lt_cv_dlopen="load_add_on"
11232 lt_cv_dlopen_libs=
11233 lt_cv_dlopen_self=yes
11234 ;;
11235
11236 mingw* | pw32*)
11237 lt_cv_dlopen="LoadLibrary"
11238 lt_cv_dlopen_libs=
11239 ;;
11240
11241 cygwin*)
11242 lt_cv_dlopen="dlopen"
11243 lt_cv_dlopen_libs=
11244 ;;
11245
11246 darwin*)
11247 # if libdl is installed we need to link against it
11248 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11249echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11250if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252else
11253 ac_check_lib_save_LIBS=$LIBS
11254LIBS="-ldl $LIBS"
11255cat >conftest.$ac_ext <<_ACEOF
11256#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011257/* confdefs.h. */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011262
11263/* Override any gcc2 internal prototype to avoid an error. */
11264#ifdef __cplusplus
11265extern "C"
11266#endif
11267/* We use char because int might match the return type of a gcc2
11268 builtin and then its argument prototype would still apply. */
11269char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011270int
11271main ()
11272{
11273dlopen ();
11274 ;
11275 return 0;
11276}
11277_ACEOF
11278rm -f conftest.$ac_objext conftest$ac_exeext
11279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11280 (eval $ac_link) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_lib_dl_dlopen=yes
11291else
11292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011293sed 's/^/| /' conftest.$ac_ext >&5
11294
John Criswell47fdd832003-07-14 16:52:07 +000011295ac_cv_lib_dl_dlopen=no
11296fi
11297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11298LIBS=$ac_check_lib_save_LIBS
11299fi
11300echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11301echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11302if test $ac_cv_lib_dl_dlopen = yes; then
11303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11304else
11305
11306 lt_cv_dlopen="dyld"
11307 lt_cv_dlopen_libs=
11308 lt_cv_dlopen_self=yes
11309
11310fi
11311
11312 ;;
11313
11314 *)
11315 echo "$as_me:$LINENO: checking for shl_load" >&5
11316echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11317if test "${ac_cv_func_shl_load+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320 cat >conftest.$ac_ext <<_ACEOF
11321#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011322/* confdefs.h. */
11323_ACEOF
11324cat confdefs.h >>conftest.$ac_ext
11325cat >>conftest.$ac_ext <<_ACEOF
11326/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011327/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011328 which can conflict with char shl_load (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11331#ifdef __STDC__
11332# include <limits.h>
11333#else
11334# include <assert.h>
11335#endif
John Criswell47fdd832003-07-14 16:52:07 +000011336/* Override any gcc2 internal prototype to avoid an error. */
11337#ifdef __cplusplus
11338extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011339{
John Criswell47fdd832003-07-14 16:52:07 +000011340#endif
11341/* We use char because int might match the return type of a gcc2
11342 builtin and then its argument prototype would still apply. */
11343char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011344/* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347#if defined (__stub_shl_load) || defined (__stub___shl_load)
11348choke me
11349#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011350char (*f) () = shl_load;
11351#endif
11352#ifdef __cplusplus
11353}
John Criswell47fdd832003-07-14 16:52:07 +000011354#endif
11355
John Criswell0c38eaf2003-09-10 15:17:25 +000011356int
11357main ()
11358{
11359return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011360 ;
11361 return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext conftest$ac_exeext
11365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -s conftest$ac_exeext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_func_shl_load=yes
11377else
11378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011379sed 's/^/| /' conftest.$ac_ext >&5
11380
John Criswell47fdd832003-07-14 16:52:07 +000011381ac_cv_func_shl_load=no
11382fi
11383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11384fi
11385echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11386echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11387if test $ac_cv_func_shl_load = yes; then
11388 lt_cv_dlopen="shl_load"
11389else
11390 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11391echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11392if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395 ac_check_lib_save_LIBS=$LIBS
11396LIBS="-ldld $LIBS"
11397cat >conftest.$ac_ext <<_ACEOF
11398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011399/* confdefs.h. */
11400_ACEOF
11401cat confdefs.h >>conftest.$ac_ext
11402cat >>conftest.$ac_ext <<_ACEOF
11403/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011404
11405/* Override any gcc2 internal prototype to avoid an error. */
11406#ifdef __cplusplus
11407extern "C"
11408#endif
11409/* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11411char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011412int
11413main ()
11414{
11415shl_load ();
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext conftest$ac_exeext
11421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest$ac_exeext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_lib_dld_shl_load=yes
11433else
11434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011435sed 's/^/| /' conftest.$ac_ext >&5
11436
John Criswell47fdd832003-07-14 16:52:07 +000011437ac_cv_lib_dld_shl_load=no
11438fi
11439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11440LIBS=$ac_check_lib_save_LIBS
11441fi
11442echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11443echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11444if test $ac_cv_lib_dld_shl_load = yes; then
11445 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11446else
11447 echo "$as_me:$LINENO: checking for dlopen" >&5
11448echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11449if test "${ac_cv_func_dlopen+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451else
11452 cat >conftest.$ac_ext <<_ACEOF
11453#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011459/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011460 which can conflict with char dlopen (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11463#ifdef __STDC__
11464# include <limits.h>
11465#else
11466# include <assert.h>
11467#endif
John Criswell47fdd832003-07-14 16:52:07 +000011468/* Override any gcc2 internal prototype to avoid an error. */
11469#ifdef __cplusplus
11470extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011471{
John Criswell47fdd832003-07-14 16:52:07 +000011472#endif
11473/* We use char because int might match the return type of a gcc2
11474 builtin and then its argument prototype would still apply. */
11475char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011476/* The GNU C library defines this for functions which it implements
11477 to always fail with ENOSYS. Some functions are actually named
11478 something starting with __ and the normal name is an alias. */
11479#if defined (__stub_dlopen) || defined (__stub___dlopen)
11480choke me
11481#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011482char (*f) () = dlopen;
11483#endif
11484#ifdef __cplusplus
11485}
John Criswell47fdd832003-07-14 16:52:07 +000011486#endif
11487
John Criswell0c38eaf2003-09-10 15:17:25 +000011488int
11489main ()
11490{
11491return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011492 ;
11493 return 0;
11494}
11495_ACEOF
11496rm -f conftest.$ac_objext conftest$ac_exeext
11497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -s conftest$ac_exeext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_cv_func_dlopen=yes
11509else
11510 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011511sed 's/^/| /' conftest.$ac_ext >&5
11512
John Criswell47fdd832003-07-14 16:52:07 +000011513ac_cv_func_dlopen=no
11514fi
11515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11516fi
11517echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11518echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11519if test $ac_cv_func_dlopen = yes; then
11520 lt_cv_dlopen="dlopen"
11521else
11522 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11523echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11524if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526else
11527 ac_check_lib_save_LIBS=$LIBS
11528LIBS="-ldl $LIBS"
11529cat >conftest.$ac_ext <<_ACEOF
11530#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011531/* confdefs.h. */
11532_ACEOF
11533cat confdefs.h >>conftest.$ac_ext
11534cat >>conftest.$ac_ext <<_ACEOF
11535/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011536
11537/* Override any gcc2 internal prototype to avoid an error. */
11538#ifdef __cplusplus
11539extern "C"
11540#endif
11541/* We use char because int might match the return type of a gcc2
11542 builtin and then its argument prototype would still apply. */
11543char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011544int
11545main ()
11546{
11547dlopen ();
11548 ;
11549 return 0;
11550}
11551_ACEOF
11552rm -f conftest.$ac_objext conftest$ac_exeext
11553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -s conftest$ac_exeext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 ac_cv_lib_dl_dlopen=yes
11565else
11566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011567sed 's/^/| /' conftest.$ac_ext >&5
11568
John Criswell47fdd832003-07-14 16:52:07 +000011569ac_cv_lib_dl_dlopen=no
11570fi
11571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11572LIBS=$ac_check_lib_save_LIBS
11573fi
11574echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11575echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11576if test $ac_cv_lib_dl_dlopen = yes; then
11577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11578else
11579 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11580echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11581if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583else
11584 ac_check_lib_save_LIBS=$LIBS
11585LIBS="-lsvld $LIBS"
11586cat >conftest.$ac_ext <<_ACEOF
11587#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011593
11594/* Override any gcc2 internal prototype to avoid an error. */
11595#ifdef __cplusplus
11596extern "C"
11597#endif
11598/* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11600char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011601int
11602main ()
11603{
11604dlopen ();
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609rm -f conftest.$ac_objext conftest$ac_exeext
11610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11611 (eval $ac_link) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } &&
11615 { ac_try='test -s conftest$ac_exeext'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 ac_cv_lib_svld_dlopen=yes
11622else
11623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011624sed 's/^/| /' conftest.$ac_ext >&5
11625
John Criswell47fdd832003-07-14 16:52:07 +000011626ac_cv_lib_svld_dlopen=no
11627fi
11628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11629LIBS=$ac_check_lib_save_LIBS
11630fi
11631echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11632echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11633if test $ac_cv_lib_svld_dlopen = yes; then
11634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11635else
11636 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11637echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11638if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 ac_check_lib_save_LIBS=$LIBS
11642LIBS="-ldld $LIBS"
11643cat >conftest.$ac_ext <<_ACEOF
11644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011650
11651/* Override any gcc2 internal prototype to avoid an error. */
11652#ifdef __cplusplus
11653extern "C"
11654#endif
11655/* We use char because int might match the return type of a gcc2
11656 builtin and then its argument prototype would still apply. */
11657char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011658int
11659main ()
11660{
11661dld_link ();
11662 ;
11663 return 0;
11664}
11665_ACEOF
11666rm -f conftest.$ac_objext conftest$ac_exeext
11667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_dld_dld_link=yes
11679else
11680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011681sed 's/^/| /' conftest.$ac_ext >&5
11682
John Criswell47fdd832003-07-14 16:52:07 +000011683ac_cv_lib_dld_dld_link=no
11684fi
11685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11689echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11690if test $ac_cv_lib_dld_dld_link = yes; then
11691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11692fi
11693
11694
11695fi
11696
11697
11698fi
11699
11700
11701fi
11702
11703
11704fi
11705
11706
11707fi
11708
11709 ;;
11710 esac
11711
11712 if test "x$lt_cv_dlopen" != xno; then
11713 enable_dlopen=yes
11714 else
11715 enable_dlopen=no
11716 fi
11717
11718 case $lt_cv_dlopen in
11719 dlopen)
11720 save_CPPFLAGS="$CPPFLAGS"
11721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11722
11723 save_LDFLAGS="$LDFLAGS"
11724 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11725
11726 save_LIBS="$LIBS"
11727 LIBS="$lt_cv_dlopen_libs $LIBS"
11728
11729 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11730echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11731if test "${lt_cv_dlopen_self+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733else
11734 if test "$cross_compiling" = yes; then :
11735 lt_cv_dlopen_self=cross
11736else
11737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11738 lt_status=$lt_dlunknown
11739 cat > conftest.$ac_ext <<EOF
John Criswellcf2e9f72004-02-10 22:36:35 +000011740#line 11740 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011741#include "confdefs.h"
11742
11743#if HAVE_DLFCN_H
11744#include <dlfcn.h>
11745#endif
11746
11747#include <stdio.h>
11748
11749#ifdef RTLD_GLOBAL
11750# define LT_DLGLOBAL RTLD_GLOBAL
11751#else
11752# ifdef DL_GLOBAL
11753# define LT_DLGLOBAL DL_GLOBAL
11754# else
11755# define LT_DLGLOBAL 0
11756# endif
11757#endif
11758
11759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11760 find out it does not work in some platform. */
11761#ifndef LT_DLLAZY_OR_NOW
11762# ifdef RTLD_LAZY
11763# define LT_DLLAZY_OR_NOW RTLD_LAZY
11764# else
11765# ifdef DL_LAZY
11766# define LT_DLLAZY_OR_NOW DL_LAZY
11767# else
11768# ifdef RTLD_NOW
11769# define LT_DLLAZY_OR_NOW RTLD_NOW
11770# else
11771# ifdef DL_NOW
11772# define LT_DLLAZY_OR_NOW DL_NOW
11773# else
11774# define LT_DLLAZY_OR_NOW 0
11775# endif
11776# endif
11777# endif
11778# endif
11779#endif
11780
11781#ifdef __cplusplus
11782extern "C" void exit (int);
11783#endif
11784
11785void fnord() { int i=42;}
11786int main ()
11787{
11788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11789 int status = $lt_dlunknown;
11790
11791 if (self)
11792 {
11793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11795 /* dlclose (self); */
11796 }
11797
11798 exit (status);
11799}
11800EOF
11801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802 (eval $ac_link) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11806 (./conftest; exit; ) 2>/dev/null
11807 lt_status=$?
11808 case x$lt_status in
11809 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11810 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11812 esac
11813 else :
11814 # compilation failed
11815 lt_cv_dlopen_self=no
11816 fi
11817fi
11818rm -fr conftest*
11819
11820
11821fi
11822echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11823echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11824
11825 if test "x$lt_cv_dlopen_self" = xyes; then
11826 LDFLAGS="$LDFLAGS $link_static_flag"
11827 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11828echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11829if test "${lt_cv_dlopen_self_static+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831else
11832 if test "$cross_compiling" = yes; then :
11833 lt_cv_dlopen_self_static=cross
11834else
11835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836 lt_status=$lt_dlunknown
11837 cat > conftest.$ac_ext <<EOF
John Criswellcf2e9f72004-02-10 22:36:35 +000011838#line 11838 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011839#include "confdefs.h"
11840
11841#if HAVE_DLFCN_H
11842#include <dlfcn.h>
11843#endif
11844
11845#include <stdio.h>
11846
11847#ifdef RTLD_GLOBAL
11848# define LT_DLGLOBAL RTLD_GLOBAL
11849#else
11850# ifdef DL_GLOBAL
11851# define LT_DLGLOBAL DL_GLOBAL
11852# else
11853# define LT_DLGLOBAL 0
11854# endif
11855#endif
11856
11857/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858 find out it does not work in some platform. */
11859#ifndef LT_DLLAZY_OR_NOW
11860# ifdef RTLD_LAZY
11861# define LT_DLLAZY_OR_NOW RTLD_LAZY
11862# else
11863# ifdef DL_LAZY
11864# define LT_DLLAZY_OR_NOW DL_LAZY
11865# else
11866# ifdef RTLD_NOW
11867# define LT_DLLAZY_OR_NOW RTLD_NOW
11868# else
11869# ifdef DL_NOW
11870# define LT_DLLAZY_OR_NOW DL_NOW
11871# else
11872# define LT_DLLAZY_OR_NOW 0
11873# endif
11874# endif
11875# endif
11876# endif
11877#endif
11878
11879#ifdef __cplusplus
11880extern "C" void exit (int);
11881#endif
11882
11883void fnord() { int i=42;}
11884int main ()
11885{
11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887 int status = $lt_dlunknown;
11888
11889 if (self)
11890 {
11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11893 /* dlclose (self); */
11894 }
11895
11896 exit (status);
11897}
11898EOF
11899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900 (eval $ac_link) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11904 (./conftest; exit; ) 2>/dev/null
11905 lt_status=$?
11906 case x$lt_status in
11907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11909 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11910 esac
11911 else :
11912 # compilation failed
11913 lt_cv_dlopen_self_static=no
11914 fi
11915fi
11916rm -fr conftest*
11917
11918
11919fi
11920echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11921echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11922 fi
11923
11924 CPPFLAGS="$save_CPPFLAGS"
11925 LDFLAGS="$save_LDFLAGS"
11926 LIBS="$save_LIBS"
11927 ;;
11928 esac
11929
11930 case $lt_cv_dlopen_self in
11931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11932 *) enable_dlopen_self=unknown ;;
11933 esac
11934
11935 case $lt_cv_dlopen_self_static in
11936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11937 *) enable_dlopen_self_static=unknown ;;
11938 esac
11939fi
11940
11941
11942# The else clause should only fire when bootstrapping the
11943# libtool distribution, otherwise you forgot to ship ltmain.sh
11944# with your package, and you will get complaints that there are
11945# no rules to generate ltmain.sh.
11946if test -f "$ltmain"; then
11947 # See if we are running on zsh, and set the options which allow our commands through
11948 # without removal of \ escapes.
11949 if test -n "${ZSH_VERSION+set}" ; then
11950 setopt NO_GLOB_SUBST
11951 fi
11952 # Now quote all the things that may contain metacharacters while being
11953 # careful not to overquote the AC_SUBSTed values. We take copies of the
11954 # variables and quote the copies for generation of the libtool script.
11955 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11956 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11957 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11958 deplibs_check_method reload_flag reload_cmds need_locks \
11959 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11960 lt_cv_sys_global_symbol_to_c_name_address \
11961 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11962 old_postinstall_cmds old_postuninstall_cmds \
11963 compiler_CXX \
11964 CC_CXX \
11965 LD_CXX \
11966 lt_prog_compiler_wl_CXX \
11967 lt_prog_compiler_pic_CXX \
11968 lt_prog_compiler_static_CXX \
11969 lt_prog_compiler_no_builtin_flag_CXX \
11970 export_dynamic_flag_spec_CXX \
11971 thread_safe_flag_spec_CXX \
11972 whole_archive_flag_spec_CXX \
11973 enable_shared_with_static_runtimes_CXX \
11974 old_archive_cmds_CXX \
11975 old_archive_from_new_cmds_CXX \
11976 predep_objects_CXX \
11977 postdep_objects_CXX \
11978 predeps_CXX \
11979 postdeps_CXX \
11980 compiler_lib_search_path_CXX \
11981 archive_cmds_CXX \
11982 archive_expsym_cmds_CXX \
11983 postinstall_cmds_CXX \
11984 postuninstall_cmds_CXX \
11985 old_archive_from_expsyms_cmds_CXX \
11986 allow_undefined_flag_CXX \
11987 no_undefined_flag_CXX \
11988 export_symbols_cmds_CXX \
11989 hardcode_libdir_flag_spec_CXX \
11990 hardcode_libdir_flag_spec_ld_CXX \
11991 hardcode_libdir_separator_CXX \
11992 hardcode_automatic_CXX \
11993 module_cmds_CXX \
11994 module_expsym_cmds_CXX \
11995 lt_cv_prog_compiler_c_o_CXX \
11996 exclude_expsyms_CXX \
11997 include_expsyms_CXX; do
11998
11999 case $var in
12000 old_archive_cmds_CXX | \
12001 old_archive_from_new_cmds_CXX | \
12002 archive_cmds_CXX | \
12003 archive_expsym_cmds_CXX | \
12004 module_cmds_CXX | \
12005 module_expsym_cmds_CXX | \
12006 old_archive_from_expsyms_cmds_CXX | \
12007 export_symbols_cmds_CXX | \
12008 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12009 postinstall_cmds | postuninstall_cmds | \
12010 old_postinstall_cmds | old_postuninstall_cmds | \
12011 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12012 # Double-quote double-evaled strings.
12013 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12014 ;;
12015 *)
12016 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12017 ;;
12018 esac
12019 done
12020
12021 case $lt_echo in
12022 *'\$0 --fallback-echo"')
12023 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12024 ;;
12025 esac
12026
12027cfgfile="$ofile"
12028
12029 cat <<__EOF__ >> "$cfgfile"
12030# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12031
12032# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12033
12034# Shell to use when invoking shell scripts.
12035SHELL=$lt_SHELL
12036
12037# Whether or not to build shared libraries.
12038build_libtool_libs=$enable_shared
12039
12040# Whether or not to build static libraries.
12041build_old_libs=$enable_static
12042
12043# Whether or not to add -lc for building shared libraries.
12044build_libtool_need_lc=$archive_cmds_need_lc_CXX
12045
12046# Whether or not to disallow shared libs when runtime libs are static
12047allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12048
12049# Whether or not to optimize for fast installation.
12050fast_install=$enable_fast_install
12051
12052# The host system.
12053host_alias=$host_alias
12054host=$host
12055
12056# An echo program that does not interpret backslashes.
12057echo=$lt_echo
12058
12059# The archiver.
12060AR=$lt_AR
12061AR_FLAGS=$lt_AR_FLAGS
12062
12063# A C compiler.
12064LTCC=$lt_LTCC
12065
12066# A language-specific compiler.
12067CC=$lt_compiler_CXX
12068
12069# Is the compiler the GNU C compiler?
12070with_gcc=$GCC_CXX
12071
12072# An ERE matcher.
12073EGREP=$lt_EGREP
12074
12075# The linker used to build libraries.
12076LD=$lt_LD_CXX
12077
12078# Whether we need hard or soft links.
12079LN_S=$lt_LN_S
12080
12081# A BSD-compatible nm program.
12082NM=$lt_NM
12083
12084# A symbol stripping program
12085STRIP=$STRIP
12086
12087# Used to examine libraries when file_magic_cmd begins "file"
12088MAGIC_CMD=$MAGIC_CMD
12089
12090# Used on cygwin: DLL creation program.
12091DLLTOOL="$DLLTOOL"
12092
12093# Used on cygwin: object dumper.
12094OBJDUMP="$OBJDUMP"
12095
12096# Used on cygwin: assembler.
12097AS="$AS"
12098
12099# The name of the directory that contains temporary libtool files.
12100objdir=$objdir
12101
12102# How to create reloadable object files.
12103reload_flag=$lt_reload_flag
12104reload_cmds=$lt_reload_cmds
12105
12106# How to pass a linker flag through the compiler.
12107wl=$lt_lt_prog_compiler_wl_CXX
12108
12109# Object file suffix (normally "o").
12110objext="$ac_objext"
12111
12112# Old archive suffix (normally "a").
12113libext="$libext"
12114
12115# Shared library suffix (normally ".so").
12116shrext='$shrext'
12117
12118# Executable file suffix (normally "").
12119exeext="$exeext"
12120
12121# Additional compiler flags for building library objects.
12122pic_flag=$lt_lt_prog_compiler_pic_CXX
12123pic_mode=$pic_mode
12124
12125# What is the maximum length of a command?
12126max_cmd_len=$lt_cv_sys_max_cmd_len
12127
12128# Does compiler simultaneously support -c and -o options?
12129compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12130
12131# Must we lock files when doing compilation ?
12132need_locks=$lt_need_locks
12133
12134# Do we need the lib prefix for modules?
12135need_lib_prefix=$need_lib_prefix
12136
12137# Do we need a version for libraries?
12138need_version=$need_version
12139
12140# Whether dlopen is supported.
12141dlopen_support=$enable_dlopen
12142
12143# Whether dlopen of programs is supported.
12144dlopen_self=$enable_dlopen_self
12145
12146# Whether dlopen of statically linked programs is supported.
12147dlopen_self_static=$enable_dlopen_self_static
12148
12149# Compiler flag to prevent dynamic linking.
12150link_static_flag=$lt_lt_prog_compiler_static_CXX
12151
12152# Compiler flag to turn off builtin functions.
12153no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12154
12155# Compiler flag to allow reflexive dlopens.
12156export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12157
12158# Compiler flag to generate shared objects directly from archives.
12159whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12160
12161# Compiler flag to generate thread-safe objects.
12162thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12163
12164# Library versioning type.
12165version_type=$version_type
12166
12167# Format of library name prefix.
12168libname_spec=$lt_libname_spec
12169
12170# List of archive names. First name is the real one, the rest are links.
12171# The last name is the one that the linker finds with -lNAME.
12172library_names_spec=$lt_library_names_spec
12173
12174# The coded name of the library, if different from the real name.
12175soname_spec=$lt_soname_spec
12176
12177# Commands used to build and install an old-style archive.
12178RANLIB=$lt_RANLIB
12179old_archive_cmds=$lt_old_archive_cmds_CXX
12180old_postinstall_cmds=$lt_old_postinstall_cmds
12181old_postuninstall_cmds=$lt_old_postuninstall_cmds
12182
12183# Create an old-style archive from a shared archive.
12184old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12185
12186# Create a temporary old-style archive to link instead of a shared archive.
12187old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12188
12189# Commands used to build and install a shared archive.
12190archive_cmds=$lt_archive_cmds_CXX
12191archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12192postinstall_cmds=$lt_postinstall_cmds
12193postuninstall_cmds=$lt_postuninstall_cmds
12194
12195# Commands used to build a loadable module (assumed same as above if empty)
12196module_cmds=$lt_module_cmds_CXX
12197module_expsym_cmds=$lt_module_expsym_cmds_CXX
12198
12199# Commands to strip libraries.
12200old_striplib=$lt_old_striplib
12201striplib=$lt_striplib
12202
12203# Dependencies to place before the objects being linked to create a
12204# shared library.
12205predep_objects=$lt_predep_objects_CXX
12206
12207# Dependencies to place after the objects being linked to create a
12208# shared library.
12209postdep_objects=$lt_postdep_objects_CXX
12210
12211# Dependencies to place before the objects being linked to create a
12212# shared library.
12213predeps=$lt_predeps_CXX
12214
12215# Dependencies to place after the objects being linked to create a
12216# shared library.
12217postdeps=$lt_postdeps_CXX
12218
12219# The library search path used internally by the compiler when linking
12220# a shared library.
12221compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12222
12223# Method to check whether dependent libraries are shared objects.
12224deplibs_check_method=$lt_deplibs_check_method
12225
12226# Command to use when deplibs_check_method == file_magic.
12227file_magic_cmd=$lt_file_magic_cmd
12228
12229# Flag that allows shared libraries with undefined symbols to be built.
12230allow_undefined_flag=$lt_allow_undefined_flag_CXX
12231
12232# Flag that forces no undefined symbols.
12233no_undefined_flag=$lt_no_undefined_flag_CXX
12234
12235# Commands used to finish a libtool library installation in a directory.
12236finish_cmds=$lt_finish_cmds
12237
12238# Same as above, but a single script fragment to be evaled but not shown.
12239finish_eval=$lt_finish_eval
12240
12241# Take the output of nm and produce a listing of raw symbols and C names.
12242global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12243
12244# Transform the output of nm in a proper C declaration
12245global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12246
12247# Transform the output of nm in a C name address pair
12248global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12249
12250# This is the shared library runtime path variable.
12251runpath_var=$runpath_var
12252
12253# This is the shared library path variable.
12254shlibpath_var=$shlibpath_var
12255
12256# Is shlibpath searched before the hard-coded library search path?
12257shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12258
12259# How to hardcode a shared library path into an executable.
12260hardcode_action=$hardcode_action_CXX
12261
12262# Whether we should hardcode library paths into libraries.
12263hardcode_into_libs=$hardcode_into_libs
12264
12265# Flag to hardcode \$libdir into a binary during linking.
12266# This must work even if \$libdir does not exist.
12267hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12268
12269# If ld is used when linking, flag to hardcode \$libdir into
12270# a binary during linking. This must work even if \$libdir does
12271# not exist.
12272hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12273
12274# Whether we need a single -rpath flag with a separated argument.
12275hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12276
12277# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12278# resulting binary.
12279hardcode_direct=$hardcode_direct_CXX
12280
12281# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12282# resulting binary.
12283hardcode_minus_L=$hardcode_minus_L_CXX
12284
12285# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12286# the resulting binary.
12287hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12288
12289# Set to yes if building a shared library automatically hardcodes DIR into the library
12290# and all subsequent libraries and executables linked against it.
12291hardcode_automatic=$hardcode_automatic_CXX
12292
12293# Variables whose values should be saved in libtool wrapper scripts and
12294# restored at relink time.
12295variables_saved_for_relink="$variables_saved_for_relink"
12296
12297# Whether libtool must link a program against all its dependency libraries.
12298link_all_deplibs=$link_all_deplibs_CXX
12299
12300# Compile-time system search path for libraries
12301sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12302
12303# Run-time system search path for libraries
12304sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12305
12306# Fix the shell variable \$srcfile for the compiler.
12307fix_srcfile_path="$fix_srcfile_path_CXX"
12308
12309# Set to yes if exported symbols are required.
12310always_export_symbols=$always_export_symbols_CXX
12311
12312# The commands to list exported symbols.
12313export_symbols_cmds=$lt_export_symbols_cmds_CXX
12314
12315# The commands to extract the exported symbol list from a shared archive.
12316extract_expsyms_cmds=$lt_extract_expsyms_cmds
12317
12318# Symbols that should not be listed in the preloaded symbols.
12319exclude_expsyms=$lt_exclude_expsyms_CXX
12320
12321# Symbols that must always be exported.
12322include_expsyms=$lt_include_expsyms_CXX
12323
12324# ### END LIBTOOL TAG CONFIG: $tagname
12325
12326__EOF__
12327
12328
12329else
12330 # If there is no Makefile yet, we rely on a make rule to execute
12331 # `config.status --recheck' to rerun these tests and create the
12332 # libtool script then.
12333 test -f Makefile && make "$ltmain"
12334fi
12335
12336
12337ac_ext=c
12338ac_cpp='$CPP $CPPFLAGS'
12339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341ac_compiler_gnu=$ac_cv_c_compiler_gnu
12342
12343CC=$lt_save_CC
12344LDCXX=$LD
12345LD=$lt_save_LD
12346GCC=$lt_save_GCC
12347with_gnu_ldcxx=$with_gnu_ld
12348with_gnu_ld=$lt_save_with_gnu_ld
12349lt_cv_path_LDCXX=$lt_cv_path_LD
12350lt_cv_path_LD=$lt_save_path_LD
12351lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12352lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12353
12354 else
12355 tagname=""
12356 fi
12357 ;;
12358
12359 F77)
12360 if test -n "$F77" && test "X$F77" != "Xno"; then
12361
12362ac_ext=f
12363ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12364ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12366
12367
12368archive_cmds_need_lc_F77=no
12369allow_undefined_flag_F77=
12370always_export_symbols_F77=no
12371archive_expsym_cmds_F77=
12372export_dynamic_flag_spec_F77=
12373hardcode_direct_F77=no
12374hardcode_libdir_flag_spec_F77=
12375hardcode_libdir_flag_spec_ld_F77=
12376hardcode_libdir_separator_F77=
12377hardcode_minus_L_F77=no
12378hardcode_automatic_F77=no
12379module_cmds_F77=
12380module_expsym_cmds_F77=
12381link_all_deplibs_F77=unknown
12382old_archive_cmds_F77=$old_archive_cmds
12383no_undefined_flag_F77=
12384whole_archive_flag_spec_F77=
12385enable_shared_with_static_runtimes_F77=no
12386
12387# Source file extension for f77 test sources.
12388ac_ext=f
12389
12390# Object file extension for compiled f77 test sources.
12391objext=o
12392objext_F77=$objext
12393
12394# Code to be used in simple compile tests
12395lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12396
12397# Code to be used in simple link tests
12398lt_simple_link_test_code=" program t\n end\n"
12399
12400# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12401
12402# If no C compiler was specified, use CC.
12403LTCC=${LTCC-"$CC"}
12404
12405# Allow CC to be a program name with arguments.
12406compiler=$CC
12407
12408
12409# Allow CC to be a program name with arguments.
12410lt_save_CC="$CC"
12411CC=${F77-"f77"}
12412compiler=$CC
12413compiler_F77=$CC
12414cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12415
12416echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12417echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12418echo "$as_me:$LINENO: result: $can_build_shared" >&5
12419echo "${ECHO_T}$can_build_shared" >&6
12420
12421echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12422echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12423test "$can_build_shared" = "no" && enable_shared=no
12424
12425# On AIX, shared libraries and static libraries use the same namespace, and
12426# are all built from PIC.
12427case "$host_os" in
12428aix3*)
12429 test "$enable_shared" = yes && enable_static=no
12430 if test -n "$RANLIB"; then
12431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12432 postinstall_cmds='$RANLIB $lib'
12433 fi
12434 ;;
12435aix4*)
12436 test "$enable_shared" = yes && enable_static=no
12437 ;;
12438esac
12439echo "$as_me:$LINENO: result: $enable_shared" >&5
12440echo "${ECHO_T}$enable_shared" >&6
12441
12442echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12443echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12444# Make sure either enable_shared or enable_static is yes.
12445test "$enable_shared" = yes || enable_static=yes
12446echo "$as_me:$LINENO: result: $enable_static" >&5
12447echo "${ECHO_T}$enable_static" >&6
12448
12449test "$ld_shlibs_F77" = no && can_build_shared=no
12450
12451GCC_F77="$G77"
12452LD_F77="$LD"
12453
12454lt_prog_compiler_wl_F77=
12455lt_prog_compiler_pic_F77=
12456lt_prog_compiler_static_F77=
12457
12458echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12459echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12460
12461 if test "$GCC" = yes; then
12462 lt_prog_compiler_wl_F77='-Wl,'
12463 lt_prog_compiler_static_F77='-static'
12464
12465 case $host_os in
12466 aix*)
12467 # All AIX code is PIC.
12468 if test "$host_cpu" = ia64; then
12469 # AIX 5 now supports IA64 processor
12470 lt_prog_compiler_static_F77='-Bstatic'
12471 fi
12472 ;;
12473
12474 amigaos*)
12475 # FIXME: we need at least 68020 code to build shared libraries, but
12476 # adding the `-m68020' flag to GCC prevents building anything better,
12477 # like `-m68040'.
12478 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12479 ;;
12480
12481 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12482 # PIC is the default for these OSes.
12483 ;;
12484
12485 mingw* | pw32* | os2*)
12486 # This hack is so that the source file can tell whether it is being
12487 # built for inclusion in a dll (and should export symbols for example).
12488 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12489 ;;
12490
12491 darwin* | rhapsody*)
12492 # PIC is the default on this platform
12493 # Common symbols not allowed in MH_DYLIB files
12494 lt_prog_compiler_pic_F77='-fno-common'
12495 ;;
12496
12497 msdosdjgpp*)
12498 # Just because we use GCC doesn't mean we suddenly get shared libraries
12499 # on systems that don't support them.
12500 lt_prog_compiler_can_build_shared_F77=no
12501 enable_shared=no
12502 ;;
12503
12504 sysv4*MP*)
12505 if test -d /usr/nec; then
12506 lt_prog_compiler_pic_F77=-Kconform_pic
12507 fi
12508 ;;
12509
12510 hpux*)
12511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12512 # not for PA HP-UX.
12513 case "$host_cpu" in
12514 hppa*64*|ia64*)
12515 # +Z the default
12516 ;;
12517 *)
12518 lt_prog_compiler_pic_F77='-fPIC'
12519 ;;
12520 esac
12521 ;;
12522
12523 *)
12524 lt_prog_compiler_pic_F77='-fPIC'
12525 ;;
12526 esac
12527 else
12528 # PORTME Check for flag to pass linker flags through the system compiler.
12529 case $host_os in
12530 aix*)
12531 lt_prog_compiler_wl_F77='-Wl,'
12532 if test "$host_cpu" = ia64; then
12533 # AIX 5 now supports IA64 processor
12534 lt_prog_compiler_static_F77='-Bstatic'
12535 else
12536 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12537 fi
12538 ;;
12539
12540 mingw* | pw32* | os2*)
12541 # This hack is so that the source file can tell whether it is being
12542 # built for inclusion in a dll (and should export symbols for example).
12543 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12544 ;;
12545
12546 hpux9* | hpux10* | hpux11*)
12547 lt_prog_compiler_wl_F77='-Wl,'
12548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12549 # not for PA HP-UX.
12550 case "$host_cpu" in
12551 hppa*64*|ia64*)
12552 # +Z the default
12553 ;;
12554 *)
12555 lt_prog_compiler_pic_F77='+Z'
12556 ;;
12557 esac
12558 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12559 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12560 ;;
12561
12562 irix5* | irix6* | nonstopux*)
12563 lt_prog_compiler_wl_F77='-Wl,'
12564 # PIC (with -KPIC) is the default.
12565 lt_prog_compiler_static_F77='-non_shared'
12566 ;;
12567
12568 newsos6)
12569 lt_prog_compiler_pic_F77='-KPIC'
12570 lt_prog_compiler_static_F77='-Bstatic'
12571 ;;
12572
12573 linux*)
12574 case $CC in
12575 icc|ecc)
12576 lt_prog_compiler_wl_F77='-Wl,'
12577 lt_prog_compiler_pic_F77='-KPIC'
12578 lt_prog_compiler_static_F77='-static'
12579 ;;
12580 ccc)
12581 lt_prog_compiler_wl_F77='-Wl,'
12582 # All Alpha code is PIC.
12583 lt_prog_compiler_static_F77='-non_shared'
12584 ;;
12585 esac
12586 ;;
12587
12588 osf3* | osf4* | osf5*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # All OSF/1 code is PIC.
12591 lt_prog_compiler_static_F77='-non_shared'
12592 ;;
12593
12594 sco3.2v5*)
12595 lt_prog_compiler_pic_F77='-Kpic'
12596 lt_prog_compiler_static_F77='-dn'
12597 ;;
12598
12599 solaris*)
12600 lt_prog_compiler_wl_F77='-Wl,'
12601 lt_prog_compiler_pic_F77='-KPIC'
12602 lt_prog_compiler_static_F77='-Bstatic'
12603 ;;
12604
12605 sunos4*)
12606 lt_prog_compiler_wl_F77='-Qoption ld '
12607 lt_prog_compiler_pic_F77='-PIC'
12608 lt_prog_compiler_static_F77='-Bstatic'
12609 ;;
12610
12611 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12612 lt_prog_compiler_wl_F77='-Wl,'
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12615 ;;
12616
12617 sysv4*MP*)
12618 if test -d /usr/nec ;then
12619 lt_prog_compiler_pic_F77='-Kconform_pic'
12620 lt_prog_compiler_static_F77='-Bstatic'
12621 fi
12622 ;;
12623
12624 uts4*)
12625 lt_prog_compiler_pic_F77='-pic'
12626 lt_prog_compiler_static_F77='-Bstatic'
12627 ;;
12628
12629 *)
12630 lt_prog_compiler_can_build_shared_F77=no
12631 ;;
12632 esac
12633 fi
12634
12635echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12636echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12637
12638#
12639# Check to make sure the PIC flag actually works.
12640#
12641if test -n "$lt_prog_compiler_pic_F77"; then
12642 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12643echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12644if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646else
12647 lt_prog_compiler_pic_works_F77=no
12648 ac_outfile=conftest.$ac_objext
12649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12650 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12651 # Insert the option either (1) after the last *FLAGS variable, or
12652 # (2) before a word containing "conftest.", or (3) at the end.
12653 # Note that $ac_compile itself does not contain backslashes and begins
12654 # with a dollar sign (not a hyphen), so the echo should work correctly.
12655 # The option is referenced via a variable to avoid confusing sed.
12656 lt_compile=`echo "$ac_compile" | $SED \
12657 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12659 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +000012660 (eval echo "\"\$as_me:12660: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012661 (eval "$lt_compile" 2>conftest.err)
12662 ac_status=$?
12663 cat conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +000012664 echo "$as_me:12664: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012665 if (exit $ac_status) && test -s "$ac_outfile"; then
12666 # The compiler can only warn and ignore the option if not recognized
12667 # So say no if there are warnings
12668 if test ! -s conftest.err; then
12669 lt_prog_compiler_pic_works_F77=yes
12670 fi
12671 fi
12672 $rm conftest*
12673
12674fi
12675echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12676echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12677
12678if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12679 case $lt_prog_compiler_pic_F77 in
12680 "" | " "*) ;;
12681 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12682 esac
12683else
12684 lt_prog_compiler_pic_F77=
12685 lt_prog_compiler_can_build_shared_F77=no
12686fi
12687
12688fi
12689case "$host_os" in
12690 # For platforms which do not support PIC, -DPIC is meaningless:
12691 *djgpp*)
12692 lt_prog_compiler_pic_F77=
12693 ;;
12694 *)
12695 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12696 ;;
12697esac
12698
12699echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12700echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12701if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703else
12704 lt_cv_prog_compiler_c_o_F77=no
12705 $rm -r conftest 2>/dev/null
12706 mkdir conftest
12707 cd conftest
12708 mkdir out
12709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12710
12711 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12712 # that will create temporary files in the current directory regardless of
12713 # the output directory. Thus, making CWD read-only will cause this test
12714 # to fail, enabling locking or at least warning the user not to do parallel
12715 # builds.
12716 chmod -w .
12717
12718 lt_compiler_flag="-o out/conftest2.$ac_objext"
12719 # Insert the option either (1) after the last *FLAGS variable, or
12720 # (2) before a word containing "conftest.", or (3) at the end.
12721 # Note that $ac_compile itself does not contain backslashes and begins
12722 # with a dollar sign (not a hyphen), so the echo should work correctly.
12723 lt_compile=`echo "$ac_compile" | $SED \
12724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12726 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +000012727 (eval echo "\"\$as_me:12727: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012728 (eval "$lt_compile" 2>out/conftest.err)
12729 ac_status=$?
12730 cat out/conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +000012731 echo "$as_me:12731: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12733 then
12734 # The compiler can only warn and ignore the option if not recognized
12735 # So say no if there are warnings
12736 if test ! -s out/conftest.err; then
12737 lt_cv_prog_compiler_c_o_F77=yes
12738 fi
12739 fi
12740 chmod u+w .
12741 $rm conftest* out/*
12742 rmdir out
12743 cd ..
12744 rmdir conftest
12745 $rm conftest*
12746
12747fi
12748echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12749echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12750
12751
12752hard_links="nottested"
12753if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12754 # do not overwrite the value of need_locks provided by the user
12755 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12756echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12757 hard_links=yes
12758 $rm conftest*
12759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12760 touch conftest.a
12761 ln conftest.a conftest.b 2>&5 || hard_links=no
12762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12763 echo "$as_me:$LINENO: result: $hard_links" >&5
12764echo "${ECHO_T}$hard_links" >&6
12765 if test "$hard_links" = no; then
12766 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12767echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12768 need_locks=warn
12769 fi
12770else
12771 need_locks=no
12772fi
12773
12774echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12775echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12776
12777 runpath_var=
12778 allow_undefined_flag_F77=
12779 enable_shared_with_static_runtimes_F77=no
12780 archive_cmds_F77=
12781 archive_expsym_cmds_F77=
12782 old_archive_From_new_cmds_F77=
12783 old_archive_from_expsyms_cmds_F77=
12784 export_dynamic_flag_spec_F77=
12785 whole_archive_flag_spec_F77=
12786 thread_safe_flag_spec_F77=
12787 hardcode_libdir_flag_spec_F77=
12788 hardcode_libdir_flag_spec_ld_F77=
12789 hardcode_libdir_separator_F77=
12790 hardcode_direct_F77=no
12791 hardcode_minus_L_F77=no
12792 hardcode_shlibpath_var_F77=unsupported
12793 link_all_deplibs_F77=unknown
12794 hardcode_automatic_F77=no
12795 module_cmds_F77=
12796 module_expsym_cmds_F77=
12797 always_export_symbols_F77=no
12798 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12799 # include_expsyms should be a list of space-separated symbols to be *always*
12800 # included in the symbol list
12801 include_expsyms_F77=
12802 # exclude_expsyms can be an extended regexp of symbols to exclude
12803 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12804 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12805 # as well as any symbol that contains `d'.
12806 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12807 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12808 # platforms (ab)use it in PIC code, but their linkers get confused if
12809 # the symbol is explicitly referenced. Since portable code cannot
12810 # rely on this symbol name, it's probably fine to never include it in
12811 # preloaded symbol tables.
12812 extract_expsyms_cmds=
12813
12814 case $host_os in
12815 cygwin* | mingw* | pw32*)
12816 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12817 # When not using gcc, we currently assume that we are using
12818 # Microsoft Visual C++.
12819 if test "$GCC" != yes; then
12820 with_gnu_ld=no
12821 fi
12822 ;;
12823 openbsd*)
12824 with_gnu_ld=no
12825 ;;
12826 esac
12827
12828 ld_shlibs_F77=yes
12829 if test "$with_gnu_ld" = yes; then
12830 # If archive_cmds runs LD, not CC, wlarc should be empty
12831 wlarc='${wl}'
12832
12833 # See if GNU ld supports shared libraries.
12834 case $host_os in
12835 aix3* | aix4* | aix5*)
12836 # On AIX/PPC, the GNU linker is very broken
12837 if test "$host_cpu" != ia64; then
12838 ld_shlibs_F77=no
12839 cat <<EOF 1>&2
12840
12841*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12842*** to be unable to reliably create shared libraries on AIX.
12843*** Therefore, libtool is disabling shared libraries support. If you
12844*** really care for shared libraries, you may want to modify your PATH
12845*** so that a non-GNU linker is found, and then restart.
12846
12847EOF
12848 fi
12849 ;;
12850
12851 amigaos*)
12852 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)'
12853 hardcode_libdir_flag_spec_F77='-L$libdir'
12854 hardcode_minus_L_F77=yes
12855
12856 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12857 # that the semantics of dynamic libraries on AmigaOS, at least up
12858 # to version 4, is to share data among multiple programs linked
12859 # with the same dynamic library. Since this doesn't match the
12860 # behavior of shared libraries on other platforms, we can't use
12861 # them.
12862 ld_shlibs_F77=no
12863 ;;
12864
12865 beos*)
12866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12867 allow_undefined_flag_F77=unsupported
12868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12869 # support --undefined. This deserves some investigation. FIXME
12870 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12871 else
12872 ld_shlibs_F77=no
12873 fi
12874 ;;
12875
12876 cygwin* | mingw* | pw32*)
12877 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12878 # as there is no search path for DLLs.
12879 hardcode_libdir_flag_spec_F77='-L$libdir'
12880 allow_undefined_flag_F77=unsupported
12881 always_export_symbols_F77=no
12882 enable_shared_with_static_runtimes_F77=yes
12883 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12884
12885 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12886 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12887 # If the export-symbols file already is a .def file (1st line
12888 # is EXPORTS), use it as is; otherwise, prepend...
12889 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12890 cp $export_symbols $output_objdir/$soname.def;
12891 else
12892 echo EXPORTS > $output_objdir/$soname.def;
12893 cat $export_symbols >> $output_objdir/$soname.def;
12894 fi~
12895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12896 else
12897 ld_shlibs=no
12898 fi
12899 ;;
12900
12901 netbsd*)
12902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12903 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12904 wlarc=
12905 else
12906 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12908 fi
12909 ;;
12910
12911 solaris* | sysv5*)
12912 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12913 ld_shlibs_F77=no
12914 cat <<EOF 1>&2
12915
12916*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12917*** create shared libraries on Solaris systems. Therefore, libtool
12918*** is disabling shared libraries support. We urge you to upgrade GNU
12919*** binutils to release 2.9.1 or newer. Another option is to modify
12920*** your PATH or compiler configuration so that the native linker is
12921*** used, and then restart.
12922
12923EOF
12924 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12925 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12927 else
12928 ld_shlibs_F77=no
12929 fi
12930 ;;
12931
12932 sunos4*)
12933 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12934 wlarc=
12935 hardcode_direct_F77=yes
12936 hardcode_shlibpath_var_F77=no
12937 ;;
12938
12939 *)
12940 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12943 else
12944 ld_shlibs_F77=no
12945 fi
12946 ;;
12947 esac
12948
12949 if test "$ld_shlibs_F77" = yes; then
12950 runpath_var=LD_RUN_PATH
12951 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12952 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12953 # ancient GNU ld didn't support --whole-archive et. al.
12954 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12955 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12956 else
12957 whole_archive_flag_spec_F77=
12958 fi
12959 fi
12960 else
12961 # PORTME fill in a description of your system's linker (not GNU ld)
12962 case $host_os in
12963 aix3*)
12964 allow_undefined_flag_F77=unsupported
12965 always_export_symbols_F77=yes
12966 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'
12967 # Note: this linker hardcodes the directories in LIBPATH if there
12968 # are no directories specified by -L.
12969 hardcode_minus_L_F77=yes
12970 if test "$GCC" = yes && test -z "$link_static_flag"; then
12971 # Neither direct hardcoding nor static linking is supported with a
12972 # broken collect2.
12973 hardcode_direct_F77=unsupported
12974 fi
12975 ;;
12976
12977 aix4* | aix5*)
12978 if test "$host_cpu" = ia64; then
12979 # On IA64, the linker does run time linking by default, so we don't
12980 # have to do anything special.
12981 aix_use_runtimelinking=no
12982 exp_sym_flag='-Bexport'
12983 no_entry_flag=""
12984 else
12985 # If we're using GNU nm, then we don't want the "-C" option.
12986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12987 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12988 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'
12989 else
12990 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'
12991 fi
12992 aix_use_runtimelinking=no
12993
12994 # Test if we are trying to use run time linking or normal
12995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12996 # need to do runtime linking.
12997 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12998 for ld_flag in $LDFLAGS; do
12999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13000 aix_use_runtimelinking=yes
13001 break
13002 fi
13003 done
13004 esac
13005
13006 exp_sym_flag='-bexport'
13007 no_entry_flag='-bnoentry'
13008 fi
13009
13010 # When large executables or shared objects are built, AIX ld can
13011 # have problems creating the table of contents. If linking a library
13012 # or program results in "error TOC overflow" add -mminimal-toc to
13013 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13014 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13015
13016 archive_cmds_F77=''
13017 hardcode_direct_F77=yes
13018 hardcode_libdir_separator_F77=':'
13019 link_all_deplibs_F77=yes
13020
13021 if test "$GCC" = yes; then
13022 case $host_os in aix4.012|aix4.012.*)
13023 # We only want to do this on AIX 4.2 and lower, the check
13024 # below for broken collect2 doesn't work under 4.3+
13025 collect2name=`${CC} -print-prog-name=collect2`
13026 if test -f "$collect2name" && \
13027 strings "$collect2name" | grep resolve_lib_name >/dev/null
13028 then
13029 # We have reworked collect2
13030 hardcode_direct_F77=yes
13031 else
13032 # We have old collect2
13033 hardcode_direct_F77=unsupported
13034 # It fails to find uninstalled libraries when the uninstalled
13035 # path is not listed in the libpath. Setting hardcode_minus_L
13036 # to unsupported forces relinking
13037 hardcode_minus_L_F77=yes
13038 hardcode_libdir_flag_spec_F77='-L$libdir'
13039 hardcode_libdir_separator_F77=
13040 fi
13041 esac
13042 shared_flag='-shared'
13043 else
13044 # not using gcc
13045 if test "$host_cpu" = ia64; then
13046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13047 # chokes on -Wl,-G. The following line is correct:
13048 shared_flag='-G'
13049 else
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag='${wl}-G'
13052 else
13053 shared_flag='${wl}-bM:SRE'
13054 fi
13055 fi
13056 fi
13057
13058 # It seems that -bexpall does not export symbols beginning with
13059 # underscore (_), so it is better to generate a list of symbols to export.
13060 always_export_symbols_F77=yes
13061 if test "$aix_use_runtimelinking" = yes; then
13062 # Warning - without using the other runtime loading flags (-brtl),
13063 # -berok will link without error, but may produce a broken library.
13064 allow_undefined_flag_F77='-berok'
13065 # Determine the default libpath from the value encoded in an empty executable.
13066 cat >conftest.$ac_ext <<_ACEOF
13067 program main
13068
13069 end
13070_ACEOF
13071rm -f conftest.$ac_objext conftest$ac_exeext
13072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083
13084aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13085}'`
13086# Check for a 64-bit object if we didn't find anything.
13087if 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; }
13088}'`; fi
13089else
13090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013091sed 's/^/| /' conftest.$ac_ext >&5
13092
John Criswell47fdd832003-07-14 16:52:07 +000013093fi
13094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13095if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13096
13097 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13098 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"
13099 else
13100 if test "$host_cpu" = ia64; then
13101 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13102 allow_undefined_flag_F77="-z nodefs"
13103 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"
13104 else
13105 # Determine the default libpath from the value encoded in an empty executable.
13106 cat >conftest.$ac_ext <<_ACEOF
13107 program main
13108
13109 end
13110_ACEOF
13111rm -f conftest.$ac_objext conftest$ac_exeext
13112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123
13124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13125}'`
13126# Check for a 64-bit object if we didn't find anything.
13127if 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; }
13128}'`; fi
13129else
13130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013131sed 's/^/| /' conftest.$ac_ext >&5
13132
John Criswell47fdd832003-07-14 16:52:07 +000013133fi
13134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13135if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13136
13137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13138 # Warning - without using the other run time loading flags,
13139 # -berok will link without error, but may produce a broken library.
13140 no_undefined_flag_F77=' ${wl}-bernotok'
13141 allow_undefined_flag_F77=' ${wl}-berok'
13142 # -bexpall does not export symbols beginning with underscore (_)
13143 always_export_symbols_F77=yes
13144 # Exported symbols can be pulled into shared objects from archives
13145 whole_archive_flag_spec_F77=' '
13146 archive_cmds_need_lc_F77=yes
13147 # This is similar to how AIX traditionally builds it's shared libraries.
13148 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'
13149 fi
13150 fi
13151 ;;
13152
13153 amigaos*)
13154 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)'
13155 hardcode_libdir_flag_spec_F77='-L$libdir'
13156 hardcode_minus_L_F77=yes
13157 # see comment about different semantics on the GNU ld section
13158 ld_shlibs_F77=no
13159 ;;
13160
13161 bsdi4*)
13162 export_dynamic_flag_spec_F77=-rdynamic
13163 ;;
13164
13165 cygwin* | mingw* | pw32*)
13166 # When not using gcc, we currently assume that we are using
13167 # Microsoft Visual C++.
13168 # hardcode_libdir_flag_spec is actually meaningless, as there is
13169 # no search path for DLLs.
13170 hardcode_libdir_flag_spec_F77=' '
13171 allow_undefined_flag_F77=unsupported
13172 # Tell ltmain to make .lib files, not .a files.
13173 libext=lib
13174 # Tell ltmain to make .dll files, not .so files.
13175 shrext=".dll"
13176 # FIXME: Setting linknames here is a bad hack.
13177 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13178 # The linker will automatically build a .lib file if we build a DLL.
13179 old_archive_From_new_cmds_F77='true'
13180 # FIXME: Should let the user specify the lib program.
13181 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13182 fix_srcfile_path='`cygpath -w "$srcfile"`'
13183 enable_shared_with_static_runtimes_F77=yes
13184 ;;
13185
13186 darwin* | rhapsody*)
13187 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13188 archive_cmds_need_lc_F77=no
13189 case "$host_os" in
13190 rhapsody* | darwin1.[012])
13191 allow_undefined_flag_F77='-undefined suppress'
13192 ;;
13193 *) # Darwin 1.3 on
13194 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13195 ;;
13196 esac
13197 # FIXME: Relying on posixy $() will cause problems for
13198 # cross-compilation, but unfortunately the echo tests do not
13199 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13200 # `"' quotes if we put them in here... so don't!
13201 lt_int_apple_cc_single_mod=no
13202 output_verbose_link_cmd='echo'
13203 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13204 lt_int_apple_cc_single_mod=yes
13205 fi
13206 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13207 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13208 else
13209 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'
13210 fi
13211 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13214 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}'
13215 else
13216 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}'
13217 fi
13218 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}'
13219 hardcode_direct_F77=no
13220 hardcode_automatic_F77=yes
13221 hardcode_shlibpath_var_F77=unsupported
13222 whole_archive_flag_spec_F77='-all_load $convenience'
13223 link_all_deplibs_F77=yes
13224 fi
13225 ;;
13226
13227 dgux*)
13228 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13229 hardcode_libdir_flag_spec_F77='-L$libdir'
13230 hardcode_shlibpath_var_F77=no
13231 ;;
13232
13233 freebsd1*)
13234 ld_shlibs_F77=no
13235 ;;
13236
13237 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13238 # support. Future versions do this automatically, but an explicit c++rt0.o
13239 # does not break anything, and helps significantly (at the cost of a little
13240 # extra space).
13241 freebsd2.2*)
13242 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13243 hardcode_libdir_flag_spec_F77='-R$libdir'
13244 hardcode_direct_F77=yes
13245 hardcode_shlibpath_var_F77=no
13246 ;;
13247
13248 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13249 freebsd2*)
13250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_direct_F77=yes
13252 hardcode_minus_L_F77=yes
13253 hardcode_shlibpath_var_F77=no
13254 ;;
13255
13256 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13257 freebsd*)
13258 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13259 hardcode_libdir_flag_spec_F77='-R$libdir'
13260 hardcode_direct_F77=yes
13261 hardcode_shlibpath_var_F77=no
13262 ;;
13263
13264 hpux9*)
13265 if test "$GCC" = yes; then
13266 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'
13267 else
13268 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'
13269 fi
13270 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13271 hardcode_libdir_separator_F77=:
13272 hardcode_direct_F77=yes
13273
13274 # hardcode_minus_L: Not really in the search PATH,
13275 # but as the default location of the library.
13276 hardcode_minus_L_F77=yes
13277 export_dynamic_flag_spec_F77='${wl}-E'
13278 ;;
13279
13280 hpux10* | hpux11*)
13281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13282 case "$host_cpu" in
13283 hppa*64*|ia64*)
13284 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13285 ;;
13286 *)
13287 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13288 ;;
13289 esac
13290 else
13291 case "$host_cpu" in
13292 hppa*64*|ia64*)
13293 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13294 ;;
13295 *)
13296 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13297 ;;
13298 esac
13299 fi
13300 if test "$with_gnu_ld" = no; then
13301 case "$host_cpu" in
13302 hppa*64*)
13303 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13304 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13305 hardcode_libdir_separator_F77=:
13306 hardcode_direct_F77=no
13307 hardcode_shlibpath_var_F77=no
13308 ;;
13309 ia64*)
13310 hardcode_libdir_flag_spec_F77='-L$libdir'
13311 hardcode_direct_F77=no
13312 hardcode_shlibpath_var_F77=no
13313
13314 # hardcode_minus_L: Not really in the search PATH,
13315 # but as the default location of the library.
13316 hardcode_minus_L_F77=yes
13317 ;;
13318 *)
13319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13320 hardcode_libdir_separator_F77=:
13321 hardcode_direct_F77=yes
13322 export_dynamic_flag_spec_F77='${wl}-E'
13323
13324 # hardcode_minus_L: Not really in the search PATH,
13325 # but as the default location of the library.
13326 hardcode_minus_L_F77=yes
13327 ;;
13328 esac
13329 fi
13330 ;;
13331
13332 irix5* | irix6* | nonstopux*)
13333 if test "$GCC" = yes; then
13334 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'
13335 else
13336 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'
13337 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13338 fi
13339 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_F77=:
13341 link_all_deplibs_F77=yes
13342 ;;
13343
13344 netbsd*)
13345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13347 else
13348 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13349 fi
13350 hardcode_libdir_flag_spec_F77='-R$libdir'
13351 hardcode_direct_F77=yes
13352 hardcode_shlibpath_var_F77=no
13353 ;;
13354
13355 newsos6)
13356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13357 hardcode_direct_F77=yes
13358 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13359 hardcode_libdir_separator_F77=:
13360 hardcode_shlibpath_var_F77=no
13361 ;;
13362
13363 openbsd*)
13364 hardcode_direct_F77=yes
13365 hardcode_shlibpath_var_F77=no
13366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13367 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13368 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13369 export_dynamic_flag_spec_F77='${wl}-E'
13370 else
13371 case $host_os in
13372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13373 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13374 hardcode_libdir_flag_spec_F77='-R$libdir'
13375 ;;
13376 *)
13377 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13378 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13379 ;;
13380 esac
13381 fi
13382 ;;
13383
13384 os2*)
13385 hardcode_libdir_flag_spec_F77='-L$libdir'
13386 hardcode_minus_L_F77=yes
13387 allow_undefined_flag_F77=unsupported
13388 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'
13389 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13390 ;;
13391
13392 osf3*)
13393 if test "$GCC" = yes; then
13394 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13395 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'
13396 else
13397 allow_undefined_flag_F77=' -expect_unresolved \*'
13398 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'
13399 fi
13400 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13401 hardcode_libdir_separator_F77=:
13402 ;;
13403
13404 osf4* | osf5*) # as osf3* with the addition of -msym flag
13405 if test "$GCC" = yes; then
13406 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13407 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'
13408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13409 else
13410 allow_undefined_flag_F77=' -expect_unresolved \*'
13411 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'
13412 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~
13413 $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'
13414
13415 # Both c and cxx compiler support -rpath directly
13416 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13417 fi
13418 hardcode_libdir_separator_F77=:
13419 ;;
13420
13421 sco3.2v5*)
13422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13423 hardcode_shlibpath_var_F77=no
13424 export_dynamic_flag_spec_F77='${wl}-Bexport'
13425 runpath_var=LD_RUN_PATH
13426 hardcode_runpath_var=yes
13427 ;;
13428
13429 solaris*)
13430 no_undefined_flag_F77=' -z text'
13431 if test "$GCC" = yes; then
13432 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13433 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13434 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13435 else
13436 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13439 fi
13440 hardcode_libdir_flag_spec_F77='-R$libdir'
13441 hardcode_shlibpath_var_F77=no
13442 case $host_os in
13443 solaris2.[0-5] | solaris2.[0-5].*) ;;
13444 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13445 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13446 esac
13447 link_all_deplibs_F77=yes
13448 ;;
13449
13450 sunos4*)
13451 if test "x$host_vendor" = xsequent; then
13452 # Use $CC to link under sequent, because it throws in some extra .o
13453 # files that make .init and .fini sections work.
13454 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13455 else
13456 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13457 fi
13458 hardcode_libdir_flag_spec_F77='-L$libdir'
13459 hardcode_direct_F77=yes
13460 hardcode_minus_L_F77=yes
13461 hardcode_shlibpath_var_F77=no
13462 ;;
13463
13464 sysv4)
13465 case $host_vendor in
13466 sni)
13467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_direct_F77=yes # is this really true???
13469 ;;
13470 siemens)
13471 ## LD is ld it makes a PLAMLIB
13472 ## CC just makes a GrossModule.
13473 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13474 reload_cmds_F77='$CC -r -o $output$reload_objs'
13475 hardcode_direct_F77=no
13476 ;;
13477 motorola)
13478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13480 ;;
13481 esac
13482 runpath_var='LD_RUN_PATH'
13483 hardcode_shlibpath_var_F77=no
13484 ;;
13485
13486 sysv4.3*)
13487 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_shlibpath_var_F77=no
13489 export_dynamic_flag_spec_F77='-Bexport'
13490 ;;
13491
13492 sysv4*MP*)
13493 if test -d /usr/nec; then
13494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_shlibpath_var_F77=no
13496 runpath_var=LD_RUN_PATH
13497 hardcode_runpath_var=yes
13498 ld_shlibs_F77=yes
13499 fi
13500 ;;
13501
13502 sysv4.2uw2*)
13503 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_direct_F77=yes
13505 hardcode_minus_L_F77=no
13506 hardcode_shlibpath_var_F77=no
13507 hardcode_runpath_var=yes
13508 runpath_var=LD_RUN_PATH
13509 ;;
13510
13511 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13512 no_undefined_flag_F77='${wl}-z ${wl}text'
13513 if test "$GCC" = yes; then
13514 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13515 else
13516 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 fi
13518 runpath_var='LD_RUN_PATH'
13519 hardcode_shlibpath_var_F77=no
13520 ;;
13521
13522 sysv5*)
13523 no_undefined_flag_F77=' -z text'
13524 # $CC -shared without GNU ld will not create a library from C++
13525 # object files and a static libstdc++, better avoid it by now
13526 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13529 hardcode_libdir_flag_spec_F77=
13530 hardcode_shlibpath_var_F77=no
13531 runpath_var='LD_RUN_PATH'
13532 ;;
13533
13534 uts4*)
13535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 hardcode_libdir_flag_spec_F77='-L$libdir'
13537 hardcode_shlibpath_var_F77=no
13538 ;;
13539
13540 *)
13541 ld_shlibs_F77=no
13542 ;;
13543 esac
13544 fi
13545
13546echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13547echo "${ECHO_T}$ld_shlibs_F77" >&6
13548test "$ld_shlibs_F77" = no && can_build_shared=no
13549
13550variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13551if test "$GCC" = yes; then
13552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13553fi
13554
13555#
13556# Do we need to explicitly link libc?
13557#
13558case "x$archive_cmds_need_lc_F77" in
13559x|xyes)
13560 # Assume -lc should be added
13561 archive_cmds_need_lc_F77=yes
13562
13563 if test "$enable_shared" = yes && test "$GCC" = yes; then
13564 case $archive_cmds_F77 in
13565 *'~'*)
13566 # FIXME: we may have to deal with multi-command sequences.
13567 ;;
13568 '$CC '*)
13569 # Test whether the compiler implicitly links with -lc since on some
13570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13571 # to ld, don't add -lc before -lgcc.
13572 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13573echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13574 $rm conftest*
13575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13576
13577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } 2>conftest.err; then
13582 soname=conftest
13583 lib=conftest
13584 libobjs=conftest.$ac_objext
13585 deplibs=
13586 wl=$lt_prog_compiler_wl_F77
13587 compiler_flags=-v
13588 linker_flags=-v
13589 verstring=
13590 output_objdir=.
13591 libname=conftest
13592 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13593 allow_undefined_flag_F77=
13594 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13595 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }
13599 then
13600 archive_cmds_need_lc_F77=no
13601 else
13602 archive_cmds_need_lc_F77=yes
13603 fi
13604 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13605 else
13606 cat conftest.err 1>&5
13607 fi
13608 $rm conftest*
13609 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13610echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13611 ;;
13612 esac
13613 fi
13614 ;;
13615esac
13616
13617echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13618echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13619hardcode_action_F77=
13620if test -n "$hardcode_libdir_flag_spec_F77" || \
13621 test -n "$runpath_var F77" || \
13622 test "X$hardcode_automatic_F77"="Xyes" ; then
13623
13624 # We can hardcode non-existant directories.
13625 if test "$hardcode_direct_F77" != no &&
13626 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13627 # have to relink, otherwise we might link with an installed library
13628 # when we should be linking with a yet-to-be-installed one
13629 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13630 test "$hardcode_minus_L_F77" != no; then
13631 # Linking always hardcodes the temporary library directory.
13632 hardcode_action_F77=relink
13633 else
13634 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13635 hardcode_action_F77=immediate
13636 fi
13637else
13638 # We cannot hardcode anything, or else we can only hardcode existing
13639 # directories.
13640 hardcode_action_F77=unsupported
13641fi
13642echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13643echo "${ECHO_T}$hardcode_action_F77" >&6
13644
13645if test "$hardcode_action_F77" = relink; then
13646 # Fast installation is not supported
13647 enable_fast_install=no
13648elif test "$shlibpath_overrides_runpath" = yes ||
13649 test "$enable_shared" = no; then
13650 # Fast installation is not necessary
13651 enable_fast_install=needless
13652fi
13653
13654striplib=
13655old_striplib=
13656echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13657echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13658if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13659 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13660 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13661 echo "$as_me:$LINENO: result: yes" >&5
13662echo "${ECHO_T}yes" >&6
13663else
13664# FIXME - insert some real tests, host_os isn't really good enough
13665 case $host_os in
13666 darwin*)
13667 if test -n "$STRIP" ; then
13668 striplib="$STRIP -x"
13669 echo "$as_me:$LINENO: result: yes" >&5
13670echo "${ECHO_T}yes" >&6
13671 else
13672 echo "$as_me:$LINENO: result: no" >&5
13673echo "${ECHO_T}no" >&6
13674fi
13675 ;;
13676 *)
13677 echo "$as_me:$LINENO: result: no" >&5
13678echo "${ECHO_T}no" >&6
13679 ;;
13680 esac
13681fi
13682
13683echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13684echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13685library_names_spec=
13686libname_spec='lib$name'
13687soname_spec=
13688shrext=".so"
13689postinstall_cmds=
13690postuninstall_cmds=
13691finish_cmds=
13692finish_eval=
13693shlibpath_var=
13694shlibpath_overrides_runpath=unknown
13695version_type=none
13696dynamic_linker="$host_os ld.so"
13697sys_lib_dlsearch_path_spec="/lib /usr/lib"
13698if test "$GCC" = yes; then
13699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13700 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13701 # if the path contains ";" then we assume it to be the separator
13702 # otherwise default to the standard path separator (i.e. ":") - it is
13703 # assumed that no part of a normal pathname contains ";" but that should
13704 # okay in the real world where ";" in dirpaths is itself problematic.
13705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13706 else
13707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13708 fi
13709else
13710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13711fi
13712need_lib_prefix=unknown
13713hardcode_into_libs=no
13714
13715# when you set need_version to no, make sure it does not cause -set_version
13716# flags to be left without arguments
13717need_version=unknown
13718
13719case $host_os in
13720aix3*)
13721 version_type=linux
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13723 shlibpath_var=LIBPATH
13724
13725 # AIX 3 has no versioning support, so we append a major version to the name.
13726 soname_spec='${libname}${release}${shared_ext}$major'
13727 ;;
13728
13729aix4* | aix5*)
13730 version_type=linux
13731 need_lib_prefix=no
13732 need_version=no
13733 hardcode_into_libs=yes
13734 if test "$host_cpu" = ia64; then
13735 # AIX 5 supports IA64
13736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13737 shlibpath_var=LD_LIBRARY_PATH
13738 else
13739 # With GCC up to 2.95.x, collect2 would create an import file
13740 # for dependence libraries. The import file would start with
13741 # the line `#! .'. This would cause the generated library to
13742 # depend on `.', always an invalid library. This was fixed in
13743 # development snapshots of GCC prior to 3.0.
13744 case $host_os in
13745 aix4 | aix4.[01] | aix4.[01].*)
13746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13747 echo ' yes '
13748 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13749 :
13750 else
13751 can_build_shared=no
13752 fi
13753 ;;
13754 esac
13755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13756 # soname into executable. Probably we can add versioning support to
13757 # collect2, so additional links can be useful in future.
13758 if test "$aix_use_runtimelinking" = yes; then
13759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13760 # instead of lib<name>.a to let people know that these are not
13761 # typical AIX shared libraries.
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763 else
13764 # We preserve .a as extension for shared libraries through AIX4.2
13765 # and later when we are not doing run time linking.
13766 library_names_spec='${libname}${release}.a $libname.a'
13767 soname_spec='${libname}${release}${shared_ext}$major'
13768 fi
13769 shlibpath_var=LIBPATH
13770 fi
13771 ;;
13772
13773amigaos*)
13774 library_names_spec='$libname.ixlibrary $libname.a'
13775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13776 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'
13777 ;;
13778
13779beos*)
13780 library_names_spec='${libname}${shared_ext}'
13781 dynamic_linker="$host_os ld.so"
13782 shlibpath_var=LIBRARY_PATH
13783 ;;
13784
13785bsdi4*)
13786 version_type=linux
13787 need_version=no
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13794 # the default ld.so.conf also contains /usr/contrib/lib and
13795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13796 # libtool to hard-code these into programs
13797 ;;
13798
13799cygwin* | mingw* | pw32*)
13800 version_type=windows
13801 shrext=".dll"
13802 need_version=no
13803 need_lib_prefix=no
13804
13805 case $GCC,$host_os in
13806 yes,cygwin* | yes,mingw* | yes,pw32*)
13807 library_names_spec='$libname.dll.a'
13808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13809 postinstall_cmds='base_file=`basename \${file}`~
13810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13811 dldir=$destdir/`dirname \$dlpath`~
13812 test -d \$dldir || mkdir -p \$dldir~
13813 $install_prog $dir/$dlname \$dldir/$dlname'
13814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13815 dlpath=$dir/\$dldll~
13816 $rm \$dlpath'
13817 shlibpath_overrides_runpath=yes
13818
13819 case $host_os in
13820 cygwin*)
13821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13823 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13824 ;;
13825 mingw*)
13826 # MinGW DLLs use traditional 'lib' prefix
13827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13829 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13830 # It is most probably a Windows format PATH printed by
13831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13832 # path with ; separators, and with drive letters. We can handle the
13833 # drive letters (cygwin fileutils understands them), so leave them,
13834 # especially as we might pass files found there to a mingw objdump,
13835 # which wouldn't understand a cygwinified path. Ahh.
13836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13837 else
13838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13839 fi
13840 ;;
13841 pw32*)
13842 # pw32 DLLs use 'pw' prefix rather than 'lib'
13843 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13844 ;;
13845 esac
13846 ;;
13847
13848 *)
13849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13850 ;;
13851 esac
13852 dynamic_linker='Win32 ld.exe'
13853 # FIXME: first we should search . and the directory the executable is in
13854 shlibpath_var=PATH
13855 ;;
13856
13857darwin* | rhapsody*)
13858 dynamic_linker="$host_os dyld"
13859 version_type=darwin
13860 need_lib_prefix=no
13861 need_version=no
13862 # FIXME: Relying on posixy $() will cause problems for
13863 # cross-compilation, but unfortunately the echo tests do not
13864 # yet detect zsh echo's removal of \ escapes.
13865 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13866 soname_spec='${libname}${release}${major}$shared_ext'
13867 shlibpath_overrides_runpath=yes
13868 shlibpath_var=DYLD_LIBRARY_PATH
13869 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13870 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13871 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13872 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"`
13873 fi
13874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13875 ;;
13876
13877dgux*)
13878 version_type=linux
13879 need_lib_prefix=no
13880 need_version=no
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13882 soname_spec='${libname}${release}${shared_ext}$major'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 ;;
13885
13886freebsd1*)
13887 dynamic_linker=no
13888 ;;
13889
13890freebsd*)
13891 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13892 version_type=freebsd-$objformat
13893 case $version_type in
13894 freebsd-elf*)
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13896 need_version=no
13897 need_lib_prefix=no
13898 ;;
13899 freebsd-*)
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13901 need_version=yes
13902 ;;
13903 esac
13904 shlibpath_var=LD_LIBRARY_PATH
13905 case $host_os in
13906 freebsd2*)
13907 shlibpath_overrides_runpath=yes
13908 ;;
13909 freebsd3.01* | freebsdelf3.01*)
13910 shlibpath_overrides_runpath=yes
13911 hardcode_into_libs=yes
13912 ;;
13913 *) # from 3.2 on
13914 shlibpath_overrides_runpath=no
13915 hardcode_into_libs=yes
13916 ;;
13917 esac
13918 ;;
13919
13920gnu*)
13921 version_type=linux
13922 need_lib_prefix=no
13923 need_version=no
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 shlibpath_var=LD_LIBRARY_PATH
13927 hardcode_into_libs=yes
13928 ;;
13929
13930hpux9* | hpux10* | hpux11*)
13931 # Give a soname corresponding to the major version so that dld.sl refuses to
13932 # link against other versions.
13933 version_type=sunos
13934 need_lib_prefix=no
13935 need_version=no
13936 case "$host_cpu" in
13937 ia64*)
13938 shrext='.so'
13939 hardcode_into_libs=yes
13940 dynamic_linker="$host_os dld.so"
13941 shlibpath_var=LD_LIBRARY_PATH
13942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 if test "X$HPUX_IA64_MODE" = X32; then
13946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13947 else
13948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13949 fi
13950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13951 ;;
13952 hppa*64*)
13953 shrext='.sl'
13954 hardcode_into_libs=yes
13955 dynamic_linker="$host_os dld.sl"
13956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959 soname_spec='${libname}${release}${shared_ext}$major'
13960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13962 ;;
13963 *)
13964 shrext='.sl'
13965 dynamic_linker="$host_os dld.sl"
13966 shlibpath_var=SHLIB_PATH
13967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969 soname_spec='${libname}${release}${shared_ext}$major'
13970 ;;
13971 esac
13972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13973 postinstall_cmds='chmod 555 $lib'
13974 ;;
13975
13976irix5* | irix6* | nonstopux*)
13977 case $host_os in
13978 nonstopux*) version_type=nonstopux ;;
13979 *)
13980 if test "$lt_cv_prog_gnu_ld" = yes; then
13981 version_type=linux
13982 else
13983 version_type=irix
13984 fi ;;
13985 esac
13986 need_lib_prefix=no
13987 need_version=no
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13990 case $host_os in
13991 irix5* | nonstopux*)
13992 libsuff= shlibsuff=
13993 ;;
13994 *)
13995 case $LD in # libtool.m4 will add one of these switches to LD
13996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13997 libsuff= shlibsuff= libmagic=32-bit;;
13998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13999 libsuff=32 shlibsuff=N32 libmagic=N32;;
14000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14002 *) libsuff= shlibsuff= libmagic=never-match;;
14003 esac
14004 ;;
14005 esac
14006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14007 shlibpath_overrides_runpath=no
14008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14010 hardcode_into_libs=yes
14011 ;;
14012
14013# No shared lib support for Linux oldld, aout, or coff.
14014linux*oldld* | linux*aout* | linux*coff*)
14015 dynamic_linker=no
14016 ;;
14017
14018# This must be Linux ELF.
14019linux*)
14020 version_type=linux
14021 need_lib_prefix=no
14022 need_version=no
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 shlibpath_overrides_runpath=no
14028 # This implies no fast_install, which is unacceptable.
14029 # Some rework will be needed to allow for fast_install
14030 # before this can be enabled.
14031 hardcode_into_libs=yes
14032
14033 # We used to test for /lib/ld.so.1 and disable shared libraries on
14034 # powerpc, because MkLinux only supported shared libraries with the
14035 # GNU dynamic linker. Since this was broken with cross compilers,
14036 # most powerpc-linux boxes support dynamic linking these days and
14037 # people can always --disable-shared, the test was removed, and we
14038 # assume the GNU/Linux dynamic linker is in use.
14039 dynamic_linker='GNU/Linux ld.so'
14040 ;;
14041
14042netbsd*)
14043 version_type=sunos
14044 need_lib_prefix=no
14045 need_version=no
14046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14049 dynamic_linker='NetBSD (a.out) ld.so'
14050 else
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 dynamic_linker='NetBSD ld.elf_so'
14054 fi
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes
14057 hardcode_into_libs=yes
14058 ;;
14059
14060newsos6)
14061 version_type=linux
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath=yes
14065 ;;
14066
14067nto-qnx)
14068 version_type=linux
14069 need_lib_prefix=no
14070 need_version=no
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=yes
14075 ;;
14076
14077openbsd*)
14078 version_type=sunos
14079 need_lib_prefix=no
14080 need_version=no
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14085 case $host_os in
14086 openbsd2.[89] | openbsd2.[89].*)
14087 shlibpath_overrides_runpath=no
14088 ;;
14089 *)
14090 shlibpath_overrides_runpath=yes
14091 ;;
14092 esac
14093 else
14094 shlibpath_overrides_runpath=yes
14095 fi
14096 ;;
14097
14098os2*)
14099 libname_spec='$name'
14100 shrext=".dll"
14101 need_lib_prefix=no
14102 library_names_spec='$libname${shared_ext} $libname.a'
14103 dynamic_linker='OS/2 ld.exe'
14104 shlibpath_var=LIBPATH
14105 ;;
14106
14107osf3* | osf4* | osf5*)
14108 version_type=osf
14109 need_lib_prefix=no
14110 need_version=no
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14115 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14116 ;;
14117
14118sco3.2v5*)
14119 version_type=osf
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 ;;
14124
14125solaris*)
14126 version_type=linux
14127 need_lib_prefix=no
14128 need_version=no
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 soname_spec='${libname}${release}${shared_ext}$major'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 shlibpath_overrides_runpath=yes
14133 hardcode_into_libs=yes
14134 # ldd complains unless libraries are executable
14135 postinstall_cmds='chmod +x $lib'
14136 ;;
14137
14138sunos4*)
14139 version_type=sunos
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 shlibpath_overrides_runpath=yes
14144 if test "$with_gnu_ld" = yes; then
14145 need_lib_prefix=no
14146 fi
14147 need_version=yes
14148 ;;
14149
14150sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14151 version_type=linux
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 case $host_vendor in
14156 sni)
14157 shlibpath_overrides_runpath=no
14158 need_lib_prefix=no
14159 export_dynamic_flag_spec='${wl}-Blargedynsym'
14160 runpath_var=LD_RUN_PATH
14161 ;;
14162 siemens)
14163 need_lib_prefix=no
14164 ;;
14165 motorola)
14166 need_lib_prefix=no
14167 need_version=no
14168 shlibpath_overrides_runpath=no
14169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14170 ;;
14171 esac
14172 ;;
14173
14174sysv4*MP*)
14175 if test -d /usr/nec ;then
14176 version_type=linux
14177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14178 soname_spec='$libname${shared_ext}.$major'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 fi
14181 ;;
14182
14183uts4*)
14184 version_type=linux
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 ;;
14189
14190*)
14191 dynamic_linker=no
14192 ;;
14193esac
14194echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14195echo "${ECHO_T}$dynamic_linker" >&6
14196test "$dynamic_linker" = no && can_build_shared=no
14197
14198
14199# The else clause should only fire when bootstrapping the
14200# libtool distribution, otherwise you forgot to ship ltmain.sh
14201# with your package, and you will get complaints that there are
14202# no rules to generate ltmain.sh.
14203if test -f "$ltmain"; then
14204 # See if we are running on zsh, and set the options which allow our commands through
14205 # without removal of \ escapes.
14206 if test -n "${ZSH_VERSION+set}" ; then
14207 setopt NO_GLOB_SUBST
14208 fi
14209 # Now quote all the things that may contain metacharacters while being
14210 # careful not to overquote the AC_SUBSTed values. We take copies of the
14211 # variables and quote the copies for generation of the libtool script.
14212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14215 deplibs_check_method reload_flag reload_cmds need_locks \
14216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14217 lt_cv_sys_global_symbol_to_c_name_address \
14218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14219 old_postinstall_cmds old_postuninstall_cmds \
14220 compiler_F77 \
14221 CC_F77 \
14222 LD_F77 \
14223 lt_prog_compiler_wl_F77 \
14224 lt_prog_compiler_pic_F77 \
14225 lt_prog_compiler_static_F77 \
14226 lt_prog_compiler_no_builtin_flag_F77 \
14227 export_dynamic_flag_spec_F77 \
14228 thread_safe_flag_spec_F77 \
14229 whole_archive_flag_spec_F77 \
14230 enable_shared_with_static_runtimes_F77 \
14231 old_archive_cmds_F77 \
14232 old_archive_from_new_cmds_F77 \
14233 predep_objects_F77 \
14234 postdep_objects_F77 \
14235 predeps_F77 \
14236 postdeps_F77 \
14237 compiler_lib_search_path_F77 \
14238 archive_cmds_F77 \
14239 archive_expsym_cmds_F77 \
14240 postinstall_cmds_F77 \
14241 postuninstall_cmds_F77 \
14242 old_archive_from_expsyms_cmds_F77 \
14243 allow_undefined_flag_F77 \
14244 no_undefined_flag_F77 \
14245 export_symbols_cmds_F77 \
14246 hardcode_libdir_flag_spec_F77 \
14247 hardcode_libdir_flag_spec_ld_F77 \
14248 hardcode_libdir_separator_F77 \
14249 hardcode_automatic_F77 \
14250 module_cmds_F77 \
14251 module_expsym_cmds_F77 \
14252 lt_cv_prog_compiler_c_o_F77 \
14253 exclude_expsyms_F77 \
14254 include_expsyms_F77; do
14255
14256 case $var in
14257 old_archive_cmds_F77 | \
14258 old_archive_from_new_cmds_F77 | \
14259 archive_cmds_F77 | \
14260 archive_expsym_cmds_F77 | \
14261 module_cmds_F77 | \
14262 module_expsym_cmds_F77 | \
14263 old_archive_from_expsyms_cmds_F77 | \
14264 export_symbols_cmds_F77 | \
14265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14266 postinstall_cmds | postuninstall_cmds | \
14267 old_postinstall_cmds | old_postuninstall_cmds | \
14268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14269 # Double-quote double-evaled strings.
14270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14271 ;;
14272 *)
14273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14274 ;;
14275 esac
14276 done
14277
14278 case $lt_echo in
14279 *'\$0 --fallback-echo"')
14280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14281 ;;
14282 esac
14283
14284cfgfile="$ofile"
14285
14286 cat <<__EOF__ >> "$cfgfile"
14287# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14288
14289# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14290
14291# Shell to use when invoking shell scripts.
14292SHELL=$lt_SHELL
14293
14294# Whether or not to build shared libraries.
14295build_libtool_libs=$enable_shared
14296
14297# Whether or not to build static libraries.
14298build_old_libs=$enable_static
14299
14300# Whether or not to add -lc for building shared libraries.
14301build_libtool_need_lc=$archive_cmds_need_lc_F77
14302
14303# Whether or not to disallow shared libs when runtime libs are static
14304allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14305
14306# Whether or not to optimize for fast installation.
14307fast_install=$enable_fast_install
14308
14309# The host system.
14310host_alias=$host_alias
14311host=$host
14312
14313# An echo program that does not interpret backslashes.
14314echo=$lt_echo
14315
14316# The archiver.
14317AR=$lt_AR
14318AR_FLAGS=$lt_AR_FLAGS
14319
14320# A C compiler.
14321LTCC=$lt_LTCC
14322
14323# A language-specific compiler.
14324CC=$lt_compiler_F77
14325
14326# Is the compiler the GNU C compiler?
14327with_gcc=$GCC_F77
14328
14329# An ERE matcher.
14330EGREP=$lt_EGREP
14331
14332# The linker used to build libraries.
14333LD=$lt_LD_F77
14334
14335# Whether we need hard or soft links.
14336LN_S=$lt_LN_S
14337
14338# A BSD-compatible nm program.
14339NM=$lt_NM
14340
14341# A symbol stripping program
14342STRIP=$STRIP
14343
14344# Used to examine libraries when file_magic_cmd begins "file"
14345MAGIC_CMD=$MAGIC_CMD
14346
14347# Used on cygwin: DLL creation program.
14348DLLTOOL="$DLLTOOL"
14349
14350# Used on cygwin: object dumper.
14351OBJDUMP="$OBJDUMP"
14352
14353# Used on cygwin: assembler.
14354AS="$AS"
14355
14356# The name of the directory that contains temporary libtool files.
14357objdir=$objdir
14358
14359# How to create reloadable object files.
14360reload_flag=$lt_reload_flag
14361reload_cmds=$lt_reload_cmds
14362
14363# How to pass a linker flag through the compiler.
14364wl=$lt_lt_prog_compiler_wl_F77
14365
14366# Object file suffix (normally "o").
14367objext="$ac_objext"
14368
14369# Old archive suffix (normally "a").
14370libext="$libext"
14371
14372# Shared library suffix (normally ".so").
14373shrext='$shrext'
14374
14375# Executable file suffix (normally "").
14376exeext="$exeext"
14377
14378# Additional compiler flags for building library objects.
14379pic_flag=$lt_lt_prog_compiler_pic_F77
14380pic_mode=$pic_mode
14381
14382# What is the maximum length of a command?
14383max_cmd_len=$lt_cv_sys_max_cmd_len
14384
14385# Does compiler simultaneously support -c and -o options?
14386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14387
14388# Must we lock files when doing compilation ?
14389need_locks=$lt_need_locks
14390
14391# Do we need the lib prefix for modules?
14392need_lib_prefix=$need_lib_prefix
14393
14394# Do we need a version for libraries?
14395need_version=$need_version
14396
14397# Whether dlopen is supported.
14398dlopen_support=$enable_dlopen
14399
14400# Whether dlopen of programs is supported.
14401dlopen_self=$enable_dlopen_self
14402
14403# Whether dlopen of statically linked programs is supported.
14404dlopen_self_static=$enable_dlopen_self_static
14405
14406# Compiler flag to prevent dynamic linking.
14407link_static_flag=$lt_lt_prog_compiler_static_F77
14408
14409# Compiler flag to turn off builtin functions.
14410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14411
14412# Compiler flag to allow reflexive dlopens.
14413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14414
14415# Compiler flag to generate shared objects directly from archives.
14416whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14417
14418# Compiler flag to generate thread-safe objects.
14419thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14420
14421# Library versioning type.
14422version_type=$version_type
14423
14424# Format of library name prefix.
14425libname_spec=$lt_libname_spec
14426
14427# List of archive names. First name is the real one, the rest are links.
14428# The last name is the one that the linker finds with -lNAME.
14429library_names_spec=$lt_library_names_spec
14430
14431# The coded name of the library, if different from the real name.
14432soname_spec=$lt_soname_spec
14433
14434# Commands used to build and install an old-style archive.
14435RANLIB=$lt_RANLIB
14436old_archive_cmds=$lt_old_archive_cmds_F77
14437old_postinstall_cmds=$lt_old_postinstall_cmds
14438old_postuninstall_cmds=$lt_old_postuninstall_cmds
14439
14440# Create an old-style archive from a shared archive.
14441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14442
14443# Create a temporary old-style archive to link instead of a shared archive.
14444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14445
14446# Commands used to build and install a shared archive.
14447archive_cmds=$lt_archive_cmds_F77
14448archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14449postinstall_cmds=$lt_postinstall_cmds
14450postuninstall_cmds=$lt_postuninstall_cmds
14451
14452# Commands used to build a loadable module (assumed same as above if empty)
14453module_cmds=$lt_module_cmds_F77
14454module_expsym_cmds=$lt_module_expsym_cmds_F77
14455
14456# Commands to strip libraries.
14457old_striplib=$lt_old_striplib
14458striplib=$lt_striplib
14459
14460# Dependencies to place before the objects being linked to create a
14461# shared library.
14462predep_objects=$lt_predep_objects_F77
14463
14464# Dependencies to place after the objects being linked to create a
14465# shared library.
14466postdep_objects=$lt_postdep_objects_F77
14467
14468# Dependencies to place before the objects being linked to create a
14469# shared library.
14470predeps=$lt_predeps_F77
14471
14472# Dependencies to place after the objects being linked to create a
14473# shared library.
14474postdeps=$lt_postdeps_F77
14475
14476# The library search path used internally by the compiler when linking
14477# a shared library.
14478compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14479
14480# Method to check whether dependent libraries are shared objects.
14481deplibs_check_method=$lt_deplibs_check_method
14482
14483# Command to use when deplibs_check_method == file_magic.
14484file_magic_cmd=$lt_file_magic_cmd
14485
14486# Flag that allows shared libraries with undefined symbols to be built.
14487allow_undefined_flag=$lt_allow_undefined_flag_F77
14488
14489# Flag that forces no undefined symbols.
14490no_undefined_flag=$lt_no_undefined_flag_F77
14491
14492# Commands used to finish a libtool library installation in a directory.
14493finish_cmds=$lt_finish_cmds
14494
14495# Same as above, but a single script fragment to be evaled but not shown.
14496finish_eval=$lt_finish_eval
14497
14498# Take the output of nm and produce a listing of raw symbols and C names.
14499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14500
14501# Transform the output of nm in a proper C declaration
14502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14503
14504# Transform the output of nm in a C name address pair
14505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14506
14507# This is the shared library runtime path variable.
14508runpath_var=$runpath_var
14509
14510# This is the shared library path variable.
14511shlibpath_var=$shlibpath_var
14512
14513# Is shlibpath searched before the hard-coded library search path?
14514shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14515
14516# How to hardcode a shared library path into an executable.
14517hardcode_action=$hardcode_action_F77
14518
14519# Whether we should hardcode library paths into libraries.
14520hardcode_into_libs=$hardcode_into_libs
14521
14522# Flag to hardcode \$libdir into a binary during linking.
14523# This must work even if \$libdir does not exist.
14524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14525
14526# If ld is used when linking, flag to hardcode \$libdir into
14527# a binary during linking. This must work even if \$libdir does
14528# not exist.
14529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14530
14531# Whether we need a single -rpath flag with a separated argument.
14532hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14533
14534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14535# resulting binary.
14536hardcode_direct=$hardcode_direct_F77
14537
14538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14539# resulting binary.
14540hardcode_minus_L=$hardcode_minus_L_F77
14541
14542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14543# the resulting binary.
14544hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14545
14546# Set to yes if building a shared library automatically hardcodes DIR into the library
14547# and all subsequent libraries and executables linked against it.
14548hardcode_automatic=$hardcode_automatic_F77
14549
14550# Variables whose values should be saved in libtool wrapper scripts and
14551# restored at relink time.
14552variables_saved_for_relink="$variables_saved_for_relink"
14553
14554# Whether libtool must link a program against all its dependency libraries.
14555link_all_deplibs=$link_all_deplibs_F77
14556
14557# Compile-time system search path for libraries
14558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14559
14560# Run-time system search path for libraries
14561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14562
14563# Fix the shell variable \$srcfile for the compiler.
14564fix_srcfile_path="$fix_srcfile_path_F77"
14565
14566# Set to yes if exported symbols are required.
14567always_export_symbols=$always_export_symbols_F77
14568
14569# The commands to list exported symbols.
14570export_symbols_cmds=$lt_export_symbols_cmds_F77
14571
14572# The commands to extract the exported symbol list from a shared archive.
14573extract_expsyms_cmds=$lt_extract_expsyms_cmds
14574
14575# Symbols that should not be listed in the preloaded symbols.
14576exclude_expsyms=$lt_exclude_expsyms_F77
14577
14578# Symbols that must always be exported.
14579include_expsyms=$lt_include_expsyms_F77
14580
14581# ### END LIBTOOL TAG CONFIG: $tagname
14582
14583__EOF__
14584
14585
14586else
14587 # If there is no Makefile yet, we rely on a make rule to execute
14588 # `config.status --recheck' to rerun these tests and create the
14589 # libtool script then.
14590 test -f Makefile && make "$ltmain"
14591fi
14592
14593
14594ac_ext=c
14595ac_cpp='$CPP $CPPFLAGS'
14596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14598ac_compiler_gnu=$ac_cv_c_compiler_gnu
14599
14600CC="$lt_save_CC"
14601
14602 else
14603 tagname=""
14604 fi
14605 ;;
14606
14607 GCJ)
14608 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14609
14610
14611
14612# Source file extension for Java test sources.
14613ac_ext=java
14614
14615# Object file extension for compiled Java test sources.
14616objext=o
14617objext_GCJ=$objext
14618
14619# Code to be used in simple compile tests
14620lt_simple_compile_test_code="class foo {}\n"
14621
14622# Code to be used in simple link tests
14623lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14624
14625# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14626
14627# If no C compiler was specified, use CC.
14628LTCC=${LTCC-"$CC"}
14629
14630# Allow CC to be a program name with arguments.
14631compiler=$CC
14632
14633
14634# Allow CC to be a program name with arguments.
14635lt_save_CC="$CC"
14636CC=${GCJ-"gcj"}
14637compiler=$CC
14638compiler_GCJ=$CC
14639
14640# GCJ did not exist at the time GCC didn't implicitly link libc in.
14641archive_cmds_need_lc_GCJ=no
14642
John Criswell47fdd832003-07-14 16:52:07 +000014643
14644lt_prog_compiler_no_builtin_flag_GCJ=
14645
14646if test "$GCC" = yes; then
14647 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14648
14649 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14650echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14651if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653else
14654 lt_cv_prog_compiler_rtti_exceptions=no
14655 ac_outfile=conftest.$ac_objext
14656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14657 lt_compiler_flag="-fno-rtti -fno-exceptions"
14658 # Insert the option either (1) after the last *FLAGS variable, or
14659 # (2) before a word containing "conftest.", or (3) at the end.
14660 # Note that $ac_compile itself does not contain backslashes and begins
14661 # with a dollar sign (not a hyphen), so the echo should work correctly.
14662 # The option is referenced via a variable to avoid confusing sed.
14663 lt_compile=`echo "$ac_compile" | $SED \
14664 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14666 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +000014667 (eval echo "\"\$as_me:14667: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014668 (eval "$lt_compile" 2>conftest.err)
14669 ac_status=$?
14670 cat conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +000014671 echo "$as_me:14671: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014672 if (exit $ac_status) && test -s "$ac_outfile"; then
14673 # The compiler can only warn and ignore the option if not recognized
14674 # So say no if there are warnings
14675 if test ! -s conftest.err; then
14676 lt_cv_prog_compiler_rtti_exceptions=yes
14677 fi
14678 fi
14679 $rm conftest*
14680
14681fi
14682echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14683echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14684
14685if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14686 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14687else
14688 :
14689fi
14690
14691fi
14692
14693lt_prog_compiler_wl_GCJ=
14694lt_prog_compiler_pic_GCJ=
14695lt_prog_compiler_static_GCJ=
14696
14697echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14698echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14699
14700 if test "$GCC" = yes; then
14701 lt_prog_compiler_wl_GCJ='-Wl,'
14702 lt_prog_compiler_static_GCJ='-static'
14703
14704 case $host_os in
14705 aix*)
14706 # All AIX code is PIC.
14707 if test "$host_cpu" = ia64; then
14708 # AIX 5 now supports IA64 processor
14709 lt_prog_compiler_static_GCJ='-Bstatic'
14710 fi
14711 ;;
14712
14713 amigaos*)
14714 # FIXME: we need at least 68020 code to build shared libraries, but
14715 # adding the `-m68020' flag to GCC prevents building anything better,
14716 # like `-m68040'.
14717 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14718 ;;
14719
14720 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14721 # PIC is the default for these OSes.
14722 ;;
14723
14724 mingw* | pw32* | os2*)
14725 # This hack is so that the source file can tell whether it is being
14726 # built for inclusion in a dll (and should export symbols for example).
14727 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14728 ;;
14729
14730 darwin* | rhapsody*)
14731 # PIC is the default on this platform
14732 # Common symbols not allowed in MH_DYLIB files
14733 lt_prog_compiler_pic_GCJ='-fno-common'
14734 ;;
14735
14736 msdosdjgpp*)
14737 # Just because we use GCC doesn't mean we suddenly get shared libraries
14738 # on systems that don't support them.
14739 lt_prog_compiler_can_build_shared_GCJ=no
14740 enable_shared=no
14741 ;;
14742
14743 sysv4*MP*)
14744 if test -d /usr/nec; then
14745 lt_prog_compiler_pic_GCJ=-Kconform_pic
14746 fi
14747 ;;
14748
14749 hpux*)
14750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14751 # not for PA HP-UX.
14752 case "$host_cpu" in
14753 hppa*64*|ia64*)
14754 # +Z the default
14755 ;;
14756 *)
14757 lt_prog_compiler_pic_GCJ='-fPIC'
14758 ;;
14759 esac
14760 ;;
14761
14762 *)
14763 lt_prog_compiler_pic_GCJ='-fPIC'
14764 ;;
14765 esac
14766 else
14767 # PORTME Check for flag to pass linker flags through the system compiler.
14768 case $host_os in
14769 aix*)
14770 lt_prog_compiler_wl_GCJ='-Wl,'
14771 if test "$host_cpu" = ia64; then
14772 # AIX 5 now supports IA64 processor
14773 lt_prog_compiler_static_GCJ='-Bstatic'
14774 else
14775 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14776 fi
14777 ;;
14778
14779 mingw* | pw32* | os2*)
14780 # This hack is so that the source file can tell whether it is being
14781 # built for inclusion in a dll (and should export symbols for example).
14782 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14783 ;;
14784
14785 hpux9* | hpux10* | hpux11*)
14786 lt_prog_compiler_wl_GCJ='-Wl,'
14787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14788 # not for PA HP-UX.
14789 case "$host_cpu" in
14790 hppa*64*|ia64*)
14791 # +Z the default
14792 ;;
14793 *)
14794 lt_prog_compiler_pic_GCJ='+Z'
14795 ;;
14796 esac
14797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14798 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14799 ;;
14800
14801 irix5* | irix6* | nonstopux*)
14802 lt_prog_compiler_wl_GCJ='-Wl,'
14803 # PIC (with -KPIC) is the default.
14804 lt_prog_compiler_static_GCJ='-non_shared'
14805 ;;
14806
14807 newsos6)
14808 lt_prog_compiler_pic_GCJ='-KPIC'
14809 lt_prog_compiler_static_GCJ='-Bstatic'
14810 ;;
14811
14812 linux*)
14813 case $CC in
14814 icc|ecc)
14815 lt_prog_compiler_wl_GCJ='-Wl,'
14816 lt_prog_compiler_pic_GCJ='-KPIC'
14817 lt_prog_compiler_static_GCJ='-static'
14818 ;;
14819 ccc)
14820 lt_prog_compiler_wl_GCJ='-Wl,'
14821 # All Alpha code is PIC.
14822 lt_prog_compiler_static_GCJ='-non_shared'
14823 ;;
14824 esac
14825 ;;
14826
14827 osf3* | osf4* | osf5*)
14828 lt_prog_compiler_wl_GCJ='-Wl,'
14829 # All OSF/1 code is PIC.
14830 lt_prog_compiler_static_GCJ='-non_shared'
14831 ;;
14832
14833 sco3.2v5*)
14834 lt_prog_compiler_pic_GCJ='-Kpic'
14835 lt_prog_compiler_static_GCJ='-dn'
14836 ;;
14837
14838 solaris*)
14839 lt_prog_compiler_wl_GCJ='-Wl,'
14840 lt_prog_compiler_pic_GCJ='-KPIC'
14841 lt_prog_compiler_static_GCJ='-Bstatic'
14842 ;;
14843
14844 sunos4*)
14845 lt_prog_compiler_wl_GCJ='-Qoption ld '
14846 lt_prog_compiler_pic_GCJ='-PIC'
14847 lt_prog_compiler_static_GCJ='-Bstatic'
14848 ;;
14849
14850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14851 lt_prog_compiler_wl_GCJ='-Wl,'
14852 lt_prog_compiler_pic_GCJ='-KPIC'
14853 lt_prog_compiler_static_GCJ='-Bstatic'
14854 ;;
14855
14856 sysv4*MP*)
14857 if test -d /usr/nec ;then
14858 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14859 lt_prog_compiler_static_GCJ='-Bstatic'
14860 fi
14861 ;;
14862
14863 uts4*)
14864 lt_prog_compiler_pic_GCJ='-pic'
14865 lt_prog_compiler_static_GCJ='-Bstatic'
14866 ;;
14867
14868 *)
14869 lt_prog_compiler_can_build_shared_GCJ=no
14870 ;;
14871 esac
14872 fi
14873
14874echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14875echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14876
14877#
14878# Check to make sure the PIC flag actually works.
14879#
14880if test -n "$lt_prog_compiler_pic_GCJ"; then
14881 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14882echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14883if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885else
14886 lt_prog_compiler_pic_works_GCJ=no
14887 ac_outfile=conftest.$ac_objext
14888 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14889 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14890 # Insert the option either (1) after the last *FLAGS variable, or
14891 # (2) before a word containing "conftest.", or (3) at the end.
14892 # Note that $ac_compile itself does not contain backslashes and begins
14893 # with a dollar sign (not a hyphen), so the echo should work correctly.
14894 # The option is referenced via a variable to avoid confusing sed.
14895 lt_compile=`echo "$ac_compile" | $SED \
14896 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +000014899 (eval echo "\"\$as_me:14899: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014900 (eval "$lt_compile" 2>conftest.err)
14901 ac_status=$?
14902 cat conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +000014903 echo "$as_me:14903: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014904 if (exit $ac_status) && test -s "$ac_outfile"; then
14905 # The compiler can only warn and ignore the option if not recognized
14906 # So say no if there are warnings
14907 if test ! -s conftest.err; then
14908 lt_prog_compiler_pic_works_GCJ=yes
14909 fi
14910 fi
14911 $rm conftest*
14912
14913fi
14914echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14915echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14916
14917if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14918 case $lt_prog_compiler_pic_GCJ in
14919 "" | " "*) ;;
14920 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14921 esac
14922else
14923 lt_prog_compiler_pic_GCJ=
14924 lt_prog_compiler_can_build_shared_GCJ=no
14925fi
14926
14927fi
14928case "$host_os" in
14929 # For platforms which do not support PIC, -DPIC is meaningless:
14930 *djgpp*)
14931 lt_prog_compiler_pic_GCJ=
14932 ;;
14933 *)
14934 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14935 ;;
14936esac
14937
14938echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14939echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14940if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else
14943 lt_cv_prog_compiler_c_o_GCJ=no
14944 $rm -r conftest 2>/dev/null
14945 mkdir conftest
14946 cd conftest
14947 mkdir out
14948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14949
14950 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14951 # that will create temporary files in the current directory regardless of
14952 # the output directory. Thus, making CWD read-only will cause this test
14953 # to fail, enabling locking or at least warning the user not to do parallel
14954 # builds.
14955 chmod -w .
14956
14957 lt_compiler_flag="-o out/conftest2.$ac_objext"
14958 # Insert the option either (1) after the last *FLAGS variable, or
14959 # (2) before a word containing "conftest.", or (3) at the end.
14960 # Note that $ac_compile itself does not contain backslashes and begins
14961 # with a dollar sign (not a hyphen), so the echo should work correctly.
14962 lt_compile=`echo "$ac_compile" | $SED \
14963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14965 -e 's:$: $lt_compiler_flag:'`
John Criswellcf2e9f72004-02-10 22:36:35 +000014966 (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014967 (eval "$lt_compile" 2>out/conftest.err)
14968 ac_status=$?
14969 cat out/conftest.err >&5
John Criswellcf2e9f72004-02-10 22:36:35 +000014970 echo "$as_me:14970: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14972 then
14973 # The compiler can only warn and ignore the option if not recognized
14974 # So say no if there are warnings
14975 if test ! -s out/conftest.err; then
14976 lt_cv_prog_compiler_c_o_GCJ=yes
14977 fi
14978 fi
14979 chmod u+w .
14980 $rm conftest* out/*
14981 rmdir out
14982 cd ..
14983 rmdir conftest
14984 $rm conftest*
14985
14986fi
14987echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14988echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14989
14990
14991hard_links="nottested"
14992if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14993 # do not overwrite the value of need_locks provided by the user
14994 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14995echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14996 hard_links=yes
14997 $rm conftest*
14998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14999 touch conftest.a
15000 ln conftest.a conftest.b 2>&5 || hard_links=no
15001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15002 echo "$as_me:$LINENO: result: $hard_links" >&5
15003echo "${ECHO_T}$hard_links" >&6
15004 if test "$hard_links" = no; then
15005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15006echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15007 need_locks=warn
15008 fi
15009else
15010 need_locks=no
15011fi
15012
15013echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15014echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15015
15016 runpath_var=
15017 allow_undefined_flag_GCJ=
15018 enable_shared_with_static_runtimes_GCJ=no
15019 archive_cmds_GCJ=
15020 archive_expsym_cmds_GCJ=
15021 old_archive_From_new_cmds_GCJ=
15022 old_archive_from_expsyms_cmds_GCJ=
15023 export_dynamic_flag_spec_GCJ=
15024 whole_archive_flag_spec_GCJ=
15025 thread_safe_flag_spec_GCJ=
15026 hardcode_libdir_flag_spec_GCJ=
15027 hardcode_libdir_flag_spec_ld_GCJ=
15028 hardcode_libdir_separator_GCJ=
15029 hardcode_direct_GCJ=no
15030 hardcode_minus_L_GCJ=no
15031 hardcode_shlibpath_var_GCJ=unsupported
15032 link_all_deplibs_GCJ=unknown
15033 hardcode_automatic_GCJ=no
15034 module_cmds_GCJ=
15035 module_expsym_cmds_GCJ=
15036 always_export_symbols_GCJ=no
15037 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15038 # include_expsyms should be a list of space-separated symbols to be *always*
15039 # included in the symbol list
15040 include_expsyms_GCJ=
15041 # exclude_expsyms can be an extended regexp of symbols to exclude
15042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15044 # as well as any symbol that contains `d'.
15045 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15047 # platforms (ab)use it in PIC code, but their linkers get confused if
15048 # the symbol is explicitly referenced. Since portable code cannot
15049 # rely on this symbol name, it's probably fine to never include it in
15050 # preloaded symbol tables.
15051 extract_expsyms_cmds=
15052
15053 case $host_os in
15054 cygwin* | mingw* | pw32*)
15055 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15056 # When not using gcc, we currently assume that we are using
15057 # Microsoft Visual C++.
15058 if test "$GCC" != yes; then
15059 with_gnu_ld=no
15060 fi
15061 ;;
15062 openbsd*)
15063 with_gnu_ld=no
15064 ;;
15065 esac
15066
15067 ld_shlibs_GCJ=yes
15068 if test "$with_gnu_ld" = yes; then
15069 # If archive_cmds runs LD, not CC, wlarc should be empty
15070 wlarc='${wl}'
15071
15072 # See if GNU ld supports shared libraries.
15073 case $host_os in
15074 aix3* | aix4* | aix5*)
15075 # On AIX/PPC, the GNU linker is very broken
15076 if test "$host_cpu" != ia64; then
15077 ld_shlibs_GCJ=no
15078 cat <<EOF 1>&2
15079
15080*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15081*** to be unable to reliably create shared libraries on AIX.
15082*** Therefore, libtool is disabling shared libraries support. If you
15083*** really care for shared libraries, you may want to modify your PATH
15084*** so that a non-GNU linker is found, and then restart.
15085
15086EOF
15087 fi
15088 ;;
15089
15090 amigaos*)
15091 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)'
15092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15093 hardcode_minus_L_GCJ=yes
15094
15095 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15096 # that the semantics of dynamic libraries on AmigaOS, at least up
15097 # to version 4, is to share data among multiple programs linked
15098 # with the same dynamic library. Since this doesn't match the
15099 # behavior of shared libraries on other platforms, we can't use
15100 # them.
15101 ld_shlibs_GCJ=no
15102 ;;
15103
15104 beos*)
15105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15106 allow_undefined_flag_GCJ=unsupported
15107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15108 # support --undefined. This deserves some investigation. FIXME
15109 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15110 else
15111 ld_shlibs_GCJ=no
15112 fi
15113 ;;
15114
15115 cygwin* | mingw* | pw32*)
15116 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15117 # as there is no search path for DLLs.
15118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15119 allow_undefined_flag_GCJ=unsupported
15120 always_export_symbols_GCJ=no
15121 enable_shared_with_static_runtimes_GCJ=yes
15122 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15123
15124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15125 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15126 # If the export-symbols file already is a .def file (1st line
15127 # is EXPORTS), use it as is; otherwise, prepend...
15128 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15129 cp $export_symbols $output_objdir/$soname.def;
15130 else
15131 echo EXPORTS > $output_objdir/$soname.def;
15132 cat $export_symbols >> $output_objdir/$soname.def;
15133 fi~
15134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15135 else
15136 ld_shlibs=no
15137 fi
15138 ;;
15139
15140 netbsd*)
15141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15142 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15143 wlarc=
15144 else
15145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15146 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15147 fi
15148 ;;
15149
15150 solaris* | sysv5*)
15151 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15152 ld_shlibs_GCJ=no
15153 cat <<EOF 1>&2
15154
15155*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15156*** create shared libraries on Solaris systems. Therefore, libtool
15157*** is disabling shared libraries support. We urge you to upgrade GNU
15158*** binutils to release 2.9.1 or newer. Another option is to modify
15159*** your PATH or compiler configuration so that the native linker is
15160*** used, and then restart.
15161
15162EOF
15163 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15164 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15165 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15166 else
15167 ld_shlibs_GCJ=no
15168 fi
15169 ;;
15170
15171 sunos4*)
15172 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15173 wlarc=
15174 hardcode_direct_GCJ=yes
15175 hardcode_shlibpath_var_GCJ=no
15176 ;;
15177
15178 *)
15179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15182 else
15183 ld_shlibs_GCJ=no
15184 fi
15185 ;;
15186 esac
15187
15188 if test "$ld_shlibs_GCJ" = yes; then
15189 runpath_var=LD_RUN_PATH
15190 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15191 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15192 # ancient GNU ld didn't support --whole-archive et. al.
15193 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15194 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15195 else
15196 whole_archive_flag_spec_GCJ=
15197 fi
15198 fi
15199 else
15200 # PORTME fill in a description of your system's linker (not GNU ld)
15201 case $host_os in
15202 aix3*)
15203 allow_undefined_flag_GCJ=unsupported
15204 always_export_symbols_GCJ=yes
15205 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'
15206 # Note: this linker hardcodes the directories in LIBPATH if there
15207 # are no directories specified by -L.
15208 hardcode_minus_L_GCJ=yes
15209 if test "$GCC" = yes && test -z "$link_static_flag"; then
15210 # Neither direct hardcoding nor static linking is supported with a
15211 # broken collect2.
15212 hardcode_direct_GCJ=unsupported
15213 fi
15214 ;;
15215
15216 aix4* | aix5*)
15217 if test "$host_cpu" = ia64; then
15218 # On IA64, the linker does run time linking by default, so we don't
15219 # have to do anything special.
15220 aix_use_runtimelinking=no
15221 exp_sym_flag='-Bexport'
15222 no_entry_flag=""
15223 else
15224 # If we're using GNU nm, then we don't want the "-C" option.
15225 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15226 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15227 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'
15228 else
15229 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'
15230 fi
15231 aix_use_runtimelinking=no
15232
15233 # Test if we are trying to use run time linking or normal
15234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15235 # need to do runtime linking.
15236 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15237 for ld_flag in $LDFLAGS; do
15238 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15239 aix_use_runtimelinking=yes
15240 break
15241 fi
15242 done
15243 esac
15244
15245 exp_sym_flag='-bexport'
15246 no_entry_flag='-bnoentry'
15247 fi
15248
15249 # When large executables or shared objects are built, AIX ld can
15250 # have problems creating the table of contents. If linking a library
15251 # or program results in "error TOC overflow" add -mminimal-toc to
15252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15254
15255 archive_cmds_GCJ=''
15256 hardcode_direct_GCJ=yes
15257 hardcode_libdir_separator_GCJ=':'
15258 link_all_deplibs_GCJ=yes
15259
15260 if test "$GCC" = yes; then
15261 case $host_os in aix4.012|aix4.012.*)
15262 # We only want to do this on AIX 4.2 and lower, the check
15263 # below for broken collect2 doesn't work under 4.3+
15264 collect2name=`${CC} -print-prog-name=collect2`
15265 if test -f "$collect2name" && \
15266 strings "$collect2name" | grep resolve_lib_name >/dev/null
15267 then
15268 # We have reworked collect2
15269 hardcode_direct_GCJ=yes
15270 else
15271 # We have old collect2
15272 hardcode_direct_GCJ=unsupported
15273 # It fails to find uninstalled libraries when the uninstalled
15274 # path is not listed in the libpath. Setting hardcode_minus_L
15275 # to unsupported forces relinking
15276 hardcode_minus_L_GCJ=yes
15277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15278 hardcode_libdir_separator_GCJ=
15279 fi
15280 esac
15281 shared_flag='-shared'
15282 else
15283 # not using gcc
15284 if test "$host_cpu" = ia64; then
15285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15286 # chokes on -Wl,-G. The following line is correct:
15287 shared_flag='-G'
15288 else
15289 if test "$aix_use_runtimelinking" = yes; then
15290 shared_flag='${wl}-G'
15291 else
15292 shared_flag='${wl}-bM:SRE'
15293 fi
15294 fi
15295 fi
15296
15297 # It seems that -bexpall does not export symbols beginning with
15298 # underscore (_), so it is better to generate a list of symbols to export.
15299 always_export_symbols_GCJ=yes
15300 if test "$aix_use_runtimelinking" = yes; then
15301 # Warning - without using the other runtime loading flags (-brtl),
15302 # -berok will link without error, but may produce a broken library.
15303 allow_undefined_flag_GCJ='-berok'
15304 # Determine the default libpath from the value encoded in an empty executable.
15305 cat >conftest.$ac_ext <<_ACEOF
15306#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015307/* confdefs.h. */
15308_ACEOF
15309cat confdefs.h >>conftest.$ac_ext
15310cat >>conftest.$ac_ext <<_ACEOF
15311/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015312
John Criswell47fdd832003-07-14 16:52:07 +000015313int
15314main ()
15315{
15316
15317 ;
15318 return 0;
15319}
15320_ACEOF
15321rm -f conftest.$ac_objext conftest$ac_exeext
15322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323 (eval $ac_link) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -s conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333
15334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15335}'`
15336# Check for a 64-bit object if we didn't find anything.
15337if 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; }
15338}'`; fi
15339else
15340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015341sed 's/^/| /' conftest.$ac_ext >&5
15342
John Criswell47fdd832003-07-14 16:52:07 +000015343fi
15344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15346
15347 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15348 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"
15349 else
15350 if test "$host_cpu" = ia64; then
15351 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15352 allow_undefined_flag_GCJ="-z nodefs"
15353 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"
15354 else
15355 # Determine the default libpath from the value encoded in an empty executable.
15356 cat >conftest.$ac_ext <<_ACEOF
15357#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015358/* confdefs.h. */
15359_ACEOF
15360cat confdefs.h >>conftest.$ac_ext
15361cat >>conftest.$ac_ext <<_ACEOF
15362/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015363
John Criswell47fdd832003-07-14 16:52:07 +000015364int
15365main ()
15366{
15367
15368 ;
15369 return 0;
15370}
15371_ACEOF
15372rm -f conftest.$ac_objext conftest$ac_exeext
15373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384
15385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15386}'`
15387# Check for a 64-bit object if we didn't find anything.
15388if 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; }
15389}'`; fi
15390else
15391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015392sed 's/^/| /' conftest.$ac_ext >&5
15393
John Criswell47fdd832003-07-14 16:52:07 +000015394fi
15395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15396if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15397
15398 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15399 # Warning - without using the other run time loading flags,
15400 # -berok will link without error, but may produce a broken library.
15401 no_undefined_flag_GCJ=' ${wl}-bernotok'
15402 allow_undefined_flag_GCJ=' ${wl}-berok'
15403 # -bexpall does not export symbols beginning with underscore (_)
15404 always_export_symbols_GCJ=yes
15405 # Exported symbols can be pulled into shared objects from archives
15406 whole_archive_flag_spec_GCJ=' '
15407 archive_cmds_need_lc_GCJ=yes
15408 # This is similar to how AIX traditionally builds it's shared libraries.
15409 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'
15410 fi
15411 fi
15412 ;;
15413
15414 amigaos*)
15415 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)'
15416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15417 hardcode_minus_L_GCJ=yes
15418 # see comment about different semantics on the GNU ld section
15419 ld_shlibs_GCJ=no
15420 ;;
15421
15422 bsdi4*)
15423 export_dynamic_flag_spec_GCJ=-rdynamic
15424 ;;
15425
15426 cygwin* | mingw* | pw32*)
15427 # When not using gcc, we currently assume that we are using
15428 # Microsoft Visual C++.
15429 # hardcode_libdir_flag_spec is actually meaningless, as there is
15430 # no search path for DLLs.
15431 hardcode_libdir_flag_spec_GCJ=' '
15432 allow_undefined_flag_GCJ=unsupported
15433 # Tell ltmain to make .lib files, not .a files.
15434 libext=lib
15435 # Tell ltmain to make .dll files, not .so files.
15436 shrext=".dll"
15437 # FIXME: Setting linknames here is a bad hack.
15438 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15439 # The linker will automatically build a .lib file if we build a DLL.
15440 old_archive_From_new_cmds_GCJ='true'
15441 # FIXME: Should let the user specify the lib program.
15442 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15443 fix_srcfile_path='`cygpath -w "$srcfile"`'
15444 enable_shared_with_static_runtimes_GCJ=yes
15445 ;;
15446
15447 darwin* | rhapsody*)
15448 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15449 archive_cmds_need_lc_GCJ=no
15450 case "$host_os" in
15451 rhapsody* | darwin1.[012])
15452 allow_undefined_flag_GCJ='-undefined suppress'
15453 ;;
15454 *) # Darwin 1.3 on
15455 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15456 ;;
15457 esac
15458 # FIXME: Relying on posixy $() will cause problems for
15459 # cross-compilation, but unfortunately the echo tests do not
15460 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15461 # `"' quotes if we put them in here... so don't!
15462 lt_int_apple_cc_single_mod=no
15463 output_verbose_link_cmd='echo'
15464 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15465 lt_int_apple_cc_single_mod=yes
15466 fi
15467 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15468 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15469 else
15470 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'
15471 fi
15472 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15473 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15474 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15475 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}'
15476 else
15477 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}'
15478 fi
15479 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}'
15480 hardcode_direct_GCJ=no
15481 hardcode_automatic_GCJ=yes
15482 hardcode_shlibpath_var_GCJ=unsupported
15483 whole_archive_flag_spec_GCJ='-all_load $convenience'
15484 link_all_deplibs_GCJ=yes
15485 fi
15486 ;;
15487
15488 dgux*)
15489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15491 hardcode_shlibpath_var_GCJ=no
15492 ;;
15493
15494 freebsd1*)
15495 ld_shlibs_GCJ=no
15496 ;;
15497
15498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15499 # support. Future versions do this automatically, but an explicit c++rt0.o
15500 # does not break anything, and helps significantly (at the cost of a little
15501 # extra space).
15502 freebsd2.2*)
15503 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15504 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15505 hardcode_direct_GCJ=yes
15506 hardcode_shlibpath_var_GCJ=no
15507 ;;
15508
15509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15510 freebsd2*)
15511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15512 hardcode_direct_GCJ=yes
15513 hardcode_minus_L_GCJ=yes
15514 hardcode_shlibpath_var_GCJ=no
15515 ;;
15516
15517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15518 freebsd*)
15519 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15521 hardcode_direct_GCJ=yes
15522 hardcode_shlibpath_var_GCJ=no
15523 ;;
15524
15525 hpux9*)
15526 if test "$GCC" = yes; then
15527 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'
15528 else
15529 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'
15530 fi
15531 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15532 hardcode_libdir_separator_GCJ=:
15533 hardcode_direct_GCJ=yes
15534
15535 # hardcode_minus_L: Not really in the search PATH,
15536 # but as the default location of the library.
15537 hardcode_minus_L_GCJ=yes
15538 export_dynamic_flag_spec_GCJ='${wl}-E'
15539 ;;
15540
15541 hpux10* | hpux11*)
15542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15543 case "$host_cpu" in
15544 hppa*64*|ia64*)
15545 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15546 ;;
15547 *)
15548 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15549 ;;
15550 esac
15551 else
15552 case "$host_cpu" in
15553 hppa*64*|ia64*)
15554 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15555 ;;
15556 *)
15557 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15558 ;;
15559 esac
15560 fi
15561 if test "$with_gnu_ld" = no; then
15562 case "$host_cpu" in
15563 hppa*64*)
15564 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15565 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15566 hardcode_libdir_separator_GCJ=:
15567 hardcode_direct_GCJ=no
15568 hardcode_shlibpath_var_GCJ=no
15569 ;;
15570 ia64*)
15571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15572 hardcode_direct_GCJ=no
15573 hardcode_shlibpath_var_GCJ=no
15574
15575 # hardcode_minus_L: Not really in the search PATH,
15576 # but as the default location of the library.
15577 hardcode_minus_L_GCJ=yes
15578 ;;
15579 *)
15580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15581 hardcode_libdir_separator_GCJ=:
15582 hardcode_direct_GCJ=yes
15583 export_dynamic_flag_spec_GCJ='${wl}-E'
15584
15585 # hardcode_minus_L: Not really in the search PATH,
15586 # but as the default location of the library.
15587 hardcode_minus_L_GCJ=yes
15588 ;;
15589 esac
15590 fi
15591 ;;
15592
15593 irix5* | irix6* | nonstopux*)
15594 if test "$GCC" = yes; then
15595 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'
15596 else
15597 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'
15598 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15599 fi
15600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15601 hardcode_libdir_separator_GCJ=:
15602 link_all_deplibs_GCJ=yes
15603 ;;
15604
15605 netbsd*)
15606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15607 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15608 else
15609 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15610 fi
15611 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15612 hardcode_direct_GCJ=yes
15613 hardcode_shlibpath_var_GCJ=no
15614 ;;
15615
15616 newsos6)
15617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618 hardcode_direct_GCJ=yes
15619 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15620 hardcode_libdir_separator_GCJ=:
15621 hardcode_shlibpath_var_GCJ=no
15622 ;;
15623
15624 openbsd*)
15625 hardcode_direct_GCJ=yes
15626 hardcode_shlibpath_var_GCJ=no
15627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15628 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15629 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15630 export_dynamic_flag_spec_GCJ='${wl}-E'
15631 else
15632 case $host_os in
15633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15636 ;;
15637 *)
15638 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15640 ;;
15641 esac
15642 fi
15643 ;;
15644
15645 os2*)
15646 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15647 hardcode_minus_L_GCJ=yes
15648 allow_undefined_flag_GCJ=unsupported
15649 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'
15650 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15651 ;;
15652
15653 osf3*)
15654 if test "$GCC" = yes; then
15655 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15656 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'
15657 else
15658 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15659 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'
15660 fi
15661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15662 hardcode_libdir_separator_GCJ=:
15663 ;;
15664
15665 osf4* | osf5*) # as osf3* with the addition of -msym flag
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15670 else
15671 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15672 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'
15673 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~
15674 $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'
15675
15676 # Both c and cxx compiler support -rpath directly
15677 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15678 fi
15679 hardcode_libdir_separator_GCJ=:
15680 ;;
15681
15682 sco3.2v5*)
15683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_shlibpath_var_GCJ=no
15685 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15686 runpath_var=LD_RUN_PATH
15687 hardcode_runpath_var=yes
15688 ;;
15689
15690 solaris*)
15691 no_undefined_flag_GCJ=' -z text'
15692 if test "$GCC" = yes; then
15693 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15696 else
15697 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15700 fi
15701 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15702 hardcode_shlibpath_var_GCJ=no
15703 case $host_os in
15704 solaris2.[0-5] | solaris2.[0-5].*) ;;
15705 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15706 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15707 esac
15708 link_all_deplibs_GCJ=yes
15709 ;;
15710
15711 sunos4*)
15712 if test "x$host_vendor" = xsequent; then
15713 # Use $CC to link under sequent, because it throws in some extra .o
15714 # files that make .init and .fini sections work.
15715 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15716 else
15717 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15718 fi
15719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15720 hardcode_direct_GCJ=yes
15721 hardcode_minus_L_GCJ=yes
15722 hardcode_shlibpath_var_GCJ=no
15723 ;;
15724
15725 sysv4)
15726 case $host_vendor in
15727 sni)
15728 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15729 hardcode_direct_GCJ=yes # is this really true???
15730 ;;
15731 siemens)
15732 ## LD is ld it makes a PLAMLIB
15733 ## CC just makes a GrossModule.
15734 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15735 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15736 hardcode_direct_GCJ=no
15737 ;;
15738 motorola)
15739 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15740 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15741 ;;
15742 esac
15743 runpath_var='LD_RUN_PATH'
15744 hardcode_shlibpath_var_GCJ=no
15745 ;;
15746
15747 sysv4.3*)
15748 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749 hardcode_shlibpath_var_GCJ=no
15750 export_dynamic_flag_spec_GCJ='-Bexport'
15751 ;;
15752
15753 sysv4*MP*)
15754 if test -d /usr/nec; then
15755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756 hardcode_shlibpath_var_GCJ=no
15757 runpath_var=LD_RUN_PATH
15758 hardcode_runpath_var=yes
15759 ld_shlibs_GCJ=yes
15760 fi
15761 ;;
15762
15763 sysv4.2uw2*)
15764 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15765 hardcode_direct_GCJ=yes
15766 hardcode_minus_L_GCJ=no
15767 hardcode_shlibpath_var_GCJ=no
15768 hardcode_runpath_var=yes
15769 runpath_var=LD_RUN_PATH
15770 ;;
15771
15772 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15773 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15774 if test "$GCC" = yes; then
15775 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 else
15777 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15778 fi
15779 runpath_var='LD_RUN_PATH'
15780 hardcode_shlibpath_var_GCJ=no
15781 ;;
15782
15783 sysv5*)
15784 no_undefined_flag_GCJ=' -z text'
15785 # $CC -shared without GNU ld will not create a library from C++
15786 # object files and a static libstdc++, better avoid it by now
15787 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15790 hardcode_libdir_flag_spec_GCJ=
15791 hardcode_shlibpath_var_GCJ=no
15792 runpath_var='LD_RUN_PATH'
15793 ;;
15794
15795 uts4*)
15796 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15798 hardcode_shlibpath_var_GCJ=no
15799 ;;
15800
15801 *)
15802 ld_shlibs_GCJ=no
15803 ;;
15804 esac
15805 fi
15806
15807echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15808echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15809test "$ld_shlibs_GCJ" = no && can_build_shared=no
15810
15811variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15812if test "$GCC" = yes; then
15813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15814fi
15815
15816#
15817# Do we need to explicitly link libc?
15818#
15819case "x$archive_cmds_need_lc_GCJ" in
15820x|xyes)
15821 # Assume -lc should be added
15822 archive_cmds_need_lc_GCJ=yes
15823
15824 if test "$enable_shared" = yes && test "$GCC" = yes; then
15825 case $archive_cmds_GCJ in
15826 *'~'*)
15827 # FIXME: we may have to deal with multi-command sequences.
15828 ;;
15829 '$CC '*)
15830 # Test whether the compiler implicitly links with -lc since on some
15831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15832 # to ld, don't add -lc before -lgcc.
15833 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15834echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15835 $rm conftest*
15836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15837
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839 (eval $ac_compile) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } 2>conftest.err; then
15843 soname=conftest
15844 lib=conftest
15845 libobjs=conftest.$ac_objext
15846 deplibs=
15847 wl=$lt_prog_compiler_wl_GCJ
15848 compiler_flags=-v
15849 linker_flags=-v
15850 verstring=
15851 output_objdir=.
15852 libname=conftest
15853 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15854 allow_undefined_flag_GCJ=
15855 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15856 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }
15860 then
15861 archive_cmds_need_lc_GCJ=no
15862 else
15863 archive_cmds_need_lc_GCJ=yes
15864 fi
15865 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15866 else
15867 cat conftest.err 1>&5
15868 fi
15869 $rm conftest*
15870 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15871echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15872 ;;
15873 esac
15874 fi
15875 ;;
15876esac
15877
15878echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15879echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15880hardcode_action_GCJ=
15881if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15882 test -n "$runpath_var GCJ" || \
15883 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15884
15885 # We can hardcode non-existant directories.
15886 if test "$hardcode_direct_GCJ" != no &&
15887 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15888 # have to relink, otherwise we might link with an installed library
15889 # when we should be linking with a yet-to-be-installed one
15890 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15891 test "$hardcode_minus_L_GCJ" != no; then
15892 # Linking always hardcodes the temporary library directory.
15893 hardcode_action_GCJ=relink
15894 else
15895 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15896 hardcode_action_GCJ=immediate
15897 fi
15898else
15899 # We cannot hardcode anything, or else we can only hardcode existing
15900 # directories.
15901 hardcode_action_GCJ=unsupported
15902fi
15903echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15904echo "${ECHO_T}$hardcode_action_GCJ" >&6
15905
15906if test "$hardcode_action_GCJ" = relink; then
15907 # Fast installation is not supported
15908 enable_fast_install=no
15909elif test "$shlibpath_overrides_runpath" = yes ||
15910 test "$enable_shared" = no; then
15911 # Fast installation is not necessary
15912 enable_fast_install=needless
15913fi
15914
15915striplib=
15916old_striplib=
15917echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15918echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15919if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15920 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15921 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15922 echo "$as_me:$LINENO: result: yes" >&5
15923echo "${ECHO_T}yes" >&6
15924else
15925# FIXME - insert some real tests, host_os isn't really good enough
15926 case $host_os in
15927 darwin*)
15928 if test -n "$STRIP" ; then
15929 striplib="$STRIP -x"
15930 echo "$as_me:$LINENO: result: yes" >&5
15931echo "${ECHO_T}yes" >&6
15932 else
15933 echo "$as_me:$LINENO: result: no" >&5
15934echo "${ECHO_T}no" >&6
15935fi
15936 ;;
15937 *)
15938 echo "$as_me:$LINENO: result: no" >&5
15939echo "${ECHO_T}no" >&6
15940 ;;
15941 esac
15942fi
15943
15944echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15945echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15946library_names_spec=
15947libname_spec='lib$name'
15948soname_spec=
15949shrext=".so"
15950postinstall_cmds=
15951postuninstall_cmds=
15952finish_cmds=
15953finish_eval=
15954shlibpath_var=
15955shlibpath_overrides_runpath=unknown
15956version_type=none
15957dynamic_linker="$host_os ld.so"
15958sys_lib_dlsearch_path_spec="/lib /usr/lib"
15959if test "$GCC" = yes; then
15960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15961 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15962 # if the path contains ";" then we assume it to be the separator
15963 # otherwise default to the standard path separator (i.e. ":") - it is
15964 # assumed that no part of a normal pathname contains ";" but that should
15965 # okay in the real world where ";" in dirpaths is itself problematic.
15966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15967 else
15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15969 fi
15970else
15971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15972fi
15973need_lib_prefix=unknown
15974hardcode_into_libs=no
15975
15976# when you set need_version to no, make sure it does not cause -set_version
15977# flags to be left without arguments
15978need_version=unknown
15979
15980case $host_os in
15981aix3*)
15982 version_type=linux
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15984 shlibpath_var=LIBPATH
15985
15986 # AIX 3 has no versioning support, so we append a major version to the name.
15987 soname_spec='${libname}${release}${shared_ext}$major'
15988 ;;
15989
15990aix4* | aix5*)
15991 version_type=linux
15992 need_lib_prefix=no
15993 need_version=no
15994 hardcode_into_libs=yes
15995 if test "$host_cpu" = ia64; then
15996 # AIX 5 supports IA64
15997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 else
16000 # With GCC up to 2.95.x, collect2 would create an import file
16001 # for dependence libraries. The import file would start with
16002 # the line `#! .'. This would cause the generated library to
16003 # depend on `.', always an invalid library. This was fixed in
16004 # development snapshots of GCC prior to 3.0.
16005 case $host_os in
16006 aix4 | aix4.[01] | aix4.[01].*)
16007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16008 echo ' yes '
16009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16010 :
16011 else
16012 can_build_shared=no
16013 fi
16014 ;;
16015 esac
16016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16017 # soname into executable. Probably we can add versioning support to
16018 # collect2, so additional links can be useful in future.
16019 if test "$aix_use_runtimelinking" = yes; then
16020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16021 # instead of lib<name>.a to let people know that these are not
16022 # typical AIX shared libraries.
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16024 else
16025 # We preserve .a as extension for shared libraries through AIX4.2
16026 # and later when we are not doing run time linking.
16027 library_names_spec='${libname}${release}.a $libname.a'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 fi
16030 shlibpath_var=LIBPATH
16031 fi
16032 ;;
16033
16034amigaos*)
16035 library_names_spec='$libname.ixlibrary $libname.a'
16036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16037 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'
16038 ;;
16039
16040beos*)
16041 library_names_spec='${libname}${shared_ext}'
16042 dynamic_linker="$host_os ld.so"
16043 shlibpath_var=LIBRARY_PATH
16044 ;;
16045
16046bsdi4*)
16047 version_type=linux
16048 need_version=no
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16055 # the default ld.so.conf also contains /usr/contrib/lib and
16056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16057 # libtool to hard-code these into programs
16058 ;;
16059
16060cygwin* | mingw* | pw32*)
16061 version_type=windows
16062 shrext=".dll"
16063 need_version=no
16064 need_lib_prefix=no
16065
16066 case $GCC,$host_os in
16067 yes,cygwin* | yes,mingw* | yes,pw32*)
16068 library_names_spec='$libname.dll.a'
16069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16070 postinstall_cmds='base_file=`basename \${file}`~
16071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16072 dldir=$destdir/`dirname \$dlpath`~
16073 test -d \$dldir || mkdir -p \$dldir~
16074 $install_prog $dir/$dlname \$dldir/$dlname'
16075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076 dlpath=$dir/\$dldll~
16077 $rm \$dlpath'
16078 shlibpath_overrides_runpath=yes
16079
16080 case $host_os in
16081 cygwin*)
16082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16085 ;;
16086 mingw*)
16087 # MinGW DLLs use traditional 'lib' prefix
16088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16091 # It is most probably a Windows format PATH printed by
16092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16093 # path with ; separators, and with drive letters. We can handle the
16094 # drive letters (cygwin fileutils understands them), so leave them,
16095 # especially as we might pass files found there to a mingw objdump,
16096 # which wouldn't understand a cygwinified path. Ahh.
16097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16098 else
16099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16100 fi
16101 ;;
16102 pw32*)
16103 # pw32 DLLs use 'pw' prefix rather than 'lib'
16104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16105 ;;
16106 esac
16107 ;;
16108
16109 *)
16110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16111 ;;
16112 esac
16113 dynamic_linker='Win32 ld.exe'
16114 # FIXME: first we should search . and the directory the executable is in
16115 shlibpath_var=PATH
16116 ;;
16117
16118darwin* | rhapsody*)
16119 dynamic_linker="$host_os dyld"
16120 version_type=darwin
16121 need_lib_prefix=no
16122 need_version=no
16123 # FIXME: Relying on posixy $() will cause problems for
16124 # cross-compilation, but unfortunately the echo tests do not
16125 # yet detect zsh echo's removal of \ escapes.
16126 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16127 soname_spec='${libname}${release}${major}$shared_ext'
16128 shlibpath_overrides_runpath=yes
16129 shlibpath_var=DYLD_LIBRARY_PATH
16130 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16131 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16132 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16133 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"`
16134 fi
16135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16136 ;;
16137
16138dgux*)
16139 version_type=linux
16140 need_lib_prefix=no
16141 need_version=no
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 ;;
16146
16147freebsd1*)
16148 dynamic_linker=no
16149 ;;
16150
16151freebsd*)
16152 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16153 version_type=freebsd-$objformat
16154 case $version_type in
16155 freebsd-elf*)
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16157 need_version=no
16158 need_lib_prefix=no
16159 ;;
16160 freebsd-*)
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16162 need_version=yes
16163 ;;
16164 esac
16165 shlibpath_var=LD_LIBRARY_PATH
16166 case $host_os in
16167 freebsd2*)
16168 shlibpath_overrides_runpath=yes
16169 ;;
16170 freebsd3.01* | freebsdelf3.01*)
16171 shlibpath_overrides_runpath=yes
16172 hardcode_into_libs=yes
16173 ;;
16174 *) # from 3.2 on
16175 shlibpath_overrides_runpath=no
16176 hardcode_into_libs=yes
16177 ;;
16178 esac
16179 ;;
16180
16181gnu*)
16182 version_type=linux
16183 need_lib_prefix=no
16184 need_version=no
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16187 shlibpath_var=LD_LIBRARY_PATH
16188 hardcode_into_libs=yes
16189 ;;
16190
16191hpux9* | hpux10* | hpux11*)
16192 # Give a soname corresponding to the major version so that dld.sl refuses to
16193 # link against other versions.
16194 version_type=sunos
16195 need_lib_prefix=no
16196 need_version=no
16197 case "$host_cpu" in
16198 ia64*)
16199 shrext='.so'
16200 hardcode_into_libs=yes
16201 dynamic_linker="$host_os dld.so"
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 if test "X$HPUX_IA64_MODE" = X32; then
16207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16208 else
16209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16210 fi
16211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16212 ;;
16213 hppa*64*)
16214 shrext='.sl'
16215 hardcode_into_libs=yes
16216 dynamic_linker="$host_os dld.sl"
16217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16223 ;;
16224 *)
16225 shrext='.sl'
16226 dynamic_linker="$host_os dld.sl"
16227 shlibpath_var=SHLIB_PATH
16228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 ;;
16232 esac
16233 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16234 postinstall_cmds='chmod 555 $lib'
16235 ;;
16236
16237irix5* | irix6* | nonstopux*)
16238 case $host_os in
16239 nonstopux*) version_type=nonstopux ;;
16240 *)
16241 if test "$lt_cv_prog_gnu_ld" = yes; then
16242 version_type=linux
16243 else
16244 version_type=irix
16245 fi ;;
16246 esac
16247 need_lib_prefix=no
16248 need_version=no
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16251 case $host_os in
16252 irix5* | nonstopux*)
16253 libsuff= shlibsuff=
16254 ;;
16255 *)
16256 case $LD in # libtool.m4 will add one of these switches to LD
16257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16258 libsuff= shlibsuff= libmagic=32-bit;;
16259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16260 libsuff=32 shlibsuff=N32 libmagic=N32;;
16261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16263 *) libsuff= shlibsuff= libmagic=never-match;;
16264 esac
16265 ;;
16266 esac
16267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16268 shlibpath_overrides_runpath=no
16269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16271 hardcode_into_libs=yes
16272 ;;
16273
16274# No shared lib support for Linux oldld, aout, or coff.
16275linux*oldld* | linux*aout* | linux*coff*)
16276 dynamic_linker=no
16277 ;;
16278
16279# This must be Linux ELF.
16280linux*)
16281 version_type=linux
16282 need_lib_prefix=no
16283 need_version=no
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=no
16289 # This implies no fast_install, which is unacceptable.
16290 # Some rework will be needed to allow for fast_install
16291 # before this can be enabled.
16292 hardcode_into_libs=yes
16293
16294 # We used to test for /lib/ld.so.1 and disable shared libraries on
16295 # powerpc, because MkLinux only supported shared libraries with the
16296 # GNU dynamic linker. Since this was broken with cross compilers,
16297 # most powerpc-linux boxes support dynamic linking these days and
16298 # people can always --disable-shared, the test was removed, and we
16299 # assume the GNU/Linux dynamic linker is in use.
16300 dynamic_linker='GNU/Linux ld.so'
16301 ;;
16302
16303netbsd*)
16304 version_type=sunos
16305 need_lib_prefix=no
16306 need_version=no
16307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16310 dynamic_linker='NetBSD (a.out) ld.so'
16311 else
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 dynamic_linker='NetBSD ld.elf_so'
16315 fi
16316 shlibpath_var=LD_LIBRARY_PATH
16317 shlibpath_overrides_runpath=yes
16318 hardcode_into_libs=yes
16319 ;;
16320
16321newsos6)
16322 version_type=linux
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 shlibpath_overrides_runpath=yes
16326 ;;
16327
16328nto-qnx)
16329 version_type=linux
16330 need_lib_prefix=no
16331 need_version=no
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 shlibpath_overrides_runpath=yes
16336 ;;
16337
16338openbsd*)
16339 version_type=sunos
16340 need_lib_prefix=no
16341 need_version=no
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16346 case $host_os in
16347 openbsd2.[89] | openbsd2.[89].*)
16348 shlibpath_overrides_runpath=no
16349 ;;
16350 *)
16351 shlibpath_overrides_runpath=yes
16352 ;;
16353 esac
16354 else
16355 shlibpath_overrides_runpath=yes
16356 fi
16357 ;;
16358
16359os2*)
16360 libname_spec='$name'
16361 shrext=".dll"
16362 need_lib_prefix=no
16363 library_names_spec='$libname${shared_ext} $libname.a'
16364 dynamic_linker='OS/2 ld.exe'
16365 shlibpath_var=LIBPATH
16366 ;;
16367
16368osf3* | osf4* | osf5*)
16369 version_type=osf
16370 need_lib_prefix=no
16371 need_version=no
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16376 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16377 ;;
16378
16379sco3.2v5*)
16380 version_type=osf
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 shlibpath_var=LD_LIBRARY_PATH
16384 ;;
16385
16386solaris*)
16387 version_type=linux
16388 need_lib_prefix=no
16389 need_version=no
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=yes
16394 hardcode_into_libs=yes
16395 # ldd complains unless libraries are executable
16396 postinstall_cmds='chmod +x $lib'
16397 ;;
16398
16399sunos4*)
16400 version_type=sunos
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes
16405 if test "$with_gnu_ld" = yes; then
16406 need_lib_prefix=no
16407 fi
16408 need_version=yes
16409 ;;
16410
16411sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16412 version_type=linux
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 case $host_vendor in
16417 sni)
16418 shlibpath_overrides_runpath=no
16419 need_lib_prefix=no
16420 export_dynamic_flag_spec='${wl}-Blargedynsym'
16421 runpath_var=LD_RUN_PATH
16422 ;;
16423 siemens)
16424 need_lib_prefix=no
16425 ;;
16426 motorola)
16427 need_lib_prefix=no
16428 need_version=no
16429 shlibpath_overrides_runpath=no
16430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16431 ;;
16432 esac
16433 ;;
16434
16435sysv4*MP*)
16436 if test -d /usr/nec ;then
16437 version_type=linux
16438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16439 soname_spec='$libname${shared_ext}.$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 fi
16442 ;;
16443
16444uts4*)
16445 version_type=linux
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 ;;
16450
16451*)
16452 dynamic_linker=no
16453 ;;
16454esac
16455echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16456echo "${ECHO_T}$dynamic_linker" >&6
16457test "$dynamic_linker" = no && can_build_shared=no
16458
16459if test "x$enable_dlopen" != xyes; then
16460 enable_dlopen=unknown
16461 enable_dlopen_self=unknown
16462 enable_dlopen_self_static=unknown
16463else
16464 lt_cv_dlopen=no
16465 lt_cv_dlopen_libs=
16466
16467 case $host_os in
16468 beos*)
16469 lt_cv_dlopen="load_add_on"
16470 lt_cv_dlopen_libs=
16471 lt_cv_dlopen_self=yes
16472 ;;
16473
16474 mingw* | pw32*)
16475 lt_cv_dlopen="LoadLibrary"
16476 lt_cv_dlopen_libs=
16477 ;;
16478
16479 cygwin*)
16480 lt_cv_dlopen="dlopen"
16481 lt_cv_dlopen_libs=
16482 ;;
16483
16484 darwin*)
16485 # if libdl is installed we need to link against it
16486 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16487echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16488if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16490else
16491 ac_check_lib_save_LIBS=$LIBS
16492LIBS="-ldl $LIBS"
16493cat >conftest.$ac_ext <<_ACEOF
16494#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016495/* confdefs.h. */
16496_ACEOF
16497cat confdefs.h >>conftest.$ac_ext
16498cat >>conftest.$ac_ext <<_ACEOF
16499/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016500
16501/* Override any gcc2 internal prototype to avoid an error. */
16502#ifdef __cplusplus
16503extern "C"
16504#endif
16505/* We use char because int might match the return type of a gcc2
16506 builtin and then its argument prototype would still apply. */
16507char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016508int
16509main ()
16510{
16511dlopen ();
16512 ;
16513 return 0;
16514}
16515_ACEOF
16516rm -f conftest.$ac_objext conftest$ac_exeext
16517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16518 (eval $ac_link) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_lib_dl_dlopen=yes
16529else
16530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016531sed 's/^/| /' conftest.$ac_ext >&5
16532
John Criswell47fdd832003-07-14 16:52:07 +000016533ac_cv_lib_dl_dlopen=no
16534fi
16535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16536LIBS=$ac_check_lib_save_LIBS
16537fi
16538echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16539echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16540if test $ac_cv_lib_dl_dlopen = yes; then
16541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16542else
16543
16544 lt_cv_dlopen="dyld"
16545 lt_cv_dlopen_libs=
16546 lt_cv_dlopen_self=yes
16547
16548fi
16549
16550 ;;
16551
16552 *)
16553 echo "$as_me:$LINENO: checking for shl_load" >&5
16554echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16555if test "${ac_cv_func_shl_load+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16557else
16558 cat >conftest.$ac_ext <<_ACEOF
16559#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016565/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016566 which can conflict with char shl_load (); below.
16567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16568 <limits.h> exists even on freestanding compilers. */
16569#ifdef __STDC__
16570# include <limits.h>
16571#else
16572# include <assert.h>
16573#endif
John Criswell47fdd832003-07-14 16:52:07 +000016574/* Override any gcc2 internal prototype to avoid an error. */
16575#ifdef __cplusplus
16576extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016577{
John Criswell47fdd832003-07-14 16:52:07 +000016578#endif
16579/* We use char because int might match the return type of a gcc2
16580 builtin and then its argument prototype would still apply. */
16581char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016582/* The GNU C library defines this for functions which it implements
16583 to always fail with ENOSYS. Some functions are actually named
16584 something starting with __ and the normal name is an alias. */
16585#if defined (__stub_shl_load) || defined (__stub___shl_load)
16586choke me
16587#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016588char (*f) () = shl_load;
16589#endif
16590#ifdef __cplusplus
16591}
John Criswell47fdd832003-07-14 16:52:07 +000016592#endif
16593
John Criswell0c38eaf2003-09-10 15:17:25 +000016594int
16595main ()
16596{
16597return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016598 ;
16599 return 0;
16600}
16601_ACEOF
16602rm -f conftest.$ac_objext conftest$ac_exeext
16603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -s conftest$ac_exeext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_cv_func_shl_load=yes
16615else
16616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016617sed 's/^/| /' conftest.$ac_ext >&5
16618
John Criswell47fdd832003-07-14 16:52:07 +000016619ac_cv_func_shl_load=no
16620fi
16621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16622fi
16623echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16624echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16625if test $ac_cv_func_shl_load = yes; then
16626 lt_cv_dlopen="shl_load"
16627else
16628 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16629echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16630if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632else
16633 ac_check_lib_save_LIBS=$LIBS
16634LIBS="-ldld $LIBS"
16635cat >conftest.$ac_ext <<_ACEOF
16636#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016642
16643/* Override any gcc2 internal prototype to avoid an error. */
16644#ifdef __cplusplus
16645extern "C"
16646#endif
16647/* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16649char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016650int
16651main ()
16652{
16653shl_load ();
16654 ;
16655 return 0;
16656}
16657_ACEOF
16658rm -f conftest.$ac_objext conftest$ac_exeext
16659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660 (eval $ac_link) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -s conftest$ac_exeext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_lib_dld_shl_load=yes
16671else
16672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016673sed 's/^/| /' conftest.$ac_ext >&5
16674
John Criswell47fdd832003-07-14 16:52:07 +000016675ac_cv_lib_dld_shl_load=no
16676fi
16677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16678LIBS=$ac_check_lib_save_LIBS
16679fi
16680echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16681echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16682if test $ac_cv_lib_dld_shl_load = yes; then
16683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16684else
16685 echo "$as_me:$LINENO: checking for dlopen" >&5
16686echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16687if test "${ac_cv_func_dlopen+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689else
16690 cat >conftest.$ac_ext <<_ACEOF
16691#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016692/* confdefs.h. */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016697/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016698 which can conflict with char dlopen (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
16701#ifdef __STDC__
16702# include <limits.h>
16703#else
16704# include <assert.h>
16705#endif
John Criswell47fdd832003-07-14 16:52:07 +000016706/* Override any gcc2 internal prototype to avoid an error. */
16707#ifdef __cplusplus
16708extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016709{
John Criswell47fdd832003-07-14 16:52:07 +000016710#endif
16711/* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16713char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016714/* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717#if defined (__stub_dlopen) || defined (__stub___dlopen)
16718choke me
16719#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016720char (*f) () = dlopen;
16721#endif
16722#ifdef __cplusplus
16723}
John Criswell47fdd832003-07-14 16:52:07 +000016724#endif
16725
John Criswell0c38eaf2003-09-10 15:17:25 +000016726int
16727main ()
16728{
16729return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016730 ;
16731 return 0;
16732}
16733_ACEOF
16734rm -f conftest.$ac_objext conftest$ac_exeext
16735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736 (eval $ac_link) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_func_dlopen=yes
16747else
16748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016749sed 's/^/| /' conftest.$ac_ext >&5
16750
John Criswell47fdd832003-07-14 16:52:07 +000016751ac_cv_func_dlopen=no
16752fi
16753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16754fi
16755echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16756echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16757if test $ac_cv_func_dlopen = yes; then
16758 lt_cv_dlopen="dlopen"
16759else
16760 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16761echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16762if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16764else
16765 ac_check_lib_save_LIBS=$LIBS
16766LIBS="-ldl $LIBS"
16767cat >conftest.$ac_ext <<_ACEOF
16768#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016774
16775/* Override any gcc2 internal prototype to avoid an error. */
16776#ifdef __cplusplus
16777extern "C"
16778#endif
16779/* We use char because int might match the return type of a gcc2
16780 builtin and then its argument prototype would still apply. */
16781char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016782int
16783main ()
16784{
16785dlopen ();
16786 ;
16787 return 0;
16788}
16789_ACEOF
16790rm -f conftest.$ac_objext conftest$ac_exeext
16791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_lib_dl_dlopen=yes
16803else
16804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016805sed 's/^/| /' conftest.$ac_ext >&5
16806
John Criswell47fdd832003-07-14 16:52:07 +000016807ac_cv_lib_dl_dlopen=no
16808fi
16809rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16810LIBS=$ac_check_lib_save_LIBS
16811fi
16812echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16813echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16814if test $ac_cv_lib_dl_dlopen = yes; then
16815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16816else
16817 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16818echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16819if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821else
16822 ac_check_lib_save_LIBS=$LIBS
16823LIBS="-lsvld $LIBS"
16824cat >conftest.$ac_ext <<_ACEOF
16825#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016831
16832/* Override any gcc2 internal prototype to avoid an error. */
16833#ifdef __cplusplus
16834extern "C"
16835#endif
16836/* We use char because int might match the return type of a gcc2
16837 builtin and then its argument prototype would still apply. */
16838char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016839int
16840main ()
16841{
16842dlopen ();
16843 ;
16844 return 0;
16845}
16846_ACEOF
16847rm -f conftest.$ac_objext conftest$ac_exeext
16848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849 (eval $ac_link) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -s conftest$ac_exeext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_lib_svld_dlopen=yes
16860else
16861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016862sed 's/^/| /' conftest.$ac_ext >&5
16863
John Criswell47fdd832003-07-14 16:52:07 +000016864ac_cv_lib_svld_dlopen=no
16865fi
16866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16867LIBS=$ac_check_lib_save_LIBS
16868fi
16869echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16870echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16871if test $ac_cv_lib_svld_dlopen = yes; then
16872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16873else
16874 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16875echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16876if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16878else
16879 ac_check_lib_save_LIBS=$LIBS
16880LIBS="-ldld $LIBS"
16881cat >conftest.$ac_ext <<_ACEOF
16882#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016883/* confdefs.h. */
16884_ACEOF
16885cat confdefs.h >>conftest.$ac_ext
16886cat >>conftest.$ac_ext <<_ACEOF
16887/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016888
16889/* Override any gcc2 internal prototype to avoid an error. */
16890#ifdef __cplusplus
16891extern "C"
16892#endif
16893/* We use char because int might match the return type of a gcc2
16894 builtin and then its argument prototype would still apply. */
16895char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016896int
16897main ()
16898{
16899dld_link ();
16900 ;
16901 return 0;
16902}
16903_ACEOF
16904rm -f conftest.$ac_objext conftest$ac_exeext
16905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16906 (eval $ac_link) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -s conftest$ac_exeext'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_lib_dld_dld_link=yes
16917else
16918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016919sed 's/^/| /' conftest.$ac_ext >&5
16920
John Criswell47fdd832003-07-14 16:52:07 +000016921ac_cv_lib_dld_dld_link=no
16922fi
16923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16924LIBS=$ac_check_lib_save_LIBS
16925fi
16926echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16927echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16928if test $ac_cv_lib_dld_dld_link = yes; then
16929 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16930fi
16931
16932
16933fi
16934
16935
16936fi
16937
16938
16939fi
16940
16941
16942fi
16943
16944
16945fi
16946
16947 ;;
16948 esac
16949
16950 if test "x$lt_cv_dlopen" != xno; then
16951 enable_dlopen=yes
16952 else
16953 enable_dlopen=no
16954 fi
16955
16956 case $lt_cv_dlopen in
16957 dlopen)
16958 save_CPPFLAGS="$CPPFLAGS"
16959 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16960
16961 save_LDFLAGS="$LDFLAGS"
16962 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16963
16964 save_LIBS="$LIBS"
16965 LIBS="$lt_cv_dlopen_libs $LIBS"
16966
16967 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16968echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16969if test "${lt_cv_dlopen_self+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971else
16972 if test "$cross_compiling" = yes; then :
16973 lt_cv_dlopen_self=cross
16974else
16975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16976 lt_status=$lt_dlunknown
16977 cat > conftest.$ac_ext <<EOF
John Criswellcf2e9f72004-02-10 22:36:35 +000016978#line 16978 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016979#include "confdefs.h"
16980
16981#if HAVE_DLFCN_H
16982#include <dlfcn.h>
16983#endif
16984
16985#include <stdio.h>
16986
16987#ifdef RTLD_GLOBAL
16988# define LT_DLGLOBAL RTLD_GLOBAL
16989#else
16990# ifdef DL_GLOBAL
16991# define LT_DLGLOBAL DL_GLOBAL
16992# else
16993# define LT_DLGLOBAL 0
16994# endif
16995#endif
16996
16997/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16998 find out it does not work in some platform. */
16999#ifndef LT_DLLAZY_OR_NOW
17000# ifdef RTLD_LAZY
17001# define LT_DLLAZY_OR_NOW RTLD_LAZY
17002# else
17003# ifdef DL_LAZY
17004# define LT_DLLAZY_OR_NOW DL_LAZY
17005# else
17006# ifdef RTLD_NOW
17007# define LT_DLLAZY_OR_NOW RTLD_NOW
17008# else
17009# ifdef DL_NOW
17010# define LT_DLLAZY_OR_NOW DL_NOW
17011# else
17012# define LT_DLLAZY_OR_NOW 0
17013# endif
17014# endif
17015# endif
17016# endif
17017#endif
17018
17019#ifdef __cplusplus
17020extern "C" void exit (int);
17021#endif
17022
17023void fnord() { int i=42;}
17024int main ()
17025{
17026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17027 int status = $lt_dlunknown;
17028
17029 if (self)
17030 {
17031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17033 /* dlclose (self); */
17034 }
17035
17036 exit (status);
17037}
17038EOF
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17044 (./conftest; exit; ) 2>/dev/null
17045 lt_status=$?
17046 case x$lt_status in
17047 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17048 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17049 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17050 esac
17051 else :
17052 # compilation failed
17053 lt_cv_dlopen_self=no
17054 fi
17055fi
17056rm -fr conftest*
17057
17058
17059fi
17060echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17061echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17062
17063 if test "x$lt_cv_dlopen_self" = xyes; then
17064 LDFLAGS="$LDFLAGS $link_static_flag"
17065 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17066echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17067if test "${lt_cv_dlopen_self_static+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17069else
17070 if test "$cross_compiling" = yes; then :
17071 lt_cv_dlopen_self_static=cross
17072else
17073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17074 lt_status=$lt_dlunknown
17075 cat > conftest.$ac_ext <<EOF
John Criswellcf2e9f72004-02-10 22:36:35 +000017076#line 17076 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017077#include "confdefs.h"
17078
17079#if HAVE_DLFCN_H
17080#include <dlfcn.h>
17081#endif
17082
17083#include <stdio.h>
17084
17085#ifdef RTLD_GLOBAL
17086# define LT_DLGLOBAL RTLD_GLOBAL
17087#else
17088# ifdef DL_GLOBAL
17089# define LT_DLGLOBAL DL_GLOBAL
17090# else
17091# define LT_DLGLOBAL 0
17092# endif
17093#endif
17094
17095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17096 find out it does not work in some platform. */
17097#ifndef LT_DLLAZY_OR_NOW
17098# ifdef RTLD_LAZY
17099# define LT_DLLAZY_OR_NOW RTLD_LAZY
17100# else
17101# ifdef DL_LAZY
17102# define LT_DLLAZY_OR_NOW DL_LAZY
17103# else
17104# ifdef RTLD_NOW
17105# define LT_DLLAZY_OR_NOW RTLD_NOW
17106# else
17107# ifdef DL_NOW
17108# define LT_DLLAZY_OR_NOW DL_NOW
17109# else
17110# define LT_DLLAZY_OR_NOW 0
17111# endif
17112# endif
17113# endif
17114# endif
17115#endif
17116
17117#ifdef __cplusplus
17118extern "C" void exit (int);
17119#endif
17120
17121void fnord() { int i=42;}
17122int main ()
17123{
17124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17125 int status = $lt_dlunknown;
17126
17127 if (self)
17128 {
17129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17130 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17131 /* dlclose (self); */
17132 }
17133
17134 exit (status);
17135}
17136EOF
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17142 (./conftest; exit; ) 2>/dev/null
17143 lt_status=$?
17144 case x$lt_status in
17145 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17146 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17147 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17148 esac
17149 else :
17150 # compilation failed
17151 lt_cv_dlopen_self_static=no
17152 fi
17153fi
17154rm -fr conftest*
17155
17156
17157fi
17158echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17159echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17160 fi
17161
17162 CPPFLAGS="$save_CPPFLAGS"
17163 LDFLAGS="$save_LDFLAGS"
17164 LIBS="$save_LIBS"
17165 ;;
17166 esac
17167
17168 case $lt_cv_dlopen_self in
17169 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17170 *) enable_dlopen_self=unknown ;;
17171 esac
17172
17173 case $lt_cv_dlopen_self_static in
17174 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17175 *) enable_dlopen_self_static=unknown ;;
17176 esac
17177fi
17178
17179
17180# The else clause should only fire when bootstrapping the
17181# libtool distribution, otherwise you forgot to ship ltmain.sh
17182# with your package, and you will get complaints that there are
17183# no rules to generate ltmain.sh.
17184if test -f "$ltmain"; then
17185 # See if we are running on zsh, and set the options which allow our commands through
17186 # without removal of \ escapes.
17187 if test -n "${ZSH_VERSION+set}" ; then
17188 setopt NO_GLOB_SUBST
17189 fi
17190 # Now quote all the things that may contain metacharacters while being
17191 # careful not to overquote the AC_SUBSTed values. We take copies of the
17192 # variables and quote the copies for generation of the libtool script.
17193 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17196 deplibs_check_method reload_flag reload_cmds need_locks \
17197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17198 lt_cv_sys_global_symbol_to_c_name_address \
17199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17200 old_postinstall_cmds old_postuninstall_cmds \
17201 compiler_GCJ \
17202 CC_GCJ \
17203 LD_GCJ \
17204 lt_prog_compiler_wl_GCJ \
17205 lt_prog_compiler_pic_GCJ \
17206 lt_prog_compiler_static_GCJ \
17207 lt_prog_compiler_no_builtin_flag_GCJ \
17208 export_dynamic_flag_spec_GCJ \
17209 thread_safe_flag_spec_GCJ \
17210 whole_archive_flag_spec_GCJ \
17211 enable_shared_with_static_runtimes_GCJ \
17212 old_archive_cmds_GCJ \
17213 old_archive_from_new_cmds_GCJ \
17214 predep_objects_GCJ \
17215 postdep_objects_GCJ \
17216 predeps_GCJ \
17217 postdeps_GCJ \
17218 compiler_lib_search_path_GCJ \
17219 archive_cmds_GCJ \
17220 archive_expsym_cmds_GCJ \
17221 postinstall_cmds_GCJ \
17222 postuninstall_cmds_GCJ \
17223 old_archive_from_expsyms_cmds_GCJ \
17224 allow_undefined_flag_GCJ \
17225 no_undefined_flag_GCJ \
17226 export_symbols_cmds_GCJ \
17227 hardcode_libdir_flag_spec_GCJ \
17228 hardcode_libdir_flag_spec_ld_GCJ \
17229 hardcode_libdir_separator_GCJ \
17230 hardcode_automatic_GCJ \
17231 module_cmds_GCJ \
17232 module_expsym_cmds_GCJ \
17233 lt_cv_prog_compiler_c_o_GCJ \
17234 exclude_expsyms_GCJ \
17235 include_expsyms_GCJ; do
17236
17237 case $var in
17238 old_archive_cmds_GCJ | \
17239 old_archive_from_new_cmds_GCJ | \
17240 archive_cmds_GCJ | \
17241 archive_expsym_cmds_GCJ | \
17242 module_cmds_GCJ | \
17243 module_expsym_cmds_GCJ | \
17244 old_archive_from_expsyms_cmds_GCJ | \
17245 export_symbols_cmds_GCJ | \
17246 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17247 postinstall_cmds | postuninstall_cmds | \
17248 old_postinstall_cmds | old_postuninstall_cmds | \
17249 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17250 # Double-quote double-evaled strings.
17251 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17252 ;;
17253 *)
17254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17255 ;;
17256 esac
17257 done
17258
17259 case $lt_echo in
17260 *'\$0 --fallback-echo"')
17261 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17262 ;;
17263 esac
17264
17265cfgfile="$ofile"
17266
17267 cat <<__EOF__ >> "$cfgfile"
17268# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17269
17270# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17271
17272# Shell to use when invoking shell scripts.
17273SHELL=$lt_SHELL
17274
17275# Whether or not to build shared libraries.
17276build_libtool_libs=$enable_shared
17277
17278# Whether or not to build static libraries.
17279build_old_libs=$enable_static
17280
17281# Whether or not to add -lc for building shared libraries.
17282build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17283
17284# Whether or not to disallow shared libs when runtime libs are static
17285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17286
17287# Whether or not to optimize for fast installation.
17288fast_install=$enable_fast_install
17289
17290# The host system.
17291host_alias=$host_alias
17292host=$host
17293
17294# An echo program that does not interpret backslashes.
17295echo=$lt_echo
17296
17297# The archiver.
17298AR=$lt_AR
17299AR_FLAGS=$lt_AR_FLAGS
17300
17301# A C compiler.
17302LTCC=$lt_LTCC
17303
17304# A language-specific compiler.
17305CC=$lt_compiler_GCJ
17306
17307# Is the compiler the GNU C compiler?
17308with_gcc=$GCC_GCJ
17309
17310# An ERE matcher.
17311EGREP=$lt_EGREP
17312
17313# The linker used to build libraries.
17314LD=$lt_LD_GCJ
17315
17316# Whether we need hard or soft links.
17317LN_S=$lt_LN_S
17318
17319# A BSD-compatible nm program.
17320NM=$lt_NM
17321
17322# A symbol stripping program
17323STRIP=$STRIP
17324
17325# Used to examine libraries when file_magic_cmd begins "file"
17326MAGIC_CMD=$MAGIC_CMD
17327
17328# Used on cygwin: DLL creation program.
17329DLLTOOL="$DLLTOOL"
17330
17331# Used on cygwin: object dumper.
17332OBJDUMP="$OBJDUMP"
17333
17334# Used on cygwin: assembler.
17335AS="$AS"
17336
17337# The name of the directory that contains temporary libtool files.
17338objdir=$objdir
17339
17340# How to create reloadable object files.
17341reload_flag=$lt_reload_flag
17342reload_cmds=$lt_reload_cmds
17343
17344# How to pass a linker flag through the compiler.
17345wl=$lt_lt_prog_compiler_wl_GCJ
17346
17347# Object file suffix (normally "o").
17348objext="$ac_objext"
17349
17350# Old archive suffix (normally "a").
17351libext="$libext"
17352
17353# Shared library suffix (normally ".so").
17354shrext='$shrext'
17355
17356# Executable file suffix (normally "").
17357exeext="$exeext"
17358
17359# Additional compiler flags for building library objects.
17360pic_flag=$lt_lt_prog_compiler_pic_GCJ
17361pic_mode=$pic_mode
17362
17363# What is the maximum length of a command?
17364max_cmd_len=$lt_cv_sys_max_cmd_len
17365
17366# Does compiler simultaneously support -c and -o options?
17367compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17368
17369# Must we lock files when doing compilation ?
17370need_locks=$lt_need_locks
17371
17372# Do we need the lib prefix for modules?
17373need_lib_prefix=$need_lib_prefix
17374
17375# Do we need a version for libraries?
17376need_version=$need_version
17377
17378# Whether dlopen is supported.
17379dlopen_support=$enable_dlopen
17380
17381# Whether dlopen of programs is supported.
17382dlopen_self=$enable_dlopen_self
17383
17384# Whether dlopen of statically linked programs is supported.
17385dlopen_self_static=$enable_dlopen_self_static
17386
17387# Compiler flag to prevent dynamic linking.
17388link_static_flag=$lt_lt_prog_compiler_static_GCJ
17389
17390# Compiler flag to turn off builtin functions.
17391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17392
17393# Compiler flag to allow reflexive dlopens.
17394export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17395
17396# Compiler flag to generate shared objects directly from archives.
17397whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17398
17399# Compiler flag to generate thread-safe objects.
17400thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17401
17402# Library versioning type.
17403version_type=$version_type
17404
17405# Format of library name prefix.
17406libname_spec=$lt_libname_spec
17407
17408# List of archive names. First name is the real one, the rest are links.
17409# The last name is the one that the linker finds with -lNAME.
17410library_names_spec=$lt_library_names_spec
17411
17412# The coded name of the library, if different from the real name.
17413soname_spec=$lt_soname_spec
17414
17415# Commands used to build and install an old-style archive.
17416RANLIB=$lt_RANLIB
17417old_archive_cmds=$lt_old_archive_cmds_GCJ
17418old_postinstall_cmds=$lt_old_postinstall_cmds
17419old_postuninstall_cmds=$lt_old_postuninstall_cmds
17420
17421# Create an old-style archive from a shared archive.
17422old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17423
17424# Create a temporary old-style archive to link instead of a shared archive.
17425old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17426
17427# Commands used to build and install a shared archive.
17428archive_cmds=$lt_archive_cmds_GCJ
17429archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17430postinstall_cmds=$lt_postinstall_cmds
17431postuninstall_cmds=$lt_postuninstall_cmds
17432
17433# Commands used to build a loadable module (assumed same as above if empty)
17434module_cmds=$lt_module_cmds_GCJ
17435module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17436
17437# Commands to strip libraries.
17438old_striplib=$lt_old_striplib
17439striplib=$lt_striplib
17440
17441# Dependencies to place before the objects being linked to create a
17442# shared library.
17443predep_objects=$lt_predep_objects_GCJ
17444
17445# Dependencies to place after the objects being linked to create a
17446# shared library.
17447postdep_objects=$lt_postdep_objects_GCJ
17448
17449# Dependencies to place before the objects being linked to create a
17450# shared library.
17451predeps=$lt_predeps_GCJ
17452
17453# Dependencies to place after the objects being linked to create a
17454# shared library.
17455postdeps=$lt_postdeps_GCJ
17456
17457# The library search path used internally by the compiler when linking
17458# a shared library.
17459compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17460
17461# Method to check whether dependent libraries are shared objects.
17462deplibs_check_method=$lt_deplibs_check_method
17463
17464# Command to use when deplibs_check_method == file_magic.
17465file_magic_cmd=$lt_file_magic_cmd
17466
17467# Flag that allows shared libraries with undefined symbols to be built.
17468allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17469
17470# Flag that forces no undefined symbols.
17471no_undefined_flag=$lt_no_undefined_flag_GCJ
17472
17473# Commands used to finish a libtool library installation in a directory.
17474finish_cmds=$lt_finish_cmds
17475
17476# Same as above, but a single script fragment to be evaled but not shown.
17477finish_eval=$lt_finish_eval
17478
17479# Take the output of nm and produce a listing of raw symbols and C names.
17480global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17481
17482# Transform the output of nm in a proper C declaration
17483global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17484
17485# Transform the output of nm in a C name address pair
17486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17487
17488# This is the shared library runtime path variable.
17489runpath_var=$runpath_var
17490
17491# This is the shared library path variable.
17492shlibpath_var=$shlibpath_var
17493
17494# Is shlibpath searched before the hard-coded library search path?
17495shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17496
17497# How to hardcode a shared library path into an executable.
17498hardcode_action=$hardcode_action_GCJ
17499
17500# Whether we should hardcode library paths into libraries.
17501hardcode_into_libs=$hardcode_into_libs
17502
17503# Flag to hardcode \$libdir into a binary during linking.
17504# This must work even if \$libdir does not exist.
17505hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17506
17507# If ld is used when linking, flag to hardcode \$libdir into
17508# a binary during linking. This must work even if \$libdir does
17509# not exist.
17510hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17511
17512# Whether we need a single -rpath flag with a separated argument.
17513hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17514
17515# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17516# resulting binary.
17517hardcode_direct=$hardcode_direct_GCJ
17518
17519# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17520# resulting binary.
17521hardcode_minus_L=$hardcode_minus_L_GCJ
17522
17523# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17524# the resulting binary.
17525hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17526
17527# Set to yes if building a shared library automatically hardcodes DIR into the library
17528# and all subsequent libraries and executables linked against it.
17529hardcode_automatic=$hardcode_automatic_GCJ
17530
17531# Variables whose values should be saved in libtool wrapper scripts and
17532# restored at relink time.
17533variables_saved_for_relink="$variables_saved_for_relink"
17534
17535# Whether libtool must link a program against all its dependency libraries.
17536link_all_deplibs=$link_all_deplibs_GCJ
17537
17538# Compile-time system search path for libraries
17539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17540
17541# Run-time system search path for libraries
17542sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17543
17544# Fix the shell variable \$srcfile for the compiler.
17545fix_srcfile_path="$fix_srcfile_path_GCJ"
17546
17547# Set to yes if exported symbols are required.
17548always_export_symbols=$always_export_symbols_GCJ
17549
17550# The commands to list exported symbols.
17551export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17552
17553# The commands to extract the exported symbol list from a shared archive.
17554extract_expsyms_cmds=$lt_extract_expsyms_cmds
17555
17556# Symbols that should not be listed in the preloaded symbols.
17557exclude_expsyms=$lt_exclude_expsyms_GCJ
17558
17559# Symbols that must always be exported.
17560include_expsyms=$lt_include_expsyms_GCJ
17561
17562# ### END LIBTOOL TAG CONFIG: $tagname
17563
17564__EOF__
17565
17566
17567else
17568 # If there is no Makefile yet, we rely on a make rule to execute
17569 # `config.status --recheck' to rerun these tests and create the
17570 # libtool script then.
17571 test -f Makefile && make "$ltmain"
17572fi
17573
17574
17575ac_ext=c
17576ac_cpp='$CPP $CPPFLAGS'
17577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579ac_compiler_gnu=$ac_cv_c_compiler_gnu
17580
17581CC="$lt_save_CC"
17582
17583 else
17584 tagname=""
17585 fi
17586 ;;
17587
17588 RC)
17589
17590
17591
17592# Source file extension for RC test sources.
17593ac_ext=rc
17594
17595# Object file extension for compiled RC test sources.
17596objext=o
17597objext_RC=$objext
17598
17599# Code to be used in simple compile tests
17600lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17601
17602# Code to be used in simple link tests
17603lt_simple_link_test_code="$lt_simple_compile_test_code"
17604
17605# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17606
17607# If no C compiler was specified, use CC.
17608LTCC=${LTCC-"$CC"}
17609
17610# Allow CC to be a program name with arguments.
17611compiler=$CC
17612
17613
17614# Allow CC to be a program name with arguments.
17615lt_save_CC="$CC"
17616CC=${RC-"windres"}
17617compiler=$CC
17618compiler_RC=$CC
17619lt_cv_prog_compiler_c_o_RC=yes
17620
17621# The else clause should only fire when bootstrapping the
17622# libtool distribution, otherwise you forgot to ship ltmain.sh
17623# with your package, and you will get complaints that there are
17624# no rules to generate ltmain.sh.
17625if test -f "$ltmain"; then
17626 # See if we are running on zsh, and set the options which allow our commands through
17627 # without removal of \ escapes.
17628 if test -n "${ZSH_VERSION+set}" ; then
17629 setopt NO_GLOB_SUBST
17630 fi
17631 # Now quote all the things that may contain metacharacters while being
17632 # careful not to overquote the AC_SUBSTed values. We take copies of the
17633 # variables and quote the copies for generation of the libtool script.
17634 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17635 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17636 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17637 deplibs_check_method reload_flag reload_cmds need_locks \
17638 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17639 lt_cv_sys_global_symbol_to_c_name_address \
17640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17641 old_postinstall_cmds old_postuninstall_cmds \
17642 compiler_RC \
17643 CC_RC \
17644 LD_RC \
17645 lt_prog_compiler_wl_RC \
17646 lt_prog_compiler_pic_RC \
17647 lt_prog_compiler_static_RC \
17648 lt_prog_compiler_no_builtin_flag_RC \
17649 export_dynamic_flag_spec_RC \
17650 thread_safe_flag_spec_RC \
17651 whole_archive_flag_spec_RC \
17652 enable_shared_with_static_runtimes_RC \
17653 old_archive_cmds_RC \
17654 old_archive_from_new_cmds_RC \
17655 predep_objects_RC \
17656 postdep_objects_RC \
17657 predeps_RC \
17658 postdeps_RC \
17659 compiler_lib_search_path_RC \
17660 archive_cmds_RC \
17661 archive_expsym_cmds_RC \
17662 postinstall_cmds_RC \
17663 postuninstall_cmds_RC \
17664 old_archive_from_expsyms_cmds_RC \
17665 allow_undefined_flag_RC \
17666 no_undefined_flag_RC \
17667 export_symbols_cmds_RC \
17668 hardcode_libdir_flag_spec_RC \
17669 hardcode_libdir_flag_spec_ld_RC \
17670 hardcode_libdir_separator_RC \
17671 hardcode_automatic_RC \
17672 module_cmds_RC \
17673 module_expsym_cmds_RC \
17674 lt_cv_prog_compiler_c_o_RC \
17675 exclude_expsyms_RC \
17676 include_expsyms_RC; do
17677
17678 case $var in
17679 old_archive_cmds_RC | \
17680 old_archive_from_new_cmds_RC | \
17681 archive_cmds_RC | \
17682 archive_expsym_cmds_RC | \
17683 module_cmds_RC | \
17684 module_expsym_cmds_RC | \
17685 old_archive_from_expsyms_cmds_RC | \
17686 export_symbols_cmds_RC | \
17687 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17688 postinstall_cmds | postuninstall_cmds | \
17689 old_postinstall_cmds | old_postuninstall_cmds | \
17690 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17691 # Double-quote double-evaled strings.
17692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17693 ;;
17694 *)
17695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17696 ;;
17697 esac
17698 done
17699
17700 case $lt_echo in
17701 *'\$0 --fallback-echo"')
17702 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17703 ;;
17704 esac
17705
17706cfgfile="$ofile"
17707
17708 cat <<__EOF__ >> "$cfgfile"
17709# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17710
17711# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17712
17713# Shell to use when invoking shell scripts.
17714SHELL=$lt_SHELL
17715
17716# Whether or not to build shared libraries.
17717build_libtool_libs=$enable_shared
17718
17719# Whether or not to build static libraries.
17720build_old_libs=$enable_static
17721
17722# Whether or not to add -lc for building shared libraries.
17723build_libtool_need_lc=$archive_cmds_need_lc_RC
17724
17725# Whether or not to disallow shared libs when runtime libs are static
17726allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17727
17728# Whether or not to optimize for fast installation.
17729fast_install=$enable_fast_install
17730
17731# The host system.
17732host_alias=$host_alias
17733host=$host
17734
17735# An echo program that does not interpret backslashes.
17736echo=$lt_echo
17737
17738# The archiver.
17739AR=$lt_AR
17740AR_FLAGS=$lt_AR_FLAGS
17741
17742# A C compiler.
17743LTCC=$lt_LTCC
17744
17745# A language-specific compiler.
17746CC=$lt_compiler_RC
17747
17748# Is the compiler the GNU C compiler?
17749with_gcc=$GCC_RC
17750
17751# An ERE matcher.
17752EGREP=$lt_EGREP
17753
17754# The linker used to build libraries.
17755LD=$lt_LD_RC
17756
17757# Whether we need hard or soft links.
17758LN_S=$lt_LN_S
17759
17760# A BSD-compatible nm program.
17761NM=$lt_NM
17762
17763# A symbol stripping program
17764STRIP=$STRIP
17765
17766# Used to examine libraries when file_magic_cmd begins "file"
17767MAGIC_CMD=$MAGIC_CMD
17768
17769# Used on cygwin: DLL creation program.
17770DLLTOOL="$DLLTOOL"
17771
17772# Used on cygwin: object dumper.
17773OBJDUMP="$OBJDUMP"
17774
17775# Used on cygwin: assembler.
17776AS="$AS"
17777
17778# The name of the directory that contains temporary libtool files.
17779objdir=$objdir
17780
17781# How to create reloadable object files.
17782reload_flag=$lt_reload_flag
17783reload_cmds=$lt_reload_cmds
17784
17785# How to pass a linker flag through the compiler.
17786wl=$lt_lt_prog_compiler_wl_RC
17787
17788# Object file suffix (normally "o").
17789objext="$ac_objext"
17790
17791# Old archive suffix (normally "a").
17792libext="$libext"
17793
17794# Shared library suffix (normally ".so").
17795shrext='$shrext'
17796
17797# Executable file suffix (normally "").
17798exeext="$exeext"
17799
17800# Additional compiler flags for building library objects.
17801pic_flag=$lt_lt_prog_compiler_pic_RC
17802pic_mode=$pic_mode
17803
17804# What is the maximum length of a command?
17805max_cmd_len=$lt_cv_sys_max_cmd_len
17806
17807# Does compiler simultaneously support -c and -o options?
17808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17809
17810# Must we lock files when doing compilation ?
17811need_locks=$lt_need_locks
17812
17813# Do we need the lib prefix for modules?
17814need_lib_prefix=$need_lib_prefix
17815
17816# Do we need a version for libraries?
17817need_version=$need_version
17818
17819# Whether dlopen is supported.
17820dlopen_support=$enable_dlopen
17821
17822# Whether dlopen of programs is supported.
17823dlopen_self=$enable_dlopen_self
17824
17825# Whether dlopen of statically linked programs is supported.
17826dlopen_self_static=$enable_dlopen_self_static
17827
17828# Compiler flag to prevent dynamic linking.
17829link_static_flag=$lt_lt_prog_compiler_static_RC
17830
17831# Compiler flag to turn off builtin functions.
17832no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17833
17834# Compiler flag to allow reflexive dlopens.
17835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17836
17837# Compiler flag to generate shared objects directly from archives.
17838whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17839
17840# Compiler flag to generate thread-safe objects.
17841thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17842
17843# Library versioning type.
17844version_type=$version_type
17845
17846# Format of library name prefix.
17847libname_spec=$lt_libname_spec
17848
17849# List of archive names. First name is the real one, the rest are links.
17850# The last name is the one that the linker finds with -lNAME.
17851library_names_spec=$lt_library_names_spec
17852
17853# The coded name of the library, if different from the real name.
17854soname_spec=$lt_soname_spec
17855
17856# Commands used to build and install an old-style archive.
17857RANLIB=$lt_RANLIB
17858old_archive_cmds=$lt_old_archive_cmds_RC
17859old_postinstall_cmds=$lt_old_postinstall_cmds
17860old_postuninstall_cmds=$lt_old_postuninstall_cmds
17861
17862# Create an old-style archive from a shared archive.
17863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17864
17865# Create a temporary old-style archive to link instead of a shared archive.
17866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17867
17868# Commands used to build and install a shared archive.
17869archive_cmds=$lt_archive_cmds_RC
17870archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17871postinstall_cmds=$lt_postinstall_cmds
17872postuninstall_cmds=$lt_postuninstall_cmds
17873
17874# Commands used to build a loadable module (assumed same as above if empty)
17875module_cmds=$lt_module_cmds_RC
17876module_expsym_cmds=$lt_module_expsym_cmds_RC
17877
17878# Commands to strip libraries.
17879old_striplib=$lt_old_striplib
17880striplib=$lt_striplib
17881
17882# Dependencies to place before the objects being linked to create a
17883# shared library.
17884predep_objects=$lt_predep_objects_RC
17885
17886# Dependencies to place after the objects being linked to create a
17887# shared library.
17888postdep_objects=$lt_postdep_objects_RC
17889
17890# Dependencies to place before the objects being linked to create a
17891# shared library.
17892predeps=$lt_predeps_RC
17893
17894# Dependencies to place after the objects being linked to create a
17895# shared library.
17896postdeps=$lt_postdeps_RC
17897
17898# The library search path used internally by the compiler when linking
17899# a shared library.
17900compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17901
17902# Method to check whether dependent libraries are shared objects.
17903deplibs_check_method=$lt_deplibs_check_method
17904
17905# Command to use when deplibs_check_method == file_magic.
17906file_magic_cmd=$lt_file_magic_cmd
17907
17908# Flag that allows shared libraries with undefined symbols to be built.
17909allow_undefined_flag=$lt_allow_undefined_flag_RC
17910
17911# Flag that forces no undefined symbols.
17912no_undefined_flag=$lt_no_undefined_flag_RC
17913
17914# Commands used to finish a libtool library installation in a directory.
17915finish_cmds=$lt_finish_cmds
17916
17917# Same as above, but a single script fragment to be evaled but not shown.
17918finish_eval=$lt_finish_eval
17919
17920# Take the output of nm and produce a listing of raw symbols and C names.
17921global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17922
17923# Transform the output of nm in a proper C declaration
17924global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17925
17926# Transform the output of nm in a C name address pair
17927global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17928
17929# This is the shared library runtime path variable.
17930runpath_var=$runpath_var
17931
17932# This is the shared library path variable.
17933shlibpath_var=$shlibpath_var
17934
17935# Is shlibpath searched before the hard-coded library search path?
17936shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17937
17938# How to hardcode a shared library path into an executable.
17939hardcode_action=$hardcode_action_RC
17940
17941# Whether we should hardcode library paths into libraries.
17942hardcode_into_libs=$hardcode_into_libs
17943
17944# Flag to hardcode \$libdir into a binary during linking.
17945# This must work even if \$libdir does not exist.
17946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17947
17948# If ld is used when linking, flag to hardcode \$libdir into
17949# a binary during linking. This must work even if \$libdir does
17950# not exist.
17951hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17952
17953# Whether we need a single -rpath flag with a separated argument.
17954hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17955
17956# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17957# resulting binary.
17958hardcode_direct=$hardcode_direct_RC
17959
17960# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17961# resulting binary.
17962hardcode_minus_L=$hardcode_minus_L_RC
17963
17964# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17965# the resulting binary.
17966hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17967
17968# Set to yes if building a shared library automatically hardcodes DIR into the library
17969# and all subsequent libraries and executables linked against it.
17970hardcode_automatic=$hardcode_automatic_RC
17971
17972# Variables whose values should be saved in libtool wrapper scripts and
17973# restored at relink time.
17974variables_saved_for_relink="$variables_saved_for_relink"
17975
17976# Whether libtool must link a program against all its dependency libraries.
17977link_all_deplibs=$link_all_deplibs_RC
17978
17979# Compile-time system search path for libraries
17980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17981
17982# Run-time system search path for libraries
17983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17984
17985# Fix the shell variable \$srcfile for the compiler.
17986fix_srcfile_path="$fix_srcfile_path_RC"
17987
17988# Set to yes if exported symbols are required.
17989always_export_symbols=$always_export_symbols_RC
17990
17991# The commands to list exported symbols.
17992export_symbols_cmds=$lt_export_symbols_cmds_RC
17993
17994# The commands to extract the exported symbol list from a shared archive.
17995extract_expsyms_cmds=$lt_extract_expsyms_cmds
17996
17997# Symbols that should not be listed in the preloaded symbols.
17998exclude_expsyms=$lt_exclude_expsyms_RC
17999
18000# Symbols that must always be exported.
18001include_expsyms=$lt_include_expsyms_RC
18002
18003# ### END LIBTOOL TAG CONFIG: $tagname
18004
18005__EOF__
18006
18007
18008else
18009 # If there is no Makefile yet, we rely on a make rule to execute
18010 # `config.status --recheck' to rerun these tests and create the
18011 # libtool script then.
18012 test -f Makefile && make "$ltmain"
18013fi
18014
18015
18016ac_ext=c
18017ac_cpp='$CPP $CPPFLAGS'
18018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020ac_compiler_gnu=$ac_cv_c_compiler_gnu
18021
18022CC="$lt_save_CC"
18023
18024 ;;
18025
18026 *)
18027 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18028echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18029 { (exit 1); exit 1; }; }
18030 ;;
18031 esac
18032
18033 # Append the new tag name to the list of available tags.
18034 if test -n "$tagname" ; then
18035 available_tags="$available_tags $tagname"
18036 fi
18037 fi
18038 done
18039 IFS="$lt_save_ifs"
18040
18041 # Now substitute the updated list of available tags.
18042 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18043 mv "${ofile}T" "$ofile"
18044 chmod +x "$ofile"
18045 else
18046 rm -f "${ofile}T"
18047 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18048echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18049 { (exit 1); exit 1; }; }
18050 fi
18051fi
John Criswell7a73b802003-06-30 21:59:07 +000018052
18053
18054
18055# This can be used to rebuild libtool when needed
18056LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18057
18058# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018059LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018060
18061# Prevent multiple expansion
18062
18063
18064
John Criswell47fdd832003-07-14 16:52:07 +000018065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
John Criswell7a73b802003-06-30 21:59:07 +000018083# Extract the first word of "dot", so it can be a program name with args.
18084set dummy dot; ac_word=$2
18085echo "$as_me:$LINENO: checking for $ac_word" >&5
18086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18087if test "${ac_cv_path_DOT+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089else
18090 case $DOT in
18091 [\\/]* | ?:[\\/]*)
18092 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18093 ;;
18094 *)
18095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18096for as_dir in $PATH
18097do
18098 IFS=$as_save_IFS
18099 test -z "$as_dir" && as_dir=.
18100 for ac_exec_ext in '' $ac_executable_extensions; do
18101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18102 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18104 break 2
18105 fi
18106done
18107done
18108
Brian Gaeke26be9c52004-01-13 06:43:16 +000018109 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018110 ;;
18111esac
18112fi
18113DOT=$ac_cv_path_DOT
18114
18115if test -n "$DOT"; then
18116 echo "$as_me:$LINENO: result: $DOT" >&5
18117echo "${ECHO_T}$DOT" >&6
18118else
18119 echo "$as_me:$LINENO: result: no" >&5
18120echo "${ECHO_T}no" >&6
18121fi
18122
18123# Extract the first word of "etags", so it can be a program name with args.
18124set dummy etags; ac_word=$2
18125echo "$as_me:$LINENO: checking for $ac_word" >&5
18126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18127if test "${ac_cv_path_ETAGS+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18129else
18130 case $ETAGS in
18131 [\\/]* | ?:[\\/]*)
18132 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18133 ;;
18134 *)
18135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136for as_dir in $PATH
18137do
18138 IFS=$as_save_IFS
18139 test -z "$as_dir" && as_dir=.
18140 for ac_exec_ext in '' $ac_executable_extensions; do
18141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18142 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18144 break 2
18145 fi
18146done
18147done
18148
Brian Gaeke26be9c52004-01-13 06:43:16 +000018149 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018150 ;;
18151esac
18152fi
18153ETAGS=$ac_cv_path_ETAGS
18154
18155if test -n "$ETAGS"; then
18156 echo "$as_me:$LINENO: result: $ETAGS" >&5
18157echo "${ECHO_T}$ETAGS" >&6
18158else
18159 echo "$as_me:$LINENO: result: no" >&5
18160echo "${ECHO_T}no" >&6
18161fi
18162
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018163etags_version=`$ETAGS --version 2>&1`
18164case "$etags_version" in
18165 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18166 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18167 *) ETAGSFLAGS="" ;;
18168esac
18169ETAGSFLAGS=$ETAGSFLAGS
18170
John Criswellde00db22003-08-25 16:49:54 +000018171# Extract the first word of "python", so it can be a program name with args.
18172set dummy python; ac_word=$2
18173echo "$as_me:$LINENO: checking for $ac_word" >&5
18174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18175if test "${ac_cv_path_PYTHON+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177else
18178 case $PYTHON in
18179 [\\/]* | ?:[\\/]*)
18180 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18181 ;;
18182 *)
18183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184for as_dir in $PATH
18185do
18186 IFS=$as_save_IFS
18187 test -z "$as_dir" && as_dir=.
18188 for ac_exec_ext in '' $ac_executable_extensions; do
18189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18190 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18192 break 2
18193 fi
18194done
18195done
18196
Brian Gaeke26be9c52004-01-13 06:43:16 +000018197 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018198 ;;
18199esac
18200fi
18201PYTHON=$ac_cv_path_PYTHON
18202
18203if test -n "$PYTHON"; then
18204 echo "$as_me:$LINENO: result: $PYTHON" >&5
18205echo "${ECHO_T}$PYTHON" >&6
18206else
18207 echo "$as_me:$LINENO: result: no" >&5
18208echo "${ECHO_T}no" >&6
18209fi
18210
Brian Gaeke26be9c52004-01-13 06:43:16 +000018211if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018212then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018213 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18214echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018215fi
John Criswellde00db22003-08-25 16:49:54 +000018216# Extract the first word of "qmtest", so it can be a program name with args.
18217set dummy qmtest; ac_word=$2
18218echo "$as_me:$LINENO: checking for $ac_word" >&5
18219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18220if test "${ac_cv_path_QMTEST+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18222else
18223 case $QMTEST in
18224 [\\/]* | ?:[\\/]*)
18225 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18226 ;;
18227 *)
18228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18229for as_dir in $PATH
18230do
18231 IFS=$as_save_IFS
18232 test -z "$as_dir" && as_dir=.
18233 for ac_exec_ext in '' $ac_executable_extensions; do
18234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18235 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18237 break 2
18238 fi
18239done
18240done
18241
Brian Gaeke26be9c52004-01-13 06:43:16 +000018242 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018243 ;;
18244esac
18245fi
18246QMTEST=$ac_cv_path_QMTEST
18247
18248if test -n "$QMTEST"; then
18249 echo "$as_me:$LINENO: result: $QMTEST" >&5
18250echo "${ECHO_T}$QMTEST" >&6
18251else
18252 echo "$as_me:$LINENO: result: no" >&5
18253echo "${ECHO_T}no" >&6
18254fi
18255
Brian Gaeke26be9c52004-01-13 06:43:16 +000018256if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018257then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018258 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18259echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018260fi
John Criswellde00db22003-08-25 16:49:54 +000018261
18262pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18263pymajor=`echo $pyversion | cut -d. -f1`
18264pyminor=`echo $pyversion | cut -d. -f2`
18265
18266if test "$pymajor" -ge "2"
18267then
18268 if test "$pymajor" -eq "2"
18269 then
18270 if test "$pyminor" -lt "2"
18271 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018272 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18273echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018274 fi
18275 fi
18276else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018277 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18278echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018279fi
John Criswell7a73b802003-06-30 21:59:07 +000018280
18281
18282
18283
John Criswell7a73b802003-06-30 21:59:07 +000018284echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18285echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18286if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288else
18289 ac_check_lib_save_LIBS=$LIBS
18290LIBS="-lelf $LIBS"
18291cat >conftest.$ac_ext <<_ACEOF
18292#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018293/* confdefs.h. */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018298
18299/* Override any gcc2 internal prototype to avoid an error. */
18300#ifdef __cplusplus
18301extern "C"
18302#endif
18303/* We use char because int might match the return type of a gcc2
18304 builtin and then its argument prototype would still apply. */
18305char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018306int
18307main ()
18308{
18309elf_begin ();
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext conftest$ac_exeext
18315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -s conftest$ac_exeext'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_cv_lib_elf_elf_begin=yes
18327else
18328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018329sed 's/^/| /' conftest.$ac_ext >&5
18330
John Criswell7a73b802003-06-30 21:59:07 +000018331ac_cv_lib_elf_elf_begin=no
18332fi
18333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18334LIBS=$ac_check_lib_save_LIBS
18335fi
18336echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18337echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18338if test $ac_cv_lib_elf_elf_begin = yes; then
18339 cat >>confdefs.h <<_ACEOF
18340#define HAVE_LIBELF 1
18341_ACEOF
18342
18343 LIBS="-lelf $LIBS"
18344
18345fi
18346
18347
18348echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18349echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18350if test "${ac_cv_search_dlopen+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352else
18353 ac_func_search_save_LIBS=$LIBS
18354ac_cv_search_dlopen=no
18355cat >conftest.$ac_ext <<_ACEOF
18356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018357/* confdefs.h. */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018362
18363/* Override any gcc2 internal prototype to avoid an error. */
18364#ifdef __cplusplus
18365extern "C"
18366#endif
18367/* We use char because int might match the return type of a gcc2
18368 builtin and then its argument prototype would still apply. */
18369char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018370int
18371main ()
18372{
18373dlopen ();
18374 ;
18375 return 0;
18376}
18377_ACEOF
18378rm -f conftest.$ac_objext conftest$ac_exeext
18379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380 (eval $ac_link) 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_search_dlopen="none required"
18391else
18392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018393sed 's/^/| /' conftest.$ac_ext >&5
18394
John Criswell7a73b802003-06-30 21:59:07 +000018395fi
18396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18397if test "$ac_cv_search_dlopen" = no; then
18398 for ac_lib in dl; do
18399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018402/* confdefs.h. */
18403_ACEOF
18404cat confdefs.h >>conftest.$ac_ext
18405cat >>conftest.$ac_ext <<_ACEOF
18406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018407
18408/* Override any gcc2 internal prototype to avoid an error. */
18409#ifdef __cplusplus
18410extern "C"
18411#endif
18412/* We use char because int might match the return type of a gcc2
18413 builtin and then its argument prototype would still apply. */
18414char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018415int
18416main ()
18417{
18418dlopen ();
18419 ;
18420 return 0;
18421}
18422_ACEOF
18423rm -f conftest.$ac_objext conftest$ac_exeext
18424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -s conftest$ac_exeext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_search_dlopen="-l$ac_lib"
18436break
18437else
18438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018439sed 's/^/| /' conftest.$ac_ext >&5
18440
John Criswell7a73b802003-06-30 21:59:07 +000018441fi
18442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18443 done
18444fi
18445LIBS=$ac_func_search_save_LIBS
18446fi
18447echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18448echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18449if test "$ac_cv_search_dlopen" != no; then
18450 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018451
18452cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018453#define HAVE_DLOPEN 1
18454_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018455
18456else
Brian Gaekec45be042003-10-07 06:01:34 +000018457 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18458echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018459fi
18460
18461
18462echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18463echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18464if test "${ac_cv_search_mallinfo+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18466else
18467 ac_func_search_save_LIBS=$LIBS
18468ac_cv_search_mallinfo=no
18469cat >conftest.$ac_ext <<_ACEOF
18470#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018471/* confdefs.h. */
18472_ACEOF
18473cat confdefs.h >>conftest.$ac_ext
18474cat >>conftest.$ac_ext <<_ACEOF
18475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018476
18477/* Override any gcc2 internal prototype to avoid an error. */
18478#ifdef __cplusplus
18479extern "C"
18480#endif
18481/* We use char because int might match the return type of a gcc2
18482 builtin and then its argument prototype would still apply. */
18483char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018484int
18485main ()
18486{
18487mallinfo ();
18488 ;
18489 return 0;
18490}
18491_ACEOF
18492rm -f conftest.$ac_objext conftest$ac_exeext
18493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18494 (eval $ac_link) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -s conftest$ac_exeext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_search_mallinfo="none required"
18505else
18506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018507sed 's/^/| /' conftest.$ac_ext >&5
18508
John Criswell7a73b802003-06-30 21:59:07 +000018509fi
18510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18511if test "$ac_cv_search_mallinfo" = no; then
18512 for ac_lib in malloc; do
18513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18514 cat >conftest.$ac_ext <<_ACEOF
18515#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018521
18522/* Override any gcc2 internal prototype to avoid an error. */
18523#ifdef __cplusplus
18524extern "C"
18525#endif
18526/* We use char because int might match the return type of a gcc2
18527 builtin and then its argument prototype would still apply. */
18528char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018529int
18530main ()
18531{
18532mallinfo ();
18533 ;
18534 return 0;
18535}
18536_ACEOF
18537rm -f conftest.$ac_objext conftest$ac_exeext
18538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18539 (eval $ac_link) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -s conftest$ac_exeext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 ac_cv_search_mallinfo="-l$ac_lib"
18550break
18551else
18552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018553sed 's/^/| /' conftest.$ac_ext >&5
18554
John Criswell7a73b802003-06-30 21:59:07 +000018555fi
18556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18557 done
18558fi
18559LIBS=$ac_func_search_save_LIBS
18560fi
18561echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18562echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18563if test "$ac_cv_search_mallinfo" != no; then
18564 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018565
18566cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018567#define HAVE_MALLINFO 1
18568_ACEOF
18569
18570fi
18571
18572
Brian Gaeke5f268f72003-12-05 19:29:01 +000018573echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18574echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18575if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577else
18578 ac_func_search_save_LIBS=$LIBS
18579ac_cv_search_pthread_mutex_lock=no
18580cat >conftest.$ac_ext <<_ACEOF
18581#line $LINENO "configure"
18582/* confdefs.h. */
18583_ACEOF
18584cat confdefs.h >>conftest.$ac_ext
18585cat >>conftest.$ac_ext <<_ACEOF
18586/* end confdefs.h. */
18587
18588/* Override any gcc2 internal prototype to avoid an error. */
18589#ifdef __cplusplus
18590extern "C"
18591#endif
18592/* We use char because int might match the return type of a gcc2
18593 builtin and then its argument prototype would still apply. */
18594char pthread_mutex_lock ();
18595int
18596main ()
18597{
18598pthread_mutex_lock ();
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext conftest$ac_exeext
18604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605 (eval $ac_link) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } &&
18609 { ac_try='test -s conftest$ac_exeext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_search_pthread_mutex_lock="none required"
18616else
18617 echo "$as_me: failed program was:" >&5
18618sed 's/^/| /' conftest.$ac_ext >&5
18619
18620fi
18621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18622if test "$ac_cv_search_pthread_mutex_lock" = no; then
18623 for ac_lib in pthread; do
18624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626#line $LINENO "configure"
18627/* confdefs.h. */
18628_ACEOF
18629cat confdefs.h >>conftest.$ac_ext
18630cat >>conftest.$ac_ext <<_ACEOF
18631/* end confdefs.h. */
18632
18633/* Override any gcc2 internal prototype to avoid an error. */
18634#ifdef __cplusplus
18635extern "C"
18636#endif
18637/* We use char because int might match the return type of a gcc2
18638 builtin and then its argument prototype would still apply. */
18639char pthread_mutex_lock ();
18640int
18641main ()
18642{
18643pthread_mutex_lock ();
18644 ;
18645 return 0;
18646}
18647_ACEOF
18648rm -f conftest.$ac_objext conftest$ac_exeext
18649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -s conftest$ac_exeext'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18660 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18661break
18662else
18663 echo "$as_me: failed program was:" >&5
18664sed 's/^/| /' conftest.$ac_ext >&5
18665
18666fi
18667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18668 done
18669fi
18670LIBS=$ac_func_search_save_LIBS
18671fi
18672echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18673echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18674if test "$ac_cv_search_pthread_mutex_lock" != no; then
18675 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18676
18677cat >>confdefs.h <<\_ACEOF
18678#define HAVE_PTHREAD_MUTEX_LOCK 1
18679_ACEOF
18680
18681fi
18682
18683
John Criswell7a73b802003-06-30 21:59:07 +000018684echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18685echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18686if test "${ac_cv_header_stdc+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18688else
18689 cat >conftest.$ac_ext <<_ACEOF
18690#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
18695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018696#include <stdlib.h>
18697#include <stdarg.h>
18698#include <string.h>
18699#include <float.h>
18700
John Criswell0c38eaf2003-09-10 15:17:25 +000018701int
18702main ()
18703{
18704
18705 ;
18706 return 0;
18707}
John Criswell7a73b802003-06-30 21:59:07 +000018708_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018709rm -f conftest.$ac_objext
18710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018712 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018714 (exit $ac_status); } &&
18715 { ac_try='test -s conftest.$ac_objext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018721 ac_cv_header_stdc=yes
18722else
18723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018724sed 's/^/| /' conftest.$ac_ext >&5
18725
18726ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018727fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018728rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018729
18730if test $ac_cv_header_stdc = yes; then
18731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18732 cat >conftest.$ac_ext <<_ACEOF
18733#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018734/* confdefs.h. */
18735_ACEOF
18736cat confdefs.h >>conftest.$ac_ext
18737cat >>conftest.$ac_ext <<_ACEOF
18738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018739#include <string.h>
18740
18741_ACEOF
18742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018743 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018744 :
18745else
18746 ac_cv_header_stdc=no
18747fi
18748rm -f conftest*
18749
18750fi
18751
18752if test $ac_cv_header_stdc = yes; then
18753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18754 cat >conftest.$ac_ext <<_ACEOF
18755#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018756/* confdefs.h. */
18757_ACEOF
18758cat confdefs.h >>conftest.$ac_ext
18759cat >>conftest.$ac_ext <<_ACEOF
18760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018761#include <stdlib.h>
18762
18763_ACEOF
18764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018765 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018766 :
18767else
18768 ac_cv_header_stdc=no
18769fi
18770rm -f conftest*
18771
18772fi
18773
18774if test $ac_cv_header_stdc = yes; then
18775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18776 if test "$cross_compiling" = yes; then
18777 :
18778else
18779 cat >conftest.$ac_ext <<_ACEOF
18780#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018781/* confdefs.h. */
18782_ACEOF
18783cat confdefs.h >>conftest.$ac_ext
18784cat >>conftest.$ac_ext <<_ACEOF
18785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018786#include <ctype.h>
18787#if ((' ' & 0x0FF) == 0x020)
18788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18790#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018791# define ISLOWER(c) \
18792 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018793 || ('j' <= (c) && (c) <= 'r') \
18794 || ('s' <= (c) && (c) <= 'z'))
18795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18796#endif
18797
18798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18799int
18800main ()
18801{
18802 int i;
18803 for (i = 0; i < 256; i++)
18804 if (XOR (islower (i), ISLOWER (i))
18805 || toupper (i) != TOUPPER (i))
18806 exit(2);
18807 exit (0);
18808}
18809_ACEOF
18810rm -f conftest$ac_exeext
18811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18812 (eval $ac_link) 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 :
18822else
18823 echo "$as_me: program exited with status $ac_status" >&5
18824echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018825sed 's/^/| /' conftest.$ac_ext >&5
18826
John Criswell7a73b802003-06-30 21:59:07 +000018827( exit $ac_status )
18828ac_cv_header_stdc=no
18829fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018830rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018831fi
18832fi
18833fi
18834echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18835echo "${ECHO_T}$ac_cv_header_stdc" >&6
18836if test $ac_cv_header_stdc = yes; then
18837
18838cat >>confdefs.h <<\_ACEOF
18839#define STDC_HEADERS 1
18840_ACEOF
18841
18842fi
18843
18844echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18845echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18846if test "${ac_cv_header_sys_wait_h+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848else
18849 cat >conftest.$ac_ext <<_ACEOF
18850#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018851/* confdefs.h. */
18852_ACEOF
18853cat confdefs.h >>conftest.$ac_ext
18854cat >>conftest.$ac_ext <<_ACEOF
18855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018856#include <sys/types.h>
18857#include <sys/wait.h>
18858#ifndef WEXITSTATUS
18859# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18860#endif
18861#ifndef WIFEXITED
18862# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18863#endif
18864
John Criswell7a73b802003-06-30 21:59:07 +000018865int
18866main ()
18867{
18868 int s;
18869 wait (&s);
18870 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext
18876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -s conftest.$ac_objext'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_header_sys_wait_h=yes
18888else
18889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018890sed 's/^/| /' conftest.$ac_ext >&5
18891
John Criswell7a73b802003-06-30 21:59:07 +000018892ac_cv_header_sys_wait_h=no
18893fi
18894rm -f conftest.$ac_objext conftest.$ac_ext
18895fi
18896echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18897echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18898if test $ac_cv_header_sys_wait_h = yes; then
18899
18900cat >>confdefs.h <<\_ACEOF
18901#define HAVE_SYS_WAIT_H 1
18902_ACEOF
18903
18904fi
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
Brian Gaeke26be9c52004-01-13 06:43:16 +000018915
18916for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h
John Criswell7a73b802003-06-30 21:59:07 +000018917do
18918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18919if eval "test \"\${$as_ac_Header+set}\" = set"; then
18920 echo "$as_me:$LINENO: checking for $ac_header" >&5
18921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18922if eval "test \"\${$as_ac_Header+set}\" = set"; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18924fi
18925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18927else
18928 # Is the header compilable?
18929echo "$as_me:$LINENO: checking $ac_header usability" >&5
18930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18931cat >conftest.$ac_ext <<_ACEOF
18932#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018933/* confdefs.h. */
18934_ACEOF
18935cat confdefs.h >>conftest.$ac_ext
18936cat >>conftest.$ac_ext <<_ACEOF
18937/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018938$ac_includes_default
18939#include <$ac_header>
18940_ACEOF
18941rm -f conftest.$ac_objext
18942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18943 (eval $ac_compile) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try='test -s conftest.$ac_objext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_header_compiler=yes
18954else
18955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018956sed 's/^/| /' conftest.$ac_ext >&5
18957
John Criswell7a73b802003-06-30 21:59:07 +000018958ac_header_compiler=no
18959fi
18960rm -f conftest.$ac_objext conftest.$ac_ext
18961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18962echo "${ECHO_T}$ac_header_compiler" >&6
18963
18964# Is the header present?
18965echo "$as_me:$LINENO: checking $ac_header presence" >&5
18966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18967cat >conftest.$ac_ext <<_ACEOF
18968#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018969/* confdefs.h. */
18970_ACEOF
18971cat confdefs.h >>conftest.$ac_ext
18972cat >>conftest.$ac_ext <<_ACEOF
18973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018974#include <$ac_header>
18975_ACEOF
18976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18978 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018979 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } >/dev/null; then
18984 if test -s conftest.err; then
18985 ac_cpp_err=$ac_c_preproc_warn_flag
18986 else
18987 ac_cpp_err=
18988 fi
18989else
18990 ac_cpp_err=yes
18991fi
18992if test -z "$ac_cpp_err"; then
18993 ac_header_preproc=yes
18994else
18995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018996sed 's/^/| /' conftest.$ac_ext >&5
18997
John Criswell7a73b802003-06-30 21:59:07 +000018998 ac_header_preproc=no
18999fi
19000rm -f conftest.err conftest.$ac_ext
19001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19002echo "${ECHO_T}$ac_header_preproc" >&6
19003
19004# So? What about this header?
19005case $ac_header_compiler:$ac_header_preproc in
19006 yes:no )
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19011 (
19012 cat <<\_ASBOX
19013## ------------------------------------ ##
19014## Report this to bug-autoconf@gnu.org. ##
19015## ------------------------------------ ##
19016_ASBOX
19017 ) |
19018 sed "s/^/$as_me: WARNING: /" >&2
19019 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019020 no:yes )
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019026echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19027 (
19028 cat <<\_ASBOX
19029## ------------------------------------ ##
19030## Report this to bug-autoconf@gnu.org. ##
19031## ------------------------------------ ##
19032_ASBOX
19033 ) |
19034 sed "s/^/$as_me: WARNING: /" >&2
19035 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019036esac
19037echo "$as_me:$LINENO: checking for $ac_header" >&5
19038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19039if eval "test \"\${$as_ac_Header+set}\" = set"; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041else
19042 eval "$as_ac_Header=$ac_header_preproc"
19043fi
19044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19046
19047fi
19048if test `eval echo '${'$as_ac_Header'}'` = yes; then
19049 cat >>confdefs.h <<_ACEOF
19050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19051_ACEOF
19052
19053fi
19054
19055done
19056
19057
John Criswell7a73b802003-06-30 21:59:07 +000019058echo "$as_me:$LINENO: checking for pid_t" >&5
19059echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19060if test "${ac_cv_type_pid_t+set}" = set; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19062else
19063 cat >conftest.$ac_ext <<_ACEOF
19064#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019065/* confdefs.h. */
19066_ACEOF
19067cat confdefs.h >>conftest.$ac_ext
19068cat >>conftest.$ac_ext <<_ACEOF
19069/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019070$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019071int
19072main ()
19073{
19074if ((pid_t *) 0)
19075 return 0;
19076if (sizeof (pid_t))
19077 return 0;
19078 ;
19079 return 0;
19080}
19081_ACEOF
19082rm -f conftest.$ac_objext
19083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19084 (eval $ac_compile) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -s conftest.$ac_objext'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 ac_cv_type_pid_t=yes
19095else
19096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019097sed 's/^/| /' conftest.$ac_ext >&5
19098
John Criswell7a73b802003-06-30 21:59:07 +000019099ac_cv_type_pid_t=no
19100fi
19101rm -f conftest.$ac_objext conftest.$ac_ext
19102fi
19103echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19104echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19105if test $ac_cv_type_pid_t = yes; then
19106 :
19107else
19108
19109cat >>confdefs.h <<_ACEOF
19110#define pid_t int
19111_ACEOF
19112
19113fi
19114
19115echo "$as_me:$LINENO: checking for size_t" >&5
19116echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19117if test "${ac_cv_type_size_t+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19119else
19120 cat >conftest.$ac_ext <<_ACEOF
19121#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019122/* confdefs.h. */
19123_ACEOF
19124cat confdefs.h >>conftest.$ac_ext
19125cat >>conftest.$ac_ext <<_ACEOF
19126/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019127$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019128int
19129main ()
19130{
19131if ((size_t *) 0)
19132 return 0;
19133if (sizeof (size_t))
19134 return 0;
19135 ;
19136 return 0;
19137}
19138_ACEOF
19139rm -f conftest.$ac_objext
19140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19141 (eval $ac_compile) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
19145 { ac_try='test -s conftest.$ac_objext'
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19148 ac_status=$?
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; }; then
19151 ac_cv_type_size_t=yes
19152else
19153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019154sed 's/^/| /' conftest.$ac_ext >&5
19155
John Criswell7a73b802003-06-30 21:59:07 +000019156ac_cv_type_size_t=no
19157fi
19158rm -f conftest.$ac_objext conftest.$ac_ext
19159fi
19160echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19161echo "${ECHO_T}$ac_cv_type_size_t" >&6
19162if test $ac_cv_type_size_t = yes; then
19163 :
19164else
19165
19166cat >>confdefs.h <<_ACEOF
19167#define size_t unsigned
19168_ACEOF
19169
19170fi
19171
19172echo "$as_me:$LINENO: checking for int64_t" >&5
19173echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19174if test "${ac_cv_type_int64_t+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19176else
19177 cat >conftest.$ac_ext <<_ACEOF
19178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019179/* confdefs.h. */
19180_ACEOF
19181cat confdefs.h >>conftest.$ac_ext
19182cat >>conftest.$ac_ext <<_ACEOF
19183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019184$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019185int
19186main ()
19187{
19188if ((int64_t *) 0)
19189 return 0;
19190if (sizeof (int64_t))
19191 return 0;
19192 ;
19193 return 0;
19194}
19195_ACEOF
19196rm -f conftest.$ac_objext
19197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } &&
19202 { ac_try='test -s conftest.$ac_objext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_type_int64_t=yes
19209else
19210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019211sed 's/^/| /' conftest.$ac_ext >&5
19212
John Criswell7a73b802003-06-30 21:59:07 +000019213ac_cv_type_int64_t=no
19214fi
19215rm -f conftest.$ac_objext conftest.$ac_ext
19216fi
19217echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19218echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19219if test $ac_cv_type_int64_t = yes; then
19220
19221cat >>confdefs.h <<_ACEOF
19222#define HAVE_INT64_T 1
19223_ACEOF
19224
19225
19226else
19227 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19228echo "$as_me: error: Type int64_t required but not found" >&2;}
19229 { (exit 1); exit 1; }; }
19230fi
19231
19232echo "$as_me:$LINENO: checking for uint64_t" >&5
19233echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19234if test "${ac_cv_type_uint64_t+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237 cat >conftest.$ac_ext <<_ACEOF
19238#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019239/* confdefs.h. */
19240_ACEOF
19241cat confdefs.h >>conftest.$ac_ext
19242cat >>conftest.$ac_ext <<_ACEOF
19243/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019244$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019245int
19246main ()
19247{
19248if ((uint64_t *) 0)
19249 return 0;
19250if (sizeof (uint64_t))
19251 return 0;
19252 ;
19253 return 0;
19254}
19255_ACEOF
19256rm -f conftest.$ac_objext
19257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19258 (eval $ac_compile) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } &&
19262 { ac_try='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ac_cv_type_uint64_t=yes
19269else
19270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019271sed 's/^/| /' conftest.$ac_ext >&5
19272
John Criswell7a73b802003-06-30 21:59:07 +000019273ac_cv_type_uint64_t=no
19274fi
19275rm -f conftest.$ac_objext conftest.$ac_ext
19276fi
19277echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19278echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19279if test $ac_cv_type_uint64_t = yes; then
19280
19281cat >>confdefs.h <<_ACEOF
19282#define HAVE_UINT64_T 1
19283_ACEOF
19284
19285
19286else
19287 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19288echo "$as_me: error: Type uint64_t required but not found" >&2;}
19289 { (exit 1); exit 1; }; }
19290fi
19291
19292echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19293echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19294if test "${ac_cv_header_time+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296else
19297 cat >conftest.$ac_ext <<_ACEOF
19298#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
19303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019304#include <sys/types.h>
19305#include <sys/time.h>
19306#include <time.h>
19307
John Criswell7a73b802003-06-30 21:59:07 +000019308int
19309main ()
19310{
19311if ((struct tm *) 0)
19312return 0;
19313 ;
19314 return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext
19318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19319 (eval $ac_compile) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
19323 { ac_try='test -s conftest.$ac_objext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_header_time=yes
19330else
19331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019332sed 's/^/| /' conftest.$ac_ext >&5
19333
John Criswell7a73b802003-06-30 21:59:07 +000019334ac_cv_header_time=no
19335fi
19336rm -f conftest.$ac_objext conftest.$ac_ext
19337fi
19338echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19339echo "${ECHO_T}$ac_cv_header_time" >&6
19340if test $ac_cv_header_time = yes; then
19341
19342cat >>confdefs.h <<\_ACEOF
19343#define TIME_WITH_SYS_TIME 1
19344_ACEOF
19345
19346fi
19347
19348echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19349echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19350if test "${ac_cv_struct_tm+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19352else
19353 cat >conftest.$ac_ext <<_ACEOF
19354#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019355/* confdefs.h. */
19356_ACEOF
19357cat confdefs.h >>conftest.$ac_ext
19358cat >>conftest.$ac_ext <<_ACEOF
19359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019360#include <sys/types.h>
19361#include <time.h>
19362
John Criswell7a73b802003-06-30 21:59:07 +000019363int
19364main ()
19365{
19366struct tm *tp; tp->tm_sec;
19367 ;
19368 return 0;
19369}
19370_ACEOF
19371rm -f conftest.$ac_objext
19372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_struct_tm=time.h
19384else
19385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019386sed 's/^/| /' conftest.$ac_ext >&5
19387
John Criswell7a73b802003-06-30 21:59:07 +000019388ac_cv_struct_tm=sys/time.h
19389fi
19390rm -f conftest.$ac_objext conftest.$ac_ext
19391fi
19392echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19393echo "${ECHO_T}$ac_cv_struct_tm" >&6
19394if test $ac_cv_struct_tm = sys/time.h; then
19395
19396cat >>confdefs.h <<\_ACEOF
19397#define TM_IN_SYS_TIME 1
19398_ACEOF
19399
19400fi
19401
19402
John Criswella0137d32003-10-13 16:22:01 +000019403
19404
19405
19406 ac_ext=c
19407ac_cpp='$CPP $CPPFLAGS'
19408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412 if test "$cross_compiling" = yes; then
19413 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19414See \`config.log' for more details." >&5
19415echo "$as_me: error: cannot run test program while cross compiling
19416See \`config.log' for more details." >&2;}
19417 { (exit 1); exit 1; }; }
19418else
19419 cat >conftest.$ac_ext <<_ACEOF
19420#line $LINENO "configure"
19421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426#include <stdio.h>
19427 #include <stdlib.h>
19428int
19429main ()
19430{
19431
19432 volatile double A, B;
19433 char Buffer[100];
19434 A = 1;
19435 A /= 10.0;
19436 sprintf(Buffer, "%a", A);
19437 B = atof(Buffer);
19438 if (A != B)
19439 return (1);
19440 if (A != 0x1.999999999999ap-4)
19441 return (1);
19442 return (0);
19443 ;
19444 return 0;
19445}
19446_ACEOF
19447rm -f conftest$ac_exeext
19448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449 (eval $ac_link) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_c_printf_a=yes
19459else
19460 echo "$as_me: program exited with status $ac_status" >&5
19461echo "$as_me: failed program was:" >&5
19462sed 's/^/| /' conftest.$ac_ext >&5
19463
19464( exit $ac_status )
19465ac_c_printf_a=no
19466fi
19467rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19468fi
19469 ac_ext=c
19470ac_cpp='$CPP $CPPFLAGS'
19471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473ac_compiler_gnu=$ac_cv_c_compiler_gnu
19474
19475 if test "$ac_c_printf_a" = "yes"; then
19476
19477cat >>confdefs.h <<\_ACEOF
19478#define HAVE_PRINTF_A 1
19479_ACEOF
19480
19481 fi
19482
19483
John Criswell0021c312004-02-13 21:57:29 +000019484echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19485echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19486if test "${ac_cv_c_bigendian+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488else
19489 # See if sys/param.h defines the BYTE_ORDER macro.
19490cat >conftest.$ac_ext <<_ACEOF
19491#line $LINENO "configure"
19492/* confdefs.h. */
19493_ACEOF
19494cat confdefs.h >>conftest.$ac_ext
19495cat >>conftest.$ac_ext <<_ACEOF
19496/* end confdefs.h. */
19497#include <sys/types.h>
19498#include <sys/param.h>
19499
19500int
19501main ()
19502{
19503#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19504 bogus endian macros
19505#endif
19506
19507 ;
19508 return 0;
19509}
19510_ACEOF
19511rm -f conftest.$ac_objext
19512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513 (eval $ac_compile) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -s conftest.$ac_objext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 # It does; now see whether it defined to BIG_ENDIAN or not.
19524cat >conftest.$ac_ext <<_ACEOF
19525#line $LINENO "configure"
19526/* confdefs.h. */
19527_ACEOF
19528cat confdefs.h >>conftest.$ac_ext
19529cat >>conftest.$ac_ext <<_ACEOF
19530/* end confdefs.h. */
19531#include <sys/types.h>
19532#include <sys/param.h>
19533
19534int
19535main ()
19536{
19537#if BYTE_ORDER != BIG_ENDIAN
19538 not big endian
19539#endif
19540
19541 ;
19542 return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext
19546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19547 (eval $ac_compile) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -s conftest.$ac_objext'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_c_bigendian=yes
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562ac_cv_c_bigendian=no
19563fi
19564rm -f conftest.$ac_objext conftest.$ac_ext
19565else
19566 echo "$as_me: failed program was:" >&5
19567sed 's/^/| /' conftest.$ac_ext >&5
19568
19569# It does not; compile a test program.
19570if test "$cross_compiling" = yes; then
19571 # try to guess the endianness by grepping values into an object file
19572 ac_cv_c_bigendian=unknown
19573 cat >conftest.$ac_ext <<_ACEOF
19574#line $LINENO "configure"
19575/* confdefs.h. */
19576_ACEOF
19577cat confdefs.h >>conftest.$ac_ext
19578cat >>conftest.$ac_ext <<_ACEOF
19579/* end confdefs.h. */
19580short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19581short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19582void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19583short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19584short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19585void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19586int
19587main ()
19588{
19589 _ascii (); _ebcdic ();
19590 ;
19591 return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext
19595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596 (eval $ac_compile) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
19600 { ac_try='test -s conftest.$ac_objext'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19607 ac_cv_c_bigendian=yes
19608fi
19609if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19610 if test "$ac_cv_c_bigendian" = unknown; then
19611 ac_cv_c_bigendian=no
19612 else
19613 # finding both strings is unlikely to happen, but who knows?
19614 ac_cv_c_bigendian=unknown
19615 fi
19616fi
19617else
19618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621fi
19622rm -f conftest.$ac_objext conftest.$ac_ext
19623else
19624 cat >conftest.$ac_ext <<_ACEOF
19625#line $LINENO "configure"
19626/* confdefs.h. */
19627_ACEOF
19628cat confdefs.h >>conftest.$ac_ext
19629cat >>conftest.$ac_ext <<_ACEOF
19630/* end confdefs.h. */
19631int
19632main ()
19633{
19634 /* Are we little or big endian? From Harbison&Steele. */
19635 union
19636 {
19637 long l;
19638 char c[sizeof (long)];
19639 } u;
19640 u.l = 1;
19641 exit (u.c[sizeof (long) - 1] == 1);
19642}
19643_ACEOF
19644rm -f conftest$ac_exeext
19645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646 (eval $ac_link) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_cv_c_bigendian=no
19656else
19657 echo "$as_me: program exited with status $ac_status" >&5
19658echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661( exit $ac_status )
19662ac_cv_c_bigendian=yes
19663fi
19664rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19665fi
19666fi
19667rm -f conftest.$ac_objext conftest.$ac_ext
19668fi
19669echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19670echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19671case $ac_cv_c_bigendian in
19672 yes)
19673 ENDIAN=big
19674 ;;
19675 no)
19676 ENDIAN=little
19677 ;;
19678 *)
19679 { { echo "$as_me:$LINENO: error: unknown endianness
19680presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19681echo "$as_me: error: unknown endianness
19682presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19683 { (exit 1); exit 1; }; } ;;
19684esac
19685
19686
John Criswell7a73b802003-06-30 21:59:07 +000019687echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19688echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19689if test "${ac_cv_cxx_namespaces+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19691else
19692
19693
19694 ac_ext=cc
19695ac_cpp='$CXXCPP $CPPFLAGS'
19696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19699
19700 cat >conftest.$ac_ext <<_ACEOF
19701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019702/* confdefs.h. */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019707namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019708int
19709main ()
19710{
19711using namespace Outer::Inner; return i;
19712 ;
19713 return 0;
19714}
19715_ACEOF
19716rm -f conftest.$ac_objext
19717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -s conftest.$ac_objext'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_cxx_namespaces=yes
19729else
19730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019731sed 's/^/| /' conftest.$ac_ext >&5
19732
John Criswell7a73b802003-06-30 21:59:07 +000019733ac_cv_cxx_namespaces=no
19734fi
19735rm -f conftest.$ac_objext conftest.$ac_ext
19736 ac_ext=c
19737ac_cpp='$CPP $CPPFLAGS'
19738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740ac_compiler_gnu=$ac_cv_c_compiler_gnu
19741
19742
19743fi
19744echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19745echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19746if test "$ac_cv_cxx_namespaces" = yes; then
19747
19748cat >>confdefs.h <<\_ACEOF
19749#define HAVE_NAMESPACES
19750_ACEOF
19751
19752fi
19753
Brian Gaeke90583492003-11-10 03:06:28 +000019754echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19755echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19756if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000019757 echo $ECHO_N "(cached) $ECHO_C" >&6
19758else
19759
19760
19761
19762 ac_ext=cc
19763ac_cpp='$CXXCPP $CPPFLAGS'
19764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19767
19768 cat >conftest.$ac_ext <<_ACEOF
19769#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019770/* confdefs.h. */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019775#include <ext/hash_map>
19776#ifdef HAVE_NAMESPACES
19777using namespace std;
19778#endif
John Criswell7a73b802003-06-30 21:59:07 +000019779int
19780main ()
19781{
Brian Gaeke90583492003-11-10 03:06:28 +000019782hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000019783 ;
19784 return 0;
19785}
19786_ACEOF
19787rm -f conftest.$ac_objext
19788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19789 (eval $ac_compile) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -s conftest.$ac_objext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000019799 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000019800else
19801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019802sed 's/^/| /' conftest.$ac_ext >&5
19803
Brian Gaeke90583492003-11-10 03:06:28 +000019804ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000019805fi
19806rm -f conftest.$ac_objext conftest.$ac_ext
19807 ac_ext=c
19808ac_cpp='$CPP $CPPFLAGS'
19809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19811ac_compiler_gnu=$ac_cv_c_compiler_gnu
19812
John Criswell7a73b802003-06-30 21:59:07 +000019813fi
Brian Gaeke90583492003-11-10 03:06:28 +000019814echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19815echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19816 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019817
19818cat >>confdefs.h <<\_ACEOF
19819#define HAVE_STD_EXT_HASH_MAP
19820_ACEOF
19821
Brian Gaeke90583492003-11-10 03:06:28 +000019822 fi
19823 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19824echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19825if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827else
19828
19829
19830
19831 ac_ext=cc
19832ac_cpp='$CXXCPP $CPPFLAGS'
19833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19836
19837 cat >conftest.$ac_ext <<_ACEOF
19838#line $LINENO "configure"
19839/* confdefs.h. */
19840_ACEOF
19841cat confdefs.h >>conftest.$ac_ext
19842cat >>conftest.$ac_ext <<_ACEOF
19843/* end confdefs.h. */
19844#include <ext/hash_map>
19845#ifdef HAVE_NAMESPACES
19846using namespace __gnu_cxx;
19847#endif
19848int
19849main ()
19850{
19851hash_map<int,int> t;
19852 ;
19853 return 0;
19854}
19855_ACEOF
19856rm -f conftest.$ac_objext
19857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19858 (eval $ac_compile) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_cv_cxx_have_gnu_ext_hash_map=yes
19869else
19870 echo "$as_me: failed program was:" >&5
19871sed 's/^/| /' conftest.$ac_ext >&5
19872
19873ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000019874fi
Brian Gaeke90583492003-11-10 03:06:28 +000019875rm -f conftest.$ac_objext conftest.$ac_ext
19876 ac_ext=c
19877ac_cpp='$CPP $CPPFLAGS'
19878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881
19882fi
19883echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19884echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19885 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019886
19887cat >>confdefs.h <<\_ACEOF
19888#define HAVE_GNU_EXT_HASH_MAP
19889_ACEOF
19890
Brian Gaeke90583492003-11-10 03:06:28 +000019891 fi
19892 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19893echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19894if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19896else
John Criswell7a73b802003-06-30 21:59:07 +000019897
Brian Gaeke90583492003-11-10 03:06:28 +000019898
19899
19900 ac_ext=cc
19901ac_cpp='$CXXCPP $CPPFLAGS'
19902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19905
19906 cat >conftest.$ac_ext <<_ACEOF
19907#line $LINENO "configure"
19908/* confdefs.h. */
19909_ACEOF
19910cat confdefs.h >>conftest.$ac_ext
19911cat >>conftest.$ac_ext <<_ACEOF
19912/* end confdefs.h. */
19913#include <hash_map>
19914int
19915main ()
19916{
19917hash_map<int,int> t;
19918 ;
19919 return 0;
19920}
19921_ACEOF
19922rm -f conftest.$ac_objext
19923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924 (eval $ac_compile) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try='test -s conftest.$ac_objext'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_cv_cxx_have_global_hash_map=yes
19935else
19936 echo "$as_me: failed program was:" >&5
19937sed 's/^/| /' conftest.$ac_ext >&5
19938
19939ac_cv_cxx_have_global_hash_map=no
19940fi
19941rm -f conftest.$ac_objext conftest.$ac_ext
19942 ac_ext=c
19943ac_cpp='$CPP $CPPFLAGS'
19944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946ac_compiler_gnu=$ac_cv_c_compiler_gnu
19947
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19950echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19951 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19952
19953cat >>confdefs.h <<\_ACEOF
19954#define HAVE_GLOBAL_HASH_MAP
19955_ACEOF
19956
19957 fi
19958echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19959echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19960if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000019961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962else
19963
19964
19965
19966 ac_ext=cc
19967ac_cpp='$CXXCPP $CPPFLAGS'
19968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19971
19972 cat >conftest.$ac_ext <<_ACEOF
19973#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019974/* confdefs.h. */
19975_ACEOF
19976cat confdefs.h >>conftest.$ac_ext
19977cat >>conftest.$ac_ext <<_ACEOF
19978/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019979#include <ext/hash_set>
19980#ifdef HAVE_NAMESPACES
19981using namespace std;
19982#endif
John Criswell7a73b802003-06-30 21:59:07 +000019983int
19984main ()
19985{
Brian Gaeke90583492003-11-10 03:06:28 +000019986hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000019987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext
19992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020003 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020004else
20005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020006sed 's/^/| /' conftest.$ac_ext >&5
20007
Brian Gaeke90583492003-11-10 03:06:28 +000020008ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020009fi
20010rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020011 ac_ext=c
20012ac_cpp='$CPP $CPPFLAGS'
20013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20015ac_compiler_gnu=$ac_cv_c_compiler_gnu
20016
20017fi
20018echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20019echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20020 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20021
20022cat >>confdefs.h <<\_ACEOF
20023#define HAVE_STD_EXT_HASH_SET
20024_ACEOF
20025
20026 fi
20027 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20028echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20029if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031else
20032
20033
20034
20035 ac_ext=cc
20036ac_cpp='$CXXCPP $CPPFLAGS'
20037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040
John Criswell7a73b802003-06-30 21:59:07 +000020041 cat >conftest.$ac_ext <<_ACEOF
20042#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020043/* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020048#include <ext/hash_set>
20049#ifdef HAVE_NAMESPACES
20050using namespace __gnu_cxx;
20051#endif
John Criswell7a73b802003-06-30 21:59:07 +000020052int
20053main ()
20054{
Brian Gaeke90583492003-11-10 03:06:28 +000020055hash_set<int> t;
20056 ;
20057 return 0;
20058}
20059_ACEOF
20060rm -f conftest.$ac_objext
20061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 ac_cv_cxx_have_gnu_ext_hash_set=yes
20073else
20074 echo "$as_me: failed program was:" >&5
20075sed 's/^/| /' conftest.$ac_ext >&5
20076
20077ac_cv_cxx_have_gnu_ext_hash_set=no
20078fi
20079rm -f conftest.$ac_objext conftest.$ac_ext
20080 ac_ext=c
20081ac_cpp='$CPP $CPPFLAGS'
20082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20084ac_compiler_gnu=$ac_cv_c_compiler_gnu
20085
20086fi
20087echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20088echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20089 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20090
20091cat >>confdefs.h <<\_ACEOF
20092#define HAVE_GNU_EXT_HASH_SET
20093_ACEOF
20094
20095 fi
20096 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20097echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20098if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100else
20101
20102
20103
20104 ac_ext=cc
20105ac_cpp='$CXXCPP $CPPFLAGS'
20106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20109
20110 cat >conftest.$ac_ext <<_ACEOF
20111#line $LINENO "configure"
20112/* confdefs.h. */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h. */
20117#include <hash_set>
20118int
20119main ()
20120{
John Criswell7a73b802003-06-30 21:59:07 +000020121hash_set<int> t; return 0;
20122 ;
20123 return 0;
20124}
20125_ACEOF
20126rm -f conftest.$ac_objext
20127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20128 (eval $ac_compile) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } &&
20132 { ac_try='test -s conftest.$ac_objext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020138 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020139else
20140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020141sed 's/^/| /' conftest.$ac_ext >&5
20142
Brian Gaeke90583492003-11-10 03:06:28 +000020143ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020144fi
20145rm -f conftest.$ac_objext conftest.$ac_ext
20146 ac_ext=c
20147ac_cpp='$CPP $CPPFLAGS'
20148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150ac_compiler_gnu=$ac_cv_c_compiler_gnu
20151
John Criswell7a73b802003-06-30 21:59:07 +000020152fi
Brian Gaeke90583492003-11-10 03:06:28 +000020153echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20154echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20155 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020156
20157cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000020158#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000020159_ACEOF
20160
Brian Gaeke90583492003-11-10 03:06:28 +000020161 fi
John Criswell7a73b802003-06-30 21:59:07 +000020162echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20163echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20164if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167
20168
20169
20170 ac_ext=cc
20171ac_cpp='$CXXCPP $CPPFLAGS'
20172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20175
20176 cat >conftest.$ac_ext <<_ACEOF
20177#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020178/* confdefs.h. */
20179_ACEOF
20180cat confdefs.h >>conftest.$ac_ext
20181cat >>conftest.$ac_ext <<_ACEOF
20182/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020183#include <ext/slist>
20184#ifdef HAVE_NAMESPACES
20185using namespace std;
20186#endif
John Criswell7a73b802003-06-30 21:59:07 +000020187int
20188main ()
20189{
20190slist<int> s; return 0;
20191 ;
20192 return 0;
20193}
20194_ACEOF
20195rm -f conftest.$ac_objext
20196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -s conftest.$ac_objext'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_cv_cxx_have_ext_slist=std
20208else
20209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020210sed 's/^/| /' conftest.$ac_ext >&5
20211
John Criswell7a73b802003-06-30 21:59:07 +000020212ac_cv_cxx_have_ext_slist=no
20213fi
20214rm -f conftest.$ac_objext conftest.$ac_ext
20215 cat >conftest.$ac_ext <<_ACEOF
20216#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020222#include <ext/slist>
20223#ifdef HAVE_NAMESPACES
20224using namespace __gnu_cxx;
20225#endif
John Criswell7a73b802003-06-30 21:59:07 +000020226int
20227main ()
20228{
20229slist<int> s; return 0;
20230 ;
20231 return 0;
20232}
20233_ACEOF
20234rm -f conftest.$ac_objext
20235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20236 (eval $ac_compile) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_cxx_have_ext_slist=gnu
20247else
20248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020249sed 's/^/| /' conftest.$ac_ext >&5
20250
John Criswell7a73b802003-06-30 21:59:07 +000020251ac_cv_cxx_have_ext_slist=no
20252fi
20253rm -f conftest.$ac_objext conftest.$ac_ext
20254
20255 ac_ext=c
20256ac_cpp='$CPP $CPPFLAGS'
20257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20259ac_compiler_gnu=$ac_cv_c_compiler_gnu
20260
20261
20262fi
20263echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20264echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20265if test "$ac_cv_cxx_have_ext_slist" = std; then
20266
20267cat >>confdefs.h <<\_ACEOF
20268#define HAVE_EXT_SLIST std
20269_ACEOF
20270
20271fi
20272if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20273
20274cat >>confdefs.h <<\_ACEOF
20275#define HAVE_EXT_SLIST gnu
20276_ACEOF
20277
20278fi
20279
20280echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20281echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20282if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284else
20285
20286
20287
20288 ac_ext=cc
20289ac_cpp='$CXXCPP $CPPFLAGS'
20290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20293
20294 cat >conftest.$ac_ext <<_ACEOF
20295#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020301#include <iterator>
20302#ifdef HAVE_NAMESPACES
20303using namespace std;
20304#endif
John Criswell7a73b802003-06-30 21:59:07 +000020305int
20306main ()
20307{
20308iterator<int,int,int> t; return 0;
20309 ;
20310 return 0;
20311}
20312_ACEOF
20313rm -f conftest.$ac_objext
20314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20315 (eval $ac_compile) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -s conftest.$ac_objext'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_cv_cxx_have_std_iterator=yes
20326else
20327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020328sed 's/^/| /' conftest.$ac_ext >&5
20329
John Criswell7a73b802003-06-30 21:59:07 +000020330ac_cv_cxx_have_std_iterator=no
20331fi
20332rm -f conftest.$ac_objext conftest.$ac_ext
20333 ac_ext=c
20334ac_cpp='$CPP $CPPFLAGS'
20335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338
20339
20340fi
20341echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20342echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20343if test "$ac_cv_cxx_have_std_iterator" = yes; then
20344
20345cat >>confdefs.h <<\_ACEOF
20346#define HAVE_STD_ITERATOR
20347_ACEOF
20348
20349fi
20350
20351echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20352echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20353if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355else
20356
20357
20358
20359 ac_ext=cc
20360ac_cpp='$CXXCPP $CPPFLAGS'
20361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20364
20365 cat >conftest.$ac_ext <<_ACEOF
20366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020367/* confdefs.h. */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020372#include <iterator>
20373#ifdef HAVE_NAMESPACES
20374using namespace std;
20375#endif
John Criswell7a73b802003-06-30 21:59:07 +000020376int
20377main ()
20378{
John Criswellc78022e2003-07-29 19:11:58 +000020379bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020380 ;
20381 return 0;
20382}
20383_ACEOF
20384rm -f conftest.$ac_objext
20385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } &&
20390 { ac_try='test -s conftest.$ac_objext'
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }; then
20396 ac_cv_cxx_have_bi_iterator=yes
20397else
20398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020399sed 's/^/| /' conftest.$ac_ext >&5
20400
John Criswell7a73b802003-06-30 21:59:07 +000020401ac_cv_cxx_have_bi_iterator=no
20402fi
20403rm -f conftest.$ac_objext conftest.$ac_ext
20404 ac_ext=c
20405ac_cpp='$CPP $CPPFLAGS'
20406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409
20410
20411fi
20412echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20413echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20414if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20415
20416cat >>confdefs.h <<\_ACEOF
20417#define HAVE_BI_ITERATOR
20418_ACEOF
20419
20420fi
20421
20422echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20423echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20424if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426else
20427
20428
20429
20430 ac_ext=cc
20431ac_cpp='$CXXCPP $CPPFLAGS'
20432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20435
20436 cat >conftest.$ac_ext <<_ACEOF
20437#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020438/* confdefs.h. */
20439_ACEOF
20440cat confdefs.h >>conftest.$ac_ext
20441cat >>conftest.$ac_ext <<_ACEOF
20442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020443#include <iterator>
20444#ifdef HAVE_NAMESPACES
20445using namespace std;
20446#endif
John Criswell7a73b802003-06-30 21:59:07 +000020447int
20448main ()
20449{
John Criswellc78022e2003-07-29 19:11:58 +000020450forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020451 ;
20452 return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext
20456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>&5
20458 ac_status=$?
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -s conftest.$ac_objext'
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 ac_cv_cxx_have_fwd_iterator=yes
20468else
20469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020470sed 's/^/| /' conftest.$ac_ext >&5
20471
John Criswell7a73b802003-06-30 21:59:07 +000020472ac_cv_cxx_have_fwd_iterator=no
20473fi
20474rm -f conftest.$ac_objext conftest.$ac_ext
20475 ac_ext=c
20476ac_cpp='$CPP $CPPFLAGS'
20477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480
20481
20482fi
20483echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20484echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20485if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20486
20487cat >>confdefs.h <<\_ACEOF
20488#define HAVE_FWD_ITERATOR
20489_ACEOF
20490
20491fi
20492
20493
20494# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20495# for constant arguments. Useless!
20496echo "$as_me:$LINENO: checking for working alloca.h" >&5
20497echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20498if test "${ac_cv_working_alloca_h+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
20502#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020503/* confdefs.h. */
20504_ACEOF
20505cat confdefs.h >>conftest.$ac_ext
20506cat >>conftest.$ac_ext <<_ACEOF
20507/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020508#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020509int
20510main ()
20511{
20512char *p = (char *) alloca (2 * sizeof (int));
20513 ;
20514 return 0;
20515}
20516_ACEOF
20517rm -f conftest.$ac_objext conftest$ac_exeext
20518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20519 (eval $ac_link) 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -s conftest$ac_exeext'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_cv_working_alloca_h=yes
20530else
20531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020532sed 's/^/| /' conftest.$ac_ext >&5
20533
John Criswell7a73b802003-06-30 21:59:07 +000020534ac_cv_working_alloca_h=no
20535fi
20536rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20537fi
20538echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20539echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20540if test $ac_cv_working_alloca_h = yes; then
20541
20542cat >>confdefs.h <<\_ACEOF
20543#define HAVE_ALLOCA_H 1
20544_ACEOF
20545
20546fi
20547
20548echo "$as_me:$LINENO: checking for alloca" >&5
20549echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20550if test "${ac_cv_func_alloca_works+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20552else
20553 cat >conftest.$ac_ext <<_ACEOF
20554#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020555/* confdefs.h. */
20556_ACEOF
20557cat confdefs.h >>conftest.$ac_ext
20558cat >>conftest.$ac_ext <<_ACEOF
20559/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020560#ifdef __GNUC__
20561# define alloca __builtin_alloca
20562#else
20563# ifdef _MSC_VER
20564# include <malloc.h>
20565# define alloca _alloca
20566# else
20567# if HAVE_ALLOCA_H
20568# include <alloca.h>
20569# else
20570# ifdef _AIX
20571 #pragma alloca
20572# else
20573# ifndef alloca /* predefined by HP cc +Olibcalls */
20574char *alloca ();
20575# endif
20576# endif
20577# endif
20578# endif
20579#endif
20580
John Criswell7a73b802003-06-30 21:59:07 +000020581int
20582main ()
20583{
20584char *p = (char *) alloca (1);
20585 ;
20586 return 0;
20587}
20588_ACEOF
20589rm -f conftest.$ac_objext conftest$ac_exeext
20590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20591 (eval $ac_link) 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -s conftest$ac_exeext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_cv_func_alloca_works=yes
20602else
20603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020604sed 's/^/| /' conftest.$ac_ext >&5
20605
John Criswell7a73b802003-06-30 21:59:07 +000020606ac_cv_func_alloca_works=no
20607fi
20608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20609fi
20610echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20611echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20612
20613if test $ac_cv_func_alloca_works = yes; then
20614
20615cat >>confdefs.h <<\_ACEOF
20616#define HAVE_ALLOCA 1
20617_ACEOF
20618
20619else
20620 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20621# that cause trouble. Some versions do not even contain alloca or
20622# contain a buggy version. If you still want to use their alloca,
20623# use ar to extract alloca.o from them instead of compiling alloca.c.
20624
20625ALLOCA=alloca.$ac_objext
20626
20627cat >>confdefs.h <<\_ACEOF
20628#define C_ALLOCA 1
20629_ACEOF
20630
20631
20632echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20633echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20634if test "${ac_cv_os_cray+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636else
20637 cat >conftest.$ac_ext <<_ACEOF
20638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
20643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020644#if defined(CRAY) && ! defined(CRAY2)
20645webecray
20646#else
20647wenotbecray
20648#endif
20649
20650_ACEOF
20651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020652 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020653 ac_cv_os_cray=yes
20654else
20655 ac_cv_os_cray=no
20656fi
20657rm -f conftest*
20658
20659fi
20660echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20661echo "${ECHO_T}$ac_cv_os_cray" >&6
20662if test $ac_cv_os_cray = yes; then
20663 for ac_func in _getb67 GETB67 getb67; do
20664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20665echo "$as_me:$LINENO: checking for $ac_func" >&5
20666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20667if eval "test \"\${$as_ac_var+set}\" = set"; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669else
20670 cat >conftest.$ac_ext <<_ACEOF
20671#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020672/* confdefs.h. */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
20676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020677/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020678 which can conflict with char $ac_func (); below.
20679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20680 <limits.h> exists even on freestanding compilers. */
20681#ifdef __STDC__
20682# include <limits.h>
20683#else
20684# include <assert.h>
20685#endif
John Criswell7a73b802003-06-30 21:59:07 +000020686/* Override any gcc2 internal prototype to avoid an error. */
20687#ifdef __cplusplus
20688extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020689{
John Criswell7a73b802003-06-30 21:59:07 +000020690#endif
20691/* We use char because int might match the return type of a gcc2
20692 builtin and then its argument prototype would still apply. */
20693char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020694/* The GNU C library defines this for functions which it implements
20695 to always fail with ENOSYS. Some functions are actually named
20696 something starting with __ and the normal name is an alias. */
20697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20698choke me
20699#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020700char (*f) () = $ac_func;
20701#endif
20702#ifdef __cplusplus
20703}
John Criswell7a73b802003-06-30 21:59:07 +000020704#endif
20705
John Criswell0c38eaf2003-09-10 15:17:25 +000020706int
20707main ()
20708{
20709return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext conftest$ac_exeext
20715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } &&
20720 { ac_try='test -s conftest$ac_exeext'
20721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); }; }; then
20726 eval "$as_ac_var=yes"
20727else
20728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020729sed 's/^/| /' conftest.$ac_ext >&5
20730
John Criswell7a73b802003-06-30 21:59:07 +000020731eval "$as_ac_var=no"
20732fi
20733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20734fi
20735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20737if test `eval echo '${'$as_ac_var'}'` = yes; then
20738
20739cat >>confdefs.h <<_ACEOF
20740#define CRAY_STACKSEG_END $ac_func
20741_ACEOF
20742
20743 break
20744fi
20745
20746 done
20747fi
20748
20749echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20750echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20751if test "${ac_cv_c_stack_direction+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20753else
20754 if test "$cross_compiling" = yes; then
20755 ac_cv_c_stack_direction=0
20756else
20757 cat >conftest.$ac_ext <<_ACEOF
20758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020764int
20765find_stack_direction ()
20766{
20767 static char *addr = 0;
20768 auto char dummy;
20769 if (addr == 0)
20770 {
20771 addr = &dummy;
20772 return find_stack_direction ();
20773 }
20774 else
20775 return (&dummy > addr) ? 1 : -1;
20776}
20777
20778int
20779main ()
20780{
20781 exit (find_stack_direction () < 0);
20782}
20783_ACEOF
20784rm -f conftest$ac_exeext
20785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20786 (eval $ac_link) 2>&5
20787 ac_status=$?
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; }; then
20795 ac_cv_c_stack_direction=1
20796else
20797 echo "$as_me: program exited with status $ac_status" >&5
20798echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020799sed 's/^/| /' conftest.$ac_ext >&5
20800
John Criswell7a73b802003-06-30 21:59:07 +000020801( exit $ac_status )
20802ac_cv_c_stack_direction=-1
20803fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020804rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020805fi
20806fi
20807echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20808echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20809
20810cat >>confdefs.h <<_ACEOF
20811#define STACK_DIRECTION $ac_cv_c_stack_direction
20812_ACEOF
20813
20814
20815fi
20816
John Criswell7a73b802003-06-30 21:59:07 +000020817
20818
20819for ac_header in stdlib.h unistd.h
20820do
20821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20822if eval "test \"\${$as_ac_Header+set}\" = set"; then
20823 echo "$as_me:$LINENO: checking for $ac_header" >&5
20824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20825if eval "test \"\${$as_ac_Header+set}\" = set"; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827fi
20828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20830else
20831 # Is the header compilable?
20832echo "$as_me:$LINENO: checking $ac_header usability" >&5
20833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20834cat >conftest.$ac_ext <<_ACEOF
20835#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020836/* confdefs.h. */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020841$ac_includes_default
20842#include <$ac_header>
20843_ACEOF
20844rm -f conftest.$ac_objext
20845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20846 (eval $ac_compile) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_header_compiler=yes
20857else
20858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020859sed 's/^/| /' conftest.$ac_ext >&5
20860
John Criswell7a73b802003-06-30 21:59:07 +000020861ac_header_compiler=no
20862fi
20863rm -f conftest.$ac_objext conftest.$ac_ext
20864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20865echo "${ECHO_T}$ac_header_compiler" >&6
20866
20867# Is the header present?
20868echo "$as_me:$LINENO: checking $ac_header presence" >&5
20869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20870cat >conftest.$ac_ext <<_ACEOF
20871#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020872/* confdefs.h. */
20873_ACEOF
20874cat confdefs.h >>conftest.$ac_ext
20875cat >>conftest.$ac_ext <<_ACEOF
20876/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020877#include <$ac_header>
20878_ACEOF
20879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20881 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000020882 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000020883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } >/dev/null; then
20887 if test -s conftest.err; then
20888 ac_cpp_err=$ac_c_preproc_warn_flag
20889 else
20890 ac_cpp_err=
20891 fi
20892else
20893 ac_cpp_err=yes
20894fi
20895if test -z "$ac_cpp_err"; then
20896 ac_header_preproc=yes
20897else
20898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020899sed 's/^/| /' conftest.$ac_ext >&5
20900
John Criswell7a73b802003-06-30 21:59:07 +000020901 ac_header_preproc=no
20902fi
20903rm -f conftest.err conftest.$ac_ext
20904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20905echo "${ECHO_T}$ac_header_preproc" >&6
20906
20907# So? What about this header?
20908case $ac_header_compiler:$ac_header_preproc in
20909 yes:no )
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20914 (
20915 cat <<\_ASBOX
20916## ------------------------------------ ##
20917## Report this to bug-autoconf@gnu.org. ##
20918## ------------------------------------ ##
20919_ASBOX
20920 ) |
20921 sed "s/^/$as_me: WARNING: /" >&2
20922 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020923 no:yes )
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20930 (
20931 cat <<\_ASBOX
20932## ------------------------------------ ##
20933## Report this to bug-autoconf@gnu.org. ##
20934## ------------------------------------ ##
20935_ASBOX
20936 ) |
20937 sed "s/^/$as_me: WARNING: /" >&2
20938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020939esac
20940echo "$as_me:$LINENO: checking for $ac_header" >&5
20941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20942if eval "test \"\${$as_ac_Header+set}\" = set"; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944else
20945 eval "$as_ac_Header=$ac_header_preproc"
20946fi
20947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20949
20950fi
20951if test `eval echo '${'$as_ac_Header'}'` = yes; then
20952 cat >>confdefs.h <<_ACEOF
20953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20954_ACEOF
20955
20956fi
20957
20958done
20959
20960
20961for ac_func in getpagesize
20962do
20963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20964echo "$as_me:$LINENO: checking for $ac_func" >&5
20965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20966if eval "test \"\${$as_ac_var+set}\" = set"; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968else
20969 cat >conftest.$ac_ext <<_ACEOF
20970#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020971/* confdefs.h. */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020976/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020977 which can conflict with char $ac_func (); below.
20978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20979 <limits.h> exists even on freestanding compilers. */
20980#ifdef __STDC__
20981# include <limits.h>
20982#else
20983# include <assert.h>
20984#endif
John Criswell7a73b802003-06-30 21:59:07 +000020985/* Override any gcc2 internal prototype to avoid an error. */
20986#ifdef __cplusplus
20987extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020988{
John Criswell7a73b802003-06-30 21:59:07 +000020989#endif
20990/* We use char because int might match the return type of a gcc2
20991 builtin and then its argument prototype would still apply. */
20992char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020993/* The GNU C library defines this for functions which it implements
20994 to always fail with ENOSYS. Some functions are actually named
20995 something starting with __ and the normal name is an alias. */
20996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20997choke me
20998#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020999char (*f) () = $ac_func;
21000#endif
21001#ifdef __cplusplus
21002}
John Criswell7a73b802003-06-30 21:59:07 +000021003#endif
21004
John Criswell0c38eaf2003-09-10 15:17:25 +000021005int
21006main ()
21007{
21008return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021009 ;
21010 return 0;
21011}
21012_ACEOF
21013rm -f conftest.$ac_objext conftest$ac_exeext
21014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21015 (eval $ac_link) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -s conftest$ac_exeext'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 eval "$as_ac_var=yes"
21026else
21027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021028sed 's/^/| /' conftest.$ac_ext >&5
21029
John Criswell7a73b802003-06-30 21:59:07 +000021030eval "$as_ac_var=no"
21031fi
21032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21033fi
21034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21035echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21036if test `eval echo '${'$as_ac_var'}'` = yes; then
21037 cat >>confdefs.h <<_ACEOF
21038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21039_ACEOF
21040
21041fi
21042done
21043
21044echo "$as_me:$LINENO: checking for working mmap" >&5
21045echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21046if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21048else
21049 if test "$cross_compiling" = yes; then
21050 ac_cv_func_mmap_fixed_mapped=no
21051else
21052 cat >conftest.$ac_ext <<_ACEOF
21053#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021054/* confdefs.h. */
21055_ACEOF
21056cat confdefs.h >>conftest.$ac_ext
21057cat >>conftest.$ac_ext <<_ACEOF
21058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021059$ac_includes_default
21060/* malloc might have been renamed as rpl_malloc. */
21061#undef malloc
21062
21063/* Thanks to Mike Haertel and Jim Avera for this test.
21064 Here is a matrix of mmap possibilities:
21065 mmap private not fixed
21066 mmap private fixed at somewhere currently unmapped
21067 mmap private fixed at somewhere already mapped
21068 mmap shared not fixed
21069 mmap shared fixed at somewhere currently unmapped
21070 mmap shared fixed at somewhere already mapped
21071 For private mappings, we should verify that changes cannot be read()
21072 back from the file, nor mmap's back from the file at a different
21073 address. (There have been systems where private was not correctly
21074 implemented like the infamous i386 svr4.0, and systems where the
21075 VM page cache was not coherent with the file system buffer cache
21076 like early versions of FreeBSD and possibly contemporary NetBSD.)
21077 For shared mappings, we should conversely verify that changes get
21078 propagated back to all the places they're supposed to be.
21079
21080 Grep wants private fixed already mapped.
21081 The main things grep needs to know about mmap are:
21082 * does it exist and is it safe to write into the mmap'd area
21083 * how to use it (BSD variants) */
21084
21085#include <fcntl.h>
21086#include <sys/mman.h>
21087
21088#if !STDC_HEADERS && !HAVE_STDLIB_H
21089char *malloc ();
21090#endif
21091
21092/* This mess was copied from the GNU getpagesize.h. */
21093#if !HAVE_GETPAGESIZE
21094/* Assume that all systems that can run configure have sys/param.h. */
21095# if !HAVE_SYS_PARAM_H
21096# define HAVE_SYS_PARAM_H 1
21097# endif
21098
21099# ifdef _SC_PAGESIZE
21100# define getpagesize() sysconf(_SC_PAGESIZE)
21101# else /* no _SC_PAGESIZE */
21102# if HAVE_SYS_PARAM_H
21103# include <sys/param.h>
21104# ifdef EXEC_PAGESIZE
21105# define getpagesize() EXEC_PAGESIZE
21106# else /* no EXEC_PAGESIZE */
21107# ifdef NBPG
21108# define getpagesize() NBPG * CLSIZE
21109# ifndef CLSIZE
21110# define CLSIZE 1
21111# endif /* no CLSIZE */
21112# else /* no NBPG */
21113# ifdef NBPC
21114# define getpagesize() NBPC
21115# else /* no NBPC */
21116# ifdef PAGESIZE
21117# define getpagesize() PAGESIZE
21118# endif /* PAGESIZE */
21119# endif /* no NBPC */
21120# endif /* no NBPG */
21121# endif /* no EXEC_PAGESIZE */
21122# else /* no HAVE_SYS_PARAM_H */
21123# define getpagesize() 8192 /* punt totally */
21124# endif /* no HAVE_SYS_PARAM_H */
21125# endif /* no _SC_PAGESIZE */
21126
21127#endif /* no HAVE_GETPAGESIZE */
21128
21129int
21130main ()
21131{
21132 char *data, *data2, *data3;
21133 int i, pagesize;
21134 int fd;
21135
21136 pagesize = getpagesize ();
21137
21138 /* First, make a file with some known garbage in it. */
21139 data = (char *) malloc (pagesize);
21140 if (!data)
21141 exit (1);
21142 for (i = 0; i < pagesize; ++i)
21143 *(data + i) = rand ();
21144 umask (0);
21145 fd = creat ("conftest.mmap", 0600);
21146 if (fd < 0)
21147 exit (1);
21148 if (write (fd, data, pagesize) != pagesize)
21149 exit (1);
21150 close (fd);
21151
21152 /* Next, try to mmap the file at a fixed address which already has
21153 something else allocated at it. If we can, also make sure that
21154 we see the same garbage. */
21155 fd = open ("conftest.mmap", O_RDWR);
21156 if (fd < 0)
21157 exit (1);
21158 data2 = (char *) malloc (2 * pagesize);
21159 if (!data2)
21160 exit (1);
21161 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21162 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21163 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21164 exit (1);
21165 for (i = 0; i < pagesize; ++i)
21166 if (*(data + i) != *(data2 + i))
21167 exit (1);
21168
21169 /* Finally, make sure that changes to the mapped area do not
21170 percolate back to the file as seen by read(). (This is a bug on
21171 some variants of i386 svr4.0.) */
21172 for (i = 0; i < pagesize; ++i)
21173 *(data2 + i) = *(data2 + i) + 1;
21174 data3 = (char *) malloc (pagesize);
21175 if (!data3)
21176 exit (1);
21177 if (read (fd, data3, pagesize) != pagesize)
21178 exit (1);
21179 for (i = 0; i < pagesize; ++i)
21180 if (*(data + i) != *(data3 + i))
21181 exit (1);
21182 close (fd);
21183 exit (0);
21184}
21185_ACEOF
21186rm -f conftest$ac_exeext
21187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21188 (eval $ac_link) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_func_mmap_fixed_mapped=yes
21198else
21199 echo "$as_me: program exited with status $ac_status" >&5
21200echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021201sed 's/^/| /' conftest.$ac_ext >&5
21202
John Criswell7a73b802003-06-30 21:59:07 +000021203( exit $ac_status )
21204ac_cv_func_mmap_fixed_mapped=no
21205fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021206rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021207fi
21208fi
21209echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21210echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21211if test $ac_cv_func_mmap_fixed_mapped = yes; then
21212
21213cat >>confdefs.h <<\_ACEOF
21214#define HAVE_MMAP 1
21215_ACEOF
21216
21217fi
21218rm -f conftest.mmap
21219
Brian Gaeke26be9c52004-01-13 06:43:16 +000021220if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21221then
21222 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21223echo "$as_me: error: mmap() required but not found" >&2;}
21224 { (exit 1); exit 1; }; }
21225fi
John Criswell7a73b802003-06-30 21:59:07 +000021226echo "$as_me:$LINENO: checking for mmap of files" >&5
21227echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21228if test "${ac_cv_func_mmap_file+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230else
21231
21232
21233 ac_ext=c
21234ac_cpp='$CPP $CPPFLAGS'
21235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237ac_compiler_gnu=$ac_cv_c_compiler_gnu
21238
21239 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021240 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21241See \`config.log' for more details." >&5
21242echo "$as_me: error: cannot run test program while cross compiling
21243See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021244 { (exit 1); exit 1; }; }
21245else
21246 cat >conftest.$ac_ext <<_ACEOF
21247#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021248/* confdefs.h. */
21249_ACEOF
21250cat confdefs.h >>conftest.$ac_ext
21251cat >>conftest.$ac_ext <<_ACEOF
21252/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021253
John Criswell7a73b802003-06-30 21:59:07 +000021254#ifdef HAVE_SYS_TYPES_H
21255#include <sys/types.h>
21256#endif
21257
John Criswell5ab73462003-10-09 15:44:28 +000021258#ifdef HAVE_SYS_MMAN_H
21259#include <sys/mman.h>
21260#endif
21261
John Criswell7a73b802003-06-30 21:59:07 +000021262#ifdef HAVE_FCNTL_H
21263#include <fcntl.h>
21264#endif
21265
21266 int fd;
21267 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021268 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 +000021269_ACEOF
21270rm -f conftest$ac_exeext
21271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21272 (eval $ac_link) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_func_mmap_file=yes
21282else
21283 echo "$as_me: program exited with status $ac_status" >&5
21284echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021285sed 's/^/| /' conftest.$ac_ext >&5
21286
John Criswell7a73b802003-06-30 21:59:07 +000021287( exit $ac_status )
21288ac_cv_func_mmap_file=no
21289fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021290rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021291fi
21292 ac_ext=c
21293ac_cpp='$CPP $CPPFLAGS'
21294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21296ac_compiler_gnu=$ac_cv_c_compiler_gnu
21297
21298
21299fi
21300echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21301echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21302if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021303
21304cat >>confdefs.h <<\_ACEOF
21305#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000021306_ACEOF
21307
21308 MMAP_FILE=yes
21309
21310fi
21311
Brian Gaeke26be9c52004-01-13 06:43:16 +000021312if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000021313then
21314 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21315echo "$as_me: error: mmap() of files required but not found" >&2;}
21316 { (exit 1); exit 1; }; }
21317fi
21318echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21319echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21320if test "${ac_cv_header_mmap_anon+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21322else
21323
21324
21325 ac_ext=c
21326ac_cpp='$CPP $CPPFLAGS'
21327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329ac_compiler_gnu=$ac_cv_c_compiler_gnu
21330
21331 cat >conftest.$ac_ext <<_ACEOF
21332#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021333/* confdefs.h. */
21334_ACEOF
21335cat confdefs.h >>conftest.$ac_ext
21336cat >>conftest.$ac_ext <<_ACEOF
21337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021338#include <sys/mman.h>
21339 #include <unistd.h>
21340 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021341int
21342main ()
21343{
21344mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21345 ;
21346 return 0;
21347}
21348_ACEOF
21349rm -f conftest.$ac_objext
21350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21351 (eval $ac_compile) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -s conftest.$ac_objext'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 ac_cv_header_mmap_anon=yes
21362else
21363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021364sed 's/^/| /' conftest.$ac_ext >&5
21365
John Criswell7a73b802003-06-30 21:59:07 +000021366ac_cv_header_mmap_anon=no
21367fi
21368rm -f conftest.$ac_objext conftest.$ac_ext
21369 ac_ext=c
21370ac_cpp='$CPP $CPPFLAGS'
21371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21373ac_compiler_gnu=$ac_cv_c_compiler_gnu
21374
21375
21376fi
21377echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21378echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21379if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021380
21381cat >>confdefs.h <<\_ACEOF
21382#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000021383_ACEOF
21384
21385fi
21386
21387echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21388echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21389if test "${ac_cv_type_signal+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21391else
21392 cat >conftest.$ac_ext <<_ACEOF
21393#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021399#include <sys/types.h>
21400#include <signal.h>
21401#ifdef signal
21402# undef signal
21403#endif
21404#ifdef __cplusplus
21405extern "C" void (*signal (int, void (*)(int)))(int);
21406#else
21407void (*signal ()) ();
21408#endif
21409
John Criswell7a73b802003-06-30 21:59:07 +000021410int
21411main ()
21412{
21413int i;
21414 ;
21415 return 0;
21416}
21417_ACEOF
21418rm -f conftest.$ac_objext
21419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21420 (eval $ac_compile) 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
21424 { ac_try='test -s conftest.$ac_objext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_type_signal=void
21431else
21432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021433sed 's/^/| /' conftest.$ac_ext >&5
21434
John Criswell7a73b802003-06-30 21:59:07 +000021435ac_cv_type_signal=int
21436fi
21437rm -f conftest.$ac_objext conftest.$ac_ext
21438fi
21439echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21440echo "${ECHO_T}$ac_cv_type_signal" >&6
21441
21442cat >>confdefs.h <<_ACEOF
21443#define RETSIGTYPE $ac_cv_type_signal
21444_ACEOF
21445
21446
21447
21448
21449
21450
21451
Brian Gaeke26be9c52004-01-13 06:43:16 +000021452for ac_func in getcwd gettimeofday strdup strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000021453do
21454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21455echo "$as_me:$LINENO: checking for $ac_func" >&5
21456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21457if eval "test \"\${$as_ac_var+set}\" = set"; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21459else
21460 cat >conftest.$ac_ext <<_ACEOF
21461#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021462/* confdefs.h. */
21463_ACEOF
21464cat confdefs.h >>conftest.$ac_ext
21465cat >>conftest.$ac_ext <<_ACEOF
21466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021467/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021468 which can conflict with char $ac_func (); below.
21469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21470 <limits.h> exists even on freestanding compilers. */
21471#ifdef __STDC__
21472# include <limits.h>
21473#else
21474# include <assert.h>
21475#endif
John Criswell7a73b802003-06-30 21:59:07 +000021476/* Override any gcc2 internal prototype to avoid an error. */
21477#ifdef __cplusplus
21478extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021479{
John Criswell7a73b802003-06-30 21:59:07 +000021480#endif
21481/* We use char because int might match the return type of a gcc2
21482 builtin and then its argument prototype would still apply. */
21483char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021484/* The GNU C library defines this for functions which it implements
21485 to always fail with ENOSYS. Some functions are actually named
21486 something starting with __ and the normal name is an alias. */
21487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21488choke me
21489#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021490char (*f) () = $ac_func;
21491#endif
21492#ifdef __cplusplus
21493}
John Criswell7a73b802003-06-30 21:59:07 +000021494#endif
21495
John Criswell0c38eaf2003-09-10 15:17:25 +000021496int
21497main ()
21498{
21499return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext conftest$ac_exeext
21505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506 (eval $ac_link) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -s conftest$ac_exeext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 eval "$as_ac_var=yes"
21517else
21518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021519sed 's/^/| /' conftest.$ac_ext >&5
21520
John Criswell7a73b802003-06-30 21:59:07 +000021521eval "$as_ac_var=no"
21522fi
21523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21524fi
21525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21527if test `eval echo '${'$as_ac_var'}'` = yes; then
21528 cat >>confdefs.h <<_ACEOF
21529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21530_ACEOF
21531
21532fi
21533done
21534
John Criswell7a73b802003-06-30 21:59:07 +000021535echo "$as_me:$LINENO: checking for mprotect" >&5
21536echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21537if test "${ac_cv_func_mprotect+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539else
21540 cat >conftest.$ac_ext <<_ACEOF
21541#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021542/* confdefs.h. */
21543_ACEOF
21544cat confdefs.h >>conftest.$ac_ext
21545cat >>conftest.$ac_ext <<_ACEOF
21546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021547/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021548 which can conflict with char mprotect (); below.
21549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21550 <limits.h> exists even on freestanding compilers. */
21551#ifdef __STDC__
21552# include <limits.h>
21553#else
21554# include <assert.h>
21555#endif
John Criswell7a73b802003-06-30 21:59:07 +000021556/* Override any gcc2 internal prototype to avoid an error. */
21557#ifdef __cplusplus
21558extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021559{
John Criswell7a73b802003-06-30 21:59:07 +000021560#endif
21561/* We use char because int might match the return type of a gcc2
21562 builtin and then its argument prototype would still apply. */
21563char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021564/* The GNU C library defines this for functions which it implements
21565 to always fail with ENOSYS. Some functions are actually named
21566 something starting with __ and the normal name is an alias. */
21567#if defined (__stub_mprotect) || defined (__stub___mprotect)
21568choke me
21569#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021570char (*f) () = mprotect;
21571#endif
21572#ifdef __cplusplus
21573}
John Criswell7a73b802003-06-30 21:59:07 +000021574#endif
21575
John Criswell0c38eaf2003-09-10 15:17:25 +000021576int
21577main ()
21578{
21579return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021580 ;
21581 return 0;
21582}
21583_ACEOF
21584rm -f conftest.$ac_objext conftest$ac_exeext
21585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
21590 { ac_try='test -s conftest$ac_exeext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_func_mprotect=yes
21597else
21598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021599sed 's/^/| /' conftest.$ac_ext >&5
21600
John Criswell7a73b802003-06-30 21:59:07 +000021601ac_cv_func_mprotect=no
21602fi
21603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21604fi
21605echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21606echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21607if test $ac_cv_func_mprotect = yes; then
21608 :
21609else
21610 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21611echo "$as_me: error: Function mprotect() required but not found" >&2;}
21612 { (exit 1); exit 1; }; }
21613fi
21614
21615
John Criswellb13092b2003-07-22 21:00:24 +000021616
John Criswellcb7a1eb2003-11-17 19:46:02 +000021617
21618
21619 ac_ext=c
21620ac_cpp='$CPP $CPPFLAGS'
21621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623ac_compiler_gnu=$ac_cv_c_compiler_gnu
21624
Brian Gaekef91a15c2003-11-18 06:20:41 +000021625 oldcflags="$CFLAGS"
21626 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000021627 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000021628int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000021629_ACEOF
21630rm -f conftest.$ac_objext conftest$ac_exeext
21631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632 (eval $ac_link) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try='test -s conftest$ac_exeext'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; }; then
21642 ac_cv_link_use_r=yes
21643else
21644 echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
Brian Gaekef91a15c2003-11-18 06:20:41 +000021647ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000021648fi
21649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000021650 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000021651 ac_ext=c
21652ac_cpp='$CPP $CPPFLAGS'
21653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21655ac_compiler_gnu=$ac_cv_c_compiler_gnu
21656
Brian Gaekef91a15c2003-11-18 06:20:41 +000021657 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000021658 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000021659
21660cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000021661#define HAVE_LINK_R 1
21662_ACEOF
21663
21664 fi
21665
21666
John Criswell7a73b802003-06-30 21:59:07 +000021667# Check whether --enable-optimized or --disable-optimized was given.
21668if test "${enable_optimized+set}" = set; then
21669 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000021670
21671else
John Criswellb13092b2003-07-22 21:00:24 +000021672 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021673fi;
John Criswellb13092b2003-07-22 21:00:24 +000021674if test ${enableval} = "no"
21675then
21676 ENABLE_OPTIMIZED=
21677
21678else
21679 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21680
21681fi
21682
John Criswell55126592003-10-07 21:57:39 +000021683# Check whether --enable-spec2000 or --disable-spec2000 was given.
21684if test "${enable_spec2000+set}" = set; then
21685 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000021686
21687else
John Criswellb13092b2003-07-22 21:00:24 +000021688 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021689fi;
John Criswellb13092b2003-07-22 21:00:24 +000021690if test ${enableval} = "no"
21691then
John Criswell55126592003-10-07 21:57:39 +000021692 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21693 then
21694 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000021695
John Criswell55126592003-10-07 21:57:39 +000021696 USE_SPEC=USE_SPEC=1
21697
21698 else
21699 USE_SPEC=
21700
21701
21702 fi
John Criswellb13092b2003-07-22 21:00:24 +000021703else
John Criswell55126592003-10-07 21:57:39 +000021704 if test ${enableval} = ""
21705 then
21706 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21707
21708 else
21709 SPEC_ROOT=${enableval}
21710
21711 fi
John Criswellb13092b2003-07-22 21:00:24 +000021712 USE_SPEC=USE_SPEC=1
21713
21714fi
21715
John Criswellcf2e9f72004-02-10 22:36:35 +000021716# Check whether --enable-spec95 or --disable-spec95 was given.
21717if test "${enable_spec95+set}" = set; then
21718 enableval="$enable_spec95"
21719
21720else
21721 enableval=no
21722fi;
21723if test ${enableval} = "no"
21724then
21725 if test -d /home/vadve/shared/benchmarks/spec95_sparcv9/benchspec
21726 then
21727 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95_sparcv9/benchspec
21728
21729 USE_SPEC95=USE_SPEC95=1
21730
21731 else
21732 USE_SPEC95=
21733
21734
21735 fi
21736else
21737 if test ${enableval} = ""
21738 then
21739 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95_sparcv9/benchspec
21740
21741 else
21742 SPEC95_ROOT=${enableval}
21743
21744 fi
21745 USE_SPEC95=USE_SPEC95=1
21746
21747fi
21748
John Criswell7a73b802003-06-30 21:59:07 +000021749# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21750if test "${enable_precompiled_bytecode+set}" = set; then
21751 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000021752
21753else
John Criswellb13092b2003-07-22 21:00:24 +000021754 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021755fi;
John Criswellb13092b2003-07-22 21:00:24 +000021756if test ${enableval} = "no"
21757then
21758 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000021759
John Criswellb13092b2003-07-22 21:00:24 +000021760else
21761 UPB=USE_PRECOMPILED_BYTECODE=1
21762
21763fi
John Criswellf02dbf02003-07-22 20:07:49 +000021764
John Criswellf02dbf02003-07-22 20:07:49 +000021765# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21766if test "${enable_llc_diffs+set}" = set; then
21767 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000021768
21769else
John Criswellb13092b2003-07-22 21:00:24 +000021770 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000021771fi;
John Criswellb13092b2003-07-22 21:00:24 +000021772if test ${enableval} = "no"
21773then
21774 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000021775
John Criswellb13092b2003-07-22 21:00:24 +000021776else
21777 DISABLE_LLC_DIFFS=
21778
21779fi
21780
21781# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000021782if test "${enable_jit+set}" = set; then
21783 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000021784
21785else
John Criswellc78022e2003-07-29 19:11:58 +000021786 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000021787fi;
John Criswellb13092b2003-07-22 21:00:24 +000021788if test ${enableval} = "no"
21789then
21790 JIT=
21791
21792else
John Criswellc78022e2003-07-29 19:11:58 +000021793 case $target in
21794 *i*86*)
21795 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000021796
John Criswellc78022e2003-07-29 19:11:58 +000021797 ;;
21798 *sparc*)
21799 JIT=TARGET_HAS_JIT=1
21800
21801 ;;
21802 *)
21803 JIT=
21804
21805 ;;
21806 esac
John Criswellb13092b2003-07-22 21:00:24 +000021807fi
John Criswell7a73b802003-06-30 21:59:07 +000021808
21809
John Criswell7a73b802003-06-30 21:59:07 +000021810# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21811if test "${with_llvmgccdir+set}" = set; then
21812 withval="$with_llvmgccdir"
21813 LLVMGCCDIR=$withval
21814
21815fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000021816echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21817echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21818LLVM_GCC_CHECK=no
21819if test -d "$LLVMGCCDIR"
21820then
21821 if test -x "$LLVMGCCDIR/bin/gcc"
21822 then
21823 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21824 fi
21825fi
21826llvmgccwarn=no
21827echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21828echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21829if test "$LLVM_GCC_CHECK" = "no"
21830then
21831 llvmgccwarn=yes
21832fi
Brian Gaekef3b24102003-11-16 18:38:14 +000021833echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21834echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21835LLVM_GCC_SANE=no
21836if test -x "$LLVM_GCC_CHECK"
21837then
21838 cp /dev/null conftest.c
21839 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21840 if test $? -eq 0
21841 then
21842 LLVM_GCC_SANE=yes
21843 fi
21844 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000021845 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000021846 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000021847
21848 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000021849 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000021850
Brian Gaekef3b24102003-11-16 18:38:14 +000021851fi
21852echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21853echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21854if test "$LLVM_GCC_SANE" = "no"
21855then
21856 llvmgccwarn=yes
21857fi
21858
John Criswellc78022e2003-07-29 19:11:58 +000021859
John Criswell7a73b802003-06-30 21:59:07 +000021860# Check whether --with-bcrepos or --without-bcrepos was given.
21861if test "${with_bcrepos+set}" = set; then
21862 withval="$with_bcrepos"
21863 BCR=$withval
21864
21865else
21866 BCR=/home/vadve/lattner/LLVMPrograms
21867
21868fi;
21869
John Criswellc78022e2003-07-29 19:11:58 +000021870
John Criswell7a73b802003-06-30 21:59:07 +000021871# Check whether --with-papi or --without-papi was given.
21872if test "${with_papi+set}" = set; then
21873 withval="$with_papi"
21874 PAPIDIR=$withval
21875
21876else
John Criswellde00db22003-08-25 16:49:54 +000021877 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000021878
21879fi;
21880
Brian Gaeke554831c2004-01-21 19:39:29 +000021881echo "$as_me:$LINENO: checking for shared library suffix" >&5
21882echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21883eval "SHLIBEXT=$shrext"
21884echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21885echo "${ECHO_T}$SHLIBEXT" >&6
21886SHLIBEXT=$SHLIBEXT
21887
21888
21889cat >>confdefs.h <<_ACEOF
21890#define SHLIBEXT "$SHLIBEXT"
21891_ACEOF
21892
21893
John Criswell0c38eaf2003-09-10 15:17:25 +000021894 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000021895cat >confcache <<\_ACEOF
21896# This file is a shell script that caches the results of configure
21897# tests run on this system so they can be shared between configure
21898# scripts and configure runs, see configure's option --config-cache.
21899# It is not useful on other systems. If it contains results you don't
21900# want to keep, you may remove or edit it.
21901#
21902# config.status only pays attention to the cache file if you give it
21903# the --recheck option to rerun configure.
21904#
John Criswell0c38eaf2003-09-10 15:17:25 +000021905# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021906# loading this file, other *unset* `ac_cv_foo' will be assigned the
21907# following values.
21908
21909_ACEOF
21910
21911# The following way of writing the cache mishandles newlines in values,
21912# but we know of no workaround that is simple, portable, and efficient.
21913# So, don't put newlines in cache variables' values.
21914# Ultrix sh set writes to stderr and can't be redirected directly,
21915# and sets the high bit in the cache file unless we assign to the vars.
21916{
21917 (set) 2>&1 |
21918 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21919 *ac_space=\ *)
21920 # `set' does not quote correctly, so add quotes (double-quote
21921 # substitution turns \\\\ into \\, and sed turns \\ into \).
21922 sed -n \
21923 "s/'/'\\\\''/g;
21924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21925 ;;
21926 *)
21927 # `set' quotes correctly as required by POSIX, so do not add quotes.
21928 sed -n \
21929 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21930 ;;
21931 esac;
21932} |
21933 sed '
21934 t clear
21935 : clear
21936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21937 t end
21938 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21939 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000021940if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000021941 if test -w $cache_file; then
21942 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21943 cat confcache >$cache_file
21944 else
21945 echo "not updating unwritable cache $cache_file"
21946 fi
21947fi
21948rm -f confcache
21949
21950test "x$prefix" = xNONE && prefix=$ac_default_prefix
21951# Let make expand exec_prefix.
21952test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21953
21954# VPATH may cause trouble with some makes, so we remove $(srcdir),
21955# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21956# trailing colons and then remove the whole line if VPATH becomes empty
21957# (actually we leave an empty line to preserve line numbers).
21958if test "x$srcdir" = x.; then
21959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21960s/:*\$(srcdir):*/:/;
21961s/:*\${srcdir}:*/:/;
21962s/:*@srcdir@:*/:/;
21963s/^\([^=]*=[ ]*\):*/\1/;
21964s/:*$//;
21965s/^[^=]*=[ ]*$//;
21966}'
21967fi
21968
21969DEFS=-DHAVE_CONFIG_H
21970
John Criswell0c38eaf2003-09-10 15:17:25 +000021971ac_libobjs=
21972ac_ltlibobjs=
21973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21974 # 1. Remove the extension, and $U if already installed.
21975 ac_i=`echo "$ac_i" |
21976 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21977 # 2. Add them.
21978 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21979 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21980done
21981LIBOBJS=$ac_libobjs
21982
21983LTLIBOBJS=$ac_ltlibobjs
21984
21985
John Criswell7a73b802003-06-30 21:59:07 +000021986
21987: ${CONFIG_STATUS=./config.status}
21988ac_clean_files_save=$ac_clean_files
21989ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21990{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21991echo "$as_me: creating $CONFIG_STATUS" >&6;}
21992cat >$CONFIG_STATUS <<_ACEOF
21993#! $SHELL
21994# Generated by $as_me.
21995# Run this file to recreate the current configuration.
21996# Compiler output produced by configure, useful for debugging
21997# configure, is in config.log if it exists.
21998
21999debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022000ac_cs_recheck=false
22001ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022002SHELL=\${CONFIG_SHELL-$SHELL}
22003_ACEOF
22004
22005cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022006## --------------------- ##
22007## M4sh Initialization. ##
22008## --------------------- ##
22009
22010# Be Bourne compatible
22011if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22012 emulate sh
22013 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022014 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22015 # is contrary to our usage. Disable this feature.
22016 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022017elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22018 set -o posix
22019fi
22020
John Criswell7a73b802003-06-30 21:59:07 +000022021# Support unset when possible.
22022if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22023 as_unset=unset
22024else
22025 as_unset=false
22026fi
22027
John Criswell0c38eaf2003-09-10 15:17:25 +000022028
22029# Work around bugs in pre-3.0 UWIN ksh.
22030$as_unset ENV MAIL MAILPATH
22031PS1='$ '
22032PS2='> '
22033PS4='+ '
22034
22035# NLS nuisances.
22036for as_var in \
22037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22039 LC_TELEPHONE LC_TIME
22040do
22041 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22042 eval $as_var=C; export $as_var
22043 else
22044 $as_unset $as_var
22045 fi
22046done
22047
22048# Required to use basename.
22049if expr a : '\(a\)' >/dev/null 2>&1; then
22050 as_expr=expr
22051else
22052 as_expr=false
22053fi
22054
22055if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22056 as_basename=basename
22057else
22058 as_basename=false
22059fi
John Criswell7a73b802003-06-30 21:59:07 +000022060
22061
22062# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022063as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022064$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22065 X"$0" : 'X\(//\)$' \| \
22066 X"$0" : 'X\(/\)$' \| \
22067 . : '\(.\)' 2>/dev/null ||
22068echo X/"$0" |
22069 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22070 /^X\/\(\/\/\)$/{ s//\1/; q; }
22071 /^X\/\(\/\).*/{ s//\1/; q; }
22072 s/.*/./; q'`
22073
John Criswell0c38eaf2003-09-10 15:17:25 +000022074
John Criswell7a73b802003-06-30 21:59:07 +000022075# PATH needs CR, and LINENO needs CR and PATH.
22076# Avoid depending upon Character Ranges.
22077as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22078as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22079as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22080as_cr_digits='0123456789'
22081as_cr_alnum=$as_cr_Letters$as_cr_digits
22082
22083# The user is always right.
22084if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022085 echo "#! /bin/sh" >conf$$.sh
22086 echo "exit 0" >>conf$$.sh
22087 chmod +x conf$$.sh
22088 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022089 PATH_SEPARATOR=';'
22090 else
22091 PATH_SEPARATOR=:
22092 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022093 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022094fi
22095
22096
22097 as_lineno_1=$LINENO
22098 as_lineno_2=$LINENO
22099 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22100 test "x$as_lineno_1" != "x$as_lineno_2" &&
22101 test "x$as_lineno_3" = "x$as_lineno_2" || {
22102 # Find who we are. Look in the path if we contain no path at all
22103 # relative or not.
22104 case $0 in
22105 *[\\/]* ) as_myself=$0 ;;
22106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22107for as_dir in $PATH
22108do
22109 IFS=$as_save_IFS
22110 test -z "$as_dir" && as_dir=.
22111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22112done
22113
22114 ;;
22115 esac
22116 # We did not find ourselves, most probably we were run as `sh COMMAND'
22117 # in which case we are not to be found in the path.
22118 if test "x$as_myself" = x; then
22119 as_myself=$0
22120 fi
22121 if test ! -f "$as_myself"; then
22122 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22123echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22124 { (exit 1); exit 1; }; }
22125 fi
22126 case $CONFIG_SHELL in
22127 '')
22128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22129for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22130do
22131 IFS=$as_save_IFS
22132 test -z "$as_dir" && as_dir=.
22133 for as_base in sh bash ksh sh5; do
22134 case $as_dir in
22135 /*)
22136 if ("$as_dir/$as_base" -c '
22137 as_lineno_1=$LINENO
22138 as_lineno_2=$LINENO
22139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22140 test "x$as_lineno_1" != "x$as_lineno_2" &&
22141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022142 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22143 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022144 CONFIG_SHELL=$as_dir/$as_base
22145 export CONFIG_SHELL
22146 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22147 fi;;
22148 esac
22149 done
22150done
22151;;
22152 esac
22153
22154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22155 # uniformly replaced by the line number. The first 'sed' inserts a
22156 # line-number line before each line; the second 'sed' does the real
22157 # work. The second script uses 'N' to pair each line-number line
22158 # with the numbered line, and appends trailing '-' during
22159 # substitution so that $LINENO is not a special case at line end.
22160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22162 sed '=' <$as_myself |
22163 sed '
22164 N
22165 s,$,-,
22166 : loop
22167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22168 t loop
22169 s,-$,,
22170 s,^['$as_cr_digits']*\n,,
22171 ' >$as_me.lineno &&
22172 chmod +x $as_me.lineno ||
22173 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22174echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22175 { (exit 1); exit 1; }; }
22176
22177 # Don't try to exec as it changes $[0], causing all sort of problems
22178 # (the dirname of $[0] is not the place where we might find the
22179 # original and so on. Autoconf is especially sensible to this).
22180 . ./$as_me.lineno
22181 # Exit status is that of the last command.
22182 exit
22183}
22184
22185
22186case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22187 *c*,-n*) ECHO_N= ECHO_C='
22188' ECHO_T=' ' ;;
22189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22191esac
22192
22193if expr a : '\(a\)' >/dev/null 2>&1; then
22194 as_expr=expr
22195else
22196 as_expr=false
22197fi
22198
22199rm -f conf$$ conf$$.exe conf$$.file
22200echo >conf$$.file
22201if ln -s conf$$.file conf$$ 2>/dev/null; then
22202 # We could just check for DJGPP; but this test a) works b) is more generic
22203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22204 if test -f conf$$.exe; then
22205 # Don't use ln at all; we don't have any links
22206 as_ln_s='cp -p'
22207 else
22208 as_ln_s='ln -s'
22209 fi
22210elif ln conf$$.file conf$$ 2>/dev/null; then
22211 as_ln_s=ln
22212else
22213 as_ln_s='cp -p'
22214fi
22215rm -f conf$$ conf$$.exe conf$$.file
22216
John Criswell0c38eaf2003-09-10 15:17:25 +000022217if mkdir -p . 2>/dev/null; then
22218 as_mkdir_p=:
22219else
22220 as_mkdir_p=false
22221fi
22222
John Criswell7a73b802003-06-30 21:59:07 +000022223as_executable_p="test -f"
22224
22225# Sed expression to map a string onto a valid CPP name.
22226as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22227
22228# Sed expression to map a string onto a valid variable name.
22229as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22230
22231
22232# IFS
22233# We need space, tab and new line, in precisely that order.
22234as_nl='
22235'
22236IFS=" $as_nl"
22237
22238# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000022239$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022240
22241exec 6>&1
22242
22243# Open the log real soon, to keep \$[0] and so on meaningful, and to
22244# report actual input values of CONFIG_FILES etc. instead of their
22245# values after options handling. Logging --version etc. is OK.
22246exec 5>>config.log
22247{
22248 echo
22249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22250## Running $as_me. ##
22251_ASBOX
22252} >&5
22253cat >&5 <<_CSEOF
22254
John Criswelld000e1d2003-12-18 16:43:17 +000022255This file was extended by [LLVM] $as_me [1.1], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000022256generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022257
22258 CONFIG_FILES = $CONFIG_FILES
22259 CONFIG_HEADERS = $CONFIG_HEADERS
22260 CONFIG_LINKS = $CONFIG_LINKS
22261 CONFIG_COMMANDS = $CONFIG_COMMANDS
22262 $ $0 $@
22263
22264_CSEOF
22265echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22266echo >&5
22267_ACEOF
22268
22269# Files that config.status was made for.
22270if test -n "$ac_config_files"; then
22271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22272fi
22273
22274if test -n "$ac_config_headers"; then
22275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22276fi
22277
22278if test -n "$ac_config_links"; then
22279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22280fi
22281
22282if test -n "$ac_config_commands"; then
22283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22284fi
22285
22286cat >>$CONFIG_STATUS <<\_ACEOF
22287
22288ac_cs_usage="\
22289\`$as_me' instantiates files from templates according to the
22290current configuration.
22291
22292Usage: $0 [OPTIONS] [FILE]...
22293
22294 -h, --help print this help, then exit
22295 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000022296 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022297 -d, --debug don't remove temporary files
22298 --recheck update $as_me by reconfiguring in the same conditions
22299 --file=FILE[:TEMPLATE]
22300 instantiate the configuration file FILE
22301 --header=FILE[:TEMPLATE]
22302 instantiate the configuration header FILE
22303
22304Configuration files:
22305$config_files
22306
22307Configuration headers:
22308$config_headers
22309
John Criswellc764fbc2003-09-06 15:17:13 +000022310Configuration commands:
22311$config_commands
22312
John Criswell7a73b802003-06-30 21:59:07 +000022313Report bugs to <bug-autoconf@gnu.org>."
22314_ACEOF
22315
22316cat >>$CONFIG_STATUS <<_ACEOF
22317ac_cs_version="\\
John Criswelld000e1d2003-12-18 16:43:17 +000022318[LLVM] config.status [1.1]
John Criswell0c38eaf2003-09-10 15:17:25 +000022319configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022320 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22321
22322Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22323Free Software Foundation, Inc.
22324This config.status script is free software; the Free Software Foundation
22325gives unlimited permission to copy, distribute and modify it."
22326srcdir=$srcdir
22327INSTALL="$INSTALL"
22328_ACEOF
22329
22330cat >>$CONFIG_STATUS <<\_ACEOF
22331# If no file are specified by the user, then we need to provide default
22332# value. By we need to know if files were specified by the user.
22333ac_need_defaults=:
22334while test $# != 0
22335do
22336 case $1 in
22337 --*=*)
22338 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22339 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022340 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022341 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022342 -*)
22343 ac_option=$1
22344 ac_optarg=$2
22345 ac_shift=shift
22346 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022347 *) # This is not an option, so the user has probably given explicit
22348 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000022349 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022350 ac_need_defaults=false;;
22351 esac
22352
John Criswell0c38eaf2003-09-10 15:17:25 +000022353 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022354 # Handling of the options.
22355_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022356cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22358 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022359 --version | --vers* | -V )
22360 echo "$ac_cs_version"; exit 0 ;;
22361 --he | --h)
22362 # Conflict between --help and --header
22363 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22364Try \`$0 --help' for more information." >&5
22365echo "$as_me: error: ambiguous option: $1
22366Try \`$0 --help' for more information." >&2;}
22367 { (exit 1); exit 1; }; };;
22368 --help | --hel | -h )
22369 echo "$ac_cs_usage"; exit 0 ;;
22370 --debug | --d* | -d )
22371 debug=: ;;
22372 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022373 $ac_shift
22374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022375 ac_need_defaults=false;;
22376 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022377 $ac_shift
22378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022379 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22382 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022383
22384 # This is an error.
22385 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22386Try \`$0 --help' for more information." >&5
22387echo "$as_me: error: unrecognized option: $1
22388Try \`$0 --help' for more information." >&2;}
22389 { (exit 1); exit 1; }; } ;;
22390
22391 *) ac_config_targets="$ac_config_targets $1" ;;
22392
22393 esac
22394 shift
22395done
22396
John Criswell0c38eaf2003-09-10 15:17:25 +000022397ac_configure_extra_args=
22398
22399if $ac_cs_silent; then
22400 exec 6>/dev/null
22401 ac_configure_extra_args="$ac_configure_extra_args --silent"
22402fi
22403
22404_ACEOF
22405cat >>$CONFIG_STATUS <<_ACEOF
22406if \$ac_cs_recheck; then
22407 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22408 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22409fi
22410
John Criswell7a73b802003-06-30 21:59:07 +000022411_ACEOF
22412
John Criswellc764fbc2003-09-06 15:17:13 +000022413cat >>$CONFIG_STATUS <<_ACEOF
22414#
22415# INIT-COMMANDS section.
22416#
John Criswell7a73b802003-06-30 21:59:07 +000022417
John Criswellc764fbc2003-09-06 15:17:13 +000022418${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22419${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000022420${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022421${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022422${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22423${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000022424${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22425${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000022426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000022444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellcf2e9f72004-02-10 22:36:35 +000022445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000022446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000022448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000022461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellc764fbc2003-09-06 15:17:13 +000022463${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000022464${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022465${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022466
22467_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022468
22469
22470
22471cat >>$CONFIG_STATUS <<\_ACEOF
22472for ac_config_target in $ac_config_targets
22473do
22474 case "$ac_config_target" in
22475 # Handling of arguments.
22476 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022477 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22478 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022479 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022480 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022481 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22482 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000022483 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22484 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022485 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22486 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22487 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22488 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22489 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22490 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22491 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22492 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22493 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22494 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22495 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22496 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22497 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22498 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22499 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22500 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22501 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22502 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000022503 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000022504 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022505 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22506 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000022507 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22508 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22509 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22510 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22511 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22512 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22513 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22514 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22515 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22516 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22517 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22518 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22519 "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 +000022520 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22521 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022522 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000022523 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022524 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000022525 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22526 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22527echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22528 { (exit 1); exit 1; }; };;
22529 esac
22530done
22531
22532# If the user did not use the arguments to specify the items to instantiate,
22533# then the envvar interface is used. Set only those that are not.
22534# We use the long form for the default assignment because of an extremely
22535# bizarre bug on SunOS 4.1.3.
22536if $ac_need_defaults; then
22537 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22538 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022539 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022540fi
22541
John Criswell0c38eaf2003-09-10 15:17:25 +000022542# Have a temporary directory for convenience. Make it in the build tree
22543# simply because there is no reason to put it here, and in addition,
22544# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022545# Create a temporary directory, and hook for its removal unless debugging.
22546$debug ||
22547{
22548 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22549 trap '{ (exit 1); exit 1; }' 1 2 13 15
22550}
22551
22552# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022553
John Criswell7a73b802003-06-30 21:59:07 +000022554{
John Criswell0c38eaf2003-09-10 15:17:25 +000022555 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022556 test -n "$tmp" && test -d "$tmp"
22557} ||
22558{
John Criswell0c38eaf2003-09-10 15:17:25 +000022559 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022560 (umask 077 && mkdir $tmp)
22561} ||
22562{
John Criswell0c38eaf2003-09-10 15:17:25 +000022563 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022564 { (exit 1); exit 1; }
22565}
22566
22567_ACEOF
22568
22569cat >>$CONFIG_STATUS <<_ACEOF
22570
22571#
22572# CONFIG_FILES section.
22573#
22574
22575# No need to generate the scripts if there are no CONFIG_FILES.
22576# This happens for instance when ./config.status config.h
22577if test -n "\$CONFIG_FILES"; then
22578 # Protect against being on the right side of a sed subst in config.status.
22579 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22580 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22581s,@SHELL@,$SHELL,;t t
22582s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22583s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22584s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22585s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22586s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22587s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22588s,@exec_prefix@,$exec_prefix,;t t
22589s,@prefix@,$prefix,;t t
22590s,@program_transform_name@,$program_transform_name,;t t
22591s,@bindir@,$bindir,;t t
22592s,@sbindir@,$sbindir,;t t
22593s,@libexecdir@,$libexecdir,;t t
22594s,@datadir@,$datadir,;t t
22595s,@sysconfdir@,$sysconfdir,;t t
22596s,@sharedstatedir@,$sharedstatedir,;t t
22597s,@localstatedir@,$localstatedir,;t t
22598s,@libdir@,$libdir,;t t
22599s,@includedir@,$includedir,;t t
22600s,@oldincludedir@,$oldincludedir,;t t
22601s,@infodir@,$infodir,;t t
22602s,@mandir@,$mandir,;t t
22603s,@build_alias@,$build_alias,;t t
22604s,@host_alias@,$host_alias,;t t
22605s,@target_alias@,$target_alias,;t t
22606s,@DEFS@,$DEFS,;t t
22607s,@ECHO_C@,$ECHO_C,;t t
22608s,@ECHO_N@,$ECHO_N,;t t
22609s,@ECHO_T@,$ECHO_T,;t t
22610s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000022611s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022612s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22613s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22614s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22615s,@build@,$build,;t t
22616s,@build_cpu@,$build_cpu,;t t
22617s,@build_vendor@,$build_vendor,;t t
22618s,@build_os@,$build_os,;t t
22619s,@host@,$host,;t t
22620s,@host_cpu@,$host_cpu,;t t
22621s,@host_vendor@,$host_vendor,;t t
22622s,@host_os@,$host_os,;t t
22623s,@target@,$target,;t t
22624s,@target_cpu@,$target_cpu,;t t
22625s,@target_vendor@,$target_vendor,;t t
22626s,@target_os@,$target_os,;t t
22627s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022628s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022629s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022630s,@CXX@,$CXX,;t t
22631s,@CXXFLAGS@,$CXXFLAGS,;t t
22632s,@LDFLAGS@,$LDFLAGS,;t t
22633s,@CPPFLAGS@,$CPPFLAGS,;t t
22634s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22635s,@EXEEXT@,$EXEEXT,;t t
22636s,@OBJEXT@,$OBJEXT,;t t
22637s,@CC@,$CC,;t t
22638s,@CFLAGS@,$CFLAGS,;t t
22639s,@ac_ct_CC@,$ac_ct_CC,;t t
22640s,@CPP@,$CPP,;t t
22641s,@ifGNUmake@,$ifGNUmake,;t t
22642s,@LEX@,$LEX,;t t
22643s,@LEXLIB@,$LEXLIB,;t t
22644s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22645s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000022646s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022647s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022648s,@LN_S@,$LN_S,;t t
22649s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022650s,@AR@,$AR,;t t
22651s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022652s,@RANLIB@,$RANLIB,;t t
22653s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22654s,@STRIP@,$STRIP,;t t
22655s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022656s,@CXXCPP@,$CXXCPP,;t t
22657s,@F77@,$F77,;t t
22658s,@FFLAGS@,$FFLAGS,;t t
22659s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022660s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022661s,@DOT@,$DOT,;t t
22662s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000022663s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000022664s,@PYTHON@,$PYTHON,;t t
22665s,@QMTEST@,$QMTEST,;t t
John Criswell0021c312004-02-13 21:57:29 +000022666s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022667s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022668s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022669s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000022670s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022671s,@USE_SPEC@,$USE_SPEC,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000022672s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22673s,@USE_SPEC95@,$USE_SPEC95,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022674s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022675s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022676s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000022677s,@LLVMCC1@,$LLVMCC1,;t t
22678s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022679s,@BCR@,$BCR,;t t
22680s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000022681s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000022682s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000022683s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022684CEOF
22685
22686_ACEOF
22687
22688 cat >>$CONFIG_STATUS <<\_ACEOF
22689 # Split the substitutions into bite-sized pieces for seds with
22690 # small command number limits, like on Digital OSF/1 and HP-UX.
22691 ac_max_sed_lines=48
22692 ac_sed_frag=1 # Number of current file.
22693 ac_beg=1 # First line for current file.
22694 ac_end=$ac_max_sed_lines # Line after last line for current file.
22695 ac_more_lines=:
22696 ac_sed_cmds=
22697 while $ac_more_lines; do
22698 if test $ac_beg -gt 1; then
22699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22700 else
22701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22702 fi
22703 if test ! -s $tmp/subs.frag; then
22704 ac_more_lines=false
22705 else
22706 # The purpose of the label and of the branching condition is to
22707 # speed up the sed processing (if there are no `@' at all, there
22708 # is no need to browse any of the substitutions).
22709 # These are the two extra sed commands mentioned above.
22710 (echo ':t
22711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22712 if test -z "$ac_sed_cmds"; then
22713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22714 else
22715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22716 fi
22717 ac_sed_frag=`expr $ac_sed_frag + 1`
22718 ac_beg=$ac_end
22719 ac_end=`expr $ac_end + $ac_max_sed_lines`
22720 fi
22721 done
22722 if test -z "$ac_sed_cmds"; then
22723 ac_sed_cmds=cat
22724 fi
22725fi # test -n "$CONFIG_FILES"
22726
22727_ACEOF
22728cat >>$CONFIG_STATUS <<\_ACEOF
22729for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22731 case $ac_file in
22732 - | *:- | *:-:* ) # input from stdin
22733 cat >$tmp/stdin
22734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22738 * ) ac_file_in=$ac_file.in ;;
22739 esac
22740
22741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22743$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22744 X"$ac_file" : 'X\(//\)[^/]' \| \
22745 X"$ac_file" : 'X\(//\)$' \| \
22746 X"$ac_file" : 'X\(/\)' \| \
22747 . : '\(.\)' 2>/dev/null ||
22748echo X"$ac_file" |
22749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22751 /^X\(\/\/\)$/{ s//\1/; q; }
22752 /^X\(\/\).*/{ s//\1/; q; }
22753 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022754 { if $as_mkdir_p; then
22755 mkdir -p "$ac_dir"
22756 else
22757 as_dir="$ac_dir"
22758 as_dirs=
22759 while test ! -d "$as_dir"; do
22760 as_dirs="$as_dir $as_dirs"
22761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22763 X"$as_dir" : 'X\(//\)[^/]' \| \
22764 X"$as_dir" : 'X\(//\)$' \| \
22765 X"$as_dir" : 'X\(/\)' \| \
22766 . : '\(.\)' 2>/dev/null ||
22767echo X"$as_dir" |
22768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22770 /^X\(\/\/\)$/{ s//\1/; q; }
22771 /^X\(\/\).*/{ s//\1/; q; }
22772 s/.*/./; q'`
22773 done
22774 test ! -n "$as_dirs" || mkdir $as_dirs
22775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22776echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22777 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022778
22779 ac_builddir=.
22780
22781if test "$ac_dir" != .; then
22782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22783 # A "../" for each directory in $ac_dir_suffix.
22784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22785else
22786 ac_dir_suffix= ac_top_builddir=
22787fi
22788
22789case $srcdir in
22790 .) # No --srcdir option. We are building in place.
22791 ac_srcdir=.
22792 if test -z "$ac_top_builddir"; then
22793 ac_top_srcdir=.
22794 else
22795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22796 fi ;;
22797 [\\/]* | ?:[\\/]* ) # Absolute path.
22798 ac_srcdir=$srcdir$ac_dir_suffix;
22799 ac_top_srcdir=$srcdir ;;
22800 *) # Relative path.
22801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22803esac
22804# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22805# absolute.
22806ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000022807ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000022808ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22809ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22810
22811
22812 case $INSTALL in
22813 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22814 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22815 esac
22816
22817 if test x"$ac_file" != x-; then
22818 { echo "$as_me:$LINENO: creating $ac_file" >&5
22819echo "$as_me: creating $ac_file" >&6;}
22820 rm -f "$ac_file"
22821 fi
22822 # Let's still pretend it is `configure' which instantiates (i.e., don't
22823 # use $as_me), people would be surprised to read:
22824 # /* config.h. Generated by config.status. */
22825 if test x"$ac_file" = x-; then
22826 configure_input=
22827 else
22828 configure_input="$ac_file. "
22829 fi
22830 configure_input=$configure_input"Generated from `echo $ac_file_in |
22831 sed 's,.*/,,'` by configure."
22832
22833 # First look for the input files in the build tree, otherwise in the
22834 # src tree.
22835 ac_file_inputs=`IFS=:
22836 for f in $ac_file_in; do
22837 case $f in
22838 -) echo $tmp/stdin ;;
22839 [\\/$]*)
22840 # Absolute (can't be DOS-style, as IFS=:)
22841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22842echo "$as_me: error: cannot find input file: $f" >&2;}
22843 { (exit 1); exit 1; }; }
22844 echo $f;;
22845 *) # Relative
22846 if test -f "$f"; then
22847 # Build tree
22848 echo $f
22849 elif test -f "$srcdir/$f"; then
22850 # Source tree
22851 echo $srcdir/$f
22852 else
22853 # /dev/null tree
22854 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22855echo "$as_me: error: cannot find input file: $f" >&2;}
22856 { (exit 1); exit 1; }; }
22857 fi;;
22858 esac
22859 done` || { (exit 1); exit 1; }
22860_ACEOF
22861cat >>$CONFIG_STATUS <<_ACEOF
22862 sed "$ac_vpsub
22863$extrasub
22864_ACEOF
22865cat >>$CONFIG_STATUS <<\_ACEOF
22866:t
22867/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22868s,@configure_input@,$configure_input,;t t
22869s,@srcdir@,$ac_srcdir,;t t
22870s,@abs_srcdir@,$ac_abs_srcdir,;t t
22871s,@top_srcdir@,$ac_top_srcdir,;t t
22872s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22873s,@builddir@,$ac_builddir,;t t
22874s,@abs_builddir@,$ac_abs_builddir,;t t
22875s,@top_builddir@,$ac_top_builddir,;t t
22876s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22877s,@INSTALL@,$ac_INSTALL,;t t
22878" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22879 rm -f $tmp/stdin
22880 if test x"$ac_file" != x-; then
22881 mv $tmp/out $ac_file
22882 else
22883 cat $tmp/out
22884 rm -f $tmp/out
22885 fi
22886
22887done
22888_ACEOF
22889cat >>$CONFIG_STATUS <<\_ACEOF
22890
22891#
22892# CONFIG_HEADER section.
22893#
22894
22895# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22896# NAME is the cpp macro being defined and VALUE is the value it is being given.
22897#
22898# ac_d sets the value in "#define NAME VALUE" lines.
22899ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22900ac_dB='[ ].*$,\1#\2'
22901ac_dC=' '
22902ac_dD=',;t'
22903# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22904ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22905ac_uB='$,\1#\2define\3'
22906ac_uC=' '
22907ac_uD=',;t'
22908
22909for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22911 case $ac_file in
22912 - | *:- | *:-:* ) # input from stdin
22913 cat >$tmp/stdin
22914 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22916 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22918 * ) ac_file_in=$ac_file.in ;;
22919 esac
22920
22921 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22922echo "$as_me: creating $ac_file" >&6;}
22923
22924 # First look for the input files in the build tree, otherwise in the
22925 # src tree.
22926 ac_file_inputs=`IFS=:
22927 for f in $ac_file_in; do
22928 case $f in
22929 -) echo $tmp/stdin ;;
22930 [\\/$]*)
22931 # Absolute (can't be DOS-style, as IFS=:)
22932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22933echo "$as_me: error: cannot find input file: $f" >&2;}
22934 { (exit 1); exit 1; }; }
22935 echo $f;;
22936 *) # Relative
22937 if test -f "$f"; then
22938 # Build tree
22939 echo $f
22940 elif test -f "$srcdir/$f"; then
22941 # Source tree
22942 echo $srcdir/$f
22943 else
22944 # /dev/null tree
22945 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22946echo "$as_me: error: cannot find input file: $f" >&2;}
22947 { (exit 1); exit 1; }; }
22948 fi;;
22949 esac
22950 done` || { (exit 1); exit 1; }
22951 # Remove the trailing spaces.
22952 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22953
22954_ACEOF
22955
22956# Transform confdefs.h into two sed scripts, `conftest.defines' and
22957# `conftest.undefs', that substitutes the proper values into
22958# config.h.in to produce config.h. The first handles `#define'
22959# templates, and the second `#undef' templates.
22960# And first: Protect against being on the right side of a sed subst in
22961# config.status. Protect against being in an unquoted here document
22962# in config.status.
22963rm -f conftest.defines conftest.undefs
22964# Using a here document instead of a string reduces the quoting nightmare.
22965# Putting comments in sed scripts is not portable.
22966#
22967# `end' is used to avoid that the second main sed command (meant for
22968# 0-ary CPP macros) applies to n-ary macro definitions.
22969# See the Autoconf documentation for `clear'.
22970cat >confdef2sed.sed <<\_ACEOF
22971s/[\\&,]/\\&/g
22972s,[\\$`],\\&,g
22973t clear
22974: clear
22975s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22976t end
22977s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22978: end
22979_ACEOF
22980# If some macros were called several times there might be several times
22981# the same #defines, which is useless. Nevertheless, we may not want to
22982# sort them, since we want the *last* AC-DEFINE to be honored.
22983uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22984sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22985rm -f confdef2sed.sed
22986
22987# This sed command replaces #undef with comments. This is necessary, for
22988# example, in the case of _POSIX_SOURCE, which is predefined and required
22989# on some systems where configure will not decide to define it.
22990cat >>conftest.undefs <<\_ACEOF
22991s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22992_ACEOF
22993
22994# Break up conftest.defines because some shells have a limit on the size
22995# of here documents, and old seds have small limits too (100 cmds).
22996echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000022997echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022998echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22999echo ' :' >>$CONFIG_STATUS
23000rm -f conftest.tail
23001while grep . conftest.defines >/dev/null
23002do
23003 # Write a limited-size here document to $tmp/defines.sed.
23004 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23005 # Speed up: don't consider the non `#define' lines.
23006 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23007 # Work around the forget-to-reset-the-flag bug.
23008 echo 't clr' >>$CONFIG_STATUS
23009 echo ': clr' >>$CONFIG_STATUS
23010 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23011 echo 'CEOF
23012 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23013 rm -f $tmp/in
23014 mv $tmp/out $tmp/in
23015' >>$CONFIG_STATUS
23016 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23017 rm -f conftest.defines
23018 mv conftest.tail conftest.defines
23019done
23020rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023021echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023022echo >>$CONFIG_STATUS
23023
23024# Break up conftest.undefs because some shells have a limit on the size
23025# of here documents, and old seds have small limits too (100 cmds).
23026echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23027rm -f conftest.tail
23028while grep . conftest.undefs >/dev/null
23029do
23030 # Write a limited-size here document to $tmp/undefs.sed.
23031 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23032 # Speed up: don't consider the non `#undef'
23033 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23034 # Work around the forget-to-reset-the-flag bug.
23035 echo 't clr' >>$CONFIG_STATUS
23036 echo ': clr' >>$CONFIG_STATUS
23037 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23038 echo 'CEOF
23039 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23040 rm -f $tmp/in
23041 mv $tmp/out $tmp/in
23042' >>$CONFIG_STATUS
23043 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23044 rm -f conftest.undefs
23045 mv conftest.tail conftest.undefs
23046done
23047rm -f conftest.undefs
23048
23049cat >>$CONFIG_STATUS <<\_ACEOF
23050 # Let's still pretend it is `configure' which instantiates (i.e., don't
23051 # use $as_me), people would be surprised to read:
23052 # /* config.h. Generated by config.status. */
23053 if test x"$ac_file" = x-; then
23054 echo "/* Generated by configure. */" >$tmp/config.h
23055 else
23056 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23057 fi
23058 cat $tmp/in >>$tmp/config.h
23059 rm -f $tmp/in
23060 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023061 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023062 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23063echo "$as_me: $ac_file is unchanged" >&6;}
23064 else
23065 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23067 X"$ac_file" : 'X\(//\)[^/]' \| \
23068 X"$ac_file" : 'X\(//\)$' \| \
23069 X"$ac_file" : 'X\(/\)' \| \
23070 . : '\(.\)' 2>/dev/null ||
23071echo X"$ac_file" |
23072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23074 /^X\(\/\/\)$/{ s//\1/; q; }
23075 /^X\(\/\).*/{ s//\1/; q; }
23076 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023077 { if $as_mkdir_p; then
23078 mkdir -p "$ac_dir"
23079 else
23080 as_dir="$ac_dir"
23081 as_dirs=
23082 while test ! -d "$as_dir"; do
23083 as_dirs="$as_dir $as_dirs"
23084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23085$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23086 X"$as_dir" : 'X\(//\)[^/]' \| \
23087 X"$as_dir" : 'X\(//\)$' \| \
23088 X"$as_dir" : 'X\(/\)' \| \
23089 . : '\(.\)' 2>/dev/null ||
23090echo X"$as_dir" |
23091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23093 /^X\(\/\/\)$/{ s//\1/; q; }
23094 /^X\(\/\).*/{ s//\1/; q; }
23095 s/.*/./; q'`
23096 done
23097 test ! -n "$as_dirs" || mkdir $as_dirs
23098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23099echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23100 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023101
23102 rm -f $ac_file
23103 mv $tmp/config.h $ac_file
23104 fi
23105 else
23106 cat $tmp/config.h
23107 rm -f $tmp/config.h
23108 fi
23109done
23110_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023111cat >>$CONFIG_STATUS <<\_ACEOF
23112
23113#
23114# CONFIG_COMMANDS section.
23115#
23116for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23117 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23118 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23119 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23120$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23121 X"$ac_dest" : 'X\(//\)[^/]' \| \
23122 X"$ac_dest" : 'X\(//\)$' \| \
23123 X"$ac_dest" : 'X\(/\)' \| \
23124 . : '\(.\)' 2>/dev/null ||
23125echo X"$ac_dest" |
23126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23128 /^X\(\/\/\)$/{ s//\1/; q; }
23129 /^X\(\/\).*/{ s//\1/; q; }
23130 s/.*/./; q'`
23131 ac_builddir=.
23132
23133if test "$ac_dir" != .; then
23134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23135 # A "../" for each directory in $ac_dir_suffix.
23136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23137else
23138 ac_dir_suffix= ac_top_builddir=
23139fi
23140
23141case $srcdir in
23142 .) # No --srcdir option. We are building in place.
23143 ac_srcdir=.
23144 if test -z "$ac_top_builddir"; then
23145 ac_top_srcdir=.
23146 else
23147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23148 fi ;;
23149 [\\/]* | ?:[\\/]* ) # Absolute path.
23150 ac_srcdir=$srcdir$ac_dir_suffix;
23151 ac_top_srcdir=$srcdir ;;
23152 *) # Relative path.
23153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23155esac
23156# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23157# absolute.
23158ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023159ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023160ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23161ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23162
23163
23164 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23165echo "$as_me: executing $ac_dest commands" >&6;}
23166 case $ac_dest in
23167 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23168 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023169 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023170 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023171 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23172 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000023173 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23174 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 +000023175 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23176 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23177 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23178 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23179 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23180 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23181 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23182 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23183 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23184 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23185 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23186 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23187 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23188 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23189 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23190 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23191 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23192 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 +000023193 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 +000023194 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 +000023195 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23196 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 +000023197 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 ;;
23198 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 ;;
23199 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 ;;
23200 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 ;;
23201 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 ;;
23202 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 ;;
23203 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 ;;
23204 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 ;;
23205 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 ;;
23206 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 ;;
23207 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 ;;
23208 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 ;;
23209 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 +000023210 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23211 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 +000023212 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023213 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023214 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023215 esac
23216done
23217_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023218
23219cat >>$CONFIG_STATUS <<\_ACEOF
23220
23221{ (exit 0); exit 0; }
23222_ACEOF
23223chmod +x $CONFIG_STATUS
23224ac_clean_files=$ac_clean_files_save
23225
23226
23227# configure is writing to config.log, and then calls config.status.
23228# config.status does its own redirection, appending to config.log.
23229# Unfortunately, on DOS this fails, as config.log is still kept open
23230# by configure, so config.status won't be able to write to it; its
23231# output is simply discarded. So we exec the FD to /dev/null,
23232# effectively closing config.log, so it can be properly (re)opened and
23233# appended to by config.status. When coming back to configure, we
23234# need to make the FD available again.
23235if test "$no_create" != yes; then
23236 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023237 ac_config_status_args=
23238 test "$silent" = yes &&
23239 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023240 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023242 exec 5>>config.log
23243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23244 # would make configure fail if this is the last instruction.
23245 $ac_cs_success || { (exit 1); exit 1; }
23246fi
23247
John Criswell12399a12003-09-30 15:55:44 +000023248#
23249# CONFIG_SUBDIRS section.
23250#
23251if test "$no_recursion" != yes; then
23252
23253 # Remove --cache-file and --srcdir arguments so they do not pile up.
23254 ac_sub_configure_args=
23255 ac_prev=
23256 for ac_arg in $ac_configure_args; do
23257 if test -n "$ac_prev"; then
23258 ac_prev=
23259 continue
23260 fi
23261 case $ac_arg in
23262 -cache-file | --cache-file | --cache-fil | --cache-fi \
23263 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23264 ac_prev=cache_file ;;
23265 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23266 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23267 | --c=*)
23268 ;;
23269 --config-cache | -C)
23270 ;;
23271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23272 ac_prev=srcdir ;;
23273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23274 ;;
23275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23276 ac_prev=prefix ;;
23277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23278 ;;
23279 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23280 esac
23281 done
23282
23283 # Always prepend --prefix to ensure using the same prefix
23284 # in subdir configurations.
23285 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23286
23287 ac_popdir=`pwd`
23288 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23289
23290 # Do not complain, so a configure script can configure whichever
23291 # parts of a large source tree are present.
23292 test -d $srcdir/$ac_dir || continue
23293
23294 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23295echo "$as_me: configuring in $ac_dir" >&6;}
23296 { if $as_mkdir_p; then
23297 mkdir -p "$ac_dir"
23298 else
23299 as_dir="$ac_dir"
23300 as_dirs=
23301 while test ! -d "$as_dir"; do
23302 as_dirs="$as_dir $as_dirs"
23303 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23305 X"$as_dir" : 'X\(//\)[^/]' \| \
23306 X"$as_dir" : 'X\(//\)$' \| \
23307 X"$as_dir" : 'X\(/\)' \| \
23308 . : '\(.\)' 2>/dev/null ||
23309echo X"$as_dir" |
23310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23312 /^X\(\/\/\)$/{ s//\1/; q; }
23313 /^X\(\/\).*/{ s//\1/; q; }
23314 s/.*/./; q'`
23315 done
23316 test ! -n "$as_dirs" || mkdir $as_dirs
23317 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23318echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23319 { (exit 1); exit 1; }; }; }
23320
23321 ac_builddir=.
23322
23323if test "$ac_dir" != .; then
23324 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23325 # A "../" for each directory in $ac_dir_suffix.
23326 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23327else
23328 ac_dir_suffix= ac_top_builddir=
23329fi
23330
23331case $srcdir in
23332 .) # No --srcdir option. We are building in place.
23333 ac_srcdir=.
23334 if test -z "$ac_top_builddir"; then
23335 ac_top_srcdir=.
23336 else
23337 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23338 fi ;;
23339 [\\/]* | ?:[\\/]* ) # Absolute path.
23340 ac_srcdir=$srcdir$ac_dir_suffix;
23341 ac_top_srcdir=$srcdir ;;
23342 *) # Relative path.
23343 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23344 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23345esac
23346# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23347# absolute.
23348ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23349ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23350ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23351ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23352
23353
23354 cd $ac_dir
23355
23356 # Check for guested configure; otherwise get Cygnus style configure.
23357 if test -f $ac_srcdir/configure.gnu; then
23358 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23359 elif test -f $ac_srcdir/configure; then
23360 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23361 elif test -f $ac_srcdir/configure.in; then
23362 ac_sub_configure=$ac_configure
23363 else
23364 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23365echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23366 ac_sub_configure=
23367 fi
23368
23369 # The recursion is here.
23370 if test -n "$ac_sub_configure"; then
23371 # Make the cache file name correct relative to the subdirectory.
23372 case $cache_file in
23373 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23374 *) # Relative path.
23375 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23376 esac
23377
23378 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23379echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23380 # The eval makes quoting arguments work.
23381 eval $ac_sub_configure $ac_sub_configure_args \
23382 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23383 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23384echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23385 { (exit 1); exit 1; }; }
23386 fi
23387
23388 cd $ac_popdir
23389 done
23390fi
23391
Brian Gaekef3b24102003-11-16 18:38:14 +000023392
23393if test $llvmgccwarn = yes
23394then
23395 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23396echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23397 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23398echo "$as_me: WARNING: ***** appear to be working." >&2;}
23399 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23400echo "$as_me: WARNING: ***** " >&2;}
23401 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23402echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23403 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23404echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23405 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23406echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23407fi
Brian Gaeke554831c2004-01-21 19:39:29 +000023408