blob: 895ac8b38caaaa76128743ab965372613f1c1e73 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
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--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell7ec78aa2003-10-16 01:49:00 +0000429ac_subdirs_all="$ac_subdirs_all projects/sample"
John Criswell12399a12003-09-30 15:55:44 +0000430ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000431ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446# include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451# include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462# include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000470ac_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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000471ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
525 case $ac_option in
526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 bindir=$ac_optarg ;;
531
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
551 datadir=$ac_optarg ;;
552
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
561
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 *) ac_optarg=yes ;;
572 esac
573 eval "enable_$ac_feature='$ac_optarg'" ;;
574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
594
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir=$ac_optarg ;;
616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir=$ac_optarg ;;
637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix=$ac_optarg ;;
663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
703 sbindir=$ac_optarg ;;
704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
714 sharedstatedir=$ac_optarg ;;
715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
719 site=$ac_optarg ;;
720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir=$ac_optarg ;;
725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
743
744 -with-* | --with-*)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 *) ac_optarg=yes ;;
754 esac
755 eval "with_$ac_package='$ac_optarg'" ;;
756
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
783
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
787 ;;
788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
799 *)
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
836 esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
890 else
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
893 fi
894fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CC_set=${CC+set}
928ac_env_CC_value=$CC
929ac_cv_env_CC_set=${CC+set}
930ac_cv_env_CC_value=$CC
931ac_env_CFLAGS_set=${CFLAGS+set}
932ac_env_CFLAGS_value=$CFLAGS
933ac_cv_env_CFLAGS_set=${CFLAGS+set}
934ac_cv_env_CFLAGS_value=$CFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
958 cat <<_ACEOF
959\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE. See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981 cat <<_ACEOF
982Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
984 [$ac_default_prefix]
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1008_ACEOF
1009
1010 cat <<\_ACEOF
1011
1012System types:
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022 esac
1023 cat <<\_ACEOF
1024
1025Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001036 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001037 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001054 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell0c38eaf2003-09-10 15:17:25 +00001214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell0c38eaf2003-09-10 15:17:25 +00001250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$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 +00001252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
John Criswell0c38eaf2003-09-10 15:17:25 +00001487
John Criswell7a73b802003-06-30 21:59:07 +00001488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell1b824322003-09-15 17:19:42 +00001514if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001515then
John Criswell1b824322003-09-15 17:19:42 +00001516 if test -f ${srcdir}/include/Config/config.h
1517 then
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001521 fi
John Criswell93e1c722003-09-15 17:04:06 +00001522fi
1523
John Criswell7ec78aa2003-10-16 01:49:00 +00001524if test -d ${srcdir}/projects/sample
1525then
1526
1527
1528subdirs="$subdirs projects/sample"
1529
1530fi
1531
John Criswell12399a12003-09-30 15:55:44 +00001532if test -d ${srcdir}/projects/reopt
1533then
1534
1535
1536subdirs="$subdirs projects/reopt"
1537
1538fi
1539
John Criswell559a6c12003-09-30 16:31:48 +00001540if test -d ${srcdir}/projects/poolalloc
1541then
1542
1543
1544subdirs="$subdirs projects/poolalloc"
1545
1546fi
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
Brian Gaekec45be042003-10-07 06:01:34 +00001616 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell613758d2003-09-11 18:03:50 +00001664 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell613758d2003-09-11 18:03:50 +00001679 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell613758d2003-09-11 18:03:50 +00001685 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell759c3ed2003-10-28 19:21:11 +00001697 ac_config_commands="$ac_config_commands runtime/libprofile/Makefile"
1698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswellf424d742003-10-07 21:13:47 +00001706 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1707
1708
1709 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell613758d2003-09-11 18:03:50 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell5ab73462003-10-09 15:44:28 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell0c38eaf2003-09-10 15:17:25 +00001796 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell987e49c2003-10-10 01:11:54 +00001805 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1806
1807
1808 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1809
1810
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell0c38eaf2003-09-10 15:17:25 +00001817 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell0c38eaf2003-09-10 15:17:25 +00001823 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell0c38eaf2003-09-10 15:17:25 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell39e83892003-09-12 16:36:17 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1839
1840
1841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell48e3cb92003-09-12 16:31:43 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
Misha Brukman811ce9f2003-11-12 22:16:51 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/Makefile"
1851
1852
1853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile"
1854
1855
1856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1857
1858
1859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1863
1864
1865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1866
1867
1868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1869
1870
1871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1872
1873
1874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1875
1876
1877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1878
1879
1880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1881
1882
1883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1884
1885
1886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1887
1888
1889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1890
1891
1892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1893
1894
John Criswell48e3cb92003-09-12 16:31:43 +00001895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell48e3cb92003-09-12 16:31:43 +00001898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell48e3cb92003-09-12 16:31:43 +00001901 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell48e3cb92003-09-12 16:31:43 +00001904 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell48e3cb92003-09-12 16:31:43 +00001907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell48e3cb92003-09-12 16:31:43 +00001910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell48e3cb92003-09-12 16:31:43 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell48e3cb92003-09-12 16:31:43 +00001916 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell48e3cb92003-09-12 16:31:43 +00001919 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell48e3cb92003-09-12 16:31:43 +00001922 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell48e3cb92003-09-12 16:31:43 +00001925 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell48e3cb92003-09-12 16:31:43 +00001928 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell48e3cb92003-09-12 16:31:43 +00001931 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell48e3cb92003-09-12 16:31:43 +00001934 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell48e3cb92003-09-12 16:31:43 +00001937 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell48e3cb92003-09-12 16:31:43 +00001940 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell48e3cb92003-09-12 16:31:43 +00001943 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell48e3cb92003-09-12 16:31:43 +00001946 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell48e3cb92003-09-12 16:31:43 +00001949 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell48e3cb92003-09-12 16:31:43 +00001952 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell39e83892003-09-12 16:36:17 +00001961 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell48e3cb92003-09-12 16:31:43 +00001964 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell48e3cb92003-09-12 16:31:43 +00001967 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell48e3cb92003-09-12 16:31:43 +00001970 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell48e3cb92003-09-12 16:31:43 +00001973 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell48e3cb92003-09-12 16:31:43 +00001976 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell48e3cb92003-09-12 16:31:43 +00001979 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell48e3cb92003-09-12 16:31:43 +00001982 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell48e3cb92003-09-12 16:31:43 +00001985 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswellffaaf3b2003-09-10 18:38:44 +00001994 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1995
1996
1997 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1998
1999
2000 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
2001
2002
2003 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
2004
2005
2006 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
2007
2008
2009 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
2010
2011
John Criswell0c38eaf2003-09-10 15:17:25 +00002012 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
John Criswell0c38eaf2003-09-10 15:17:25 +00002015 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002016
2017
John Criswell0afe8252003-09-11 20:53:48 +00002018 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
2019
2020
John Criswell67181ca2003-09-26 14:53:17 +00002021 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
2022
2023
John Criswell68886d42003-09-26 19:51:42 +00002024 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
2025
2026
2027 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
2028
2029
John Criswellc66bbd52003-09-29 21:35:32 +00002030 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
2031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002034
2035
John Criswell0c38eaf2003-09-10 15:17:25 +00002036 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002043
2044
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell0c38eaf2003-09-10 15:17:25 +00002054 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswellddb7b4e2003-09-16 15:54:19 +00002057 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002058
2059
Chris Lattnerebd70302003-09-13 03:29:53 +00002060 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2061
2062
John Criswellddb7b4e2003-09-16 15:54:19 +00002063 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2064
2065
John Criswell0c38eaf2003-09-10 15:17:25 +00002066 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002067
2068
John Criswellddb7b4e2003-09-16 15:54:19 +00002069 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2070
2071
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00002072 ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2073
2074
John Criswell759c3ed2003-10-28 19:21:11 +00002075 ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2076
2077
John Criswellddb7b4e2003-09-16 15:54:19 +00002078 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2079
2080
Brian Gaekec45be042003-10-07 06:01:34 +00002081 ac_config_commands="$ac_config_commands utils/Makefile"
2082
2083
2084 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2085
2086
2087 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2088
2089
2090 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2091
2092
John Criswell0c38eaf2003-09-10 15:17:25 +00002093 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002094
2095
John Criswell0c38eaf2003-09-10 15:17:25 +00002096 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002097
2098
John Criswell0c38eaf2003-09-10 15:17:25 +00002099 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002100
2101
John Criswell0c38eaf2003-09-10 15:17:25 +00002102 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002103
2104
John Criswell0c38eaf2003-09-10 15:17:25 +00002105 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002106
2107
John Criswell392aaa32003-07-22 19:18:09 +00002108
2109
John Criswell7a73b802003-06-30 21:59:07 +00002110# Find a good install program. We prefer a C program (faster),
2111# so one script is as good as another. But avoid the broken or
2112# incompatible versions:
2113# SysV /etc/install, /usr/sbin/install
2114# SunOS /usr/etc/install
2115# IRIX /sbin/install
2116# AIX /bin/install
2117# AmigaOS /C/install, which installs bootblocks on floppy discs
2118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2121# ./install, which can be erroneously created by make from ./install.sh.
2122echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2123echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2124if test -z "$INSTALL"; then
2125if test "${ac_cv_path_install+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 # Account for people who put trailing slashes in PATH elements.
2134case $as_dir/ in
2135 ./ | .// | /cC/* | \
2136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2137 /usr/ucb/* ) ;;
2138 *)
2139 # OSF1 and SCO ODT 3.0 have their own names for install.
2140 # Don't use installbsd from OSF since it installs stuff as root
2141 # by default.
2142 for ac_prog in ginstall scoinst install; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2145 if test $ac_prog = install &&
2146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147 # AIX install. It has an incompatible calling convention.
2148 :
2149 elif test $ac_prog = install &&
2150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2151 # program-specific install script used by HP pwplus--don't use.
2152 :
2153 else
2154 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2155 break 3
2156 fi
2157 fi
2158 done
2159 done
2160 ;;
2161esac
2162done
2163
2164
2165fi
2166 if test "${ac_cv_path_install+set}" = set; then
2167 INSTALL=$ac_cv_path_install
2168 else
2169 # As a last resort, use the slow shell script. We don't cache a
2170 # path for INSTALL within a source directory, because that will
2171 # break other packages using the cache if that directory is
2172 # removed, or if the path is relative.
2173 INSTALL=$ac_install_sh
2174 fi
2175fi
2176echo "$as_me:$LINENO: result: $INSTALL" >&5
2177echo "${ECHO_T}$INSTALL" >&6
2178
2179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2180# It thinks the first close brace ends the variable substitution.
2181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2182
2183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2184
2185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2186
2187
2188# Make sure we can run config.sub.
2189$ac_config_sub sun4 >/dev/null 2>&1 ||
2190 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2191echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2192 { (exit 1); exit 1; }; }
2193
2194echo "$as_me:$LINENO: checking build system type" >&5
2195echo $ECHO_N "checking build system type... $ECHO_C" >&6
2196if test "${ac_cv_build+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 ac_cv_build_alias=$build_alias
2200test -z "$ac_cv_build_alias" &&
2201 ac_cv_build_alias=`$ac_config_guess`
2202test -z "$ac_cv_build_alias" &&
2203 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2204echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2205 { (exit 1); exit 1; }; }
2206ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2207 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2208echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2210
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2213echo "${ECHO_T}$ac_cv_build" >&6
2214build=$ac_cv_build
2215build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2216build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2217build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2218
2219
2220echo "$as_me:$LINENO: checking host system type" >&5
2221echo $ECHO_N "checking host system type... $ECHO_C" >&6
2222if test "${ac_cv_host+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 ac_cv_host_alias=$host_alias
2226test -z "$ac_cv_host_alias" &&
2227 ac_cv_host_alias=$ac_cv_build_alias
2228ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2229 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2230echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2231 { (exit 1); exit 1; }; }
2232
2233fi
2234echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235echo "${ECHO_T}$ac_cv_host" >&6
2236host=$ac_cv_host
2237host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2238host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2239host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2240
2241
2242echo "$as_me:$LINENO: checking target system type" >&5
2243echo $ECHO_N "checking target system type... $ECHO_C" >&6
2244if test "${ac_cv_target+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247 ac_cv_target_alias=$target_alias
2248test "x$ac_cv_target_alias" = "x" &&
2249 ac_cv_target_alias=$ac_cv_host_alias
2250ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2251 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2252echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2253 { (exit 1); exit 1; }; }
2254
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2257echo "${ECHO_T}$ac_cv_target" >&6
2258target=$ac_cv_target
2259target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2260target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2261target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2262
2263
2264# The aliases save the names the user supplied, while $host etc.
2265# will get canonicalized.
2266test -n "$target_alias" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
2269 program_prefix=${target_alias}-
2270
2271case $build in
2272 *i*86*) OS=Linux
2273
John Criswellf02dbf02003-07-22 20:07:49 +00002274 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002275
2276 ;;
2277
2278 *sparc*) OS=SunOS
2279
2280 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2281
2282 ;;
2283
2284 *) OS=Unknown
2285
2286 ;;
2287esac
2288
2289case $target in
2290 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2291
2292 ;;
2293esac
2294
John Criswell76595452003-07-01 22:07:39 +00002295case $target in
2296 *i*86*) ARCH=x86
2297
2298 ;;
2299 *sparc*solaris*) ARCH=Sparc
2300
2301 ;;
2302esac
2303
John Criswell7a73b802003-06-30 21:59:07 +00002304
2305ac_ext=cc
2306ac_cpp='$CXXCPP $CPPFLAGS'
2307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2310if test -n "$ac_tool_prefix"; then
2311 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2312 do
2313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317if test "${ac_cv_prog_CXX+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 if test -n "$CXX"; then
2321 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334done
2335done
2336
2337fi
2338fi
2339CXX=$ac_cv_prog_CXX
2340if test -n "$CXX"; then
2341 echo "$as_me:$LINENO: result: $CXX" >&5
2342echo "${ECHO_T}$CXX" >&6
2343else
2344 echo "$as_me:$LINENO: result: no" >&5
2345echo "${ECHO_T}no" >&6
2346fi
2347
2348 test -n "$CXX" && break
2349 done
2350fi
2351if test -z "$CXX"; then
2352 ac_ct_CXX=$CXX
2353 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2354do
2355 # Extract the first word of "$ac_prog", so it can be a program name with args.
2356set dummy $ac_prog; ac_word=$2
2357echo "$as_me:$LINENO: checking for $ac_word" >&5
2358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362 if test -n "$ac_ct_CXX"; then
2363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_ac_ct_CXX="$ac_prog"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376done
2377done
2378
2379fi
2380fi
2381ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2382if test -n "$ac_ct_CXX"; then
2383 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2384echo "${ECHO_T}$ac_ct_CXX" >&6
2385else
2386 echo "$as_me:$LINENO: result: no" >&5
2387echo "${ECHO_T}no" >&6
2388fi
2389
2390 test -n "$ac_ct_CXX" && break
2391done
2392test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2393
2394 CXX=$ac_ct_CXX
2395fi
2396
2397
2398# Provide some information about the compiler.
2399echo "$as_me:$LINENO:" \
2400 "checking for C++ compiler version" >&5
2401ac_compiler=`set X $ac_compile; echo $2`
2402{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2403 (eval $ac_compiler --version </dev/null >&5) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2407{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2408 (eval $ac_compiler -v </dev/null >&5) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2413 (eval $ac_compiler -V </dev/null >&5) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417
2418cat >conftest.$ac_ext <<_ACEOF
2419#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002420/* confdefs.h. */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002425
John Criswell7a73b802003-06-30 21:59:07 +00002426int
2427main ()
2428{
2429
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002435ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002436# Try to create an executable without -o first, disregard a.out.
2437# It will help us diagnose broken compilers, and finding out an intuition
2438# of exeext.
2439echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2440echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2441ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2442if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2443 (eval $ac_link_default) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 # Find the output, starting from the most likely. This scheme is
2448# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2449# resort.
2450
2451# Be careful to initialize this variable, since it used to be cached.
2452# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2453ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002454# b.out is created by i960 compilers.
2455for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2456do
2457 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002458 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2460 ;;
2461 conftest.$ac_ext )
2462 # This is the source file.
2463 ;;
2464 [ab].out )
2465 # We found the default executable, but exeext='' is most
2466 # certainly right.
2467 break;;
2468 *.* )
2469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2470 # FIXME: I believe we export ac_cv_exeext for Libtool,
2471 # but it would be cool to find out if it's true. Does anybody
2472 # maintain Libtool? --akim.
2473 export ac_cv_exeext
2474 break;;
2475 * )
2476 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002477 esac
2478done
2479else
2480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: C++ compiler cannot create executables
2486See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002487 { (exit 77); exit 77; }; }
2488fi
2489
2490ac_exeext=$ac_cv_exeext
2491echo "$as_me:$LINENO: result: $ac_file" >&5
2492echo "${ECHO_T}$ac_file" >&6
2493
2494# Check the compiler produces executables we can run. If not, either
2495# the compiler is broken, or we cross compile.
2496echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2497echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2498# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2499# If not cross compiling, check that we can run a simple program.
2500if test "$cross_compiling" != yes; then
2501 if { ac_try='./$ac_file'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 cross_compiling=no
2508 else
2509 if test "$cross_compiling" = maybe; then
2510 cross_compiling=yes
2511 else
2512 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002513If you meant to cross compile, use \`--host'.
2514See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002515echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002516If you meant to cross compile, use \`--host'.
2517See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002518 { (exit 1); exit 1; }; }
2519 fi
2520 fi
2521fi
2522echo "$as_me:$LINENO: result: yes" >&5
2523echo "${ECHO_T}yes" >&6
2524
John Criswell0c38eaf2003-09-10 15:17:25 +00002525rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002526ac_clean_files=$ac_clean_files_save
2527# Check the compiler produces executables we can run. If not, either
2528# the compiler is broken, or we cross compile.
2529echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2530echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2531echo "$as_me:$LINENO: result: $cross_compiling" >&5
2532echo "${ECHO_T}$cross_compiling" >&6
2533
2534echo "$as_me:$LINENO: checking for suffix of executables" >&5
2535echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2537 (eval $ac_link) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; then
2541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2542# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2543# work properly (i.e., refer to `conftest.exe'), while it won't with
2544# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002545for ac_file in conftest.exe conftest conftest.*; do
2546 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002547 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 export ac_cv_exeext
2551 break;;
2552 * ) break;;
2553 esac
2554done
2555else
John Criswell0c38eaf2003-09-10 15:17:25 +00002556 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2557See \`config.log' for more details." >&5
2558echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2559See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002560 { (exit 1); exit 1; }; }
2561fi
2562
2563rm -f conftest$ac_cv_exeext
2564echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2565echo "${ECHO_T}$ac_cv_exeext" >&6
2566
2567rm -f conftest.$ac_ext
2568EXEEXT=$ac_cv_exeext
2569ac_exeext=$EXEEXT
2570echo "$as_me:$LINENO: checking for suffix of object files" >&5
2571echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2572if test "${ac_cv_objext+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 cat >conftest.$ac_ext <<_ACEOF
2576#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002582
John Criswell7a73b802003-06-30 21:59:07 +00002583int
2584main ()
2585{
2586
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591rm -f conftest.o conftest.obj
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
2597 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2598 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2601 break;;
2602 esac
2603done
2604else
2605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002606sed 's/^/| /' conftest.$ac_ext >&5
2607
2608{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2609See \`config.log' for more details." >&5
2610echo "$as_me: error: cannot compute suffix of object files: cannot compile
2611See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002612 { (exit 1); exit 1; }; }
2613fi
2614
2615rm -f conftest.$ac_cv_objext conftest.$ac_ext
2616fi
2617echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2618echo "${ECHO_T}$ac_cv_objext" >&6
2619OBJEXT=$ac_cv_objext
2620ac_objext=$OBJEXT
2621echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2622echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2623if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 cat >conftest.$ac_ext <<_ACEOF
2627#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002633
John Criswell7a73b802003-06-30 21:59:07 +00002634int
2635main ()
2636{
2637#ifndef __GNUC__
2638 choke me
2639#endif
2640
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_compiler_gnu=yes
2658else
2659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002660sed 's/^/| /' conftest.$ac_ext >&5
2661
John Criswell7a73b802003-06-30 21:59:07 +00002662ac_compiler_gnu=no
2663fi
2664rm -f conftest.$ac_objext conftest.$ac_ext
2665ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2669echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2670GXX=`test $ac_compiler_gnu = yes && echo yes`
2671ac_test_CXXFLAGS=${CXXFLAGS+set}
2672ac_save_CXXFLAGS=$CXXFLAGS
2673CXXFLAGS="-g"
2674echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2675echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2676if test "${ac_cv_prog_cxx_g+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
2679 cat >conftest.$ac_ext <<_ACEOF
2680#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002681/* confdefs.h. */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002686
John Criswell7a73b802003-06-30 21:59:07 +00002687int
2688main ()
2689{
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_prog_cxx_g=yes
2708else
2709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002710sed 's/^/| /' conftest.$ac_ext >&5
2711
John Criswell7a73b802003-06-30 21:59:07 +00002712ac_cv_prog_cxx_g=no
2713fi
2714rm -f conftest.$ac_objext conftest.$ac_ext
2715fi
2716echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2717echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2718if test "$ac_test_CXXFLAGS" = set; then
2719 CXXFLAGS=$ac_save_CXXFLAGS
2720elif test $ac_cv_prog_cxx_g = yes; then
2721 if test "$GXX" = yes; then
2722 CXXFLAGS="-g -O2"
2723 else
2724 CXXFLAGS="-g"
2725 fi
2726else
2727 if test "$GXX" = yes; then
2728 CXXFLAGS="-O2"
2729 else
2730 CXXFLAGS=
2731 fi
2732fi
2733for ac_declaration in \
2734 ''\
2735 '#include <stdlib.h>' \
2736 'extern "C" void std::exit (int) throw (); using std::exit;' \
2737 'extern "C" void std::exit (int); using std::exit;' \
2738 'extern "C" void exit (int) throw ();' \
2739 'extern "C" void exit (int);' \
2740 'void exit (int);'
2741do
2742 cat >conftest.$ac_ext <<_ACEOF
2743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002749#include <stdlib.h>
2750$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002751int
2752main ()
2753{
2754exit (42);
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759rm -f conftest.$ac_objext
2760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 :
2772else
2773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002774sed 's/^/| /' conftest.$ac_ext >&5
2775
John Criswell7a73b802003-06-30 21:59:07 +00002776continue
2777fi
2778rm -f conftest.$ac_objext conftest.$ac_ext
2779 cat >conftest.$ac_ext <<_ACEOF
2780#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002786$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002787int
2788main ()
2789{
2790exit (42);
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795rm -f conftest.$ac_objext
2796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 break
2808else
2809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002810sed 's/^/| /' conftest.$ac_ext >&5
2811
John Criswell7a73b802003-06-30 21:59:07 +00002812fi
2813rm -f conftest.$ac_objext conftest.$ac_ext
2814done
2815rm -f conftest*
2816if test -n "$ac_declaration"; then
2817 echo '#ifdef __cplusplus' >>confdefs.h
2818 echo $ac_declaration >>confdefs.h
2819 echo '#endif' >>confdefs.h
2820fi
2821
2822ac_ext=c
2823ac_cpp='$CPP $CPPFLAGS'
2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828ac_ext=c
2829ac_cpp='$CPP $CPPFLAGS'
2830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833if test -n "$ac_tool_prefix"; then
2834 for ac_prog in gcc
2835 do
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838echo "$as_me:$LINENO: checking for $ac_word" >&5
2839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858done
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864 echo "$as_me:$LINENO: result: $CC" >&5
2865echo "${ECHO_T}$CC" >&6
2866else
2867 echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869fi
2870
2871 test -n "$CC" && break
2872 done
2873fi
2874if test -z "$CC"; then
2875 ac_ct_CC=$CC
2876 for ac_prog in gcc
2877do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
2880echo "$as_me:$LINENO: checking for $ac_word" >&5
2881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_ac_ct_CC="$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899done
2900done
2901
2902fi
2903fi
2904ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905if test -n "$ac_ct_CC"; then
2906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907echo "${ECHO_T}$ac_ct_CC" >&6
2908else
2909 echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6
2911fi
2912
2913 test -n "$ac_ct_CC" && break
2914done
2915
2916 CC=$ac_ct_CC
2917fi
2918
2919
John Criswell0c38eaf2003-09-10 15:17:25 +00002920test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2921See \`config.log' for more details." >&5
2922echo "$as_me: error: no acceptable C compiler found in \$PATH
2923See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002924 { (exit 1); exit 1; }; }
2925
2926# Provide some information about the compiler.
2927echo "$as_me:$LINENO:" \
2928 "checking for C compiler version" >&5
2929ac_compiler=`set X $ac_compile; echo $2`
2930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2931 (eval $ac_compiler --version </dev/null >&5) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2936 (eval $ac_compiler -v </dev/null >&5) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2941 (eval $ac_compiler -V </dev/null >&5) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945
2946echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2947echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2948if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951 cat >conftest.$ac_ext <<_ACEOF
2952#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002958
John Criswell7a73b802003-06-30 21:59:07 +00002959int
2960main ()
2961{
2962#ifndef __GNUC__
2963 choke me
2964#endif
2965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext
2971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 (eval $ac_try) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_compiler_gnu=yes
2983else
2984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002985sed 's/^/| /' conftest.$ac_ext >&5
2986
John Criswell7a73b802003-06-30 21:59:07 +00002987ac_compiler_gnu=no
2988fi
2989rm -f conftest.$ac_objext conftest.$ac_ext
2990ac_cv_c_compiler_gnu=$ac_compiler_gnu
2991
2992fi
2993echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2994echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2995GCC=`test $ac_compiler_gnu = yes && echo yes`
2996ac_test_CFLAGS=${CFLAGS+set}
2997ac_save_CFLAGS=$CFLAGS
2998CFLAGS="-g"
2999echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3000echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3001if test "${ac_cv_prog_cc_g+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003else
3004 cat >conftest.$ac_ext <<_ACEOF
3005#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003006/* confdefs.h. */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003011
John Criswell7a73b802003-06-30 21:59:07 +00003012int
3013main ()
3014{
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext
3021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3022 (eval $ac_compile) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 ac_cv_prog_cc_g=yes
3033else
3034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003035sed 's/^/| /' conftest.$ac_ext >&5
3036
John Criswell7a73b802003-06-30 21:59:07 +00003037ac_cv_prog_cc_g=no
3038fi
3039rm -f conftest.$ac_objext conftest.$ac_ext
3040fi
3041echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3042echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3043if test "$ac_test_CFLAGS" = set; then
3044 CFLAGS=$ac_save_CFLAGS
3045elif test $ac_cv_prog_cc_g = yes; then
3046 if test "$GCC" = yes; then
3047 CFLAGS="-g -O2"
3048 else
3049 CFLAGS="-g"
3050 fi
3051else
3052 if test "$GCC" = yes; then
3053 CFLAGS="-O2"
3054 else
3055 CFLAGS=
3056 fi
3057fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003058echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3059echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3060if test "${ac_cv_prog_cc_stdc+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 ac_cv_prog_cc_stdc=no
3064ac_save_CC=$CC
3065cat >conftest.$ac_ext <<_ACEOF
3066#line $LINENO "configure"
3067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
3072#include <stdarg.h>
3073#include <stdio.h>
3074#include <sys/types.h>
3075#include <sys/stat.h>
3076/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3077struct buf { int x; };
3078FILE * (*rcsopen) (struct buf *, struct stat *, int);
3079static char *e (p, i)
3080 char **p;
3081 int i;
3082{
3083 return p[i];
3084}
3085static char *f (char * (*g) (char **, int), char **p, ...)
3086{
3087 char *s;
3088 va_list v;
3089 va_start (v,p);
3090 s = g (p, va_arg (v,int));
3091 va_end (v);
3092 return s;
3093}
3094int test (int i, double x);
3095struct s1 {int (*f) (int a);};
3096struct s2 {int (*f) (double a);};
3097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3098int argc;
3099char **argv;
3100int
3101main ()
3102{
3103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108# Don't try gcc -ansi; that turns off useful extensions and
3109# breaks some systems' header files.
3110# AIX -qlanglvl=ansi
3111# Ultrix and OSF/1 -std1
3112# HP-UX 10.20 and later -Ae
3113# HP-UX older versions -Aa -D_HPUX_SOURCE
3114# SVR4 -Xc -D__EXTENSIONS__
3115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3116do
3117 CC="$ac_save_CC $ac_arg"
3118 rm -f conftest.$ac_objext
3119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 (eval $ac_try) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 ac_cv_prog_cc_stdc=$ac_arg
3131break
3132else
3133 echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136fi
3137rm -f conftest.$ac_objext
3138done
3139rm -f conftest.$ac_ext conftest.$ac_objext
3140CC=$ac_save_CC
3141
3142fi
3143
3144case "x$ac_cv_prog_cc_stdc" in
3145 x|xno)
3146 echo "$as_me:$LINENO: result: none needed" >&5
3147echo "${ECHO_T}none needed" >&6 ;;
3148 *)
3149 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3150echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3151 CC="$CC $ac_cv_prog_cc_stdc" ;;
3152esac
3153
John Criswell7a73b802003-06-30 21:59:07 +00003154# Some people use a C++ compiler to compile C. Since we use `exit',
3155# in C++ we need to declare it. In case someone uses the same compiler
3156# for both compiling C and C++ we need to have the C++ compiler decide
3157# the declaration of exit, since it's the most demanding environment.
3158cat >conftest.$ac_ext <<_ACEOF
3159#ifndef __cplusplus
3160 choke me
3161#endif
3162_ACEOF
3163rm -f conftest.$ac_objext
3164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 for ac_declaration in \
3176 ''\
3177 '#include <stdlib.h>' \
3178 'extern "C" void std::exit (int) throw (); using std::exit;' \
3179 'extern "C" void std::exit (int); using std::exit;' \
3180 'extern "C" void exit (int) throw ();' \
3181 'extern "C" void exit (int);' \
3182 'void exit (int);'
3183do
3184 cat >conftest.$ac_ext <<_ACEOF
3185#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003191#include <stdlib.h>
3192$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003193int
3194main ()
3195{
3196exit (42);
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203 (eval $ac_compile) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209 (eval $ac_try) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3213 :
3214else
3215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003216sed 's/^/| /' conftest.$ac_ext >&5
3217
John Criswell7a73b802003-06-30 21:59:07 +00003218continue
3219fi
3220rm -f conftest.$ac_objext conftest.$ac_ext
3221 cat >conftest.$ac_ext <<_ACEOF
3222#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003228$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003229int
3230main ()
3231{
3232exit (42);
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext
3238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 break
3250else
3251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003252sed 's/^/| /' conftest.$ac_ext >&5
3253
John Criswell7a73b802003-06-30 21:59:07 +00003254fi
3255rm -f conftest.$ac_objext conftest.$ac_ext
3256done
3257rm -f conftest*
3258if test -n "$ac_declaration"; then
3259 echo '#ifdef __cplusplus' >>confdefs.h
3260 echo $ac_declaration >>confdefs.h
3261 echo '#endif' >>confdefs.h
3262fi
3263
3264else
3265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003266sed 's/^/| /' conftest.$ac_ext >&5
3267
John Criswell7a73b802003-06-30 21:59:07 +00003268fi
3269rm -f conftest.$ac_objext conftest.$ac_ext
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3282echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3283# On Suns, sometimes $CPP names a directory.
3284if test -n "$CPP" && test -d "$CPP"; then
3285 CPP=
3286fi
3287if test -z "$CPP"; then
3288 if test "${ac_cv_prog_CPP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291 # Double quotes because CPP needs to be expanded
3292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3293 do
3294 ac_preproc_ok=false
3295for ac_c_preproc_warn_flag in '' yes
3296do
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003301 # On the NeXT, cc -E runs the code through the compiler's parser,
3302 # not just through cpp. "Syntax error" is here to catch this case.
3303 cat >conftest.$ac_ext <<_ACEOF
3304#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003305/* confdefs.h. */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h. */
3310#ifdef __STDC__
3311# include <limits.h>
3312#else
3313# include <assert.h>
3314#endif
John Criswell7a73b802003-06-30 21:59:07 +00003315 Syntax error
3316_ACEOF
3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003320 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 else
3328 ac_cpp_err=
3329 fi
3330else
3331 ac_cpp_err=yes
3332fi
3333if test -z "$ac_cpp_err"; then
3334 :
3335else
3336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003337sed 's/^/| /' conftest.$ac_ext >&5
3338
John Criswell7a73b802003-06-30 21:59:07 +00003339 # Broken: fails on valid input.
3340continue
3341fi
3342rm -f conftest.err conftest.$ac_ext
3343
3344 # OK, works on sane cases. Now check whether non-existent headers
3345 # can be detected and how.
3346 cat >conftest.$ac_ext <<_ACEOF
3347#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003353#include <ac_nonexistent.h>
3354_ACEOF
3355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003358 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003359 rm -f conftest.er1
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } >/dev/null; then
3363 if test -s conftest.err; then
3364 ac_cpp_err=$ac_c_preproc_warn_flag
3365 else
3366 ac_cpp_err=
3367 fi
3368else
3369 ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
3372 # Broken: success on invalid input.
3373continue
3374else
3375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003376sed 's/^/| /' conftest.$ac_ext >&5
3377
John Criswell7a73b802003-06-30 21:59:07 +00003378 # Passes both tests.
3379ac_preproc_ok=:
3380break
3381fi
3382rm -f conftest.err conftest.$ac_ext
3383
3384done
3385# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3386rm -f conftest.err conftest.$ac_ext
3387if $ac_preproc_ok; then
3388 break
3389fi
3390
3391 done
3392 ac_cv_prog_CPP=$CPP
3393
3394fi
3395 CPP=$ac_cv_prog_CPP
3396else
3397 ac_cv_prog_CPP=$CPP
3398fi
3399echo "$as_me:$LINENO: result: $CPP" >&5
3400echo "${ECHO_T}$CPP" >&6
3401ac_preproc_ok=false
3402for ac_c_preproc_warn_flag in '' yes
3403do
3404 # Use a header file that comes with gcc, so configuring glibc
3405 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3407 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003408 # On the NeXT, cc -E runs the code through the compiler's parser,
3409 # not just through cpp. "Syntax error" is here to catch this case.
3410 cat >conftest.$ac_ext <<_ACEOF
3411#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003412/* confdefs.h. */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h. */
3417#ifdef __STDC__
3418# include <limits.h>
3419#else
3420# include <assert.h>
3421#endif
John Criswell7a73b802003-06-30 21:59:07 +00003422 Syntax error
3423_ACEOF
3424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3426 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003427 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null; then
3432 if test -s conftest.err; then
3433 ac_cpp_err=$ac_c_preproc_warn_flag
3434 else
3435 ac_cpp_err=
3436 fi
3437else
3438 ac_cpp_err=yes
3439fi
3440if test -z "$ac_cpp_err"; then
3441 :
3442else
3443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003444sed 's/^/| /' conftest.$ac_ext >&5
3445
John Criswell7a73b802003-06-30 21:59:07 +00003446 # Broken: fails on valid input.
3447continue
3448fi
3449rm -f conftest.err conftest.$ac_ext
3450
3451 # OK, works on sane cases. Now check whether non-existent headers
3452 # can be detected and how.
3453 cat >conftest.$ac_ext <<_ACEOF
3454#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003460#include <ac_nonexistent.h>
3461_ACEOF
3462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3464 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003465 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 else
3473 ac_cpp_err=
3474 fi
3475else
3476 ac_cpp_err=yes
3477fi
3478if test -z "$ac_cpp_err"; then
3479 # Broken: success on invalid input.
3480continue
3481else
3482 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003483sed 's/^/| /' conftest.$ac_ext >&5
3484
John Criswell7a73b802003-06-30 21:59:07 +00003485 # Passes both tests.
3486ac_preproc_ok=:
3487break
3488fi
3489rm -f conftest.err conftest.$ac_ext
3490
3491done
3492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493rm -f conftest.err conftest.$ac_ext
3494if $ac_preproc_ok; then
3495 :
3496else
John Criswell0c38eaf2003-09-10 15:17:25 +00003497 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3498See \`config.log' for more details." >&5
3499echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3500See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003501 { (exit 1); exit 1; }; }
3502fi
3503
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
3510
3511if test "$GCC" != "yes"
3512then
3513 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3514echo "$as_me: error: gcc required but not found" >&2;}
3515 { (exit 1); exit 1; }; }
3516fi
3517
3518if test "$GXX" != "yes"
3519then
3520 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3521echo "$as_me: error: g++ required but not found" >&2;}
3522 { (exit 1); exit 1; }; }
3523fi
3524
John Criswellde00db22003-08-25 16:49:54 +00003525gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3526if test "$gccmajor" -lt "3"
3527then
3528 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3529echo "$as_me: error: gcc 3.x required" >&2;}
3530 { (exit 1); exit 1; }; }
3531fi
3532
John Criswell7a73b802003-06-30 21:59:07 +00003533 echo "$as_me:$LINENO: checking for GNU make" >&5
3534echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3535if test "${_cv_gnu_make_command+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538 _cv_gnu_make_command='' ;
3539 for a in "$MAKE" make gmake gnumake ; do
3540 if test -z "$a" ; then continue ; fi ;
3541 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3542 _cv_gnu_make_command=$a ;
3543 break;
3544 fi
3545 done ;
3546
3547fi
3548echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3549echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3550 if test "x$_cv_gnu_make_command" != "x" ; then
3551 ifGNUmake='' ;
3552 else
3553 ifGNUmake='#' ;
3554 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3555echo "${ECHO_T}\"Not found\"" >&6;
3556 fi
3557
3558
3559if test -z "$_cv_gnu_make_command"
3560then
3561 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3562echo "$as_me: error: GNU Make required but not found" >&2;}
3563 { (exit 1); exit 1; }; }
3564fi
3565
3566
3567echo "$as_me:$LINENO: checking " >&5
3568echo $ECHO_N "checking ... $ECHO_C" >&6
3569if test "${ac_cv_has_flex+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572 for ac_prog in flex lex
3573do
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575set dummy $ac_prog; ac_word=$2
3576echo "$as_me:$LINENO: checking for $ac_word" >&5
3577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578if test "${ac_cv_prog_LEX+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 if test -n "$LEX"; then
3582 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_LEX="$ac_prog"
3592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595done
3596done
3597
3598fi
3599fi
3600LEX=$ac_cv_prog_LEX
3601if test -n "$LEX"; then
3602 echo "$as_me:$LINENO: result: $LEX" >&5
3603echo "${ECHO_T}$LEX" >&6
3604else
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607fi
3608
3609 test -n "$LEX" && break
3610done
3611test -n "$LEX" || LEX=":"
3612
3613if test -z "$LEXLIB"
3614then
3615 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3616echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3617if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620 ac_check_lib_save_LIBS=$LIBS
3621LIBS="-lfl $LIBS"
3622cat >conftest.$ac_ext <<_ACEOF
3623#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003629
3630/* Override any gcc2 internal prototype to avoid an error. */
3631#ifdef __cplusplus
3632extern "C"
3633#endif
3634/* We use char because int might match the return type of a gcc2
3635 builtin and then its argument prototype would still apply. */
3636char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003637int
3638main ()
3639{
3640yywrap ();
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext conftest$ac_exeext
3646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest$ac_exeext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_cv_lib_fl_yywrap=yes
3658else
3659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003660sed 's/^/| /' conftest.$ac_ext >&5
3661
John Criswell7a73b802003-06-30 21:59:07 +00003662ac_cv_lib_fl_yywrap=no
3663fi
3664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3665LIBS=$ac_check_lib_save_LIBS
3666fi
3667echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3668echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3669if test $ac_cv_lib_fl_yywrap = yes; then
3670 LEXLIB="-lfl"
3671else
3672 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3673echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3674if test "${ac_cv_lib_l_yywrap+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677 ac_check_lib_save_LIBS=$LIBS
3678LIBS="-ll $LIBS"
3679cat >conftest.$ac_ext <<_ACEOF
3680#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003686
3687/* Override any gcc2 internal prototype to avoid an error. */
3688#ifdef __cplusplus
3689extern "C"
3690#endif
3691/* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3693char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003694int
3695main ()
3696{
3697yywrap ();
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702rm -f conftest.$ac_objext conftest$ac_exeext
3703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704 (eval $ac_link) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -s conftest$ac_exeext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_lib_l_yywrap=yes
3715else
3716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003717sed 's/^/| /' conftest.$ac_ext >&5
3718
John Criswell7a73b802003-06-30 21:59:07 +00003719ac_cv_lib_l_yywrap=no
3720fi
3721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722LIBS=$ac_check_lib_save_LIBS
3723fi
3724echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3725echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3726if test $ac_cv_lib_l_yywrap = yes; then
3727 LEXLIB="-ll"
3728fi
3729
3730fi
3731
3732fi
3733
3734if test "x$LEX" != "x:"; then
3735 echo "$as_me:$LINENO: checking lex output file root" >&5
3736echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3737if test "${ac_cv_prog_lex_root+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 # The minimal lex program is just a single line: %%. But some broken lexes
3741# (Solaris, I think it was) want two %% lines, so accommodate them.
3742cat >conftest.l <<_ACEOF
3743%%
3744%%
3745_ACEOF
3746{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3747 (eval $LEX conftest.l) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }
3751if test -f lex.yy.c; then
3752 ac_cv_prog_lex_root=lex.yy
3753elif test -f lexyy.c; then
3754 ac_cv_prog_lex_root=lexyy
3755else
3756 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3757echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3758 { (exit 1); exit 1; }; }
3759fi
3760fi
3761echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3762echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3763rm -f conftest.l
3764LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3765
3766echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3767echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3768if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 # POSIX says lex can declare yytext either as a pointer or an array; the
3772# default is implementation-dependent. Figure out which it is, since
3773# not all implementations provide the %pointer and %array declarations.
3774ac_cv_prog_lex_yytext_pointer=no
3775echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3776ac_save_LIBS=$LIBS
3777LIBS="$LIBS $LEXLIB"
3778cat >conftest.$ac_ext <<_ACEOF
3779`cat $LEX_OUTPUT_ROOT.c`
3780_ACEOF
3781rm -f conftest.$ac_objext conftest$ac_exeext
3782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_prog_lex_yytext_pointer=yes
3794else
3795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003796sed 's/^/| /' conftest.$ac_ext >&5
3797
John Criswell7a73b802003-06-30 21:59:07 +00003798fi
3799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3800LIBS=$ac_save_LIBS
3801rm -f "${LEX_OUTPUT_ROOT}.c"
3802
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3805echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3806if test $ac_cv_prog_lex_yytext_pointer = yes; then
3807
3808cat >>confdefs.h <<\_ACEOF
3809#define YYTEXT_POINTER 1
3810_ACEOF
3811
3812fi
3813
3814fi
3815
3816fi
3817echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3818echo "${ECHO_T}$ac_cv_has_flex" >&6
3819if test "$LEX" != "flex"; then
3820 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3821echo "$as_me: error: flex not found but required" >&2;}
3822 { (exit 1); exit 1; }; }
3823fi
3824
3825echo "$as_me:$LINENO: checking " >&5
3826echo $ECHO_N "checking ... $ECHO_C" >&6
3827if test "${ac_cv_has_bison+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 for ac_prog in 'bison -y' byacc
3831do
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833set dummy $ac_prog; ac_word=$2
3834echo "$as_me:$LINENO: checking for $ac_word" >&5
3835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836if test "${ac_cv_prog_YACC+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839 if test -n "$YACC"; then
3840 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3841else
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH
3844do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_YACC="$ac_prog"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853done
3854done
3855
3856fi
3857fi
3858YACC=$ac_cv_prog_YACC
3859if test -n "$YACC"; then
3860 echo "$as_me:$LINENO: result: $YACC" >&5
3861echo "${ECHO_T}$YACC" >&6
3862else
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865fi
3866
3867 test -n "$YACC" && break
3868done
3869test -n "$YACC" || YACC="yacc"
3870
3871
3872fi
3873echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3874echo "${ECHO_T}$ac_cv_has_bison" >&6
3875if test "$YACC" != "bison -y"; then
3876 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3877echo "$as_me: error: bison not found but required" >&2;}
3878 { (exit 1); exit 1; }; }
3879else
3880 YACC=bison
3881
3882fi
3883
3884
3885# Check whether --enable-shared or --disable-shared was given.
3886if test "${enable_shared+set}" = set; then
3887 enableval="$enable_shared"
3888 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003889 case $enableval in
3890 yes) enable_shared=yes ;;
3891 no) enable_shared=no ;;
3892 *)
3893 enable_shared=no
3894 # Look at the argument we got. We use all the common list separators.
3895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3896 for pkg in $enableval; do
3897 IFS="$lt_save_ifs"
3898 if test "X$pkg" = "X$p"; then
3899 enable_shared=yes
3900 fi
3901 done
3902 IFS="$lt_save_ifs"
3903 ;;
3904 esac
John Criswell7a73b802003-06-30 21:59:07 +00003905else
3906 enable_shared=yes
3907fi;
John Criswell47fdd832003-07-14 16:52:07 +00003908
John Criswell7a73b802003-06-30 21:59:07 +00003909# Check whether --enable-static or --disable-static was given.
3910if test "${enable_static+set}" = set; then
3911 enableval="$enable_static"
3912 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003913 case $enableval in
3914 yes) enable_static=yes ;;
3915 no) enable_static=no ;;
3916 *)
3917 enable_static=no
3918 # Look at the argument we got. We use all the common list separators.
3919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3920 for pkg in $enableval; do
3921 IFS="$lt_save_ifs"
3922 if test "X$pkg" = "X$p"; then
3923 enable_static=yes
3924 fi
3925 done
3926 IFS="$lt_save_ifs"
3927 ;;
3928 esac
John Criswell7a73b802003-06-30 21:59:07 +00003929else
3930 enable_static=yes
3931fi;
John Criswell47fdd832003-07-14 16:52:07 +00003932
John Criswell7a73b802003-06-30 21:59:07 +00003933# Check whether --enable-fast-install or --disable-fast-install was given.
3934if test "${enable_fast_install+set}" = set; then
3935 enableval="$enable_fast_install"
3936 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003937 case $enableval in
3938 yes) enable_fast_install=yes ;;
3939 no) enable_fast_install=no ;;
3940 *)
3941 enable_fast_install=no
3942 # Look at the argument we got. We use all the common list separators.
3943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3944 for pkg in $enableval; do
3945 IFS="$lt_save_ifs"
3946 if test "X$pkg" = "X$p"; then
3947 enable_fast_install=yes
3948 fi
3949 done
3950 IFS="$lt_save_ifs"
3951 ;;
3952 esac
John Criswell7a73b802003-06-30 21:59:07 +00003953else
3954 enable_fast_install=yes
3955fi;
John Criswell47fdd832003-07-14 16:52:07 +00003956
3957echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3958echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3959if test "${lt_cv_path_SED+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962 # Loop through the user's path and test for sed and gsed.
3963# Then use that list of sed's as ones to test for truncation.
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for lt_ac_prog in sed gsed; do
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3972 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3973 fi
3974 done
3975 done
3976done
3977lt_ac_max=0
3978lt_ac_count=0
3979# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3980# along with /bin/sed that truncates output.
3981for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3982 test ! -f $lt_ac_sed && break
3983 cat /dev/null > conftest.in
3984 lt_ac_count=0
3985 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3986 # Check for GNU sed and select it if it is found.
3987 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3988 lt_cv_path_SED=$lt_ac_sed
3989 break
3990 fi
3991 while true; do
3992 cat conftest.in conftest.in >conftest.tmp
3993 mv conftest.tmp conftest.in
3994 cp conftest.in conftest.nl
3995 echo >>conftest.nl
3996 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3997 cmp -s conftest.out conftest.nl || break
3998 # 10000 chars as input seems more than enough
3999 test $lt_ac_count -gt 10 && break
4000 lt_ac_count=`expr $lt_ac_count + 1`
4001 if test $lt_ac_count -gt $lt_ac_max; then
4002 lt_ac_max=$lt_ac_count
4003 lt_cv_path_SED=$lt_ac_sed
4004 fi
4005 done
4006done
4007SED=$lt_cv_path_SED
4008
John Criswell7a73b802003-06-30 21:59:07 +00004009fi
4010
John Criswell47fdd832003-07-14 16:52:07 +00004011echo "$as_me:$LINENO: result: $SED" >&5
4012echo "${ECHO_T}$SED" >&6
4013
4014echo "$as_me:$LINENO: checking for egrep" >&5
4015echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4016if test "${ac_cv_prog_egrep+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4020 then ac_cv_prog_egrep='grep -E'
4021 else ac_cv_prog_egrep='egrep'
4022 fi
4023fi
4024echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4025echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4026 EGREP=$ac_cv_prog_egrep
4027
4028
John Criswell7a73b802003-06-30 21:59:07 +00004029
4030# Check whether --with-gnu-ld or --without-gnu-ld was given.
4031if test "${with_gnu_ld+set}" = set; then
4032 withval="$with_gnu_ld"
4033 test "$withval" = no || with_gnu_ld=yes
4034else
4035 with_gnu_ld=no
4036fi;
4037ac_prog=ld
4038if test "$GCC" = yes; then
4039 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004040 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4041echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004042 case $host in
4043 *-*-mingw*)
4044 # gcc leaves a trailing carriage return which upsets mingw
4045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4046 *)
4047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4048 esac
4049 case $ac_prog in
4050 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004051 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004052 re_direlt='/[^/][^/]*/\.\./'
4053 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004054 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004055 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004056 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004057 done
4058 test -z "$LD" && LD="$ac_prog"
4059 ;;
4060 "")
4061 # If it fails, then pretend we aren't using GCC.
4062 ac_prog=ld
4063 ;;
4064 *)
4065 # If it is relative, then search for the first ld in PATH.
4066 with_gnu_ld=unknown
4067 ;;
4068 esac
4069elif test "$with_gnu_ld" = yes; then
4070 echo "$as_me:$LINENO: checking for GNU ld" >&5
4071echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4072else
4073 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4074echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4075fi
4076if test "${lt_cv_path_LD+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004081 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004082 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004083 test -z "$ac_dir" && ac_dir=.
4084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4085 lt_cv_path_LD="$ac_dir/$ac_prog"
4086 # Check to see if the program is GNU ld. I'd rather use --version,
4087 # but apparently some GNU ld's only accept -v.
4088 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4090 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004091 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004092 ;;
4093 *)
John Criswell7a73b802003-06-30 21:59:07 +00004094 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004095 ;;
4096 esac
John Criswell7a73b802003-06-30 21:59:07 +00004097 fi
4098 done
John Criswell47fdd832003-07-14 16:52:07 +00004099 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004100else
4101 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4102fi
4103fi
4104
4105LD="$lt_cv_path_LD"
4106if test -n "$LD"; then
4107 echo "$as_me:$LINENO: result: $LD" >&5
4108echo "${ECHO_T}$LD" >&6
4109else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112fi
4113test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4114echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4115 { (exit 1); exit 1; }; }
4116echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4117echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4118if test "${lt_cv_prog_gnu_ld+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004122case `"$LD" -v 2>&1 </dev/null` in
4123*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004124 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004125 ;;
4126*)
John Criswell7a73b802003-06-30 21:59:07 +00004127 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004128 ;;
4129esac
John Criswell7a73b802003-06-30 21:59:07 +00004130fi
4131echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4132echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4133with_gnu_ld=$lt_cv_prog_gnu_ld
4134
4135
4136echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4137echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4138if test "${lt_cv_ld_reload_flag+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141 lt_cv_ld_reload_flag='-r'
4142fi
4143echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4144echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4145reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004146case $reload_flag in
4147"" | " "*) ;;
4148*) reload_flag=" $reload_flag" ;;
4149esac
4150reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004151
4152echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4153echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4154if test "${lt_cv_path_NM+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157 if test -n "$NM"; then
4158 # Let the user override the test.
4159 lt_cv_path_NM="$NM"
4160else
John Criswell47fdd832003-07-14 16:52:07 +00004161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004162 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004163 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004164 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004165 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4166 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004167 # Check to see if the nm accepts a BSD-compat flag.
4168 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4169 # nm: unknown option "B" ignored
4170 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004171 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4172 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004173 lt_cv_path_NM="$tmp_nm -B"
4174 break
John Criswell47fdd832003-07-14 16:52:07 +00004175 ;;
4176 *)
4177 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4178 */dev/null*)
4179 lt_cv_path_NM="$tmp_nm -p"
4180 break
4181 ;;
4182 *)
4183 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4184 continue # so that we can try to find one that supports BSD flags
4185 ;;
4186 esac
4187 esac
John Criswell7a73b802003-06-30 21:59:07 +00004188 fi
4189 done
John Criswell47fdd832003-07-14 16:52:07 +00004190 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004191 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4192fi
4193fi
John Criswell47fdd832003-07-14 16:52:07 +00004194echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4195echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004196NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004197
4198echo "$as_me:$LINENO: checking whether ln -s works" >&5
4199echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4200LN_S=$as_ln_s
4201if test "$LN_S" = "ln -s"; then
4202 echo "$as_me:$LINENO: result: yes" >&5
4203echo "${ECHO_T}yes" >&6
4204else
4205 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4206echo "${ECHO_T}no, using $LN_S" >&6
4207fi
4208
John Criswell47fdd832003-07-14 16:52:07 +00004209echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4210echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004211if test "${lt_cv_deplibs_check_method+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214 lt_cv_file_magic_cmd='$MAGIC_CMD'
4215lt_cv_file_magic_test_file=
4216lt_cv_deplibs_check_method='unknown'
4217# Need to set the preceding variable on all platforms that support
4218# interlibrary dependencies.
4219# 'none' -- dependencies not supported.
4220# `unknown' -- same as none, but documents that we really don't know.
4221# 'pass_all' -- all dependencies passed with no checks.
4222# 'test_compile' -- check by making test program.
4223# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004224# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004225# If you have `file' or equivalent on your system and you're not sure
4226# whether `pass_all' will *always* work, you probably want this one.
4227
4228case $host_os in
4229aix4* | aix5*)
4230 lt_cv_deplibs_check_method=pass_all
4231 ;;
4232
4233beos*)
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237bsdi4*)
4238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4239 lt_cv_file_magic_cmd='/usr/bin/file -L'
4240 lt_cv_file_magic_test_file=/shlib/libc.so
4241 ;;
4242
4243cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004244 # win32_libid is a shell function defined in ltmain.sh
4245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4246 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004247 ;;
4248
4249darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004250 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004251 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4252 lt_cv_file_magic_cmd='/usr/bin/file -L'
4253 case "$host_os" in
4254 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004255 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004256 ;;
4257 *) # Darwin 1.3 on
4258 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4259 ;;
4260 esac
John Criswell47fdd832003-07-14 16:52:07 +00004261 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004262 ;;
4263
4264freebsd*)
4265 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4266 case $host_cpu in
4267 i*86 )
4268 # Not sure whether the presence of OpenBSD here was a mistake.
4269 # Let's accept both of them until this is cleared up.
4270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4271 lt_cv_file_magic_cmd=/usr/bin/file
4272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4273 ;;
4274 esac
4275 else
4276 lt_cv_deplibs_check_method=pass_all
4277 fi
4278 ;;
4279
4280gnu*)
4281 lt_cv_deplibs_check_method=pass_all
4282 ;;
4283
John Criswell47fdd832003-07-14 16:52:07 +00004284hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004285 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004286 case "$host_cpu" in
4287 ia64*)
4288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4289 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4290 ;;
4291 hppa*64*)
4292 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]'
4293 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4294 ;;
4295 *)
4296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4297 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4298 ;;
4299 esac
John Criswell7a73b802003-06-30 21:59:07 +00004300 ;;
4301
John Criswell47fdd832003-07-14 16:52:07 +00004302irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004303 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004304 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004305 # this will be overridden with pass_all, but let us keep it just in case
4306 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4307 ;;
4308 *)
4309 case $LD in
4310 *-32|*"-32 ") libmagic=32-bit;;
4311 *-n32|*"-n32 ") libmagic=N32;;
4312 *-64|*"-64 ") libmagic=64-bit;;
4313 *) libmagic=never-match;;
4314 esac
4315 # this will be overridden with pass_all, but let us keep it just in case
4316 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4317 ;;
4318 esac
4319 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322
4323# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004324linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004325 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004326 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004327 lt_cv_deplibs_check_method=pass_all ;;
4328 *)
4329 # glibc up to 2.1.1 does not perform some relocations on ARM
4330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4331 esac
4332 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4333 ;;
4334
4335netbsd*)
4336 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004338 else
John Criswell47fdd832003-07-14 16:52:07 +00004339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004340 fi
4341 ;;
4342
4343newos6*)
4344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4345 lt_cv_file_magic_cmd=/usr/bin/file
4346 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4347 ;;
4348
John Criswell47fdd832003-07-14 16:52:07 +00004349nto-qnx)
4350 lt_cv_deplibs_check_method=unknown
4351 ;;
4352
John Criswell7a73b802003-06-30 21:59:07 +00004353openbsd*)
4354 lt_cv_file_magic_cmd=/usr/bin/file
4355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4358 else
4359 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4360 fi
4361 ;;
4362
4363osf3* | osf4* | osf5*)
4364 # this will be overridden with pass_all, but let us keep it just in case
4365 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4366 lt_cv_file_magic_test_file=/shlib/libc.so
4367 lt_cv_deplibs_check_method=pass_all
4368 ;;
4369
4370sco3.2v5*)
4371 lt_cv_deplibs_check_method=pass_all
4372 ;;
4373
4374solaris*)
4375 lt_cv_deplibs_check_method=pass_all
4376 lt_cv_file_magic_test_file=/lib/libc.so
4377 ;;
4378
John Criswell7a73b802003-06-30 21:59:07 +00004379sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4380 case $host_vendor in
4381 motorola)
4382 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]'
4383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4384 ;;
4385 ncr)
4386 lt_cv_deplibs_check_method=pass_all
4387 ;;
4388 sequent)
4389 lt_cv_file_magic_cmd='/bin/file'
4390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4391 ;;
4392 sni)
4393 lt_cv_file_magic_cmd='/bin/file'
4394 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4395 lt_cv_file_magic_test_file=/lib/libc.so
4396 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004397 siemens)
4398 lt_cv_deplibs_check_method=pass_all
4399 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004400 esac
4401 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004402
4403sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4404 lt_cv_deplibs_check_method=pass_all
4405 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004406esac
4407
4408fi
4409echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4410echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4411file_magic_cmd=$lt_cv_file_magic_cmd
4412deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004413test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004414
4415
4416
4417
John Criswell47fdd832003-07-14 16:52:07 +00004418# If no C compiler was specified, use CC.
4419LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004420
John Criswell47fdd832003-07-14 16:52:07 +00004421# Allow CC to be a program name with arguments.
4422compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004423
John Criswell47fdd832003-07-14 16:52:07 +00004424# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4425if test "${enable_libtool_lock+set}" = set; then
4426 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004427
John Criswell47fdd832003-07-14 16:52:07 +00004428fi;
4429test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004430
John Criswell47fdd832003-07-14 16:52:07 +00004431# Some flags need to be propagated to the compiler or linker for good
4432# libtool support.
4433case $host in
4434ia64-*-hpux*)
4435 # Find out which ABI we are using.
4436 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004442 case `/usr/bin/file conftest.$ac_objext` in
4443 *ELF-32*)
4444 HPUX_IA64_MODE="32"
4445 ;;
4446 *ELF-64*)
4447 HPUX_IA64_MODE="64"
4448 ;;
4449 esac
4450 fi
4451 rm -rf conftest*
4452 ;;
4453*-*-irix6*)
4454 # Find out which ABI we are using.
Misha Brukman811ce9f2003-11-12 22:16:51 +00004455 echo '#line 4455 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004460 (exit $ac_status); }; then
4461 if test "$lt_cv_prog_gnu_ld" = yes; then
4462 case `/usr/bin/file conftest.$ac_objext` in
4463 *32-bit*)
4464 LD="${LD-ld} -melf32bsmip"
4465 ;;
4466 *N32*)
4467 LD="${LD-ld} -melf32bmipn32"
4468 ;;
4469 *64-bit*)
4470 LD="${LD-ld} -melf64bmip"
4471 ;;
4472 esac
4473 else
4474 case `/usr/bin/file conftest.$ac_objext` in
4475 *32-bit*)
4476 LD="${LD-ld} -32"
4477 ;;
4478 *N32*)
4479 LD="${LD-ld} -n32"
4480 ;;
4481 *64-bit*)
4482 LD="${LD-ld} -64"
4483 ;;
4484 esac
4485 fi
4486 fi
4487 rm -rf conftest*
4488 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004489
John Criswell47fdd832003-07-14 16:52:07 +00004490x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4491 # Find out which ABI we are using.
4492 echo 'int i;' > conftest.$ac_ext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494 (eval $ac_compile) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; then
4498 case "`/usr/bin/file conftest.o`" in
4499 *32-bit*)
4500 case $host in
4501 x86_64-*linux*)
4502 LD="${LD-ld} -m elf_i386"
4503 ;;
4504 ppc64-*linux*)
4505 LD="${LD-ld} -m elf32ppclinux"
4506 ;;
4507 s390x-*linux*)
4508 LD="${LD-ld} -m elf_s390"
4509 ;;
4510 sparc64-*linux*)
4511 LD="${LD-ld} -m elf32_sparc"
4512 ;;
4513 esac
4514 ;;
4515 *64-bit*)
4516 case $host in
4517 x86_64-*linux*)
4518 LD="${LD-ld} -m elf_x86_64"
4519 ;;
4520 ppc*-*linux*|powerpc*-*linux*)
4521 LD="${LD-ld} -m elf64ppc"
4522 ;;
4523 s390*-*linux*)
4524 LD="${LD-ld} -m elf64_s390"
4525 ;;
4526 sparc*-*linux*)
4527 LD="${LD-ld} -m elf64_sparc"
4528 ;;
4529 esac
4530 ;;
4531 esac
4532 fi
4533 rm -rf conftest*
4534 ;;
4535
4536*-*-sco3.2v5*)
4537 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4538 SAVE_CFLAGS="$CFLAGS"
4539 CFLAGS="$CFLAGS -belf"
4540 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4541echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4542if test "${lt_cv_cc_needs_belf+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545 ac_ext=c
4546ac_cpp='$CPP $CPPFLAGS'
4547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551 cat >conftest.$ac_ext <<_ACEOF
4552#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004558
John Criswell47fdd832003-07-14 16:52:07 +00004559int
4560main ()
John Criswell7a73b802003-06-30 21:59:07 +00004561{
John Criswell7a73b802003-06-30 21:59:07 +00004562
John Criswell47fdd832003-07-14 16:52:07 +00004563 ;
4564 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004565}
John Criswell47fdd832003-07-14 16:52:07 +00004566_ACEOF
4567rm -f conftest.$ac_objext conftest$ac_exeext
4568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004569 (eval $ac_link) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004572 (exit $ac_status); } &&
4573 { ac_try='test -s conftest$ac_exeext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004580else
John Criswell47fdd832003-07-14 16:52:07 +00004581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004582sed 's/^/| /' conftest.$ac_ext >&5
4583
John Criswell47fdd832003-07-14 16:52:07 +00004584lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004585fi
John Criswell47fdd832003-07-14 16:52:07 +00004586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4587 ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592
John Criswell7a73b802003-06-30 21:59:07 +00004593fi
John Criswell47fdd832003-07-14 16:52:07 +00004594echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4595echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4596 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4597 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4598 CFLAGS="$SAVE_CFLAGS"
4599 fi
4600 ;;
4601
4602esac
4603
4604need_locks="$enable_libtool_lock"
4605
John Criswell7a73b802003-06-30 21:59:07 +00004606
4607
4608echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4609echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4610if test "${ac_cv_header_stdc+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613 cat >conftest.$ac_ext <<_ACEOF
4614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004615/* confdefs.h. */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004620#include <stdlib.h>
4621#include <stdarg.h>
4622#include <string.h>
4623#include <float.h>
4624
John Criswell0c38eaf2003-09-10 15:17:25 +00004625int
4626main ()
4627{
4628
4629 ;
4630 return 0;
4631}
John Criswell7a73b802003-06-30 21:59:07 +00004632_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004633rm -f conftest.$ac_objext
4634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004636 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004638 (exit $ac_status); } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004645 ac_cv_header_stdc=yes
4646else
4647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004651fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004652rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004653
4654if test $ac_cv_header_stdc = yes; then
4655 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656 cat >conftest.$ac_ext <<_ACEOF
4657#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004658/* confdefs.h. */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004663#include <string.h>
4664
4665_ACEOF
4666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004667 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004668 :
4669else
4670 ac_cv_header_stdc=no
4671fi
4672rm -f conftest*
4673
4674fi
4675
4676if test $ac_cv_header_stdc = yes; then
4677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4678 cat >conftest.$ac_ext <<_ACEOF
4679#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004680/* confdefs.h. */
4681_ACEOF
4682cat confdefs.h >>conftest.$ac_ext
4683cat >>conftest.$ac_ext <<_ACEOF
4684/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004685#include <stdlib.h>
4686
4687_ACEOF
4688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004689 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004690 :
4691else
4692 ac_cv_header_stdc=no
4693fi
4694rm -f conftest*
4695
4696fi
4697
4698if test $ac_cv_header_stdc = yes; then
4699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4700 if test "$cross_compiling" = yes; then
4701 :
4702else
4703 cat >conftest.$ac_ext <<_ACEOF
4704#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004710#include <ctype.h>
4711#if ((' ' & 0x0FF) == 0x020)
4712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4714#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004715# define ISLOWER(c) \
4716 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004717 || ('j' <= (c) && (c) <= 'r') \
4718 || ('s' <= (c) && (c) <= 'z'))
4719# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4720#endif
4721
4722#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4723int
4724main ()
4725{
4726 int i;
4727 for (i = 0; i < 256; i++)
4728 if (XOR (islower (i), ISLOWER (i))
4729 || toupper (i) != TOUPPER (i))
4730 exit(2);
4731 exit (0);
4732}
4733_ACEOF
4734rm -f conftest$ac_exeext
4735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 :
4746else
4747 echo "$as_me: program exited with status $ac_status" >&5
4748echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004749sed 's/^/| /' conftest.$ac_ext >&5
4750
John Criswell7a73b802003-06-30 21:59:07 +00004751( exit $ac_status )
4752ac_cv_header_stdc=no
4753fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004754rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004755fi
4756fi
4757fi
4758echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4759echo "${ECHO_T}$ac_cv_header_stdc" >&6
4760if test $ac_cv_header_stdc = yes; then
4761
4762cat >>confdefs.h <<\_ACEOF
4763#define STDC_HEADERS 1
4764_ACEOF
4765
4766fi
4767
4768# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4779 inttypes.h stdint.h unistd.h
4780do
4781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782echo "$as_me:$LINENO: checking for $ac_header" >&5
4783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787 cat >conftest.$ac_ext <<_ACEOF
4788#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004794$ac_includes_default
4795
4796#include <$ac_header>
4797_ACEOF
4798rm -f conftest.$ac_objext
4799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 eval "$as_ac_Header=yes"
4811else
4812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004813sed 's/^/| /' conftest.$ac_ext >&5
4814
John Criswell7a73b802003-06-30 21:59:07 +00004815eval "$as_ac_Header=no"
4816fi
4817rm -f conftest.$ac_objext conftest.$ac_ext
4818fi
4819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4821if test `eval echo '${'$as_ac_Header'}'` = yes; then
4822 cat >>confdefs.h <<_ACEOF
4823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4824_ACEOF
4825
4826fi
4827
4828done
4829
4830
4831
4832for ac_header in dlfcn.h
4833do
4834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840fi
4841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843else
4844 # Is the header compilable?
4845echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847cat >conftest.$ac_ext <<_ACEOF
4848#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004849/* confdefs.h. */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004854$ac_includes_default
4855#include <$ac_header>
4856_ACEOF
4857rm -f conftest.$ac_objext
4858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler=yes
4870else
4871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004872sed 's/^/| /' conftest.$ac_ext >&5
4873
John Criswell7a73b802003-06-30 21:59:07 +00004874ac_header_compiler=no
4875fi
4876rm -f conftest.$ac_objext conftest.$ac_ext
4877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878echo "${ECHO_T}$ac_header_compiler" >&6
4879
4880# Is the header present?
4881echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4883cat >conftest.$ac_ext <<_ACEOF
4884#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004885/* confdefs.h. */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004890#include <$ac_header>
4891_ACEOF
4892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4894 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004895 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null; then
4900 if test -s conftest.err; then
4901 ac_cpp_err=$ac_c_preproc_warn_flag
4902 else
4903 ac_cpp_err=
4904 fi
4905else
4906 ac_cpp_err=yes
4907fi
4908if test -z "$ac_cpp_err"; then
4909 ac_header_preproc=yes
4910else
4911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004912sed 's/^/| /' conftest.$ac_ext >&5
4913
John Criswell7a73b802003-06-30 21:59:07 +00004914 ac_header_preproc=no
4915fi
4916rm -f conftest.err conftest.$ac_ext
4917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918echo "${ECHO_T}$ac_header_preproc" >&6
4919
4920# So? What about this header?
4921case $ac_header_compiler:$ac_header_preproc in
4922 yes:no )
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4927 (
4928 cat <<\_ASBOX
4929## ------------------------------------ ##
4930## Report this to bug-autoconf@gnu.org. ##
4931## ------------------------------------ ##
4932_ASBOX
4933 ) |
4934 sed "s/^/$as_me: WARNING: /" >&2
4935 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004936 no:yes )
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4943 (
4944 cat <<\_ASBOX
4945## ------------------------------------ ##
4946## Report this to bug-autoconf@gnu.org. ##
4947## ------------------------------------ ##
4948_ASBOX
4949 ) |
4950 sed "s/^/$as_me: WARNING: /" >&2
4951 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004952esac
4953echo "$as_me:$LINENO: checking for $ac_header" >&5
4954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 eval "$as_ac_Header=$ac_header_preproc"
4959fi
4960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4962
4963fi
4964if test `eval echo '${'$as_ac_Header'}'` = yes; then
4965 cat >>confdefs.h <<_ACEOF
4966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967_ACEOF
4968
4969fi
4970
4971done
4972
John Criswell47fdd832003-07-14 16:52:07 +00004973ac_ext=cc
4974ac_cpp='$CXXCPP $CPPFLAGS'
4975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4978echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4979echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4980if test -z "$CXXCPP"; then
4981 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
John Criswell47fdd832003-07-14 16:52:07 +00004984 # Double quotes because CXXCPP needs to be expanded
4985 for CXXCPP in "$CXX -E" "/lib/cpp"
4986 do
4987 ac_preproc_ok=false
4988for ac_cxx_preproc_warn_flag in '' yes
4989do
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat >conftest.$ac_ext <<_ACEOF
4997#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003#ifdef __STDC__
5004# include <limits.h>
5005#else
5006# include <assert.h>
5007#endif
John Criswell47fdd832003-07-14 16:52:07 +00005008 Syntax error
5009_ACEOF
5010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5012 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005013 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev/null; then
5018 if test -s conftest.err; then
5019 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00005020 else
John Criswell47fdd832003-07-14 16:52:07 +00005021 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00005022 fi
John Criswell47fdd832003-07-14 16:52:07 +00005023else
5024 ac_cpp_err=yes
5025fi
5026if test -z "$ac_cpp_err"; then
5027 :
5028else
5029 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005030sed 's/^/| /' conftest.$ac_ext >&5
5031
John Criswell47fdd832003-07-14 16:52:07 +00005032 # Broken: fails on valid input.
5033continue
5034fi
5035rm -f conftest.err conftest.$ac_ext
5036
5037 # OK, works on sane cases. Now check whether non-existent headers
5038 # can be detected and how.
5039 cat >conftest.$ac_ext <<_ACEOF
5040#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005041/* confdefs.h. */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5045/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005046#include <ac_nonexistent.h>
5047_ACEOF
5048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005051 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_cxx_preproc_warn_flag
5058 else
5059 ac_cpp_err=
5060 fi
5061else
5062 ac_cpp_err=yes
5063fi
5064if test -z "$ac_cpp_err"; then
5065 # Broken: success on invalid input.
5066continue
5067else
5068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005069sed 's/^/| /' conftest.$ac_ext >&5
5070
John Criswell47fdd832003-07-14 16:52:07 +00005071 # Passes both tests.
5072ac_preproc_ok=:
5073break
5074fi
5075rm -f conftest.err conftest.$ac_ext
5076
5077done
5078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079rm -f conftest.err conftest.$ac_ext
5080if $ac_preproc_ok; then
5081 break
John Criswell7a73b802003-06-30 21:59:07 +00005082fi
5083
John Criswell47fdd832003-07-14 16:52:07 +00005084 done
5085 ac_cv_prog_CXXCPP=$CXXCPP
5086
5087fi
5088 CXXCPP=$ac_cv_prog_CXXCPP
5089else
5090 ac_cv_prog_CXXCPP=$CXXCPP
5091fi
5092echo "$as_me:$LINENO: result: $CXXCPP" >&5
5093echo "${ECHO_T}$CXXCPP" >&6
5094ac_preproc_ok=false
5095for ac_cxx_preproc_warn_flag in '' yes
5096do
5097 # Use a header file that comes with gcc, so configuring glibc
5098 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005101 # On the NeXT, cc -E runs the code through the compiler's parser,
5102 # not just through cpp. "Syntax error" is here to catch this case.
5103 cat >conftest.$ac_ext <<_ACEOF
5104#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
5110#ifdef __STDC__
5111# include <limits.h>
5112#else
5113# include <assert.h>
5114#endif
John Criswell47fdd832003-07-14 16:52:07 +00005115 Syntax error
5116_ACEOF
5117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5119 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005120 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } >/dev/null; then
5125 if test -s conftest.err; then
5126 ac_cpp_err=$ac_cxx_preproc_warn_flag
5127 else
5128 ac_cpp_err=
5129 fi
5130else
5131 ac_cpp_err=yes
5132fi
5133if test -z "$ac_cpp_err"; then
5134 :
5135else
5136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005137sed 's/^/| /' conftest.$ac_ext >&5
5138
John Criswell47fdd832003-07-14 16:52:07 +00005139 # Broken: fails on valid input.
5140continue
5141fi
5142rm -f conftest.err conftest.$ac_ext
5143
5144 # OK, works on sane cases. Now check whether non-existent headers
5145 # can be detected and how.
5146 cat >conftest.$ac_ext <<_ACEOF
5147#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005148/* confdefs.h. */
5149_ACEOF
5150cat confdefs.h >>conftest.$ac_ext
5151cat >>conftest.$ac_ext <<_ACEOF
5152/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005153#include <ac_nonexistent.h>
5154_ACEOF
5155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5157 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005158 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_cxx_preproc_warn_flag
5165 else
5166 ac_cpp_err=
5167 fi
5168else
5169 ac_cpp_err=yes
5170fi
5171if test -z "$ac_cpp_err"; then
5172 # Broken: success on invalid input.
5173continue
5174else
5175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005176sed 's/^/| /' conftest.$ac_ext >&5
5177
John Criswell47fdd832003-07-14 16:52:07 +00005178 # Passes both tests.
5179ac_preproc_ok=:
5180break
5181fi
5182rm -f conftest.err conftest.$ac_ext
5183
5184done
5185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186rm -f conftest.err conftest.$ac_ext
5187if $ac_preproc_ok; then
5188 :
5189else
John Criswell0c38eaf2003-09-10 15:17:25 +00005190 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5191See \`config.log' for more details." >&5
5192echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5193See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005194 { (exit 1); exit 1; }; }
5195fi
5196
5197ac_ext=cc
5198ac_cpp='$CXXCPP $CPPFLAGS'
5199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5202
5203
5204ac_ext=f
5205ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5206ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5208if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005209 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 +00005210 do
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215if test "${ac_cv_prog_F77+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 if test -n "$F77"; then
5219 ac_cv_prog_F77="$F77" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233done
5234
5235fi
5236fi
5237F77=$ac_cv_prog_F77
5238if test -n "$F77"; then
5239 echo "$as_me:$LINENO: result: $F77" >&5
5240echo "${ECHO_T}$F77" >&6
5241else
5242 echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246 test -n "$F77" && break
5247 done
5248fi
5249if test -z "$F77"; then
5250 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005251 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 +00005252do
5253 # Extract the first word of "$ac_prog", so it can be a program name with args.
5254set dummy $ac_prog; ac_word=$2
5255echo "$as_me:$LINENO: checking for $ac_word" >&5
5256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260 if test -n "$ac_ct_F77"; then
5261 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_ac_ct_F77="$ac_prog"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274done
5275done
5276
5277fi
5278fi
5279ac_ct_F77=$ac_cv_prog_ac_ct_F77
5280if test -n "$ac_ct_F77"; then
5281 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5282echo "${ECHO_T}$ac_ct_F77" >&6
5283else
5284 echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286fi
5287
5288 test -n "$ac_ct_F77" && break
5289done
5290
5291 F77=$ac_ct_F77
5292fi
5293
5294
5295# Provide some information about the compiler.
Misha Brukman811ce9f2003-11-12 22:16:51 +00005296echo "$as_me:5296:" \
John Criswell47fdd832003-07-14 16:52:07 +00005297 "checking for Fortran 77 compiler version" >&5
5298ac_compiler=`set X $ac_compile; echo $2`
5299{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5300 (eval $ac_compiler --version </dev/null >&5) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5305 (eval $ac_compiler -v </dev/null >&5) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }
5309{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5310 (eval $ac_compiler -V </dev/null >&5) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }
5314
5315# If we don't use `.F' as extension, the preprocessor is not run on the
5316# input file.
5317ac_save_ext=$ac_ext
5318ac_ext=F
5319echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5320echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5321if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324 cat >conftest.$ac_ext <<_ACEOF
5325 program main
5326#ifndef __GNUC__
5327 choke me
5328#endif
5329
5330 end
5331_ACEOF
5332rm -f conftest.$ac_objext
5333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_compiler_gnu=yes
5345else
5346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005347sed 's/^/| /' conftest.$ac_ext >&5
5348
John Criswell47fdd832003-07-14 16:52:07 +00005349ac_compiler_gnu=no
5350fi
5351rm -f conftest.$ac_objext conftest.$ac_ext
5352ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5353
5354fi
5355echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5356echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5357ac_ext=$ac_save_ext
5358G77=`test $ac_compiler_gnu = yes && echo yes`
5359ac_test_FFLAGS=${FFLAGS+set}
5360ac_save_FFLAGS=$FFLAGS
5361FFLAGS=
5362echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5363echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5364if test "${ac_cv_prog_f77_g+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 FFLAGS=-g
5368cat >conftest.$ac_ext <<_ACEOF
5369 program main
5370
5371 end
5372_ACEOF
5373rm -f conftest.$ac_objext
5374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_cv_prog_f77_g=yes
5386else
5387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005388sed 's/^/| /' conftest.$ac_ext >&5
5389
John Criswell47fdd832003-07-14 16:52:07 +00005390ac_cv_prog_f77_g=no
5391fi
5392rm -f conftest.$ac_objext conftest.$ac_ext
5393
5394fi
5395echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5396echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5397if test "$ac_test_FFLAGS" = set; then
5398 FFLAGS=$ac_save_FFLAGS
5399elif test $ac_cv_prog_f77_g = yes; then
5400 if test "$G77" = yes; then
5401 FFLAGS="-g -O2"
5402 else
5403 FFLAGS="-g"
5404 fi
5405else
5406 if test "$G77" = yes; then
5407 FFLAGS="-O2"
5408 else
5409 FFLAGS=
5410 fi
5411fi
5412ac_ext=c
5413ac_cpp='$CPP $CPPFLAGS'
5414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
5418
5419
5420# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5421
5422# find the maximum length of command line arguments
5423echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5424echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5425if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428 i=0
5429 testring="ABCD"
5430
5431 case $build_os in
5432 msdosdjgpp*)
5433 # On DJGPP, this test can blow up pretty badly due to problems in libc
5434 # (any single argument exceeding 2000 bytes causes a buffer overrun
5435 # during glob expansion). Even if it were fixed, the result of this
5436 # check would be larger than it should be.
5437 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5438 ;;
5439
5440 gnu*)
5441 # Under GNU Hurd, this test is not required because there is
5442 # no limit to the length of command line arguments.
5443 # Libtool will interpret -1 as no limit whatsoever
5444 lt_cv_sys_max_cmd_len=-1;
5445 ;;
5446
5447 cygwin* | mingw*)
5448 # On Win9x/ME, this test blows up -- it succeeds, but takes
5449 # about 5 minutes as the teststring grows exponentially.
5450 # Worse, since 9x/ME are not pre-emptively multitasking,
5451 # you end up with a "frozen" computer, even though with patience
5452 # the test eventually succeeds (with a max line length of 256k).
5453 # Instead, let's just punt: use the minimum linelength reported by
5454 # all of the supported platforms: 8192 (on NT/2K/XP).
5455 lt_cv_sys_max_cmd_len=8192;
5456 ;;
5457
5458 *)
5459 # If test is not a shell built-in, we'll probably end up computing a
5460 # maximum length that is only half of the actual maximum length, but
5461 # we can't tell.
5462 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5463 = "XX$testring") >/dev/null 2>&1 &&
5464 new_result=`expr "X$testring" : ".*" 2>&1` &&
5465 lt_cv_sys_max_cmd_len=$new_result &&
5466 test $i != 17 # 1/2 MB should be enough
5467 do
5468 i=`expr $i + 1`
5469 testring=$testring$testring
5470 done
5471 testring=
5472 # Add a significant safety factor because C++ compilers can tack on massive
5473 # amounts of additional arguments before passing them to the linker.
5474 # It appears as though 1/2 is a usable value.
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5476 ;;
5477 esac
5478
5479fi
5480
5481if test -n $lt_cv_sys_max_cmd_len ; then
5482 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5483echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5484else
5485 echo "$as_me:$LINENO: result: none" >&5
5486echo "${ECHO_T}none" >&6
5487fi
5488
5489
5490
5491
5492# Check for command to grab the raw symbol name followed by C symbol from nm.
5493echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5494echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5495if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498
5499# These are sane defaults that work on at least a few old systems.
5500# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5501
5502# Character class describing NM global symbol codes.
5503symcode='[BCDEGRST]'
5504
5505# Regexp to match symbols that can be accessed directly from C.
5506sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5507
5508# Transform the above into a raw symbol and a C symbol.
5509symxfrm='\1 \2\3 \3'
5510
5511# Transform an extracted symbol line into a proper C declaration
5512lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
5514# Transform an extracted symbol line into symbol name and symbol address
5515lt_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'"
5516
5517# Define system-specific variables.
5518case $host_os in
5519aix*)
5520 symcode='[BCDT]'
5521 ;;
5522cygwin* | mingw* | pw32*)
5523 symcode='[ABCDGISTW]'
5524 ;;
5525hpux*) # Its linker distinguishes data from code symbols
5526 if test "$host_cpu" = ia64; then
5527 symcode='[ABCDEGRST]'
5528 fi
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530 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'"
5531 ;;
5532irix* | nonstopux*)
5533 symcode='[BCDEGRST]'
5534 ;;
5535osf*)
5536 symcode='[BCDEGQRST]'
5537 ;;
5538solaris* | sysv5*)
5539 symcode='[BDT]'
5540 ;;
5541sysv4)
5542 symcode='[DFNSTU]'
5543 ;;
5544esac
5545
5546# Handle CRLF in mingw tool chain
5547opt_cr=
5548case $build_os in
5549mingw*)
5550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5551 ;;
5552esac
5553
5554# If we're using GNU nm, then use its standard symbol codes.
5555case `$NM -V 2>&1` in
5556*GNU* | *'with BFD'*)
5557 symcode='[ABCDGISTW]' ;;
5558esac
5559
5560# Try without a prefix undercore, then with it.
5561for ac_symprfx in "" "_"; do
5562
5563 # Write the raw and C identifiers.
5564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5565
5566 # Check to see that the pipe works correctly.
5567 pipe_works=no
5568
5569 rm -f conftest*
5570 cat > conftest.$ac_ext <<EOF
5571#ifdef __cplusplus
5572extern "C" {
5573#endif
5574char nm_test_var;
5575void nm_test_func(){}
5576#ifdef __cplusplus
5577}
5578#endif
5579int main(){nm_test_var='a';nm_test_func();return(0);}
5580EOF
5581
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; then
5587 # Now try to grab the symbols.
5588 nlist=conftest.nm
5589 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5590 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && test -s "$nlist"; then
5594 # Try sorting and uniquifying the output.
5595 if sort "$nlist" | uniq > "$nlist"T; then
5596 mv -f "$nlist"T "$nlist"
5597 else
5598 rm -f "$nlist"T
5599 fi
5600
5601 # Make sure that we snagged all the symbols we need.
5602 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5603 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5604 cat <<EOF > conftest.$ac_ext
5605#ifdef __cplusplus
5606extern "C" {
5607#endif
5608
5609EOF
5610 # Now generate the symbol file.
5611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5612
5613 cat <<EOF >> conftest.$ac_ext
5614#if defined (__STDC__) && __STDC__
5615# define lt_ptr_t void *
5616#else
5617# define lt_ptr_t char *
5618# define const
5619#endif
5620
5621/* The mapping between symbol names and symbols. */
5622const struct {
5623 const char *name;
5624 lt_ptr_t address;
5625}
5626lt_preloaded_symbols[] =
5627{
5628EOF
5629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5630 cat <<\EOF >> conftest.$ac_ext
5631 {0, (lt_ptr_t) 0}
5632};
5633
5634#ifdef __cplusplus
5635}
5636#endif
5637EOF
5638 # Now try linking the two files.
5639 mv conftest.$ac_objext conftstm.$ac_objext
5640 lt_save_LIBS="$LIBS"
5641 lt_save_CFLAGS="$CFLAGS"
5642 LIBS="conftstm.$ac_objext"
5643 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645 (eval $ac_link) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5649 pipe_works=yes
5650 fi
5651 LIBS="$lt_save_LIBS"
5652 CFLAGS="$lt_save_CFLAGS"
5653 else
5654 echo "cannot find nm_test_func in $nlist" >&5
5655 fi
5656 else
5657 echo "cannot find nm_test_var in $nlist" >&5
5658 fi
5659 else
5660 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5661 fi
5662 else
5663 echo "$progname: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 fi
5666 rm -f conftest* conftst*
5667
5668 # Do not use the global_symbol_pipe unless it works.
5669 if test "$pipe_works" = yes; then
5670 break
5671 else
5672 lt_cv_sys_global_symbol_pipe=
5673 fi
5674done
5675
5676fi
5677
5678if test -z "$lt_cv_sys_global_symbol_pipe"; then
5679 lt_cv_sys_global_symbol_to_cdecl=
5680fi
5681if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5682 echo "$as_me:$LINENO: result: failed" >&5
5683echo "${ECHO_T}failed" >&6
5684else
5685 echo "$as_me:$LINENO: result: ok" >&5
5686echo "${ECHO_T}ok" >&6
5687fi
5688
5689echo "$as_me:$LINENO: checking for objdir" >&5
5690echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5691if test "${lt_cv_objdir+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694 rm -f .libs 2>/dev/null
5695mkdir .libs 2>/dev/null
5696if test -d .libs; then
5697 lt_cv_objdir=.libs
5698else
5699 # MS-DOS does not allow filenames that begin with a dot.
5700 lt_cv_objdir=_libs
5701fi
5702rmdir .libs 2>/dev/null
5703fi
5704echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5705echo "${ECHO_T}$lt_cv_objdir" >&6
5706objdir=$lt_cv_objdir
5707
5708
5709
5710
5711
5712case $host_os in
5713aix3*)
5714 # AIX sometimes has problems with the GCC collect2 program. For some
5715 # reason, if we set the COLLECT_NAMES environment variable, the problems
5716 # vanish in a puff of smoke.
5717 if test "X${COLLECT_NAMES+set}" != Xset; then
5718 COLLECT_NAMES=
5719 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005720 fi
5721 ;;
5722esac
5723
John Criswell47fdd832003-07-14 16:52:07 +00005724# Sed substitution that helps us do robust quoting. It backslashifies
5725# metacharacters that are still active within double-quoted strings.
5726Xsed='sed -e s/^X//'
5727sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5728
5729# Same as above, but do not quote variable references.
5730double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5731
5732# Sed substitution to delay expansion of an escaped shell variable in a
5733# double_quote_subst'ed string.
5734delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735
5736# Sed substitution to avoid accidental globbing in evaled expressions
5737no_glob_subst='s/\*/\\\*/g'
5738
5739# Constants:
5740rm="rm -f"
5741
5742# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005743default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005744can_build_shared=yes
5745
5746# All known linkers require a `.a' archive for static linking (except M$VC,
5747# which needs '.lib').
5748libext=a
5749ltmain="$ac_aux_dir/ltmain.sh"
5750ofile="$default_ofile"
5751with_gnu_ld="$lt_cv_prog_gnu_ld"
5752
5753if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755set dummy ${ac_tool_prefix}ar; ac_word=$2
5756echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758if test "${ac_cv_prog_AR+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761 if test -n "$AR"; then
5762 ac_cv_prog_AR="$AR" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_AR="${ac_tool_prefix}ar"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775done
5776done
5777
5778fi
5779fi
5780AR=$ac_cv_prog_AR
5781if test -n "$AR"; then
5782 echo "$as_me:$LINENO: result: $AR" >&5
5783echo "${ECHO_T}$AR" >&6
5784else
5785 echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787fi
5788
5789fi
5790if test -z "$ac_cv_prog_AR"; then
5791 ac_ct_AR=$AR
5792 # Extract the first word of "ar", so it can be a program name with args.
5793set dummy ar; ac_word=$2
5794echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -n "$ac_ct_AR"; then
5800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_AR="ar"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814done
5815
5816 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5817fi
5818fi
5819ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820if test -n "$ac_ct_AR"; then
5821 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822echo "${ECHO_T}$ac_ct_AR" >&6
5823else
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826fi
5827
5828 AR=$ac_ct_AR
5829else
5830 AR="$ac_cv_prog_AR"
5831fi
5832
John Criswell7a73b802003-06-30 21:59:07 +00005833if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5835set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5836echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838if test "${ac_cv_prog_RANLIB+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 if test -n "$RANLIB"; then
5842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856done
5857
5858fi
5859fi
5860RANLIB=$ac_cv_prog_RANLIB
5861if test -n "$RANLIB"; then
5862 echo "$as_me:$LINENO: result: $RANLIB" >&5
5863echo "${ECHO_T}$RANLIB" >&6
5864else
5865 echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
5867fi
5868
5869fi
5870if test -z "$ac_cv_prog_RANLIB"; then
5871 ac_ct_RANLIB=$RANLIB
5872 # Extract the first word of "ranlib", so it can be a program name with args.
5873set dummy ranlib; ac_word=$2
5874echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 if test -n "$ac_ct_RANLIB"; then
5880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_RANLIB="ranlib"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893done
5894done
5895
5896 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5897fi
5898fi
5899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900if test -n "$ac_ct_RANLIB"; then
5901 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5902echo "${ECHO_T}$ac_ct_RANLIB" >&6
5903else
5904 echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6
5906fi
5907
5908 RANLIB=$ac_ct_RANLIB
5909else
5910 RANLIB="$ac_cv_prog_RANLIB"
5911fi
5912
5913if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}strip; ac_word=$2
5916echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918if test "${ac_cv_prog_STRIP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921 if test -n "$STRIP"; then
5922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937
5938fi
5939fi
5940STRIP=$ac_cv_prog_STRIP
5941if test -n "$STRIP"; then
5942 echo "$as_me:$LINENO: result: $STRIP" >&5
5943echo "${ECHO_T}$STRIP" >&6
5944else
5945 echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
5947fi
5948
5949fi
5950if test -z "$ac_cv_prog_STRIP"; then
5951 ac_ct_STRIP=$STRIP
5952 # Extract the first word of "strip", so it can be a program name with args.
5953set dummy strip; ac_word=$2
5954echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 if test -n "$ac_ct_STRIP"; then
5960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_STRIP="strip"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974done
5975
5976 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5977fi
5978fi
5979ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5980if test -n "$ac_ct_STRIP"; then
5981 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5982echo "${ECHO_T}$ac_ct_STRIP" >&6
5983else
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986fi
5987
5988 STRIP=$ac_ct_STRIP
5989else
5990 STRIP="$ac_cv_prog_STRIP"
5991fi
5992
5993
John Criswell7a73b802003-06-30 21:59:07 +00005994old_CC="$CC"
5995old_CFLAGS="$CFLAGS"
5996
5997# Set sane defaults for various variables
5998test -z "$AR" && AR=ar
5999test -z "$AR_FLAGS" && AR_FLAGS=cru
6000test -z "$AS" && AS=as
6001test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00006002test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00006003test -z "$DLLTOOL" && DLLTOOL=dlltool
6004test -z "$LD" && LD=ld
6005test -z "$LN_S" && LN_S="ln -s"
6006test -z "$MAGIC_CMD" && MAGIC_CMD=file
6007test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00006008test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00006009test -z "$OBJDUMP" && OBJDUMP=objdump
6010test -z "$RANLIB" && RANLIB=:
6011test -z "$STRIP" && STRIP=:
6012test -z "$ac_objext" && ac_objext=o
6013
John Criswell7a73b802003-06-30 21:59:07 +00006014# Determine commands to create old-style static archives.
6015old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6016old_postinstall_cmds='chmod 644 $oldlib'
6017old_postuninstall_cmds=
6018
6019if test -n "$RANLIB"; then
6020 case $host_os in
6021 openbsd*)
6022 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6023 ;;
6024 *)
6025 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6026 ;;
6027 esac
6028 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6029fi
6030
John Criswell47fdd832003-07-14 16:52:07 +00006031# Only perform the check for file, if the check method requires it
6032case $deplibs_check_method in
6033file_magic*)
6034 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6035 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6036echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6037if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006039else
John Criswell47fdd832003-07-14 16:52:07 +00006040 case $MAGIC_CMD in
6041[\\/*] | ?:[\\/]*)
6042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6043 ;;
6044*)
6045 lt_save_MAGIC_CMD="$MAGIC_CMD"
6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6048 for ac_dir in $ac_dummy; do
6049 IFS="$lt_save_ifs"
6050 test -z "$ac_dir" && ac_dir=.
6051 if test -f $ac_dir/${ac_tool_prefix}file; then
6052 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6053 if test -n "$file_magic_test_file"; then
6054 case $deplibs_check_method in
6055 "file_magic "*)
6056 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6059 $EGREP "$file_magic_regex" > /dev/null; then
6060 :
6061 else
6062 cat <<EOF 1>&2
6063
6064*** Warning: the command libtool uses to detect shared libraries,
6065*** $file_magic_cmd, produces output that libtool cannot recognize.
6066*** The result is that libtool may fail to recognize shared libraries
6067*** as such. This will affect the creation of libtool libraries that
6068*** depend on shared libraries, but programs linked with such libtool
6069*** libraries will work regardless of this problem. Nevertheless, you
6070*** may want to report the problem to your system manager and/or to
6071*** bug-libtool@gnu.org
6072
6073EOF
6074 fi ;;
6075 esac
6076 fi
6077 break
6078 fi
6079 done
6080 IFS="$lt_save_ifs"
6081 MAGIC_CMD="$lt_save_MAGIC_CMD"
6082 ;;
6083esac
John Criswell7a73b802003-06-30 21:59:07 +00006084fi
John Criswell7a73b802003-06-30 21:59:07 +00006085
John Criswell47fdd832003-07-14 16:52:07 +00006086MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6087if test -n "$MAGIC_CMD"; then
6088 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6089echo "${ECHO_T}$MAGIC_CMD" >&6
6090else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093fi
John Criswell7a73b802003-06-30 21:59:07 +00006094
John Criswell47fdd832003-07-14 16:52:07 +00006095if test -z "$lt_cv_path_MAGIC_CMD"; then
6096 if test -n "$ac_tool_prefix"; then
6097 echo "$as_me:$LINENO: checking for file" >&5
6098echo $ECHO_N "checking for file... $ECHO_C" >&6
6099if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102 case $MAGIC_CMD in
6103[\\/*] | ?:[\\/]*)
6104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6105 ;;
6106*)
6107 lt_save_MAGIC_CMD="$MAGIC_CMD"
6108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6110 for ac_dir in $ac_dummy; do
6111 IFS="$lt_save_ifs"
6112 test -z "$ac_dir" && ac_dir=.
6113 if test -f $ac_dir/file; then
6114 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6115 if test -n "$file_magic_test_file"; then
6116 case $deplibs_check_method in
6117 "file_magic "*)
6118 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6121 $EGREP "$file_magic_regex" > /dev/null; then
6122 :
6123 else
6124 cat <<EOF 1>&2
6125
6126*** Warning: the command libtool uses to detect shared libraries,
6127*** $file_magic_cmd, produces output that libtool cannot recognize.
6128*** The result is that libtool may fail to recognize shared libraries
6129*** as such. This will affect the creation of libtool libraries that
6130*** depend on shared libraries, but programs linked with such libtool
6131*** libraries will work regardless of this problem. Nevertheless, you
6132*** may want to report the problem to your system manager and/or to
6133*** bug-libtool@gnu.org
6134
6135EOF
6136 fi ;;
6137 esac
6138 fi
6139 break
6140 fi
6141 done
6142 IFS="$lt_save_ifs"
6143 MAGIC_CMD="$lt_save_MAGIC_CMD"
6144 ;;
6145esac
6146fi
6147
6148MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6149if test -n "$MAGIC_CMD"; then
6150 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6151echo "${ECHO_T}$MAGIC_CMD" >&6
6152else
6153 echo "$as_me:$LINENO: result: no" >&5
6154echo "${ECHO_T}no" >&6
6155fi
6156
6157 else
6158 MAGIC_CMD=:
6159 fi
6160fi
6161
6162 fi
6163 ;;
6164esac
6165
6166enable_dlopen=no
6167enable_win32_dll=no
6168
6169# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6170if test "${enable_libtool_lock+set}" = set; then
6171 enableval="$enable_libtool_lock"
6172
6173fi;
6174test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6175
John Criswell7a73b802003-06-30 21:59:07 +00006176
6177# Check whether --with-pic or --without-pic was given.
6178if test "${with_pic+set}" = set; then
6179 withval="$with_pic"
6180 pic_mode="$withval"
6181else
6182 pic_mode=default
6183fi;
6184test -z "$pic_mode" && pic_mode=default
6185
John Criswell47fdd832003-07-14 16:52:07 +00006186# Use C for the default configuration in the libtool script
6187tagname=
6188lt_save_CC="$CC"
6189ac_ext=c
6190ac_cpp='$CPP $CPPFLAGS'
6191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195
6196# Source file extension for C test sources.
6197ac_ext=c
6198
6199# Object file extension for compiled C test sources.
6200objext=o
6201objext=$objext
6202
6203# Code to be used in simple compile tests
6204lt_simple_compile_test_code="int some_variable = 0;\n"
6205
6206# Code to be used in simple link tests
6207lt_simple_link_test_code='int main(){return(0);}\n'
6208
6209
6210# If no C compiler was specified, use CC.
6211LTCC=${LTCC-"$CC"}
6212
6213# Allow CC to be a program name with arguments.
6214compiler=$CC
6215
6216
6217#
6218# Check for any special shared library compilation flags.
6219#
6220lt_prog_cc_shlib=
6221if test "$GCC" = no; then
6222 case $host_os in
6223 sco3.2v5*)
6224 lt_prog_cc_shlib='-belf'
6225 ;;
6226 esac
6227fi
6228if test -n "$lt_prog_cc_shlib"; then
6229 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6230echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6231 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6232 else
6233 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6234echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6235 lt_cv_prog_cc_can_build_shared=no
6236 fi
6237fi
6238
6239
6240#
6241# Check to make sure the static flag actually works.
6242#
6243echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6244echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6245if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
John Criswell47fdd832003-07-14 16:52:07 +00006248 lt_prog_compiler_static_works=no
6249 save_LDFLAGS="$LDFLAGS"
6250 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6251 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6253 # The compiler can only warn and ignore the option if not recognized
6254 # So say no if there are warnings
6255 if test -s conftest.err; then
6256 # Append any errors to the config.log.
6257 cat conftest.err 1>&5
6258 else
6259 lt_prog_compiler_static_works=yes
6260 fi
6261 fi
6262 $rm conftest*
6263 LDFLAGS="$save_LDFLAGS"
6264
6265fi
6266echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6267echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6268
6269if test x"$lt_prog_compiler_static_works" = xyes; then
6270 :
6271else
6272 lt_prog_compiler_static=
6273fi
6274
6275
6276
6277## CAVEAT EMPTOR:
6278## There is no encapsulation within the following macros, do not change
6279## the running order or otherwise move them around unless you know exactly
6280## what you are doing...
6281
6282lt_prog_compiler_no_builtin_flag=
6283
6284if test "$GCC" = yes; then
6285 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6286
6287 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6288echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6289if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292 lt_cv_prog_compiler_rtti_exceptions=no
6293 ac_outfile=conftest.$ac_objext
6294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6295 lt_compiler_flag="-fno-rtti -fno-exceptions"
6296 # Insert the option either (1) after the last *FLAGS variable, or
6297 # (2) before a word containing "conftest.", or (3) at the end.
6298 # Note that $ac_compile itself does not contain backslashes and begins
6299 # with a dollar sign (not a hyphen), so the echo should work correctly.
6300 # The option is referenced via a variable to avoid confusing sed.
6301 lt_compile=`echo "$ac_compile" | $SED \
6302 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6304 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +00006305 (eval echo "\"\$as_me:6305: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006306 (eval "$lt_compile" 2>conftest.err)
6307 ac_status=$?
6308 cat conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +00006309 echo "$as_me:6309: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006310 if (exit $ac_status) && test -s "$ac_outfile"; then
6311 # The compiler can only warn and ignore the option if not recognized
6312 # So say no if there are warnings
6313 if test ! -s conftest.err; then
6314 lt_cv_prog_compiler_rtti_exceptions=yes
6315 fi
6316 fi
6317 $rm conftest*
6318
6319fi
6320echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6321echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6322
6323if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6324 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6325else
6326 :
6327fi
6328
6329fi
6330
6331lt_prog_compiler_wl=
6332lt_prog_compiler_pic=
6333lt_prog_compiler_static=
6334
6335echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6336echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006337
6338 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006339 lt_prog_compiler_wl='-Wl,'
6340 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006341
6342 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006343 aix*)
6344 # All AIX code is PIC.
6345 if test "$host_cpu" = ia64; then
6346 # AIX 5 now supports IA64 processor
6347 lt_prog_compiler_static='-Bstatic'
6348 fi
John Criswell7a73b802003-06-30 21:59:07 +00006349 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006350
John Criswell7a73b802003-06-30 21:59:07 +00006351 amigaos*)
6352 # FIXME: we need at least 68020 code to build shared libraries, but
6353 # adding the `-m68020' flag to GCC prevents building anything better,
6354 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006355 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006356 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006357
6358 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006359 # PIC is the default for these OSes.
6360 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006361
6362 mingw* | pw32* | os2*)
6363 # This hack is so that the source file can tell whether it is being
6364 # built for inclusion in a dll (and should export symbols for example).
6365 lt_prog_compiler_pic='-DDLL_EXPORT'
6366 ;;
6367
John Criswell7a73b802003-06-30 21:59:07 +00006368 darwin* | rhapsody*)
6369 # PIC is the default on this platform
6370 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006371 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006372 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006373
6374 msdosdjgpp*)
6375 # Just because we use GCC doesn't mean we suddenly get shared libraries
6376 # on systems that don't support them.
6377 lt_prog_compiler_can_build_shared=no
6378 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006379 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006380
John Criswell7a73b802003-06-30 21:59:07 +00006381 sysv4*MP*)
6382 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006383 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006384 fi
6385 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006386
6387 hpux*)
6388 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6389 # not for PA HP-UX.
6390 case "$host_cpu" in
6391 hppa*64*|ia64*)
6392 # +Z the default
6393 ;;
6394 *)
6395 lt_prog_compiler_pic='-fPIC'
6396 ;;
6397 esac
6398 ;;
6399
John Criswell7a73b802003-06-30 21:59:07 +00006400 *)
John Criswell47fdd832003-07-14 16:52:07 +00006401 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006402 ;;
6403 esac
6404 else
John Criswell47fdd832003-07-14 16:52:07 +00006405 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006406 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006407 aix*)
6408 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006409 if test "$host_cpu" = ia64; then
6410 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006411 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006412 else
John Criswell47fdd832003-07-14 16:52:07 +00006413 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006414 fi
6415 ;;
6416
John Criswell47fdd832003-07-14 16:52:07 +00006417 mingw* | pw32* | os2*)
6418 # This hack is so that the source file can tell whether it is being
6419 # built for inclusion in a dll (and should export symbols for example).
6420 lt_prog_compiler_pic='-DDLL_EXPORT'
6421 ;;
6422
John Criswell7a73b802003-06-30 21:59:07 +00006423 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006424 lt_prog_compiler_wl='-Wl,'
6425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6426 # not for PA HP-UX.
6427 case "$host_cpu" in
6428 hppa*64*|ia64*)
6429 # +Z the default
6430 ;;
6431 *)
6432 lt_prog_compiler_pic='+Z'
6433 ;;
6434 esac
6435 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6436 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006437 ;;
6438
John Criswell47fdd832003-07-14 16:52:07 +00006439 irix5* | irix6* | nonstopux*)
6440 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006441 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006442 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006443 ;;
6444
6445 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006446 lt_prog_compiler_pic='-KPIC'
6447 lt_prog_compiler_static='-Bstatic'
6448 ;;
6449
6450 linux*)
6451 case $CC in
6452 icc|ecc)
6453 lt_prog_compiler_wl='-Wl,'
6454 lt_prog_compiler_pic='-KPIC'
6455 lt_prog_compiler_static='-static'
6456 ;;
6457 ccc)
6458 lt_prog_compiler_wl='-Wl,'
6459 # All Alpha code is PIC.
6460 lt_prog_compiler_static='-non_shared'
6461 ;;
6462 esac
John Criswell7a73b802003-06-30 21:59:07 +00006463 ;;
6464
6465 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006466 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006467 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006468 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006469 ;;
6470
6471 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006472 lt_prog_compiler_pic='-Kpic'
6473 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006474 ;;
6475
6476 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006477 lt_prog_compiler_wl='-Wl,'
6478 lt_prog_compiler_pic='-KPIC'
6479 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006480 ;;
6481
6482 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006483 lt_prog_compiler_wl='-Qoption ld '
6484 lt_prog_compiler_pic='-PIC'
6485 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006486 ;;
6487
6488 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006489 lt_prog_compiler_wl='-Wl,'
6490 lt_prog_compiler_pic='-KPIC'
6491 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006492 ;;
6493
6494 sysv4*MP*)
6495 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006496 lt_prog_compiler_pic='-Kconform_pic'
6497 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006498 fi
6499 ;;
6500
John Criswell47fdd832003-07-14 16:52:07 +00006501 uts4*)
6502 lt_prog_compiler_pic='-pic'
6503 lt_prog_compiler_static='-Bstatic'
6504 ;;
6505
John Criswell7a73b802003-06-30 21:59:07 +00006506 *)
John Criswell47fdd832003-07-14 16:52:07 +00006507 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006508 ;;
6509 esac
6510 fi
6511
John Criswell47fdd832003-07-14 16:52:07 +00006512echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6513echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006514
John Criswell47fdd832003-07-14 16:52:07 +00006515#
6516# Check to make sure the PIC flag actually works.
6517#
6518if test -n "$lt_prog_compiler_pic"; then
6519 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6520echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6521if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
John Criswell47fdd832003-07-14 16:52:07 +00006524 lt_prog_compiler_pic_works=no
6525 ac_outfile=conftest.$ac_objext
6526 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6527 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6528 # Insert the option either (1) after the last *FLAGS variable, or
6529 # (2) before a word containing "conftest.", or (3) at the end.
6530 # Note that $ac_compile itself does not contain backslashes and begins
6531 # with a dollar sign (not a hyphen), so the echo should work correctly.
6532 # The option is referenced via a variable to avoid confusing sed.
6533 lt_compile=`echo "$ac_compile" | $SED \
6534 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6536 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +00006537 (eval echo "\"\$as_me:6537: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006538 (eval "$lt_compile" 2>conftest.err)
6539 ac_status=$?
6540 cat conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +00006541 echo "$as_me:6541: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006542 if (exit $ac_status) && test -s "$ac_outfile"; then
6543 # The compiler can only warn and ignore the option if not recognized
6544 # So say no if there are warnings
6545 if test ! -s conftest.err; then
6546 lt_prog_compiler_pic_works=yes
6547 fi
6548 fi
6549 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006550
John Criswell47fdd832003-07-14 16:52:07 +00006551fi
6552echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6553echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006554
John Criswell47fdd832003-07-14 16:52:07 +00006555if test x"$lt_prog_compiler_pic_works" = xyes; then
6556 case $lt_prog_compiler_pic in
6557 "" | " "*) ;;
6558 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6559 esac
John Criswell7a73b802003-06-30 21:59:07 +00006560else
John Criswell47fdd832003-07-14 16:52:07 +00006561 lt_prog_compiler_pic=
6562 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006563fi
6564
John Criswell7a73b802003-06-30 21:59:07 +00006565fi
John Criswell47fdd832003-07-14 16:52:07 +00006566case "$host_os" in
6567 # For platforms which do not support PIC, -DPIC is meaningless:
6568 *djgpp*)
6569 lt_prog_compiler_pic=
6570 ;;
6571 *)
6572 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6573 ;;
6574esac
John Criswell7a73b802003-06-30 21:59:07 +00006575
John Criswell7a73b802003-06-30 21:59:07 +00006576echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6577echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006578if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
John Criswell47fdd832003-07-14 16:52:07 +00006581 lt_cv_prog_compiler_c_o=no
6582 $rm -r conftest 2>/dev/null
6583 mkdir conftest
6584 cd conftest
6585 mkdir out
6586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006587
John Criswell47fdd832003-07-14 16:52:07 +00006588 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6589 # that will create temporary files in the current directory regardless of
6590 # the output directory. Thus, making CWD read-only will cause this test
6591 # to fail, enabling locking or at least warning the user not to do parallel
6592 # builds.
6593 chmod -w .
6594
6595 lt_compiler_flag="-o out/conftest2.$ac_objext"
6596 # Insert the option either (1) after the last *FLAGS variable, or
6597 # (2) before a word containing "conftest.", or (3) at the end.
6598 # Note that $ac_compile itself does not contain backslashes and begins
6599 # with a dollar sign (not a hyphen), so the echo should work correctly.
6600 lt_compile=`echo "$ac_compile" | $SED \
6601 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +00006604 (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006605 (eval "$lt_compile" 2>out/conftest.err)
6606 ac_status=$?
6607 cat out/conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +00006608 echo "$as_me:6608: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6610 then
6611 # The compiler can only warn and ignore the option if not recognized
6612 # So say no if there are warnings
6613 if test ! -s out/conftest.err; then
6614 lt_cv_prog_compiler_c_o=yes
6615 fi
6616 fi
6617 chmod u+w .
6618 $rm conftest* out/*
6619 rmdir out
6620 cd ..
6621 rmdir conftest
6622 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006623
6624fi
John Criswell47fdd832003-07-14 16:52:07 +00006625echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6626echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006627
John Criswell7a73b802003-06-30 21:59:07 +00006628
John Criswell7a73b802003-06-30 21:59:07 +00006629hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006630if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006631 # do not overwrite the value of need_locks provided by the user
6632 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6633echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6634 hard_links=yes
6635 $rm conftest*
6636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6637 touch conftest.a
6638 ln conftest.a conftest.b 2>&5 || hard_links=no
6639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6640 echo "$as_me:$LINENO: result: $hard_links" >&5
6641echo "${ECHO_T}$hard_links" >&6
6642 if test "$hard_links" = no; then
6643 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6644echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6645 need_locks=warn
6646 fi
6647else
6648 need_locks=no
6649fi
John Criswell7a73b802003-06-30 21:59:07 +00006650
John Criswell47fdd832003-07-14 16:52:07 +00006651echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6652echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6653
6654 runpath_var=
6655 allow_undefined_flag=
6656 enable_shared_with_static_runtimes=no
6657 archive_cmds=
6658 archive_expsym_cmds=
6659 old_archive_From_new_cmds=
6660 old_archive_from_expsyms_cmds=
6661 export_dynamic_flag_spec=
6662 whole_archive_flag_spec=
6663 thread_safe_flag_spec=
6664 hardcode_libdir_flag_spec=
6665 hardcode_libdir_flag_spec_ld=
6666 hardcode_libdir_separator=
6667 hardcode_direct=no
6668 hardcode_minus_L=no
6669 hardcode_shlibpath_var=unsupported
6670 link_all_deplibs=unknown
6671 hardcode_automatic=no
6672 module_cmds=
6673 module_expsym_cmds=
6674 always_export_symbols=no
6675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6676 # include_expsyms should be a list of space-separated symbols to be *always*
6677 # included in the symbol list
6678 include_expsyms=
6679 # exclude_expsyms can be an extended regexp of symbols to exclude
6680 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6681 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6682 # as well as any symbol that contains `d'.
6683 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6684 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6685 # platforms (ab)use it in PIC code, but their linkers get confused if
6686 # the symbol is explicitly referenced. Since portable code cannot
6687 # rely on this symbol name, it's probably fine to never include it in
6688 # preloaded symbol tables.
6689 extract_expsyms_cmds=
6690
6691 case $host_os in
6692 cygwin* | mingw* | pw32*)
6693 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6694 # When not using gcc, we currently assume that we are using
6695 # Microsoft Visual C++.
6696 if test "$GCC" != yes; then
6697 with_gnu_ld=no
6698 fi
6699 ;;
6700 openbsd*)
6701 with_gnu_ld=no
6702 ;;
6703 esac
6704
6705 ld_shlibs=yes
6706 if test "$with_gnu_ld" = yes; then
6707 # If archive_cmds runs LD, not CC, wlarc should be empty
6708 wlarc='${wl}'
6709
6710 # See if GNU ld supports shared libraries.
6711 case $host_os in
6712 aix3* | aix4* | aix5*)
6713 # On AIX/PPC, the GNU linker is very broken
6714 if test "$host_cpu" != ia64; then
6715 ld_shlibs=no
6716 cat <<EOF 1>&2
6717
6718*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6719*** to be unable to reliably create shared libraries on AIX.
6720*** Therefore, libtool is disabling shared libraries support. If you
6721*** really care for shared libraries, you may want to modify your PATH
6722*** so that a non-GNU linker is found, and then restart.
6723
6724EOF
6725 fi
6726 ;;
6727
6728 amigaos*)
6729 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)'
6730 hardcode_libdir_flag_spec='-L$libdir'
6731 hardcode_minus_L=yes
6732
6733 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6734 # that the semantics of dynamic libraries on AmigaOS, at least up
6735 # to version 4, is to share data among multiple programs linked
6736 # with the same dynamic library. Since this doesn't match the
6737 # behavior of shared libraries on other platforms, we can't use
6738 # them.
6739 ld_shlibs=no
6740 ;;
6741
6742 beos*)
6743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744 allow_undefined_flag=unsupported
6745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6746 # support --undefined. This deserves some investigation. FIXME
6747 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6748 else
6749 ld_shlibs=no
6750 fi
6751 ;;
6752
6753 cygwin* | mingw* | pw32*)
6754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6755 # as there is no search path for DLLs.
6756 hardcode_libdir_flag_spec='-L$libdir'
6757 allow_undefined_flag=unsupported
6758 always_export_symbols=no
6759 enable_shared_with_static_runtimes=yes
6760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6761
6762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6764 # If the export-symbols file already is a .def file (1st line
6765 # is EXPORTS), use it as is; otherwise, prepend...
6766 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6767 cp $export_symbols $output_objdir/$soname.def;
6768 else
6769 echo EXPORTS > $output_objdir/$soname.def;
6770 cat $export_symbols >> $output_objdir/$soname.def;
6771 fi~
6772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6773 else
6774 ld_shlibs=no
6775 fi
6776 ;;
6777
6778 netbsd*)
6779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6780 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6781 wlarc=
6782 else
6783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6785 fi
6786 ;;
6787
6788 solaris* | sysv5*)
6789 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6790 ld_shlibs=no
6791 cat <<EOF 1>&2
6792
6793*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6794*** create shared libraries on Solaris systems. Therefore, libtool
6795*** is disabling shared libraries support. We urge you to upgrade GNU
6796*** binutils to release 2.9.1 or newer. Another option is to modify
6797*** your PATH or compiler configuration so that the native linker is
6798*** used, and then restart.
6799
6800EOF
6801 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6804 else
6805 ld_shlibs=no
6806 fi
6807 ;;
6808
6809 sunos4*)
6810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6811 wlarc=
6812 hardcode_direct=yes
6813 hardcode_shlibpath_var=no
6814 ;;
6815
6816 *)
6817 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6820 else
6821 ld_shlibs=no
6822 fi
6823 ;;
6824 esac
6825
6826 if test "$ld_shlibs" = yes; then
6827 runpath_var=LD_RUN_PATH
6828 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6829 export_dynamic_flag_spec='${wl}--export-dynamic'
6830 # ancient GNU ld didn't support --whole-archive et. al.
6831 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6832 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6833 else
6834 whole_archive_flag_spec=
6835 fi
6836 fi
6837 else
6838 # PORTME fill in a description of your system's linker (not GNU ld)
6839 case $host_os in
6840 aix3*)
6841 allow_undefined_flag=unsupported
6842 always_export_symbols=yes
6843 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'
6844 # Note: this linker hardcodes the directories in LIBPATH if there
6845 # are no directories specified by -L.
6846 hardcode_minus_L=yes
6847 if test "$GCC" = yes && test -z "$link_static_flag"; then
6848 # Neither direct hardcoding nor static linking is supported with a
6849 # broken collect2.
6850 hardcode_direct=unsupported
6851 fi
6852 ;;
6853
6854 aix4* | aix5*)
6855 if test "$host_cpu" = ia64; then
6856 # On IA64, the linker does run time linking by default, so we don't
6857 # have to do anything special.
6858 aix_use_runtimelinking=no
6859 exp_sym_flag='-Bexport'
6860 no_entry_flag=""
6861 else
6862 # If we're using GNU nm, then we don't want the "-C" option.
6863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6865 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'
6866 else
6867 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'
6868 fi
6869 aix_use_runtimelinking=no
6870
6871 # Test if we are trying to use run time linking or normal
6872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6873 # need to do runtime linking.
6874 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6875 for ld_flag in $LDFLAGS; do
6876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6877 aix_use_runtimelinking=yes
6878 break
6879 fi
6880 done
6881 esac
6882
6883 exp_sym_flag='-bexport'
6884 no_entry_flag='-bnoentry'
6885 fi
6886
6887 # When large executables or shared objects are built, AIX ld can
6888 # have problems creating the table of contents. If linking a library
6889 # or program results in "error TOC overflow" add -mminimal-toc to
6890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6892
6893 archive_cmds=''
6894 hardcode_direct=yes
6895 hardcode_libdir_separator=':'
6896 link_all_deplibs=yes
6897
6898 if test "$GCC" = yes; then
6899 case $host_os in aix4.012|aix4.012.*)
6900 # We only want to do this on AIX 4.2 and lower, the check
6901 # below for broken collect2 doesn't work under 4.3+
6902 collect2name=`${CC} -print-prog-name=collect2`
6903 if test -f "$collect2name" && \
6904 strings "$collect2name" | grep resolve_lib_name >/dev/null
6905 then
6906 # We have reworked collect2
6907 hardcode_direct=yes
6908 else
6909 # We have old collect2
6910 hardcode_direct=unsupported
6911 # It fails to find uninstalled libraries when the uninstalled
6912 # path is not listed in the libpath. Setting hardcode_minus_L
6913 # to unsupported forces relinking
6914 hardcode_minus_L=yes
6915 hardcode_libdir_flag_spec='-L$libdir'
6916 hardcode_libdir_separator=
6917 fi
6918 esac
6919 shared_flag='-shared'
6920 else
6921 # not using gcc
6922 if test "$host_cpu" = ia64; then
6923 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6924 # chokes on -Wl,-G. The following line is correct:
6925 shared_flag='-G'
6926 else
6927 if test "$aix_use_runtimelinking" = yes; then
6928 shared_flag='${wl}-G'
6929 else
6930 shared_flag='${wl}-bM:SRE'
6931 fi
6932 fi
6933 fi
6934
6935 # It seems that -bexpall does not export symbols beginning with
6936 # underscore (_), so it is better to generate a list of symbols to export.
6937 always_export_symbols=yes
6938 if test "$aix_use_runtimelinking" = yes; then
6939 # Warning - without using the other runtime loading flags (-brtl),
6940 # -berok will link without error, but may produce a broken library.
6941 allow_undefined_flag='-berok'
6942 # Determine the default libpath from the value encoded in an empty executable.
6943 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006950
John Criswell7a73b802003-06-30 21:59:07 +00006951int
6952main ()
6953{
John Criswell47fdd832003-07-14 16:52:07 +00006954
John Criswell7a73b802003-06-30 21:59:07 +00006955 ;
6956 return 0;
6957}
6958_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006959rm -f conftest.$ac_objext conftest$ac_exeext
6960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006965 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006971
John Criswell47fdd832003-07-14 16:52:07 +00006972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6973}'`
6974# Check for a 64-bit object if we didn't find anything.
6975if 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; }
6976}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006977else
6978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006979sed 's/^/| /' conftest.$ac_ext >&5
6980
John Criswell7a73b802003-06-30 21:59:07 +00006981fi
John Criswell47fdd832003-07-14 16:52:07 +00006982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006984
John Criswell47fdd832003-07-14 16:52:07 +00006985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6986 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"
6987 else
6988 if test "$host_cpu" = ia64; then
6989 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6990 allow_undefined_flag="-z nodefs"
6991 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"
6992 else
6993 # Determine the default libpath from the value encoded in an empty executable.
6994 cat >conftest.$ac_ext <<_ACEOF
6995#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006996/* confdefs.h. */
6997_ACEOF
6998cat confdefs.h >>conftest.$ac_ext
6999cat >>conftest.$ac_ext <<_ACEOF
7000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007001
John Criswell47fdd832003-07-14 16:52:07 +00007002int
7003main ()
7004{
John Criswell7a73b802003-06-30 21:59:07 +00007005
John Criswell47fdd832003-07-14 16:52:07 +00007006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest.$ac_objext conftest$ac_exeext
7011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007022
John Criswell47fdd832003-07-14 16:52:07 +00007023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7024}'`
7025# Check for a 64-bit object if we didn't find anything.
7026if 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; }
7027}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007028else
John Criswell47fdd832003-07-14 16:52:07 +00007029 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007030sed 's/^/| /' conftest.$ac_ext >&5
7031
John Criswell47fdd832003-07-14 16:52:07 +00007032fi
7033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007035
John Criswell47fdd832003-07-14 16:52:07 +00007036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7037 # Warning - without using the other run time loading flags,
7038 # -berok will link without error, but may produce a broken library.
7039 no_undefined_flag=' ${wl}-bernotok'
7040 allow_undefined_flag=' ${wl}-berok'
7041 # -bexpall does not export symbols beginning with underscore (_)
7042 always_export_symbols=yes
7043 # Exported symbols can be pulled into shared objects from archives
7044 whole_archive_flag_spec=' '
7045 archive_cmds_need_lc=yes
7046 # This is similar to how AIX traditionally builds it's shared libraries.
7047 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 +00007048 fi
7049 fi
John Criswell7a73b802003-06-30 21:59:07 +00007050 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007051
7052 amigaos*)
7053 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)'
7054 hardcode_libdir_flag_spec='-L$libdir'
7055 hardcode_minus_L=yes
7056 # see comment about different semantics on the GNU ld section
7057 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007058 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007059
John Criswell47fdd832003-07-14 16:52:07 +00007060 bsdi4*)
7061 export_dynamic_flag_spec=-rdynamic
7062 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007063
John Criswell47fdd832003-07-14 16:52:07 +00007064 cygwin* | mingw* | pw32*)
7065 # When not using gcc, we currently assume that we are using
7066 # Microsoft Visual C++.
7067 # hardcode_libdir_flag_spec is actually meaningless, as there is
7068 # no search path for DLLs.
7069 hardcode_libdir_flag_spec=' '
7070 allow_undefined_flag=unsupported
7071 # Tell ltmain to make .lib files, not .a files.
7072 libext=lib
7073 # Tell ltmain to make .dll files, not .so files.
7074 shrext=".dll"
7075 # FIXME: Setting linknames here is a bad hack.
7076 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7077 # The linker will automatically build a .lib file if we build a DLL.
7078 old_archive_From_new_cmds='true'
7079 # FIXME: Should let the user specify the lib program.
7080 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7081 fix_srcfile_path='`cygpath -w "$srcfile"`'
7082 enable_shared_with_static_runtimes=yes
7083 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007084
John Criswell47fdd832003-07-14 16:52:07 +00007085 darwin* | rhapsody*)
7086 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7087 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007088 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007089 rhapsody* | darwin1.[012])
7090 allow_undefined_flag='-undefined suppress'
7091 ;;
7092 *) # Darwin 1.3 on
7093 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007094 ;;
7095 esac
John Criswell47fdd832003-07-14 16:52:07 +00007096 # FIXME: Relying on posixy $() will cause problems for
7097 # cross-compilation, but unfortunately the echo tests do not
7098 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7099 # `"' quotes if we put them in here... so don't!
7100 lt_int_apple_cc_single_mod=no
7101 output_verbose_link_cmd='echo'
7102 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7103 lt_int_apple_cc_single_mod=yes
7104 fi
7105 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7106 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7107 else
7108 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'
7109 fi
7110 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7112 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7113 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}'
7114 else
7115 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}'
7116 fi
7117 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}'
7118 hardcode_direct=no
7119 hardcode_automatic=yes
7120 hardcode_shlibpath_var=unsupported
7121 whole_archive_flag_spec='-all_load $convenience'
7122 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007123 fi
John Criswell47fdd832003-07-14 16:52:07 +00007124 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007125
John Criswell47fdd832003-07-14 16:52:07 +00007126 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007128 hardcode_libdir_flag_spec='-L$libdir'
7129 hardcode_shlibpath_var=no
7130 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007131
John Criswell47fdd832003-07-14 16:52:07 +00007132 freebsd1*)
7133 ld_shlibs=no
7134 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007135
John Criswell47fdd832003-07-14 16:52:07 +00007136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7137 # support. Future versions do this automatically, but an explicit c++rt0.o
7138 # does not break anything, and helps significantly (at the cost of a little
7139 # extra space).
7140 freebsd2.2*)
7141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7142 hardcode_libdir_flag_spec='-R$libdir'
7143 hardcode_direct=yes
7144 hardcode_shlibpath_var=no
7145 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007146
John Criswell47fdd832003-07-14 16:52:07 +00007147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7148 freebsd2*)
7149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7150 hardcode_direct=yes
7151 hardcode_minus_L=yes
7152 hardcode_shlibpath_var=no
7153 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007154
John Criswell47fdd832003-07-14 16:52:07 +00007155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7156 freebsd*)
7157 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7158 hardcode_libdir_flag_spec='-R$libdir'
7159 hardcode_direct=yes
7160 hardcode_shlibpath_var=no
7161 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007162
John Criswell47fdd832003-07-14 16:52:07 +00007163 hpux9*)
7164 if test "$GCC" = yes; then
7165 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'
7166 else
7167 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'
7168 fi
7169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7170 hardcode_libdir_separator=:
7171 hardcode_direct=yes
7172
7173 # hardcode_minus_L: Not really in the search PATH,
7174 # but as the default location of the library.
7175 hardcode_minus_L=yes
7176 export_dynamic_flag_spec='${wl}-E'
7177 ;;
7178
7179 hpux10* | hpux11*)
7180 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7181 case "$host_cpu" in
7182 hppa*64*|ia64*)
7183 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7184 ;;
7185 *)
7186 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7187 ;;
7188 esac
7189 else
7190 case "$host_cpu" in
7191 hppa*64*|ia64*)
7192 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7193 ;;
7194 *)
7195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7196 ;;
7197 esac
7198 fi
7199 if test "$with_gnu_ld" = no; then
7200 case "$host_cpu" in
7201 hppa*64*)
7202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7203 hardcode_libdir_flag_spec_ld='+b $libdir'
7204 hardcode_libdir_separator=:
7205 hardcode_direct=no
7206 hardcode_shlibpath_var=no
7207 ;;
7208 ia64*)
7209 hardcode_libdir_flag_spec='-L$libdir'
7210 hardcode_direct=no
7211 hardcode_shlibpath_var=no
7212
7213 # hardcode_minus_L: Not really in the search PATH,
7214 # but as the default location of the library.
7215 hardcode_minus_L=yes
7216 ;;
7217 *)
7218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7219 hardcode_libdir_separator=:
7220 hardcode_direct=yes
7221 export_dynamic_flag_spec='${wl}-E'
7222
7223 # hardcode_minus_L: Not really in the search PATH,
7224 # but as the default location of the library.
7225 hardcode_minus_L=yes
7226 ;;
7227 esac
7228 fi
7229 ;;
7230
7231 irix5* | irix6* | nonstopux*)
7232 if test "$GCC" = yes; then
7233 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'
7234 else
7235 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'
7236 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7237 fi
7238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7239 hardcode_libdir_separator=:
7240 link_all_deplibs=yes
7241 ;;
7242
7243 netbsd*)
7244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7246 else
7247 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7248 fi
7249 hardcode_libdir_flag_spec='-R$libdir'
7250 hardcode_direct=yes
7251 hardcode_shlibpath_var=no
7252 ;;
7253
7254 newsos6)
7255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7256 hardcode_direct=yes
7257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258 hardcode_libdir_separator=:
7259 hardcode_shlibpath_var=no
7260 ;;
7261
7262 openbsd*)
7263 hardcode_direct=yes
7264 hardcode_shlibpath_var=no
7265 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7268 export_dynamic_flag_spec='${wl}-E'
7269 else
7270 case $host_os in
7271 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7273 hardcode_libdir_flag_spec='-R$libdir'
7274 ;;
7275 *)
7276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7278 ;;
7279 esac
7280 fi
7281 ;;
7282
7283 os2*)
7284 hardcode_libdir_flag_spec='-L$libdir'
7285 hardcode_minus_L=yes
7286 allow_undefined_flag=unsupported
7287 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'
7288 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7289 ;;
7290
7291 osf3*)
7292 if test "$GCC" = yes; then
7293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7294 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'
7295 else
7296 allow_undefined_flag=' -expect_unresolved \*'
7297 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'
7298 fi
7299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7300 hardcode_libdir_separator=:
7301 ;;
7302
7303 osf4* | osf5*) # as osf3* with the addition of -msym flag
7304 if test "$GCC" = yes; then
7305 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7306 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'
7307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7308 else
7309 allow_undefined_flag=' -expect_unresolved \*'
7310 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'
7311 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7312 $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'
7313
7314 # Both c and cxx compiler support -rpath directly
7315 hardcode_libdir_flag_spec='-rpath $libdir'
7316 fi
7317 hardcode_libdir_separator=:
7318 ;;
7319
7320 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7322 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007323 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007324 runpath_var=LD_RUN_PATH
7325 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007326 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007327
John Criswell47fdd832003-07-14 16:52:07 +00007328 solaris*)
7329 no_undefined_flag=' -z text'
7330 if test "$GCC" = yes; then
7331 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7332 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7333 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7334 else
7335 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7337 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7338 fi
7339 hardcode_libdir_flag_spec='-R$libdir'
7340 hardcode_shlibpath_var=no
7341 case $host_os in
7342 solaris2.[0-5] | solaris2.[0-5].*) ;;
7343 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7345 esac
7346 link_all_deplibs=yes
7347 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007348
John Criswell47fdd832003-07-14 16:52:07 +00007349 sunos4*)
7350 if test "x$host_vendor" = xsequent; then
7351 # Use $CC to link under sequent, because it throws in some extra .o
7352 # files that make .init and .fini sections work.
7353 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7354 else
7355 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7356 fi
7357 hardcode_libdir_flag_spec='-L$libdir'
7358 hardcode_direct=yes
7359 hardcode_minus_L=yes
7360 hardcode_shlibpath_var=no
7361 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007362
John Criswell47fdd832003-07-14 16:52:07 +00007363 sysv4)
7364 case $host_vendor in
7365 sni)
7366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367 hardcode_direct=yes # is this really true???
7368 ;;
7369 siemens)
7370 ## LD is ld it makes a PLAMLIB
7371 ## CC just makes a GrossModule.
7372 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7373 reload_cmds='$CC -r -o $output$reload_objs'
7374 hardcode_direct=no
7375 ;;
7376 motorola)
7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7379 ;;
7380 esac
7381 runpath_var='LD_RUN_PATH'
7382 hardcode_shlibpath_var=no
7383 ;;
7384
7385 sysv4.3*)
7386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387 hardcode_shlibpath_var=no
7388 export_dynamic_flag_spec='-Bexport'
7389 ;;
7390
7391 sysv4*MP*)
7392 if test -d /usr/nec; then
7393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 hardcode_shlibpath_var=no
7395 runpath_var=LD_RUN_PATH
7396 hardcode_runpath_var=yes
7397 ld_shlibs=yes
7398 fi
7399 ;;
7400
7401 sysv4.2uw2*)
7402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7403 hardcode_direct=yes
7404 hardcode_minus_L=no
7405 hardcode_shlibpath_var=no
7406 hardcode_runpath_var=yes
7407 runpath_var=LD_RUN_PATH
7408 ;;
7409
7410 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7411 no_undefined_flag='${wl}-z ${wl}text'
7412 if test "$GCC" = yes; then
7413 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7414 else
7415 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7416 fi
7417 runpath_var='LD_RUN_PATH'
7418 hardcode_shlibpath_var=no
7419 ;;
7420
7421 sysv5*)
7422 no_undefined_flag=' -z text'
7423 # $CC -shared without GNU ld will not create a library from C++
7424 # object files and a static libstdc++, better avoid it by now
7425 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7427 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7428 hardcode_libdir_flag_spec=
7429 hardcode_shlibpath_var=no
7430 runpath_var='LD_RUN_PATH'
7431 ;;
7432
7433 uts4*)
7434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_libdir_flag_spec='-L$libdir'
7436 hardcode_shlibpath_var=no
7437 ;;
7438
7439 *)
7440 ld_shlibs=no
7441 ;;
7442 esac
7443 fi
7444
John Criswell7a73b802003-06-30 21:59:07 +00007445echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7446echo "${ECHO_T}$ld_shlibs" >&6
7447test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007448
John Criswell47fdd832003-07-14 16:52:07 +00007449variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7450if test "$GCC" = yes; then
7451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7452fi
7453
7454#
7455# Do we need to explicitly link libc?
7456#
7457case "x$archive_cmds_need_lc" in
7458x|xyes)
7459 # Assume -lc should be added
7460 archive_cmds_need_lc=yes
7461
7462 if test "$enable_shared" = yes && test "$GCC" = yes; then
7463 case $archive_cmds in
7464 *'~'*)
7465 # FIXME: we may have to deal with multi-command sequences.
7466 ;;
7467 '$CC '*)
7468 # Test whether the compiler implicitly links with -lc since on some
7469 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7470 # to ld, don't add -lc before -lgcc.
7471 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7472echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7473 $rm conftest*
7474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7475
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } 2>conftest.err; then
7481 soname=conftest
7482 lib=conftest
7483 libobjs=conftest.$ac_objext
7484 deplibs=
7485 wl=$lt_prog_compiler_wl
7486 compiler_flags=-v
7487 linker_flags=-v
7488 verstring=
7489 output_objdir=.
7490 libname=conftest
7491 lt_save_allow_undefined_flag=$allow_undefined_flag
7492 allow_undefined_flag=
7493 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7494 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }
7498 then
7499 archive_cmds_need_lc=no
7500 else
7501 archive_cmds_need_lc=yes
7502 fi
7503 allow_undefined_flag=$lt_save_allow_undefined_flag
7504 else
7505 cat conftest.err 1>&5
7506 fi
7507 $rm conftest*
7508 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7509echo "${ECHO_T}$archive_cmds_need_lc" >&6
7510 ;;
7511 esac
7512 fi
7513 ;;
7514esac
7515
John Criswell7a73b802003-06-30 21:59:07 +00007516echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7517echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7518hardcode_action=
7519if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007520 test -n "$runpath_var " || \
7521 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007522
7523 # We can hardcode non-existant directories.
7524 if test "$hardcode_direct" != no &&
7525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7526 # have to relink, otherwise we might link with an installed library
7527 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007528 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007529 test "$hardcode_minus_L" != no; then
7530 # Linking always hardcodes the temporary library directory.
7531 hardcode_action=relink
7532 else
7533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7534 hardcode_action=immediate
7535 fi
7536else
7537 # We cannot hardcode anything, or else we can only hardcode existing
7538 # directories.
7539 hardcode_action=unsupported
7540fi
7541echo "$as_me:$LINENO: result: $hardcode_action" >&5
7542echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007543
John Criswell47fdd832003-07-14 16:52:07 +00007544if test "$hardcode_action" = relink; then
7545 # Fast installation is not supported
7546 enable_fast_install=no
7547elif test "$shlibpath_overrides_runpath" = yes ||
7548 test "$enable_shared" = no; then
7549 # Fast installation is not necessary
7550 enable_fast_install=needless
7551fi
7552
John Criswell7a73b802003-06-30 21:59:07 +00007553striplib=
7554old_striplib=
7555echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7556echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7557if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7558 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7559 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7560 echo "$as_me:$LINENO: result: yes" >&5
7561echo "${ECHO_T}yes" >&6
7562else
John Criswell47fdd832003-07-14 16:52:07 +00007563# FIXME - insert some real tests, host_os isn't really good enough
7564 case $host_os in
7565 darwin*)
7566 if test -n "$STRIP" ; then
7567 striplib="$STRIP -x"
7568 echo "$as_me:$LINENO: result: yes" >&5
7569echo "${ECHO_T}yes" >&6
7570 else
John Criswell7a73b802003-06-30 21:59:07 +00007571 echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6
7573fi
John Criswell47fdd832003-07-14 16:52:07 +00007574 ;;
7575 *)
7576 echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6
7578 ;;
7579 esac
7580fi
John Criswell7a73b802003-06-30 21:59:07 +00007581
John Criswell7a73b802003-06-30 21:59:07 +00007582echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7583echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7584library_names_spec=
7585libname_spec='lib$name'
7586soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007587shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007588postinstall_cmds=
7589postuninstall_cmds=
7590finish_cmds=
7591finish_eval=
7592shlibpath_var=
7593shlibpath_overrides_runpath=unknown
7594version_type=none
7595dynamic_linker="$host_os ld.so"
7596sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007597if test "$GCC" = yes; then
7598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7599 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7600 # if the path contains ";" then we assume it to be the separator
7601 # otherwise default to the standard path separator (i.e. ":") - it is
7602 # assumed that no part of a normal pathname contains ";" but that should
7603 # okay in the real world where ";" in dirpaths is itself problematic.
7604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7605 else
7606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7607 fi
7608else
7609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7610fi
7611need_lib_prefix=unknown
7612hardcode_into_libs=no
7613
7614# when you set need_version to no, make sure it does not cause -set_version
7615# flags to be left without arguments
7616need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007617
7618case $host_os in
7619aix3*)
7620 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007622 shlibpath_var=LIBPATH
7623
John Criswell47fdd832003-07-14 16:52:07 +00007624 # AIX 3 has no versioning support, so we append a major version to the name.
7625 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007626 ;;
7627
7628aix4* | aix5*)
7629 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007630 need_lib_prefix=no
7631 need_version=no
7632 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007633 if test "$host_cpu" = ia64; then
7634 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007636 shlibpath_var=LD_LIBRARY_PATH
7637 else
7638 # With GCC up to 2.95.x, collect2 would create an import file
7639 # for dependence libraries. The import file would start with
7640 # the line `#! .'. This would cause the generated library to
7641 # depend on `.', always an invalid library. This was fixed in
7642 # development snapshots of GCC prior to 3.0.
7643 case $host_os in
7644 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7646 echo ' yes '
7647 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7648 :
7649 else
7650 can_build_shared=no
7651 fi
7652 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007653 esac
John Criswell47fdd832003-07-14 16:52:07 +00007654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7655 # soname into executable. Probably we can add versioning support to
7656 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007657 if test "$aix_use_runtimelinking" = yes; then
7658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7659 # instead of lib<name>.a to let people know that these are not
7660 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007662 else
7663 # We preserve .a as extension for shared libraries through AIX4.2
7664 # and later when we are not doing run time linking.
7665 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007666 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007667 fi
7668 shlibpath_var=LIBPATH
7669 fi
7670 ;;
7671
7672amigaos*)
7673 library_names_spec='$libname.ixlibrary $libname.a'
7674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7675 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'
7676 ;;
7677
7678beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007679 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007680 dynamic_linker="$host_os ld.so"
7681 shlibpath_var=LIBRARY_PATH
7682 ;;
7683
7684bsdi4*)
7685 version_type=linux
7686 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7688 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7690 shlibpath_var=LD_LIBRARY_PATH
7691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007693 # the default ld.so.conf also contains /usr/contrib/lib and
7694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7695 # libtool to hard-code these into programs
7696 ;;
7697
7698cygwin* | mingw* | pw32*)
7699 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007700 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007701 need_version=no
7702 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007703
John Criswell7a73b802003-06-30 21:59:07 +00007704 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007705 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007706 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7708 postinstall_cmds='base_file=`basename \${file}`~
7709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007710 dldir=$destdir/`dirname \$dlpath`~
7711 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007712 $install_prog $dir/$dlname \$dldir/$dlname'
7713 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007714 dlpath=$dir/\$dldll~
7715 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007716 shlibpath_overrides_runpath=yes
7717
7718 case $host_os in
7719 cygwin*)
7720 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7721 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7722 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7723 ;;
7724 mingw*)
7725 # MinGW DLLs use traditional 'lib' prefix
7726 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7727 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7728 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7729 # It is most probably a Windows format PATH printed by
7730 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7731 # path with ; separators, and with drive letters. We can handle the
7732 # drive letters (cygwin fileutils understands them), so leave them,
7733 # especially as we might pass files found there to a mingw objdump,
7734 # which wouldn't understand a cygwinified path. Ahh.
7735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7736 else
7737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7738 fi
7739 ;;
7740 pw32*)
7741 # pw32 DLLs use 'pw' prefix rather than 'lib'
7742 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7743 ;;
7744 esac
John Criswell7a73b802003-06-30 21:59:07 +00007745 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007746
John Criswell7a73b802003-06-30 21:59:07 +00007747 *)
John Criswell47fdd832003-07-14 16:52:07 +00007748 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007749 ;;
7750 esac
7751 dynamic_linker='Win32 ld.exe'
7752 # FIXME: first we should search . and the directory the executable is in
7753 shlibpath_var=PATH
7754 ;;
7755
7756darwin* | rhapsody*)
7757 dynamic_linker="$host_os dyld"
7758 version_type=darwin
7759 need_lib_prefix=no
7760 need_version=no
7761 # FIXME: Relying on posixy $() will cause problems for
7762 # cross-compilation, but unfortunately the echo tests do not
7763 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7765 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007766 shlibpath_overrides_runpath=yes
7767 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007768 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7769 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7770 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7771 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"`
7772 fi
7773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7774 ;;
7775
7776dgux*)
7777 version_type=linux
7778 need_lib_prefix=no
7779 need_version=no
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7781 soname_spec='${libname}${release}${shared_ext}$major'
7782 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007783 ;;
7784
7785freebsd1*)
7786 dynamic_linker=no
7787 ;;
7788
7789freebsd*)
7790 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7791 version_type=freebsd-$objformat
7792 case $version_type in
7793 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007795 need_version=no
7796 need_lib_prefix=no
7797 ;;
7798 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007800 need_version=yes
7801 ;;
7802 esac
7803 shlibpath_var=LD_LIBRARY_PATH
7804 case $host_os in
7805 freebsd2*)
7806 shlibpath_overrides_runpath=yes
7807 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007808 freebsd3.01* | freebsdelf3.01*)
7809 shlibpath_overrides_runpath=yes
7810 hardcode_into_libs=yes
7811 ;;
7812 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007813 shlibpath_overrides_runpath=no
7814 hardcode_into_libs=yes
7815 ;;
7816 esac
7817 ;;
7818
7819gnu*)
7820 version_type=linux
7821 need_lib_prefix=no
7822 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7824 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007825 shlibpath_var=LD_LIBRARY_PATH
7826 hardcode_into_libs=yes
7827 ;;
7828
7829hpux9* | hpux10* | hpux11*)
7830 # Give a soname corresponding to the major version so that dld.sl refuses to
7831 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007832 version_type=sunos
7833 need_lib_prefix=no
7834 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007835 case "$host_cpu" in
7836 ia64*)
7837 shrext='.so'
7838 hardcode_into_libs=yes
7839 dynamic_linker="$host_os dld.so"
7840 shlibpath_var=LD_LIBRARY_PATH
7841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7843 soname_spec='${libname}${release}${shared_ext}$major'
7844 if test "X$HPUX_IA64_MODE" = X32; then
7845 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7846 else
7847 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7848 fi
7849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7850 ;;
7851 hppa*64*)
7852 shrext='.sl'
7853 hardcode_into_libs=yes
7854 dynamic_linker="$host_os dld.sl"
7855 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858 soname_spec='${libname}${release}${shared_ext}$major'
7859 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7861 ;;
7862 *)
7863 shrext='.sl'
7864 dynamic_linker="$host_os dld.sl"
7865 shlibpath_var=SHLIB_PATH
7866 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868 soname_spec='${libname}${release}${shared_ext}$major'
7869 ;;
7870 esac
John Criswell7a73b802003-06-30 21:59:07 +00007871 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7872 postinstall_cmds='chmod 555 $lib'
7873 ;;
7874
John Criswell47fdd832003-07-14 16:52:07 +00007875irix5* | irix6* | nonstopux*)
7876 case $host_os in
7877 nonstopux*) version_type=nonstopux ;;
7878 *)
7879 if test "$lt_cv_prog_gnu_ld" = yes; then
7880 version_type=linux
7881 else
7882 version_type=irix
7883 fi ;;
7884 esac
John Criswell7a73b802003-06-30 21:59:07 +00007885 need_lib_prefix=no
7886 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007887 soname_spec='${libname}${release}${shared_ext}$major'
7888 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 +00007889 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007890 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007891 libsuff= shlibsuff=
7892 ;;
7893 *)
7894 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7896 libsuff= shlibsuff= libmagic=32-bit;;
7897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7898 libsuff=32 shlibsuff=N32 libmagic=N32;;
7899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007901 *) libsuff= shlibsuff= libmagic=never-match;;
7902 esac
7903 ;;
7904 esac
7905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7906 shlibpath_overrides_runpath=no
7907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007909 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007910 ;;
7911
7912# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007913linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007914 dynamic_linker=no
7915 ;;
7916
7917# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007918linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007919 version_type=linux
7920 need_lib_prefix=no
7921 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7925 shlibpath_var=LD_LIBRARY_PATH
7926 shlibpath_overrides_runpath=no
7927 # This implies no fast_install, which is unacceptable.
7928 # Some rework will be needed to allow for fast_install
7929 # before this can be enabled.
7930 hardcode_into_libs=yes
7931
7932 # We used to test for /lib/ld.so.1 and disable shared libraries on
7933 # powerpc, because MkLinux only supported shared libraries with the
7934 # GNU dynamic linker. Since this was broken with cross compilers,
7935 # most powerpc-linux boxes support dynamic linking these days and
7936 # people can always --disable-shared, the test was removed, and we
7937 # assume the GNU/Linux dynamic linker is in use.
7938 dynamic_linker='GNU/Linux ld.so'
7939 ;;
7940
7941netbsd*)
7942 version_type=sunos
7943 need_lib_prefix=no
7944 need_version=no
7945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7948 dynamic_linker='NetBSD (a.out) ld.so'
7949 else
John Criswell47fdd832003-07-14 16:52:07 +00007950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7951 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007952 dynamic_linker='NetBSD ld.elf_so'
7953 fi
7954 shlibpath_var=LD_LIBRARY_PATH
7955 shlibpath_overrides_runpath=yes
7956 hardcode_into_libs=yes
7957 ;;
7958
7959newsos6)
7960 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7962 shlibpath_var=LD_LIBRARY_PATH
7963 shlibpath_overrides_runpath=yes
7964 ;;
7965
7966nto-qnx)
7967 version_type=linux
7968 need_lib_prefix=no
7969 need_version=no
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007972 shlibpath_var=LD_LIBRARY_PATH
7973 shlibpath_overrides_runpath=yes
7974 ;;
7975
7976openbsd*)
7977 version_type=sunos
7978 need_lib_prefix=no
7979 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7982 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007983 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 +00007984 case $host_os in
7985 openbsd2.[89] | openbsd2.[89].*)
7986 shlibpath_overrides_runpath=no
7987 ;;
7988 *)
7989 shlibpath_overrides_runpath=yes
7990 ;;
7991 esac
John Criswell7a73b802003-06-30 21:59:07 +00007992 else
7993 shlibpath_overrides_runpath=yes
7994 fi
John Criswell7a73b802003-06-30 21:59:07 +00007995 ;;
7996
7997os2*)
7998 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007999 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008000 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008001 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008002 dynamic_linker='OS/2 ld.exe'
8003 shlibpath_var=LIBPATH
8004 ;;
8005
8006osf3* | osf4* | osf5*)
8007 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008008 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008009 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008010 soname_spec='${libname}${release}${shared_ext}$major'
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008012 shlibpath_var=LD_LIBRARY_PATH
8013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8014 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8015 ;;
8016
8017sco3.2v5*)
8018 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008019 soname_spec='${libname}${release}${shared_ext}$major'
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008021 shlibpath_var=LD_LIBRARY_PATH
8022 ;;
8023
8024solaris*)
8025 version_type=linux
8026 need_lib_prefix=no
8027 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008030 shlibpath_var=LD_LIBRARY_PATH
8031 shlibpath_overrides_runpath=yes
8032 hardcode_into_libs=yes
8033 # ldd complains unless libraries are executable
8034 postinstall_cmds='chmod +x $lib'
8035 ;;
8036
8037sunos4*)
8038 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008040 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8041 shlibpath_var=LD_LIBRARY_PATH
8042 shlibpath_overrides_runpath=yes
8043 if test "$with_gnu_ld" = yes; then
8044 need_lib_prefix=no
8045 fi
8046 need_version=yes
8047 ;;
8048
8049sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8050 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8052 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008053 shlibpath_var=LD_LIBRARY_PATH
8054 case $host_vendor in
8055 sni)
8056 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008057 need_lib_prefix=no
8058 export_dynamic_flag_spec='${wl}-Blargedynsym'
8059 runpath_var=LD_RUN_PATH
8060 ;;
8061 siemens)
8062 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008063 ;;
8064 motorola)
8065 need_lib_prefix=no
8066 need_version=no
8067 shlibpath_overrides_runpath=no
8068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8069 ;;
8070 esac
8071 ;;
8072
John Criswell7a73b802003-06-30 21:59:07 +00008073sysv4*MP*)
8074 if test -d /usr/nec ;then
8075 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8077 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008078 shlibpath_var=LD_LIBRARY_PATH
8079 fi
8080 ;;
8081
John Criswell47fdd832003-07-14 16:52:07 +00008082uts4*)
8083 version_type=linux
8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8085 soname_spec='${libname}${release}${shared_ext}$major'
8086 shlibpath_var=LD_LIBRARY_PATH
8087 ;;
8088
John Criswell7a73b802003-06-30 21:59:07 +00008089*)
8090 dynamic_linker=no
8091 ;;
8092esac
8093echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8094echo "${ECHO_T}$dynamic_linker" >&6
8095test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008096
8097if test "x$enable_dlopen" != xyes; then
8098 enable_dlopen=unknown
8099 enable_dlopen_self=unknown
8100 enable_dlopen_self_static=unknown
8101else
8102 lt_cv_dlopen=no
8103 lt_cv_dlopen_libs=
8104
8105 case $host_os in
8106 beos*)
8107 lt_cv_dlopen="load_add_on"
8108 lt_cv_dlopen_libs=
8109 lt_cv_dlopen_self=yes
8110 ;;
8111
John Criswell47fdd832003-07-14 16:52:07 +00008112 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008113 lt_cv_dlopen="LoadLibrary"
8114 lt_cv_dlopen_libs=
8115 ;;
8116
John Criswell47fdd832003-07-14 16:52:07 +00008117 cygwin*)
8118 lt_cv_dlopen="dlopen"
8119 lt_cv_dlopen_libs=
8120 ;;
8121
8122 darwin*)
8123 # if libdl is installed we need to link against it
8124 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8125echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8126if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128else
8129 ac_check_lib_save_LIBS=$LIBS
8130LIBS="-ldl $LIBS"
8131cat >conftest.$ac_ext <<_ACEOF
8132#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008133/* confdefs.h. */
8134_ACEOF
8135cat confdefs.h >>conftest.$ac_ext
8136cat >>conftest.$ac_ext <<_ACEOF
8137/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008138
8139/* Override any gcc2 internal prototype to avoid an error. */
8140#ifdef __cplusplus
8141extern "C"
8142#endif
8143/* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8145char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008146int
8147main ()
8148{
8149dlopen ();
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154rm -f conftest.$ac_objext conftest$ac_exeext
8155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156 (eval $ac_link) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_lib_dl_dlopen=yes
8167else
8168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008169sed 's/^/| /' conftest.$ac_ext >&5
8170
John Criswell47fdd832003-07-14 16:52:07 +00008171ac_cv_lib_dl_dlopen=no
8172fi
8173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8174LIBS=$ac_check_lib_save_LIBS
8175fi
8176echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8177echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8178if test $ac_cv_lib_dl_dlopen = yes; then
8179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8180else
8181
8182 lt_cv_dlopen="dyld"
8183 lt_cv_dlopen_libs=
8184 lt_cv_dlopen_self=yes
8185
8186fi
8187
8188 ;;
8189
John Criswell7a73b802003-06-30 21:59:07 +00008190 *)
8191 echo "$as_me:$LINENO: checking for shl_load" >&5
8192echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8193if test "${ac_cv_func_shl_load+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 cat >conftest.$ac_ext <<_ACEOF
8197#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008198/* confdefs.h. */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008203/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008204 which can conflict with char shl_load (); below.
8205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206 <limits.h> exists even on freestanding compilers. */
8207#ifdef __STDC__
8208# include <limits.h>
8209#else
8210# include <assert.h>
8211#endif
John Criswell7a73b802003-06-30 21:59:07 +00008212/* Override any gcc2 internal prototype to avoid an error. */
8213#ifdef __cplusplus
8214extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008215{
John Criswell7a73b802003-06-30 21:59:07 +00008216#endif
8217/* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8219char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008220/* The GNU C library defines this for functions which it implements
8221 to always fail with ENOSYS. Some functions are actually named
8222 something starting with __ and the normal name is an alias. */
8223#if defined (__stub_shl_load) || defined (__stub___shl_load)
8224choke me
8225#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008226char (*f) () = shl_load;
8227#endif
8228#ifdef __cplusplus
8229}
John Criswell7a73b802003-06-30 21:59:07 +00008230#endif
8231
John Criswell0c38eaf2003-09-10 15:17:25 +00008232int
8233main ()
8234{
8235return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008236 ;
8237 return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext conftest$ac_exeext
8241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_func_shl_load=yes
8253else
8254 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008255sed 's/^/| /' conftest.$ac_ext >&5
8256
John Criswell7a73b802003-06-30 21:59:07 +00008257ac_cv_func_shl_load=no
8258fi
8259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8260fi
8261echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8262echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8263if test $ac_cv_func_shl_load = yes; then
8264 lt_cv_dlopen="shl_load"
8265else
8266 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8267echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8268if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270else
8271 ac_check_lib_save_LIBS=$LIBS
8272LIBS="-ldld $LIBS"
8273cat >conftest.$ac_ext <<_ACEOF
8274#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008280
8281/* Override any gcc2 internal prototype to avoid an error. */
8282#ifdef __cplusplus
8283extern "C"
8284#endif
8285/* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8287char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008288int
8289main ()
8290{
8291shl_load ();
8292 ;
8293 return 0;
8294}
8295_ACEOF
8296rm -f conftest.$ac_objext conftest$ac_exeext
8297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298 (eval $ac_link) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_lib_dld_shl_load=yes
8309else
8310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008311sed 's/^/| /' conftest.$ac_ext >&5
8312
John Criswell7a73b802003-06-30 21:59:07 +00008313ac_cv_lib_dld_shl_load=no
8314fi
8315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8316LIBS=$ac_check_lib_save_LIBS
8317fi
8318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8319echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8320if test $ac_cv_lib_dld_shl_load = yes; then
8321 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8322else
8323 echo "$as_me:$LINENO: checking for dlopen" >&5
8324echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8325if test "${ac_cv_func_dlopen+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327else
8328 cat >conftest.$ac_ext <<_ACEOF
8329#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008330/* confdefs.h. */
8331_ACEOF
8332cat confdefs.h >>conftest.$ac_ext
8333cat >>conftest.$ac_ext <<_ACEOF
8334/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008335/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008336 which can conflict with char dlopen (); below.
8337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8338 <limits.h> exists even on freestanding compilers. */
8339#ifdef __STDC__
8340# include <limits.h>
8341#else
8342# include <assert.h>
8343#endif
John Criswell7a73b802003-06-30 21:59:07 +00008344/* Override any gcc2 internal prototype to avoid an error. */
8345#ifdef __cplusplus
8346extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008347{
John Criswell7a73b802003-06-30 21:59:07 +00008348#endif
8349/* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008352/* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355#if defined (__stub_dlopen) || defined (__stub___dlopen)
8356choke me
8357#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008358char (*f) () = dlopen;
8359#endif
8360#ifdef __cplusplus
8361}
John Criswell7a73b802003-06-30 21:59:07 +00008362#endif
8363
John Criswell0c38eaf2003-09-10 15:17:25 +00008364int
8365main ()
8366{
8367return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008368 ;
8369 return 0;
8370}
8371_ACEOF
8372rm -f conftest.$ac_objext conftest$ac_exeext
8373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374 (eval $ac_link) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -s conftest$ac_exeext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_cv_func_dlopen=yes
8385else
8386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008387sed 's/^/| /' conftest.$ac_ext >&5
8388
John Criswell7a73b802003-06-30 21:59:07 +00008389ac_cv_func_dlopen=no
8390fi
8391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8392fi
8393echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8394echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8395if test $ac_cv_func_dlopen = yes; then
8396 lt_cv_dlopen="dlopen"
8397else
8398 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8399echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8400if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402else
8403 ac_check_lib_save_LIBS=$LIBS
8404LIBS="-ldl $LIBS"
8405cat >conftest.$ac_ext <<_ACEOF
8406#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008407/* confdefs.h. */
8408_ACEOF
8409cat confdefs.h >>conftest.$ac_ext
8410cat >>conftest.$ac_ext <<_ACEOF
8411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008412
8413/* Override any gcc2 internal prototype to avoid an error. */
8414#ifdef __cplusplus
8415extern "C"
8416#endif
8417/* We use char because int might match the return type of a gcc2
8418 builtin and then its argument prototype would still apply. */
8419char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008420int
8421main ()
8422{
8423dlopen ();
8424 ;
8425 return 0;
8426}
8427_ACEOF
8428rm -f conftest.$ac_objext conftest$ac_exeext
8429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8430 (eval $ac_link) 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 ac_cv_lib_dl_dlopen=yes
8441else
8442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008443sed 's/^/| /' conftest.$ac_ext >&5
8444
John Criswell7a73b802003-06-30 21:59:07 +00008445ac_cv_lib_dl_dlopen=no
8446fi
8447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8448LIBS=$ac_check_lib_save_LIBS
8449fi
8450echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8452if test $ac_cv_lib_dl_dlopen = yes; then
8453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8454else
8455 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8456echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8457if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459else
8460 ac_check_lib_save_LIBS=$LIBS
8461LIBS="-lsvld $LIBS"
8462cat >conftest.$ac_ext <<_ACEOF
8463#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008469
8470/* Override any gcc2 internal prototype to avoid an error. */
8471#ifdef __cplusplus
8472extern "C"
8473#endif
8474/* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8476char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008477int
8478main ()
8479{
8480dlopen ();
8481 ;
8482 return 0;
8483}
8484_ACEOF
8485rm -f conftest.$ac_objext conftest$ac_exeext
8486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487 (eval $ac_link) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_lib_svld_dlopen=yes
8498else
8499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008500sed 's/^/| /' conftest.$ac_ext >&5
8501
John Criswell7a73b802003-06-30 21:59:07 +00008502ac_cv_lib_svld_dlopen=no
8503fi
8504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8505LIBS=$ac_check_lib_save_LIBS
8506fi
8507echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8508echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8509if test $ac_cv_lib_svld_dlopen = yes; then
8510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8511else
8512 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8513echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8514if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517 ac_check_lib_save_LIBS=$LIBS
8518LIBS="-ldld $LIBS"
8519cat >conftest.$ac_ext <<_ACEOF
8520#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008521/* confdefs.h. */
8522_ACEOF
8523cat confdefs.h >>conftest.$ac_ext
8524cat >>conftest.$ac_ext <<_ACEOF
8525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008526
8527/* Override any gcc2 internal prototype to avoid an error. */
8528#ifdef __cplusplus
8529extern "C"
8530#endif
8531/* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008534int
8535main ()
8536{
8537dld_link ();
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542rm -f conftest.$ac_objext conftest$ac_exeext
8543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544 (eval $ac_link) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_lib_dld_dld_link=yes
8555else
8556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008557sed 's/^/| /' conftest.$ac_ext >&5
8558
John Criswell7a73b802003-06-30 21:59:07 +00008559ac_cv_lib_dld_dld_link=no
8560fi
8561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8562LIBS=$ac_check_lib_save_LIBS
8563fi
8564echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8565echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8566if test $ac_cv_lib_dld_dld_link = yes; then
8567 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8568fi
8569
8570
8571fi
8572
8573
8574fi
8575
8576
8577fi
8578
8579
8580fi
8581
8582
8583fi
8584
8585 ;;
8586 esac
8587
8588 if test "x$lt_cv_dlopen" != xno; then
8589 enable_dlopen=yes
8590 else
8591 enable_dlopen=no
8592 fi
8593
8594 case $lt_cv_dlopen in
8595 dlopen)
8596 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008597 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008598
8599 save_LDFLAGS="$LDFLAGS"
8600 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8601
8602 save_LIBS="$LIBS"
8603 LIBS="$lt_cv_dlopen_libs $LIBS"
8604
8605 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8606echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8607if test "${lt_cv_dlopen_self+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609else
8610 if test "$cross_compiling" = yes; then :
8611 lt_cv_dlopen_self=cross
8612else
John Criswell47fdd832003-07-14 16:52:07 +00008613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008614 lt_status=$lt_dlunknown
8615 cat > conftest.$ac_ext <<EOF
Misha Brukman811ce9f2003-11-12 22:16:51 +00008616#line 8616 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008617#include "confdefs.h"
8618
8619#if HAVE_DLFCN_H
8620#include <dlfcn.h>
8621#endif
8622
8623#include <stdio.h>
8624
8625#ifdef RTLD_GLOBAL
8626# define LT_DLGLOBAL RTLD_GLOBAL
8627#else
8628# ifdef DL_GLOBAL
8629# define LT_DLGLOBAL DL_GLOBAL
8630# else
8631# define LT_DLGLOBAL 0
8632# endif
8633#endif
8634
8635/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8636 find out it does not work in some platform. */
8637#ifndef LT_DLLAZY_OR_NOW
8638# ifdef RTLD_LAZY
8639# define LT_DLLAZY_OR_NOW RTLD_LAZY
8640# else
8641# ifdef DL_LAZY
8642# define LT_DLLAZY_OR_NOW DL_LAZY
8643# else
8644# ifdef RTLD_NOW
8645# define LT_DLLAZY_OR_NOW RTLD_NOW
8646# else
8647# ifdef DL_NOW
8648# define LT_DLLAZY_OR_NOW DL_NOW
8649# else
8650# define LT_DLLAZY_OR_NOW 0
8651# endif
8652# endif
8653# endif
8654# endif
8655#endif
8656
8657#ifdef __cplusplus
8658extern "C" void exit (int);
8659#endif
8660
8661void fnord() { int i=42;}
8662int main ()
8663{
8664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8665 int status = $lt_dlunknown;
8666
8667 if (self)
8668 {
8669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8671 /* dlclose (self); */
8672 }
8673
8674 exit (status);
8675}
8676EOF
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8682 (./conftest; exit; ) 2>/dev/null
8683 lt_status=$?
8684 case x$lt_status in
8685 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8686 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8687 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8688 esac
8689 else :
8690 # compilation failed
8691 lt_cv_dlopen_self=no
8692 fi
8693fi
8694rm -fr conftest*
8695
8696
8697fi
8698echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8699echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8700
8701 if test "x$lt_cv_dlopen_self" = xyes; then
8702 LDFLAGS="$LDFLAGS $link_static_flag"
8703 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8704echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8705if test "${lt_cv_dlopen_self_static+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707else
8708 if test "$cross_compiling" = yes; then :
8709 lt_cv_dlopen_self_static=cross
8710else
John Criswell47fdd832003-07-14 16:52:07 +00008711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008712 lt_status=$lt_dlunknown
8713 cat > conftest.$ac_ext <<EOF
Misha Brukman811ce9f2003-11-12 22:16:51 +00008714#line 8714 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008715#include "confdefs.h"
8716
8717#if HAVE_DLFCN_H
8718#include <dlfcn.h>
8719#endif
8720
8721#include <stdio.h>
8722
8723#ifdef RTLD_GLOBAL
8724# define LT_DLGLOBAL RTLD_GLOBAL
8725#else
8726# ifdef DL_GLOBAL
8727# define LT_DLGLOBAL DL_GLOBAL
8728# else
8729# define LT_DLGLOBAL 0
8730# endif
8731#endif
8732
8733/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8734 find out it does not work in some platform. */
8735#ifndef LT_DLLAZY_OR_NOW
8736# ifdef RTLD_LAZY
8737# define LT_DLLAZY_OR_NOW RTLD_LAZY
8738# else
8739# ifdef DL_LAZY
8740# define LT_DLLAZY_OR_NOW DL_LAZY
8741# else
8742# ifdef RTLD_NOW
8743# define LT_DLLAZY_OR_NOW RTLD_NOW
8744# else
8745# ifdef DL_NOW
8746# define LT_DLLAZY_OR_NOW DL_NOW
8747# else
8748# define LT_DLLAZY_OR_NOW 0
8749# endif
8750# endif
8751# endif
8752# endif
8753#endif
8754
8755#ifdef __cplusplus
8756extern "C" void exit (int);
8757#endif
8758
8759void fnord() { int i=42;}
8760int main ()
8761{
8762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8763 int status = $lt_dlunknown;
8764
8765 if (self)
8766 {
8767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8768 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8769 /* dlclose (self); */
8770 }
8771
8772 exit (status);
8773}
8774EOF
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8780 (./conftest; exit; ) 2>/dev/null
8781 lt_status=$?
8782 case x$lt_status in
8783 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8784 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8785 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8786 esac
8787 else :
8788 # compilation failed
8789 lt_cv_dlopen_self_static=no
8790 fi
8791fi
8792rm -fr conftest*
8793
8794
8795fi
8796echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8797echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8798 fi
8799
8800 CPPFLAGS="$save_CPPFLAGS"
8801 LDFLAGS="$save_LDFLAGS"
8802 LIBS="$save_LIBS"
8803 ;;
8804 esac
8805
8806 case $lt_cv_dlopen_self in
8807 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8808 *) enable_dlopen_self=unknown ;;
8809 esac
8810
8811 case $lt_cv_dlopen_self_static in
8812 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8813 *) enable_dlopen_self_static=unknown ;;
8814 esac
8815fi
8816
8817
John Criswell47fdd832003-07-14 16:52:07 +00008818# Report which librarie types wil actually be built
8819echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8820echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8821echo "$as_me:$LINENO: result: $can_build_shared" >&5
8822echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008823
John Criswell47fdd832003-07-14 16:52:07 +00008824echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8825echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8826test "$can_build_shared" = "no" && enable_shared=no
8827
8828# On AIX, shared libraries and static libraries use the same namespace, and
8829# are all built from PIC.
8830case "$host_os" in
8831aix3*)
8832 test "$enable_shared" = yes && enable_static=no
8833 if test -n "$RANLIB"; then
8834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8835 postinstall_cmds='$RANLIB $lib'
8836 fi
8837 ;;
8838
8839aix4*)
8840 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8841 test "$enable_shared" = yes && enable_static=no
8842 fi
8843 ;;
8844 darwin* | rhapsody*)
8845 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8846 archive_cmds_need_lc=no
8847 case "$host_os" in
8848 rhapsody* | darwin1.[012])
8849 allow_undefined_flag='-undefined suppress'
8850 ;;
8851 *) # Darwin 1.3 on
8852 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8853 ;;
8854 esac
8855 # FIXME: Relying on posixy $() will cause problems for
8856 # cross-compilation, but unfortunately the echo tests do not
8857 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8858 # `"' quotes if we put them in here... so don't!
8859 output_verbose_link_cmd='echo'
8860 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8861 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8863 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}'
8864 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}'
8865 hardcode_direct=no
8866 hardcode_automatic=yes
8867 hardcode_shlibpath_var=unsupported
8868 whole_archive_flag_spec='-all_load $convenience'
8869 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008870 fi
John Criswell7a73b802003-06-30 21:59:07 +00008871 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008872esac
8873echo "$as_me:$LINENO: result: $enable_shared" >&5
8874echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008875
John Criswell47fdd832003-07-14 16:52:07 +00008876echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8877echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8878# Make sure either enable_shared or enable_static is yes.
8879test "$enable_shared" = yes || enable_static=yes
8880echo "$as_me:$LINENO: result: $enable_static" >&5
8881echo "${ECHO_T}$enable_static" >&6
8882
8883# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008884# libtool distribution, otherwise you forgot to ship ltmain.sh
8885# with your package, and you will get complaints that there are
8886# no rules to generate ltmain.sh.
8887if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008888 # See if we are running on zsh, and set the options which allow our commands through
8889 # without removal of \ escapes.
8890 if test -n "${ZSH_VERSION+set}" ; then
8891 setopt NO_GLOB_SUBST
8892 fi
John Criswell7a73b802003-06-30 21:59:07 +00008893 # Now quote all the things that may contain metacharacters while being
8894 # careful not to overquote the AC_SUBSTed values. We take copies of the
8895 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008896 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8897 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8898 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8899 deplibs_check_method reload_flag reload_cmds need_locks \
8900 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8901 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008902 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008903 old_postinstall_cmds old_postuninstall_cmds \
8904 compiler \
8905 CC \
8906 LD \
8907 lt_prog_compiler_wl \
8908 lt_prog_compiler_pic \
8909 lt_prog_compiler_static \
8910 lt_prog_compiler_no_builtin_flag \
8911 export_dynamic_flag_spec \
8912 thread_safe_flag_spec \
8913 whole_archive_flag_spec \
8914 enable_shared_with_static_runtimes \
8915 old_archive_cmds \
8916 old_archive_from_new_cmds \
8917 predep_objects \
8918 postdep_objects \
8919 predeps \
8920 postdeps \
8921 compiler_lib_search_path \
8922 archive_cmds \
8923 archive_expsym_cmds \
8924 postinstall_cmds \
8925 postuninstall_cmds \
8926 old_archive_from_expsyms_cmds \
8927 allow_undefined_flag \
8928 no_undefined_flag \
8929 export_symbols_cmds \
8930 hardcode_libdir_flag_spec \
8931 hardcode_libdir_flag_spec_ld \
8932 hardcode_libdir_separator \
8933 hardcode_automatic \
8934 module_cmds \
8935 module_expsym_cmds \
8936 lt_cv_prog_compiler_c_o \
8937 exclude_expsyms \
8938 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008939
8940 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008941 old_archive_cmds | \
8942 old_archive_from_new_cmds | \
8943 archive_cmds | \
8944 archive_expsym_cmds | \
8945 module_cmds | \
8946 module_expsym_cmds | \
8947 old_archive_from_expsyms_cmds | \
8948 export_symbols_cmds | \
8949 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008950 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008951 old_postinstall_cmds | old_postuninstall_cmds | \
8952 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008953 # Double-quote double-evaled strings.
8954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8955 ;;
8956 *)
8957 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8958 ;;
8959 esac
8960 done
8961
John Criswell47fdd832003-07-14 16:52:07 +00008962 case $lt_echo in
8963 *'\$0 --fallback-echo"')
8964 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8965 ;;
8966 esac
8967
8968cfgfile="${ofile}T"
8969 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8970 $rm -f "$cfgfile"
8971 { echo "$as_me:$LINENO: creating $ofile" >&5
8972echo "$as_me: creating $ofile" >&6;}
8973
8974 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008975#! $SHELL
8976
John Criswell47fdd832003-07-14 16:52:07 +00008977# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008978# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8979# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8980#
John Criswell47fdd832003-07-14 16:52:07 +00008981# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8982# Free Software Foundation, Inc.
8983#
8984# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008985# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8986#
8987# This program is free software; you can redistribute it and/or modify
8988# it under the terms of the GNU General Public License as published by
8989# the Free Software Foundation; either version 2 of the License, or
8990# (at your option) any later version.
8991#
8992# This program is distributed in the hope that it will be useful, but
8993# WITHOUT ANY WARRANTY; without even the implied warranty of
8994# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8995# General Public License for more details.
8996#
8997# You should have received a copy of the GNU General Public License
8998# along with this program; if not, write to the Free Software
8999# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9000#
9001# As a special exception to the GNU General Public License, if you
9002# distribute this file as part of a program that contains a
9003# configuration script generated by Autoconf, you may include it under
9004# the same distribution terms that you use for the rest of that program.
9005
John Criswell47fdd832003-07-14 16:52:07 +00009006# A sed program that does not truncate output.
9007SED=$lt_SED
9008
John Criswell7a73b802003-06-30 21:59:07 +00009009# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00009010Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00009011
9012# The HP-UX ksh and POSIX shell print the target directory to stdout
9013# if CDPATH is set.
9014if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9015
John Criswell47fdd832003-07-14 16:52:07 +00009016# The names of the tagged configurations supported by this script.
9017available_tags=
9018
John Criswell7a73b802003-06-30 21:59:07 +00009019# ### BEGIN LIBTOOL CONFIG
9020
9021# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9022
9023# Shell to use when invoking shell scripts.
9024SHELL=$lt_SHELL
9025
9026# Whether or not to build shared libraries.
9027build_libtool_libs=$enable_shared
9028
9029# Whether or not to build static libraries.
9030build_old_libs=$enable_static
9031
9032# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009033build_libtool_need_lc=$archive_cmds_need_lc
9034
9035# Whether or not to disallow shared libs when runtime libs are static
9036allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009037
9038# Whether or not to optimize for fast installation.
9039fast_install=$enable_fast_install
9040
9041# The host system.
9042host_alias=$host_alias
9043host=$host
9044
9045# An echo program that does not interpret backslashes.
9046echo=$lt_echo
9047
9048# The archiver.
9049AR=$lt_AR
9050AR_FLAGS=$lt_AR_FLAGS
9051
John Criswell47fdd832003-07-14 16:52:07 +00009052# A C compiler.
9053LTCC=$lt_LTCC
9054
9055# A language-specific compiler.
9056CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009057
9058# Is the compiler the GNU C compiler?
9059with_gcc=$GCC
9060
John Criswell47fdd832003-07-14 16:52:07 +00009061# An ERE matcher.
9062EGREP=$lt_EGREP
9063
John Criswell7a73b802003-06-30 21:59:07 +00009064# The linker used to build libraries.
9065LD=$lt_LD
9066
9067# Whether we need hard or soft links.
9068LN_S=$lt_LN_S
9069
9070# A BSD-compatible nm program.
9071NM=$lt_NM
9072
9073# A symbol stripping program
9074STRIP=$STRIP
9075
9076# Used to examine libraries when file_magic_cmd begins "file"
9077MAGIC_CMD=$MAGIC_CMD
9078
9079# Used on cygwin: DLL creation program.
9080DLLTOOL="$DLLTOOL"
9081
9082# Used on cygwin: object dumper.
9083OBJDUMP="$OBJDUMP"
9084
9085# Used on cygwin: assembler.
9086AS="$AS"
9087
9088# The name of the directory that contains temporary libtool files.
9089objdir=$objdir
9090
9091# How to create reloadable object files.
9092reload_flag=$lt_reload_flag
9093reload_cmds=$lt_reload_cmds
9094
9095# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009096wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009097
9098# Object file suffix (normally "o").
9099objext="$ac_objext"
9100
9101# Old archive suffix (normally "a").
9102libext="$libext"
9103
John Criswell47fdd832003-07-14 16:52:07 +00009104# Shared library suffix (normally ".so").
9105shrext='$shrext'
9106
John Criswell7a73b802003-06-30 21:59:07 +00009107# Executable file suffix (normally "").
9108exeext="$exeext"
9109
9110# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009111pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009112pic_mode=$pic_mode
9113
John Criswell47fdd832003-07-14 16:52:07 +00009114# What is the maximum length of a command?
9115max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009116
John Criswell47fdd832003-07-14 16:52:07 +00009117# Does compiler simultaneously support -c and -o options?
9118compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009119
9120# Must we lock files when doing compilation ?
9121need_locks=$lt_need_locks
9122
9123# Do we need the lib prefix for modules?
9124need_lib_prefix=$need_lib_prefix
9125
9126# Do we need a version for libraries?
9127need_version=$need_version
9128
9129# Whether dlopen is supported.
9130dlopen_support=$enable_dlopen
9131
9132# Whether dlopen of programs is supported.
9133dlopen_self=$enable_dlopen_self
9134
9135# Whether dlopen of statically linked programs is supported.
9136dlopen_self_static=$enable_dlopen_self_static
9137
9138# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009139link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009140
9141# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009143
9144# Compiler flag to allow reflexive dlopens.
9145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9146
9147# Compiler flag to generate shared objects directly from archives.
9148whole_archive_flag_spec=$lt_whole_archive_flag_spec
9149
9150# Compiler flag to generate thread-safe objects.
9151thread_safe_flag_spec=$lt_thread_safe_flag_spec
9152
9153# Library versioning type.
9154version_type=$version_type
9155
9156# Format of library name prefix.
9157libname_spec=$lt_libname_spec
9158
9159# List of archive names. First name is the real one, the rest are links.
9160# The last name is the one that the linker finds with -lNAME.
9161library_names_spec=$lt_library_names_spec
9162
9163# The coded name of the library, if different from the real name.
9164soname_spec=$lt_soname_spec
9165
9166# Commands used to build and install an old-style archive.
9167RANLIB=$lt_RANLIB
9168old_archive_cmds=$lt_old_archive_cmds
9169old_postinstall_cmds=$lt_old_postinstall_cmds
9170old_postuninstall_cmds=$lt_old_postuninstall_cmds
9171
9172# Create an old-style archive from a shared archive.
9173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9174
9175# Create a temporary old-style archive to link instead of a shared archive.
9176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9177
9178# Commands used to build and install a shared archive.
9179archive_cmds=$lt_archive_cmds
9180archive_expsym_cmds=$lt_archive_expsym_cmds
9181postinstall_cmds=$lt_postinstall_cmds
9182postuninstall_cmds=$lt_postuninstall_cmds
9183
John Criswell47fdd832003-07-14 16:52:07 +00009184# Commands used to build a loadable module (assumed same as above if empty)
9185module_cmds=$lt_module_cmds
9186module_expsym_cmds=$lt_module_expsym_cmds
9187
John Criswell7a73b802003-06-30 21:59:07 +00009188# Commands to strip libraries.
9189old_striplib=$lt_old_striplib
9190striplib=$lt_striplib
9191
John Criswell47fdd832003-07-14 16:52:07 +00009192# Dependencies to place before the objects being linked to create a
9193# shared library.
9194predep_objects=$lt_predep_objects
9195
9196# Dependencies to place after the objects being linked to create a
9197# shared library.
9198postdep_objects=$lt_postdep_objects
9199
9200# Dependencies to place before the objects being linked to create a
9201# shared library.
9202predeps=$lt_predeps
9203
9204# Dependencies to place after the objects being linked to create a
9205# shared library.
9206postdeps=$lt_postdeps
9207
9208# The library search path used internally by the compiler when linking
9209# a shared library.
9210compiler_lib_search_path=$lt_compiler_lib_search_path
9211
John Criswell7a73b802003-06-30 21:59:07 +00009212# Method to check whether dependent libraries are shared objects.
9213deplibs_check_method=$lt_deplibs_check_method
9214
9215# Command to use when deplibs_check_method == file_magic.
9216file_magic_cmd=$lt_file_magic_cmd
9217
9218# Flag that allows shared libraries with undefined symbols to be built.
9219allow_undefined_flag=$lt_allow_undefined_flag
9220
9221# Flag that forces no undefined symbols.
9222no_undefined_flag=$lt_no_undefined_flag
9223
9224# Commands used to finish a libtool library installation in a directory.
9225finish_cmds=$lt_finish_cmds
9226
9227# Same as above, but a single script fragment to be evaled but not shown.
9228finish_eval=$lt_finish_eval
9229
9230# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009231global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009232
9233# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009234global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009235
9236# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009237global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009238
9239# This is the shared library runtime path variable.
9240runpath_var=$runpath_var
9241
9242# This is the shared library path variable.
9243shlibpath_var=$shlibpath_var
9244
9245# Is shlibpath searched before the hard-coded library search path?
9246shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9247
9248# How to hardcode a shared library path into an executable.
9249hardcode_action=$hardcode_action
9250
9251# Whether we should hardcode library paths into libraries.
9252hardcode_into_libs=$hardcode_into_libs
9253
9254# Flag to hardcode \$libdir into a binary during linking.
9255# This must work even if \$libdir does not exist.
9256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9257
John Criswell47fdd832003-07-14 16:52:07 +00009258# If ld is used when linking, flag to hardcode \$libdir into
9259# a binary during linking. This must work even if \$libdir does
9260# not exist.
9261hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9262
John Criswell7a73b802003-06-30 21:59:07 +00009263# Whether we need a single -rpath flag with a separated argument.
9264hardcode_libdir_separator=$lt_hardcode_libdir_separator
9265
John Criswell47fdd832003-07-14 16:52:07 +00009266# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009267# resulting binary.
9268hardcode_direct=$hardcode_direct
9269
9270# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9271# resulting binary.
9272hardcode_minus_L=$hardcode_minus_L
9273
9274# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9275# the resulting binary.
9276hardcode_shlibpath_var=$hardcode_shlibpath_var
9277
John Criswell47fdd832003-07-14 16:52:07 +00009278# Set to yes if building a shared library automatically hardcodes DIR into the library
9279# and all subsequent libraries and executables linked against it.
9280hardcode_automatic=$hardcode_automatic
9281
John Criswell7a73b802003-06-30 21:59:07 +00009282# Variables whose values should be saved in libtool wrapper scripts and
9283# restored at relink time.
9284variables_saved_for_relink="$variables_saved_for_relink"
9285
9286# Whether libtool must link a program against all its dependency libraries.
9287link_all_deplibs=$link_all_deplibs
9288
9289# Compile-time system search path for libraries
9290sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9291
9292# Run-time system search path for libraries
9293sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9294
9295# Fix the shell variable \$srcfile for the compiler.
9296fix_srcfile_path="$fix_srcfile_path"
9297
9298# Set to yes if exported symbols are required.
9299always_export_symbols=$always_export_symbols
9300
9301# The commands to list exported symbols.
9302export_symbols_cmds=$lt_export_symbols_cmds
9303
9304# The commands to extract the exported symbol list from a shared archive.
9305extract_expsyms_cmds=$lt_extract_expsyms_cmds
9306
9307# Symbols that should not be listed in the preloaded symbols.
9308exclude_expsyms=$lt_exclude_expsyms
9309
9310# Symbols that must always be exported.
9311include_expsyms=$lt_include_expsyms
9312
9313# ### END LIBTOOL CONFIG
9314
9315__EOF__
9316
John Criswell47fdd832003-07-14 16:52:07 +00009317
John Criswell7a73b802003-06-30 21:59:07 +00009318 case $host_os in
9319 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009320 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009321
9322# AIX sometimes has problems with the GCC collect2 program. For some
9323# reason, if we set the COLLECT_NAMES environment variable, the problems
9324# vanish in a puff of smoke.
9325if test "X${COLLECT_NAMES+set}" != Xset; then
9326 COLLECT_NAMES=
9327 export COLLECT_NAMES
9328fi
9329EOF
9330 ;;
9331 esac
9332
John Criswell7a73b802003-06-30 21:59:07 +00009333 # We use sed instead of cat because bash on DJGPP gets confused if
9334 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9335 # text mode, it properly converts lines to CR/LF. This bash problem
9336 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009337 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009338
John Criswell47fdd832003-07-14 16:52:07 +00009339 mv -f "$cfgfile" "$ofile" || \
9340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009341 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009342
9343else
9344 # If there is no Makefile yet, we rely on a make rule to execute
9345 # `config.status --recheck' to rerun these tests and create the
9346 # libtool script then.
9347 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009348fi
John Criswell7a73b802003-06-30 21:59:07 +00009349
9350
John Criswell47fdd832003-07-14 16:52:07 +00009351ac_ext=c
9352ac_cpp='$CPP $CPPFLAGS'
9353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356
9357CC="$lt_save_CC"
9358
9359
9360# Check whether --with-tags or --without-tags was given.
9361if test "${with_tags+set}" = set; then
9362 withval="$with_tags"
9363 tagnames="$withval"
9364fi;
9365
9366if test -f "$ltmain" && test -n "$tagnames"; then
9367 if test ! -f "${ofile}"; then
9368 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9369echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9370 fi
9371
9372 if test -z "$LTCC"; then
9373 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9374 if test -z "$LTCC"; then
9375 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9376echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9377 else
9378 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9379echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9380 fi
9381 fi
9382
9383 # Extract list of available tagged configurations in $ofile.
9384 # Note that this assumes the entire list is on one line.
9385 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9386
9387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9388 for tagname in $tagnames; do
9389 IFS="$lt_save_ifs"
9390 # Check whether tagname contains only valid characters
9391 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9392 "") ;;
9393 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9394echo "$as_me: error: invalid tag name: $tagname" >&2;}
9395 { (exit 1); exit 1; }; }
9396 ;;
9397 esac
9398
9399 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9400 then
9401 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9402echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9403 { (exit 1); exit 1; }; }
9404 fi
9405
9406 # Update the list of available tags.
9407 if test -n "$tagname"; then
9408 echo appending configuration tag \"$tagname\" to $ofile
9409
9410 case $tagname in
9411 CXX)
9412 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9413 ac_ext=cc
9414ac_cpp='$CXXCPP $CPPFLAGS'
9415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9418
9419
9420
9421
9422archive_cmds_need_lc_CXX=no
9423allow_undefined_flag_CXX=
9424always_export_symbols_CXX=no
9425archive_expsym_cmds_CXX=
9426export_dynamic_flag_spec_CXX=
9427hardcode_direct_CXX=no
9428hardcode_libdir_flag_spec_CXX=
9429hardcode_libdir_flag_spec_ld_CXX=
9430hardcode_libdir_separator_CXX=
9431hardcode_minus_L_CXX=no
9432hardcode_automatic_CXX=no
9433module_cmds_CXX=
9434module_expsym_cmds_CXX=
9435link_all_deplibs_CXX=unknown
9436old_archive_cmds_CXX=$old_archive_cmds
9437no_undefined_flag_CXX=
9438whole_archive_flag_spec_CXX=
9439enable_shared_with_static_runtimes_CXX=no
9440
9441# Dependencies to place before and after the object being linked:
9442predep_objects_CXX=
9443postdep_objects_CXX=
9444predeps_CXX=
9445postdeps_CXX=
9446compiler_lib_search_path_CXX=
9447
9448# Source file extension for C++ test sources.
9449ac_ext=cc
9450
9451# Object file extension for compiled C++ test sources.
9452objext=o
9453objext_CXX=$objext
9454
9455# Code to be used in simple compile tests
9456lt_simple_compile_test_code="int some_variable = 0;\n"
9457
9458# Code to be used in simple link tests
9459lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9460
9461# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9462
9463# If no C compiler was specified, use CC.
9464LTCC=${LTCC-"$CC"}
9465
9466# Allow CC to be a program name with arguments.
9467compiler=$CC
9468
9469
9470# Allow CC to be a program name with arguments.
9471lt_save_CC=$CC
9472lt_save_LD=$LD
9473lt_save_GCC=$GCC
9474GCC=$GXX
9475lt_save_with_gnu_ld=$with_gnu_ld
9476lt_save_path_LD=$lt_cv_path_LD
9477if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9478 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9479else
9480 unset lt_cv_prog_gnu_ld
9481fi
9482if test -n "${lt_cv_path_LDCXX+set}"; then
9483 lt_cv_path_LD=$lt_cv_path_LDCXX
9484else
9485 unset lt_cv_path_LD
9486fi
9487test -z "${LDCXX+set}" || LD=$LDCXX
9488CC=${CXX-"c++"}
9489compiler=$CC
9490compiler_CXX=$CC
9491cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9492
9493# We don't want -fno-exception wen compiling C++ code, so set the
9494# no_builtin_flag separately
9495if test "$GXX" = yes; then
9496 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9497else
9498 lt_prog_compiler_no_builtin_flag_CXX=
9499fi
9500
9501if test "$GXX" = yes; then
9502 # Set up default GNU C++ configuration
9503
9504
9505# Check whether --with-gnu-ld or --without-gnu-ld was given.
9506if test "${with_gnu_ld+set}" = set; then
9507 withval="$with_gnu_ld"
9508 test "$withval" = no || with_gnu_ld=yes
9509else
9510 with_gnu_ld=no
9511fi;
9512ac_prog=ld
9513if test "$GCC" = yes; then
9514 # Check if gcc -print-prog-name=ld gives a path.
9515 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9516echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9517 case $host in
9518 *-*-mingw*)
9519 # gcc leaves a trailing carriage return which upsets mingw
9520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9521 *)
9522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9523 esac
9524 case $ac_prog in
9525 # Accept absolute paths.
9526 [\\/]* | ?:[\\/]*)
9527 re_direlt='/[^/][^/]*/\.\./'
9528 # Canonicalize the path of ld
9529 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9530 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9532 done
9533 test -z "$LD" && LD="$ac_prog"
9534 ;;
9535 "")
9536 # If it fails, then pretend we aren't using GCC.
9537 ac_prog=ld
9538 ;;
9539 *)
9540 # If it is relative, then search for the first ld in PATH.
9541 with_gnu_ld=unknown
9542 ;;
9543 esac
9544elif test "$with_gnu_ld" = yes; then
9545 echo "$as_me:$LINENO: checking for GNU ld" >&5
9546echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9547else
9548 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9549echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9550fi
9551if test "${lt_cv_path_LD+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554 if test -z "$LD"; then
9555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9556 for ac_dir in $PATH; do
9557 IFS="$lt_save_ifs"
9558 test -z "$ac_dir" && ac_dir=.
9559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9560 lt_cv_path_LD="$ac_dir/$ac_prog"
9561 # Check to see if the program is GNU ld. I'd rather use --version,
9562 # but apparently some GNU ld's only accept -v.
9563 # Break only if it was the GNU/non-GNU ld that we prefer.
9564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9565 *GNU* | *'with BFD'*)
9566 test "$with_gnu_ld" != no && break
9567 ;;
9568 *)
9569 test "$with_gnu_ld" != yes && break
9570 ;;
9571 esac
9572 fi
9573 done
9574 IFS="$lt_save_ifs"
9575else
9576 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9577fi
9578fi
9579
9580LD="$lt_cv_path_LD"
9581if test -n "$LD"; then
9582 echo "$as_me:$LINENO: result: $LD" >&5
9583echo "${ECHO_T}$LD" >&6
9584else
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
9587fi
9588test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9589echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9590 { (exit 1); exit 1; }; }
9591echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9592echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9593if test "${lt_cv_prog_gnu_ld+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9597case `"$LD" -v 2>&1 </dev/null` in
9598*GNU* | *'with BFD'*)
9599 lt_cv_prog_gnu_ld=yes
9600 ;;
9601*)
9602 lt_cv_prog_gnu_ld=no
9603 ;;
9604esac
9605fi
9606echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9607echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9608with_gnu_ld=$lt_cv_prog_gnu_ld
9609
9610
9611
9612 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9613 # archiving commands below assume that GNU ld is being used.
9614 if test "$with_gnu_ld" = yes; then
9615 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616 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'
9617
9618 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9620
9621 # If archive_cmds runs LD, not CC, wlarc should be empty
9622 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9623 # investigate it a little bit more. (MM)
9624 wlarc='${wl}'
9625
9626 # ancient GNU ld didn't support --whole-archive et. al.
9627 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9628 grep 'no-whole-archive' > /dev/null; then
9629 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9630 else
9631 whole_archive_flag_spec_CXX=
9632 fi
9633 else
9634 with_gnu_ld=no
9635 wlarc=
9636
9637 # A generic and very simple default shared library creation
9638 # command for GNU C++ for the case where it uses the native
9639 # linker, instead of GNU ld. If possible, this setting should
9640 # overridden to take advantage of the native linker features on
9641 # the platform it is being used on.
9642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9643 fi
9644
9645 # Commands to make compiler produce verbose output that lists
9646 # what "hidden" libraries, object files and flags are used when
9647 # linking a shared library.
9648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9649
9650else
9651 GXX=no
9652 with_gnu_ld=no
9653 wlarc=
9654fi
9655
9656# PORTME: fill in a description of your system's C++ link characteristics
9657echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9658echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9659ld_shlibs_CXX=yes
9660case $host_os in
9661 aix3*)
9662 # FIXME: insert proper C++ library support
9663 ld_shlibs_CXX=no
9664 ;;
9665 aix4* | aix5*)
9666 if test "$host_cpu" = ia64; then
9667 # On IA64, the linker does run time linking by default, so we don't
9668 # have to do anything special.
9669 aix_use_runtimelinking=no
9670 exp_sym_flag='-Bexport'
9671 no_entry_flag=""
9672 else
9673 aix_use_runtimelinking=no
9674
9675 # Test if we are trying to use run time linking or normal
9676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9677 # need to do runtime linking.
9678 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9679 for ld_flag in $LDFLAGS; do
9680 case $ld_flag in
9681 *-brtl*)
9682 aix_use_runtimelinking=yes
9683 break
9684 ;;
9685 esac
9686 done
9687 esac
9688
9689 exp_sym_flag='-bexport'
9690 no_entry_flag='-bnoentry'
9691 fi
9692
9693 # When large executables or shared objects are built, AIX ld can
9694 # have problems creating the table of contents. If linking a library
9695 # or program results in "error TOC overflow" add -mminimal-toc to
9696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9698
9699 archive_cmds_CXX=''
9700 hardcode_direct_CXX=yes
9701 hardcode_libdir_separator_CXX=':'
9702 link_all_deplibs_CXX=yes
9703
9704 if test "$GXX" = yes; then
9705 case $host_os in aix4.012|aix4.012.*)
9706 # We only want to do this on AIX 4.2 and lower, the check
9707 # below for broken collect2 doesn't work under 4.3+
9708 collect2name=`${CC} -print-prog-name=collect2`
9709 if test -f "$collect2name" && \
9710 strings "$collect2name" | grep resolve_lib_name >/dev/null
9711 then
9712 # We have reworked collect2
9713 hardcode_direct_CXX=yes
9714 else
9715 # We have old collect2
9716 hardcode_direct_CXX=unsupported
9717 # It fails to find uninstalled libraries when the uninstalled
9718 # path is not listed in the libpath. Setting hardcode_minus_L
9719 # to unsupported forces relinking
9720 hardcode_minus_L_CXX=yes
9721 hardcode_libdir_flag_spec_CXX='-L$libdir'
9722 hardcode_libdir_separator_CXX=
9723 fi
9724 esac
9725 shared_flag='-shared'
9726 else
9727 # not using gcc
9728 if test "$host_cpu" = ia64; then
9729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9730 # chokes on -Wl,-G. The following line is correct:
9731 shared_flag='-G'
9732 else
9733 if test "$aix_use_runtimelinking" = yes; then
9734 shared_flag='${wl}-G'
9735 else
9736 shared_flag='${wl}-bM:SRE'
9737 fi
9738 fi
9739 fi
9740
9741 # It seems that -bexpall does not export symbols beginning with
9742 # underscore (_), so it is better to generate a list of symbols to export.
9743 always_export_symbols_CXX=yes
9744 if test "$aix_use_runtimelinking" = yes; then
9745 # Warning - without using the other runtime loading flags (-brtl),
9746 # -berok will link without error, but may produce a broken library.
9747 allow_undefined_flag_CXX='-berok'
9748 # Determine the default libpath from the value encoded in an empty executable.
9749 cat >conftest.$ac_ext <<_ACEOF
9750#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009756
John Criswell47fdd832003-07-14 16:52:07 +00009757int
9758main ()
9759{
9760
9761 ;
9762 return 0;
9763}
9764_ACEOF
9765rm -f conftest.$ac_objext conftest$ac_exeext
9766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777
9778aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9779}'`
9780# Check for a 64-bit object if we didn't find anything.
9781if 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; }
9782}'`; fi
9783else
9784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009785sed 's/^/| /' conftest.$ac_ext >&5
9786
John Criswell47fdd832003-07-14 16:52:07 +00009787fi
9788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9789if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9790
9791 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9792
9793 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"
9794 else
9795 if test "$host_cpu" = ia64; then
9796 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9797 allow_undefined_flag_CXX="-z nodefs"
9798 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"
9799 else
9800 # Determine the default libpath from the value encoded in an empty executable.
9801 cat >conftest.$ac_ext <<_ACEOF
9802#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009808
John Criswell47fdd832003-07-14 16:52:07 +00009809int
9810main ()
9811{
9812
9813 ;
9814 return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
9818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -s conftest$ac_exeext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 (eval $ac_try) 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829
9830aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9831}'`
9832# Check for a 64-bit object if we didn't find anything.
9833if 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; }
9834}'`; fi
9835else
9836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009837sed 's/^/| /' conftest.$ac_ext >&5
9838
John Criswell47fdd832003-07-14 16:52:07 +00009839fi
9840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9842
9843 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9844 # Warning - without using the other run time loading flags,
9845 # -berok will link without error, but may produce a broken library.
9846 no_undefined_flag_CXX=' ${wl}-bernotok'
9847 allow_undefined_flag_CXX=' ${wl}-berok'
9848 # -bexpall does not export symbols beginning with underscore (_)
9849 always_export_symbols_CXX=yes
9850 # Exported symbols can be pulled into shared objects from archives
9851 whole_archive_flag_spec_CXX=' '
9852 archive_cmds_need_lc_CXX=yes
9853 # This is similar to how AIX traditionally builds it's shared libraries.
9854 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'
9855 fi
9856 fi
9857 ;;
9858 chorus*)
9859 case $cc_basename in
9860 *)
9861 # FIXME: insert proper C++ library support
9862 ld_shlibs_CXX=no
9863 ;;
9864 esac
9865 ;;
9866
9867 cygwin* | mingw* | pw32*)
9868 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9869 # as there is no search path for DLLs.
9870 hardcode_libdir_flag_spec_CXX='-L$libdir'
9871 allow_undefined_flag_CXX=unsupported
9872 always_export_symbols_CXX=no
9873 enable_shared_with_static_runtimes_CXX=yes
9874
9875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9876 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'
9877 # If the export-symbols file already is a .def file (1st line
9878 # is EXPORTS), use it as is; otherwise, prepend...
9879 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9880 cp $export_symbols $output_objdir/$soname.def;
9881 else
9882 echo EXPORTS > $output_objdir/$soname.def;
9883 cat $export_symbols >> $output_objdir/$soname.def;
9884 fi~
9885 $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'
9886 else
9887 ld_shlibs_CXX=no
9888 fi
9889 ;;
9890
9891 darwin* | rhapsody*)
9892 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9893 archive_cmds_need_lc_CXX=no
9894 case "$host_os" in
9895 rhapsody* | darwin1.[012])
9896 allow_undefined_flag_CXX='-undefined suppress'
9897 ;;
9898 *) # Darwin 1.3 on
9899 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9900 ;;
9901 esac
9902 lt_int_apple_cc_single_mod=no
9903 output_verbose_link_cmd='echo'
9904 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9905 lt_int_apple_cc_single_mod=yes
9906 fi
9907 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9908 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9909 else
9910 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'
9911 fi
9912 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9913
9914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9915 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9916 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}'
9917 else
9918 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}'
9919 fi
9920 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}'
9921 hardcode_direct_CXX=no
9922 hardcode_automatic_CXX=yes
9923 hardcode_shlibpath_var_CXX=unsupported
9924 whole_archive_flag_spec_CXX='-all_load $convenience'
9925 link_all_deplibs_CXX=yes
9926 fi
9927 ;;
9928
9929 dgux*)
9930 case $cc_basename in
9931 ec++)
9932 # FIXME: insert proper C++ library support
9933 ld_shlibs_CXX=no
9934 ;;
9935 ghcx)
9936 # Green Hills C++ Compiler
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 ;;
9940 *)
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 esac
9945 ;;
9946 freebsd12*)
9947 # C++ shared libraries reported to be fairly broken before switch to ELF
9948 ld_shlibs_CXX=no
9949 ;;
9950 freebsd-elf*)
9951 archive_cmds_need_lc_CXX=no
9952 ;;
9953 freebsd*)
9954 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9955 # conventions
9956 ld_shlibs_CXX=yes
9957 ;;
9958 gnu*)
9959 ;;
9960 hpux9*)
9961 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9962 hardcode_libdir_separator_CXX=:
9963 export_dynamic_flag_spec_CXX='${wl}-E'
9964 hardcode_direct_CXX=yes
9965 hardcode_minus_L_CXX=yes # Not in the search PATH,
9966 # but as the default
9967 # location of the library.
9968
9969 case $cc_basename in
9970 CC)
9971 # FIXME: insert proper C++ library support
9972 ld_shlibs_CXX=no
9973 ;;
9974 aCC)
9975 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'
9976 # Commands to make compiler produce verbose output that lists
9977 # what "hidden" libraries, object files and flags are used when
9978 # linking a shared library.
9979 #
9980 # There doesn't appear to be a way to prevent this compiler from
9981 # explicitly linking system object files so we need to strip them
9982 # from the output so that they don't get included in the library
9983 # dependencies.
9984 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'
9985 ;;
9986 *)
9987 if test "$GXX" = yes; then
9988 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'
9989 else
9990 # FIXME: insert proper C++ library support
9991 ld_shlibs_CXX=no
9992 fi
9993 ;;
9994 esac
9995 ;;
9996 hpux10*|hpux11*)
9997 if test $with_gnu_ld = no; then
9998 case "$host_cpu" in
9999 hppa*64*)
10000 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10001 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10002 hardcode_libdir_separator_CXX=:
10003 ;;
10004 ia64*)
10005 hardcode_libdir_flag_spec_CXX='-L$libdir'
10006 ;;
10007 *)
10008 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10009 hardcode_libdir_separator_CXX=:
10010 export_dynamic_flag_spec_CXX='${wl}-E'
10011 ;;
10012 esac
10013 fi
10014 case "$host_cpu" in
10015 hppa*64*)
10016 hardcode_direct_CXX=no
10017 hardcode_shlibpath_var_CXX=no
10018 ;;
10019 ia64*)
10020 hardcode_direct_CXX=no
10021 hardcode_shlibpath_var_CXX=no
10022 hardcode_minus_L_CXX=yes # Not in the search PATH,
10023 # but as the default
10024 # location of the library.
10025 ;;
10026 *)
10027 hardcode_direct_CXX=yes
10028 hardcode_minus_L_CXX=yes # Not in the search PATH,
10029 # but as the default
10030 # location of the library.
10031 ;;
10032 esac
10033
10034 case $cc_basename in
10035 CC)
10036 # FIXME: insert proper C++ library support
10037 ld_shlibs_CXX=no
10038 ;;
10039 aCC)
10040 case "$host_cpu" in
10041 hppa*64*|ia64*)
10042 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10043 ;;
10044 *)
10045 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10046 ;;
10047 esac
10048 # Commands to make compiler produce verbose output that lists
10049 # what "hidden" libraries, object files and flags are used when
10050 # linking a shared library.
10051 #
10052 # There doesn't appear to be a way to prevent this compiler from
10053 # explicitly linking system object files so we need to strip them
10054 # from the output so that they don't get included in the library
10055 # dependencies.
10056 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'
10057 ;;
10058 *)
10059 if test "$GXX" = yes; then
10060 if test $with_gnu_ld = no; then
10061 case "$host_cpu" in
10062 ia64*|hppa*64*)
10063 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10064 ;;
10065 *)
10066 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'
10067 ;;
10068 esac
10069 fi
10070 else
10071 # FIXME: insert proper C++ library support
10072 ld_shlibs_CXX=no
10073 fi
10074 ;;
10075 esac
10076 ;;
10077 irix5* | irix6*)
10078 case $cc_basename in
10079 CC)
10080 # SGI C++
10081 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'
10082
10083 # Archives containing C++ object files must be created using
10084 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10085 # necessary to make sure instantiated templates are included
10086 # in the archive.
10087 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10088 ;;
10089 *)
10090 if test "$GXX" = yes; then
10091 if test "$with_gnu_ld" = no; then
10092 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'
10093 else
10094 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'
10095 fi
10096 fi
10097 link_all_deplibs_CXX=yes
10098 ;;
10099 esac
10100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10101 hardcode_libdir_separator_CXX=:
10102 ;;
10103 linux*)
10104 case $cc_basename in
10105 KCC)
10106 # Kuck and Associates, Inc. (KAI) C++ Compiler
10107
10108 # KCC will only create a shared library if the output file
10109 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10110 # to its proper name (with version) after linking.
10111 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'
10112 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'
10113 # Commands to make compiler produce verbose output that lists
10114 # what "hidden" libraries, object files and flags are used when
10115 # linking a shared library.
10116 #
10117 # There doesn't appear to be a way to prevent this compiler from
10118 # explicitly linking system object files so we need to strip them
10119 # from the output so that they don't get included in the library
10120 # dependencies.
10121 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'
10122
10123 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10125
10126 # Archives containing C++ object files must be created using
10127 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10128 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10129 ;;
10130 icpc)
10131 # Intel C++
10132 with_gnu_ld=yes
10133 archive_cmds_need_lc_CXX=no
10134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135 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'
10136 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10137 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10138 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10139 ;;
10140 cxx)
10141 # Compaq C++
10142 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10143 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'
10144
10145 runpath_var=LD_RUN_PATH
10146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10147 hardcode_libdir_separator_CXX=:
10148
10149 # Commands to make compiler produce verbose output that lists
10150 # what "hidden" libraries, object files and flags are used when
10151 # linking a shared library.
10152 #
10153 # There doesn't appear to be a way to prevent this compiler from
10154 # explicitly linking system object files so we need to strip them
10155 # from the output so that they don't get included in the library
10156 # dependencies.
10157 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'
10158 ;;
10159 esac
10160 ;;
10161 lynxos*)
10162 # FIXME: insert proper C++ library support
10163 ld_shlibs_CXX=no
10164 ;;
10165 m88k*)
10166 # FIXME: insert proper C++ library support
10167 ld_shlibs_CXX=no
10168 ;;
10169 mvs*)
10170 case $cc_basename in
10171 cxx)
10172 # FIXME: insert proper C++ library support
10173 ld_shlibs_CXX=no
10174 ;;
10175 *)
10176 # FIXME: insert proper C++ library support
10177 ld_shlibs_CXX=no
10178 ;;
10179 esac
10180 ;;
10181 netbsd*)
10182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10183 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10184 wlarc=
10185 hardcode_libdir_flag_spec_CXX='-R$libdir'
10186 hardcode_direct_CXX=yes
10187 hardcode_shlibpath_var_CXX=no
10188 fi
10189 # Workaround some broken pre-1.5 toolchains
10190 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10191 ;;
10192 osf3*)
10193 case $cc_basename in
10194 KCC)
10195 # Kuck and Associates, Inc. (KAI) C++ Compiler
10196
10197 # KCC will only create a shared library if the output file
10198 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10199 # to its proper name (with version) after linking.
10200 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'
10201
10202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10203 hardcode_libdir_separator_CXX=:
10204
10205 # Archives containing C++ object files must be created using
10206 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10207 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10208
10209 ;;
10210 RCC)
10211 # Rational C++ 2.4.1
10212 # FIXME: insert proper C++ library support
10213 ld_shlibs_CXX=no
10214 ;;
10215 cxx)
10216 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10217 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'
10218
10219 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10220 hardcode_libdir_separator_CXX=:
10221
10222 # Commands to make compiler produce verbose output that lists
10223 # what "hidden" libraries, object files and flags are used when
10224 # linking a shared library.
10225 #
10226 # There doesn't appear to be a way to prevent this compiler from
10227 # explicitly linking system object files so we need to strip them
10228 # from the output so that they don't get included in the library
10229 # dependencies.
10230 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'
10231 ;;
10232 *)
10233 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10234 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10235 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'
10236
10237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10238 hardcode_libdir_separator_CXX=:
10239
10240 # Commands to make compiler produce verbose output that lists
10241 # what "hidden" libraries, object files and flags are used when
10242 # linking a shared library.
10243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10244
10245 else
10246 # FIXME: insert proper C++ library support
10247 ld_shlibs_CXX=no
10248 fi
10249 ;;
10250 esac
10251 ;;
10252 osf4* | osf5*)
10253 case $cc_basename in
10254 KCC)
10255 # Kuck and Associates, Inc. (KAI) C++ Compiler
10256
10257 # KCC will only create a shared library if the output file
10258 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10259 # to its proper name (with version) after linking.
10260 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'
10261
10262 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10263 hardcode_libdir_separator_CXX=:
10264
10265 # Archives containing C++ object files must be created using
10266 # the KAI C++ compiler.
10267 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10268 ;;
10269 RCC)
10270 # Rational C++ 2.4.1
10271 # FIXME: insert proper C++ library support
10272 ld_shlibs_CXX=no
10273 ;;
10274 cxx)
10275 allow_undefined_flag_CXX=' -expect_unresolved \*'
10276 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'
10277 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10278 echo "-hidden">> $lib.exp~
10279 $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~
10280 $rm $lib.exp'
10281
10282 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10283 hardcode_libdir_separator_CXX=:
10284
10285 # Commands to make compiler produce verbose output that lists
10286 # what "hidden" libraries, object files and flags are used when
10287 # linking a shared library.
10288 #
10289 # There doesn't appear to be a way to prevent this compiler from
10290 # explicitly linking system object files so we need to strip them
10291 # from the output so that they don't get included in the library
10292 # dependencies.
10293 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'
10294 ;;
10295 *)
10296 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10297 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10298 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'
10299
10300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10301 hardcode_libdir_separator_CXX=:
10302
10303 # Commands to make compiler produce verbose output that lists
10304 # what "hidden" libraries, object files and flags are used when
10305 # linking a shared library.
10306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10307
10308 else
10309 # FIXME: insert proper C++ library support
10310 ld_shlibs_CXX=no
10311 fi
10312 ;;
10313 esac
10314 ;;
10315 psos*)
10316 # FIXME: insert proper C++ library support
10317 ld_shlibs_CXX=no
10318 ;;
10319 sco*)
10320 archive_cmds_need_lc_CXX=no
10321 case $cc_basename in
10322 CC)
10323 # FIXME: insert proper C++ library support
10324 ld_shlibs_CXX=no
10325 ;;
10326 *)
10327 # FIXME: insert proper C++ library support
10328 ld_shlibs_CXX=no
10329 ;;
10330 esac
10331 ;;
10332 sunos4*)
10333 case $cc_basename in
10334 CC)
10335 # Sun C++ 4.x
10336 # FIXME: insert proper C++ library support
10337 ld_shlibs_CXX=no
10338 ;;
10339 lcc)
10340 # Lucid
10341 # FIXME: insert proper C++ library support
10342 ld_shlibs_CXX=no
10343 ;;
10344 *)
10345 # FIXME: insert proper C++ library support
10346 ld_shlibs_CXX=no
10347 ;;
10348 esac
10349 ;;
10350 solaris*)
10351 case $cc_basename in
10352 CC)
10353 # Sun C++ 4.2, 5.x and Centerline C++
10354 no_undefined_flag_CXX=' -zdefs'
10355 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10356 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10357 $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'
10358
10359 hardcode_libdir_flag_spec_CXX='-R$libdir'
10360 hardcode_shlibpath_var_CXX=no
10361 case $host_os in
10362 solaris2.0-5 | solaris2.0-5.*) ;;
10363 *)
10364 # The C++ compiler is used as linker so we must use $wl
10365 # flag to pass the commands to the underlying system
10366 # linker.
10367 # Supported since Solaris 2.6 (maybe 2.5.1?)
10368 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10369 ;;
10370 esac
10371 link_all_deplibs_CXX=yes
10372
10373 # Commands to make compiler produce verbose output that lists
10374 # what "hidden" libraries, object files and flags are used when
10375 # linking a shared library.
10376 #
10377 # There doesn't appear to be a way to prevent this compiler from
10378 # explicitly linking system object files so we need to strip them
10379 # from the output so that they don't get included in the library
10380 # dependencies.
10381 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'
10382
10383 # Archives containing C++ object files must be created using
10384 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10385 # necessary to make sure instantiated templates are included
10386 # in the archive.
10387 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10388 ;;
10389 gcx)
10390 # Green Hills C++ Compiler
10391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10392
10393 # The C++ compiler must be used to create the archive.
10394 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10395 ;;
10396 *)
10397 # GNU C++ compiler with Solaris linker
10398 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10399 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10400 if $CC --version | grep -v '^2\.7' > /dev/null; then
10401 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10402 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10403 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10404
10405 # Commands to make compiler produce verbose output that lists
10406 # what "hidden" libraries, object files and flags are used when
10407 # linking a shared library.
10408 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10409 else
10410 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10411 # platform.
10412 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10413 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10414 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10415
10416 # Commands to make compiler produce verbose output that lists
10417 # what "hidden" libraries, object files and flags are used when
10418 # linking a shared library.
10419 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10420 fi
10421
10422 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10423 fi
10424 ;;
10425 esac
10426 ;;
10427 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10428 archive_cmds_need_lc_CXX=no
10429 ;;
10430 tandem*)
10431 case $cc_basename in
10432 NCC)
10433 # NonStop-UX NCC 3.20
10434 # FIXME: insert proper C++ library support
10435 ld_shlibs_CXX=no
10436 ;;
10437 *)
10438 # FIXME: insert proper C++ library support
10439 ld_shlibs_CXX=no
10440 ;;
10441 esac
10442 ;;
10443 vxworks*)
10444 # FIXME: insert proper C++ library support
10445 ld_shlibs_CXX=no
10446 ;;
10447 *)
10448 # FIXME: insert proper C++ library support
10449 ld_shlibs_CXX=no
10450 ;;
10451esac
10452echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10453echo "${ECHO_T}$ld_shlibs_CXX" >&6
10454test "$ld_shlibs_CXX" = no && can_build_shared=no
10455
10456GCC_CXX="$GXX"
10457LD_CXX="$LD"
10458
10459## CAVEAT EMPTOR:
10460## There is no encapsulation within the following macros, do not change
10461## the running order or otherwise move them around unless you know exactly
10462## what you are doing...
10463
10464cat > conftest.$ac_ext <<EOF
10465class Foo
10466{
10467public:
10468 Foo (void) { a = 0; }
10469private:
10470 int a;
10471};
10472EOF
10473
10474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; then
10479 # Parse the compiler output and extract the necessary
10480 # objects, libraries and library flags.
10481
10482 # Sentinel used to keep track of whether or not we are before
10483 # the conftest object file.
10484 pre_test_object_deps_done=no
10485
10486 # The `*' in the case matches for architectures that use `case' in
10487 # $output_verbose_cmd can trigger glob expansion during the loop
10488 # eval without this substitution.
10489 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10490
10491 for p in `eval $output_verbose_link_cmd`; do
10492 case $p in
10493
10494 -L* | -R* | -l*)
10495 # Some compilers place space between "-{L,R}" and the path.
10496 # Remove the space.
10497 if test $p = "-L" \
10498 || test $p = "-R"; then
10499 prev=$p
10500 continue
10501 else
10502 prev=
10503 fi
10504
10505 if test "$pre_test_object_deps_done" = no; then
10506 case $p in
10507 -L* | -R*)
10508 # Internal compiler library paths should come after those
10509 # provided the user. The postdeps already come after the
10510 # user supplied libs so there is no need to process them.
10511 if test -z "$compiler_lib_search_path_CXX"; then
10512 compiler_lib_search_path_CXX="${prev}${p}"
10513 else
10514 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10515 fi
10516 ;;
10517 # The "-l" case would never come before the object being
10518 # linked, so don't bother handling this case.
10519 esac
10520 else
10521 if test -z "$postdeps_CXX"; then
10522 postdeps_CXX="${prev}${p}"
10523 else
10524 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10525 fi
10526 fi
10527 ;;
10528
10529 *.$objext)
10530 # This assumes that the test object file only shows up
10531 # once in the compiler output.
10532 if test "$p" = "conftest.$objext"; then
10533 pre_test_object_deps_done=yes
10534 continue
10535 fi
10536
10537 if test "$pre_test_object_deps_done" = no; then
10538 if test -z "$predep_objects_CXX"; then
10539 predep_objects_CXX="$p"
10540 else
10541 predep_objects_CXX="$predep_objects_CXX $p"
10542 fi
10543 else
10544 if test -z "$postdep_objects_CXX"; then
10545 postdep_objects_CXX="$p"
10546 else
10547 postdep_objects_CXX="$postdep_objects_CXX $p"
10548 fi
10549 fi
10550 ;;
10551
10552 *) ;; # Ignore the rest.
10553
10554 esac
10555 done
10556
10557 # Clean up.
10558 rm -f a.out a.exe
10559else
10560 echo "libtool.m4: error: problem compiling CXX test program"
10561fi
10562
10563$rm -f confest.$objext
10564
10565case " $postdeps_CXX " in
10566*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10567esac
10568
10569lt_prog_compiler_wl_CXX=
10570lt_prog_compiler_pic_CXX=
10571lt_prog_compiler_static_CXX=
10572
10573echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10574echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10575
10576 # C++ specific cases for pic, static, wl, etc.
10577 if test "$GXX" = yes; then
10578 lt_prog_compiler_wl_CXX='-Wl,'
10579 lt_prog_compiler_static_CXX='-static'
10580
10581 case $host_os in
10582 aix*)
10583 # All AIX code is PIC.
10584 if test "$host_cpu" = ia64; then
10585 # AIX 5 now supports IA64 processor
10586 lt_prog_compiler_static_CXX='-Bstatic'
10587 fi
10588 ;;
10589 amigaos*)
10590 # FIXME: we need at least 68020 code to build shared libraries, but
10591 # adding the `-m68020' flag to GCC prevents building anything better,
10592 # like `-m68040'.
10593 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10594 ;;
10595 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10596 # PIC is the default for these OSes.
10597 ;;
10598 mingw* | os2* | pw32*)
10599 # This hack is so that the source file can tell whether it is being
10600 # built for inclusion in a dll (and should export symbols for example).
10601 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10602 ;;
10603 darwin* | rhapsody*)
10604 # PIC is the default on this platform
10605 # Common symbols not allowed in MH_DYLIB files
10606 lt_prog_compiler_pic_CXX='-fno-common'
10607 ;;
10608 *djgpp*)
10609 # DJGPP does not support shared libraries at all
10610 lt_prog_compiler_pic_CXX=
10611 ;;
10612 sysv4*MP*)
10613 if test -d /usr/nec; then
10614 lt_prog_compiler_pic_CXX=-Kconform_pic
10615 fi
10616 ;;
10617 hpux*)
10618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10619 # not for PA HP-UX.
10620 case "$host_cpu" in
10621 hppa*64*|ia64*)
10622 ;;
10623 *)
10624 lt_prog_compiler_pic_CXX='-fPIC'
10625 ;;
10626 esac
10627 ;;
10628 *)
10629 lt_prog_compiler_pic_CXX='-fPIC'
10630 ;;
10631 esac
10632 else
10633 case $host_os in
10634 aix4* | aix5*)
10635 # All AIX code is PIC.
10636 if test "$host_cpu" = ia64; then
10637 # AIX 5 now supports IA64 processor
10638 lt_prog_compiler_static_CXX='-Bstatic'
10639 else
10640 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10641 fi
10642 ;;
10643 chorus*)
10644 case $cc_basename in
10645 cxch68)
10646 # Green Hills C++ Compiler
10647 # _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"
10648 ;;
10649 esac
10650 ;;
10651 dgux*)
10652 case $cc_basename in
10653 ec++)
10654 lt_prog_compiler_pic_CXX='-KPIC'
10655 ;;
10656 ghcx)
10657 # Green Hills C++ Compiler
10658 lt_prog_compiler_pic_CXX='-pic'
10659 ;;
10660 *)
10661 ;;
10662 esac
10663 ;;
10664 freebsd*)
10665 # FreeBSD uses GNU C++
10666 ;;
10667 hpux9* | hpux10* | hpux11*)
10668 case $cc_basename in
10669 CC)
10670 lt_prog_compiler_wl_CXX='-Wl,'
10671 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10672 if test "$host_cpu" != ia64; then
10673 lt_prog_compiler_pic_CXX='+Z'
10674 fi
10675 ;;
10676 aCC)
10677 lt_prog_compiler_wl_CXX='-Wl,'
10678 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10679 case "$host_cpu" in
10680 hppa*64*|ia64*)
10681 # +Z the default
10682 ;;
10683 *)
10684 lt_prog_compiler_pic_CXX='+Z'
10685 ;;
10686 esac
10687 ;;
10688 *)
10689 ;;
10690 esac
10691 ;;
10692 irix5* | irix6* | nonstopux*)
10693 case $cc_basename in
10694 CC)
10695 lt_prog_compiler_wl_CXX='-Wl,'
10696 lt_prog_compiler_static_CXX='-non_shared'
10697 # CC pic flag -KPIC is the default.
10698 ;;
10699 *)
10700 ;;
10701 esac
10702 ;;
10703 linux*)
10704 case $cc_basename in
10705 KCC)
10706 # KAI C++ Compiler
10707 lt_prog_compiler_wl_CXX='--backend -Wl,'
10708 lt_prog_compiler_pic_CXX='-fPIC'
10709 ;;
10710 icpc)
10711 # Intel C++
10712 lt_prog_compiler_wl_CXX='-Wl,'
10713 lt_prog_compiler_pic_CXX='-KPIC'
10714 lt_prog_compiler_static_CXX='-static'
10715 ;;
10716 cxx)
10717 # Compaq C++
10718 # Make sure the PIC flag is empty. It appears that all Alpha
10719 # Linux and Compaq Tru64 Unix objects are PIC.
10720 lt_prog_compiler_pic_CXX=
10721 lt_prog_compiler_static_CXX='-non_shared'
10722 ;;
10723 *)
10724 ;;
10725 esac
10726 ;;
10727 lynxos*)
10728 ;;
10729 m88k*)
10730 ;;
10731 mvs*)
10732 case $cc_basename in
10733 cxx)
10734 lt_prog_compiler_pic_CXX='-W c,exportall'
10735 ;;
10736 *)
10737 ;;
10738 esac
10739 ;;
10740 netbsd*)
10741 ;;
10742 osf3* | osf4* | osf5*)
10743 case $cc_basename in
10744 KCC)
10745 lt_prog_compiler_wl_CXX='--backend -Wl,'
10746 ;;
10747 RCC)
10748 # Rational C++ 2.4.1
10749 lt_prog_compiler_pic_CXX='-pic'
10750 ;;
10751 cxx)
10752 # Digital/Compaq C++
10753 lt_prog_compiler_wl_CXX='-Wl,'
10754 # Make sure the PIC flag is empty. It appears that all Alpha
10755 # Linux and Compaq Tru64 Unix objects are PIC.
10756 lt_prog_compiler_pic_CXX=
10757 lt_prog_compiler_static_CXX='-non_shared'
10758 ;;
10759 *)
10760 ;;
10761 esac
10762 ;;
10763 psos*)
10764 ;;
10765 sco*)
10766 case $cc_basename in
10767 CC)
10768 lt_prog_compiler_pic_CXX='-fPIC'
10769 ;;
10770 *)
10771 ;;
10772 esac
10773 ;;
10774 solaris*)
10775 case $cc_basename in
10776 CC)
10777 # Sun C++ 4.2, 5.x and Centerline C++
10778 lt_prog_compiler_pic_CXX='-KPIC'
10779 lt_prog_compiler_static_CXX='-Bstatic'
10780 lt_prog_compiler_wl_CXX='-Qoption ld '
10781 ;;
10782 gcx)
10783 # Green Hills C++ Compiler
10784 lt_prog_compiler_pic_CXX='-PIC'
10785 ;;
10786 *)
10787 ;;
10788 esac
10789 ;;
10790 sunos4*)
10791 case $cc_basename in
10792 CC)
10793 # Sun C++ 4.x
10794 lt_prog_compiler_pic_CXX='-pic'
10795 lt_prog_compiler_static_CXX='-Bstatic'
10796 ;;
10797 lcc)
10798 # Lucid
10799 lt_prog_compiler_pic_CXX='-pic'
10800 ;;
10801 *)
10802 ;;
10803 esac
10804 ;;
10805 tandem*)
10806 case $cc_basename in
10807 NCC)
10808 # NonStop-UX NCC 3.20
10809 lt_prog_compiler_pic_CXX='-KPIC'
10810 ;;
10811 *)
10812 ;;
10813 esac
10814 ;;
10815 unixware*)
10816 ;;
10817 vxworks*)
10818 ;;
10819 *)
10820 lt_prog_compiler_can_build_shared_CXX=no
10821 ;;
10822 esac
10823 fi
10824
10825echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10826echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10827
10828#
10829# Check to make sure the PIC flag actually works.
10830#
10831if test -n "$lt_prog_compiler_pic_CXX"; then
10832 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10833echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10834if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836else
10837 lt_prog_compiler_pic_works_CXX=no
10838 ac_outfile=conftest.$ac_objext
10839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10840 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10841 # Insert the option either (1) after the last *FLAGS variable, or
10842 # (2) before a word containing "conftest.", or (3) at the end.
10843 # Note that $ac_compile itself does not contain backslashes and begins
10844 # with a dollar sign (not a hyphen), so the echo should work correctly.
10845 # The option is referenced via a variable to avoid confusing sed.
10846 lt_compile=`echo "$ac_compile" | $SED \
10847 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10849 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +000010850 (eval echo "\"\$as_me:10850: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010851 (eval "$lt_compile" 2>conftest.err)
10852 ac_status=$?
10853 cat conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +000010854 echo "$as_me:10854: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010855 if (exit $ac_status) && test -s "$ac_outfile"; then
10856 # The compiler can only warn and ignore the option if not recognized
10857 # So say no if there are warnings
10858 if test ! -s conftest.err; then
10859 lt_prog_compiler_pic_works_CXX=yes
10860 fi
10861 fi
10862 $rm conftest*
10863
10864fi
10865echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10866echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10867
10868if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10869 case $lt_prog_compiler_pic_CXX in
10870 "" | " "*) ;;
10871 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10872 esac
10873else
10874 lt_prog_compiler_pic_CXX=
10875 lt_prog_compiler_can_build_shared_CXX=no
10876fi
10877
10878fi
10879case "$host_os" in
10880 # For platforms which do not support PIC, -DPIC is meaningless:
10881 *djgpp*)
10882 lt_prog_compiler_pic_CXX=
10883 ;;
10884 *)
10885 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10886 ;;
10887esac
10888
10889echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10890echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10891if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894 lt_cv_prog_compiler_c_o_CXX=no
10895 $rm -r conftest 2>/dev/null
10896 mkdir conftest
10897 cd conftest
10898 mkdir out
10899 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10900
10901 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10902 # that will create temporary files in the current directory regardless of
10903 # the output directory. Thus, making CWD read-only will cause this test
10904 # to fail, enabling locking or at least warning the user not to do parallel
10905 # builds.
10906 chmod -w .
10907
10908 lt_compiler_flag="-o out/conftest2.$ac_objext"
10909 # Insert the option either (1) after the last *FLAGS variable, or
10910 # (2) before a word containing "conftest.", or (3) at the end.
10911 # Note that $ac_compile itself does not contain backslashes and begins
10912 # with a dollar sign (not a hyphen), so the echo should work correctly.
10913 lt_compile=`echo "$ac_compile" | $SED \
10914 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10916 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +000010917 (eval echo "\"\$as_me:10917: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010918 (eval "$lt_compile" 2>out/conftest.err)
10919 ac_status=$?
10920 cat out/conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +000010921 echo "$as_me:10921: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10923 then
10924 # The compiler can only warn and ignore the option if not recognized
10925 # So say no if there are warnings
10926 if test ! -s out/conftest.err; then
10927 lt_cv_prog_compiler_c_o_CXX=yes
10928 fi
10929 fi
10930 chmod u+w .
10931 $rm conftest* out/*
10932 rmdir out
10933 cd ..
10934 rmdir conftest
10935 $rm conftest*
10936
10937fi
10938echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10939echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10940
10941
10942hard_links="nottested"
10943if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10944 # do not overwrite the value of need_locks provided by the user
10945 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10946echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10947 hard_links=yes
10948 $rm conftest*
10949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10950 touch conftest.a
10951 ln conftest.a conftest.b 2>&5 || hard_links=no
10952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10953 echo "$as_me:$LINENO: result: $hard_links" >&5
10954echo "${ECHO_T}$hard_links" >&6
10955 if test "$hard_links" = no; then
10956 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10957echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10958 need_locks=warn
10959 fi
10960else
10961 need_locks=no
10962fi
10963
10964echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10966
10967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10968 case $host_os in
10969 aix4* | aix5*)
10970 # If we're using GNU nm, then we don't want the "-C" option.
10971 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10972 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10973 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'
10974 else
10975 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'
10976 fi
10977 ;;
10978 pw32*)
10979 export_symbols_cmds_CXX="$ltdll_cmds"
10980 ;;
10981 cygwin* | mingw*)
10982 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10983 ;;
10984 *)
10985 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10986 ;;
10987 esac
10988
10989echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10990echo "${ECHO_T}$ld_shlibs_CXX" >&6
10991test "$ld_shlibs_CXX" = no && can_build_shared=no
10992
10993variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10994if test "$GCC" = yes; then
10995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10996fi
10997
10998#
10999# Do we need to explicitly link libc?
11000#
11001case "x$archive_cmds_need_lc_CXX" in
11002x|xyes)
11003 # Assume -lc should be added
11004 archive_cmds_need_lc_CXX=yes
11005
11006 if test "$enable_shared" = yes && test "$GCC" = yes; then
11007 case $archive_cmds_CXX in
11008 *'~'*)
11009 # FIXME: we may have to deal with multi-command sequences.
11010 ;;
11011 '$CC '*)
11012 # Test whether the compiler implicitly links with -lc since on some
11013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11014 # to ld, don't add -lc before -lgcc.
11015 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11016echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11017 $rm conftest*
11018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11019
11020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021 (eval $ac_compile) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } 2>conftest.err; then
11025 soname=conftest
11026 lib=conftest
11027 libobjs=conftest.$ac_objext
11028 deplibs=
11029 wl=$lt_prog_compiler_wl_CXX
11030 compiler_flags=-v
11031 linker_flags=-v
11032 verstring=
11033 output_objdir=.
11034 libname=conftest
11035 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11036 allow_undefined_flag_CXX=
11037 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11038 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }
11042 then
11043 archive_cmds_need_lc_CXX=no
11044 else
11045 archive_cmds_need_lc_CXX=yes
11046 fi
11047 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11048 else
11049 cat conftest.err 1>&5
11050 fi
11051 $rm conftest*
11052 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11053echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11054 ;;
11055 esac
11056 fi
11057 ;;
11058esac
11059
11060echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11061echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11062hardcode_action_CXX=
11063if test -n "$hardcode_libdir_flag_spec_CXX" || \
11064 test -n "$runpath_var CXX" || \
11065 test "X$hardcode_automatic_CXX"="Xyes" ; then
11066
11067 # We can hardcode non-existant directories.
11068 if test "$hardcode_direct_CXX" != no &&
11069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11070 # have to relink, otherwise we might link with an installed library
11071 # when we should be linking with a yet-to-be-installed one
11072 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11073 test "$hardcode_minus_L_CXX" != no; then
11074 # Linking always hardcodes the temporary library directory.
11075 hardcode_action_CXX=relink
11076 else
11077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11078 hardcode_action_CXX=immediate
11079 fi
11080else
11081 # We cannot hardcode anything, or else we can only hardcode existing
11082 # directories.
11083 hardcode_action_CXX=unsupported
11084fi
11085echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11086echo "${ECHO_T}$hardcode_action_CXX" >&6
11087
11088if test "$hardcode_action_CXX" = relink; then
11089 # Fast installation is not supported
11090 enable_fast_install=no
11091elif test "$shlibpath_overrides_runpath" = yes ||
11092 test "$enable_shared" = no; then
11093 # Fast installation is not necessary
11094 enable_fast_install=needless
11095fi
11096
11097striplib=
11098old_striplib=
11099echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11100echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11101if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11102 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11103 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11104 echo "$as_me:$LINENO: result: yes" >&5
11105echo "${ECHO_T}yes" >&6
11106else
11107# FIXME - insert some real tests, host_os isn't really good enough
11108 case $host_os in
11109 darwin*)
11110 if test -n "$STRIP" ; then
11111 striplib="$STRIP -x"
11112 echo "$as_me:$LINENO: result: yes" >&5
11113echo "${ECHO_T}yes" >&6
11114 else
11115 echo "$as_me:$LINENO: result: no" >&5
11116echo "${ECHO_T}no" >&6
11117fi
11118 ;;
11119 *)
11120 echo "$as_me:$LINENO: result: no" >&5
11121echo "${ECHO_T}no" >&6
11122 ;;
11123 esac
11124fi
11125
11126echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11127echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11128library_names_spec=
11129libname_spec='lib$name'
11130soname_spec=
11131shrext=".so"
11132postinstall_cmds=
11133postuninstall_cmds=
11134finish_cmds=
11135finish_eval=
11136shlibpath_var=
11137shlibpath_overrides_runpath=unknown
11138version_type=none
11139dynamic_linker="$host_os ld.so"
11140sys_lib_dlsearch_path_spec="/lib /usr/lib"
11141if test "$GCC" = yes; then
11142 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11143 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11144 # if the path contains ";" then we assume it to be the separator
11145 # otherwise default to the standard path separator (i.e. ":") - it is
11146 # assumed that no part of a normal pathname contains ";" but that should
11147 # okay in the real world where ";" in dirpaths is itself problematic.
11148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11149 else
11150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11151 fi
11152else
11153 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11154fi
11155need_lib_prefix=unknown
11156hardcode_into_libs=no
11157
11158# when you set need_version to no, make sure it does not cause -set_version
11159# flags to be left without arguments
11160need_version=unknown
11161
11162case $host_os in
11163aix3*)
11164 version_type=linux
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11166 shlibpath_var=LIBPATH
11167
11168 # AIX 3 has no versioning support, so we append a major version to the name.
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 ;;
11171
11172aix4* | aix5*)
11173 version_type=linux
11174 need_lib_prefix=no
11175 need_version=no
11176 hardcode_into_libs=yes
11177 if test "$host_cpu" = ia64; then
11178 # AIX 5 supports IA64
11179 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 else
11182 # With GCC up to 2.95.x, collect2 would create an import file
11183 # for dependence libraries. The import file would start with
11184 # the line `#! .'. This would cause the generated library to
11185 # depend on `.', always an invalid library. This was fixed in
11186 # development snapshots of GCC prior to 3.0.
11187 case $host_os in
11188 aix4 | aix4.[01] | aix4.[01].*)
11189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11190 echo ' yes '
11191 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11192 :
11193 else
11194 can_build_shared=no
11195 fi
11196 ;;
11197 esac
11198 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11199 # soname into executable. Probably we can add versioning support to
11200 # collect2, so additional links can be useful in future.
11201 if test "$aix_use_runtimelinking" = yes; then
11202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11203 # instead of lib<name>.a to let people know that these are not
11204 # typical AIX shared libraries.
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 else
11207 # We preserve .a as extension for shared libraries through AIX4.2
11208 # and later when we are not doing run time linking.
11209 library_names_spec='${libname}${release}.a $libname.a'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 fi
11212 shlibpath_var=LIBPATH
11213 fi
11214 ;;
11215
11216amigaos*)
11217 library_names_spec='$libname.ixlibrary $libname.a'
11218 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11219 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'
11220 ;;
11221
11222beos*)
11223 library_names_spec='${libname}${shared_ext}'
11224 dynamic_linker="$host_os ld.so"
11225 shlibpath_var=LIBRARY_PATH
11226 ;;
11227
11228bsdi4*)
11229 version_type=linux
11230 need_version=no
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232 soname_spec='${libname}${release}${shared_ext}$major'
11233 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11236 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11237 # the default ld.so.conf also contains /usr/contrib/lib and
11238 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11239 # libtool to hard-code these into programs
11240 ;;
11241
11242cygwin* | mingw* | pw32*)
11243 version_type=windows
11244 shrext=".dll"
11245 need_version=no
11246 need_lib_prefix=no
11247
11248 case $GCC,$host_os in
11249 yes,cygwin* | yes,mingw* | yes,pw32*)
11250 library_names_spec='$libname.dll.a'
11251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11252 postinstall_cmds='base_file=`basename \${file}`~
11253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11254 dldir=$destdir/`dirname \$dlpath`~
11255 test -d \$dldir || mkdir -p \$dldir~
11256 $install_prog $dir/$dlname \$dldir/$dlname'
11257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11258 dlpath=$dir/\$dldll~
11259 $rm \$dlpath'
11260 shlibpath_overrides_runpath=yes
11261
11262 case $host_os in
11263 cygwin*)
11264 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11265 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11266 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11267 ;;
11268 mingw*)
11269 # MinGW DLLs use traditional 'lib' prefix
11270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11272 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11273 # It is most probably a Windows format PATH printed by
11274 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11275 # path with ; separators, and with drive letters. We can handle the
11276 # drive letters (cygwin fileutils understands them), so leave them,
11277 # especially as we might pass files found there to a mingw objdump,
11278 # which wouldn't understand a cygwinified path. Ahh.
11279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11280 else
11281 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11282 fi
11283 ;;
11284 pw32*)
11285 # pw32 DLLs use 'pw' prefix rather than 'lib'
11286 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11287 ;;
11288 esac
11289 ;;
11290
11291 *)
11292 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11293 ;;
11294 esac
11295 dynamic_linker='Win32 ld.exe'
11296 # FIXME: first we should search . and the directory the executable is in
11297 shlibpath_var=PATH
11298 ;;
11299
11300darwin* | rhapsody*)
11301 dynamic_linker="$host_os dyld"
11302 version_type=darwin
11303 need_lib_prefix=no
11304 need_version=no
11305 # FIXME: Relying on posixy $() will cause problems for
11306 # cross-compilation, but unfortunately the echo tests do not
11307 # yet detect zsh echo's removal of \ escapes.
11308 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11309 soname_spec='${libname}${release}${major}$shared_ext'
11310 shlibpath_overrides_runpath=yes
11311 shlibpath_var=DYLD_LIBRARY_PATH
11312 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11313 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11314 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11315 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"`
11316 fi
11317 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11318 ;;
11319
11320dgux*)
11321 version_type=linux
11322 need_lib_prefix=no
11323 need_version=no
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 ;;
11328
11329freebsd1*)
11330 dynamic_linker=no
11331 ;;
11332
11333freebsd*)
11334 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11335 version_type=freebsd-$objformat
11336 case $version_type in
11337 freebsd-elf*)
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11339 need_version=no
11340 need_lib_prefix=no
11341 ;;
11342 freebsd-*)
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11344 need_version=yes
11345 ;;
11346 esac
11347 shlibpath_var=LD_LIBRARY_PATH
11348 case $host_os in
11349 freebsd2*)
11350 shlibpath_overrides_runpath=yes
11351 ;;
11352 freebsd3.01* | freebsdelf3.01*)
11353 shlibpath_overrides_runpath=yes
11354 hardcode_into_libs=yes
11355 ;;
11356 *) # from 3.2 on
11357 shlibpath_overrides_runpath=no
11358 hardcode_into_libs=yes
11359 ;;
11360 esac
11361 ;;
11362
11363gnu*)
11364 version_type=linux
11365 need_lib_prefix=no
11366 need_version=no
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 hardcode_into_libs=yes
11371 ;;
11372
11373hpux9* | hpux10* | hpux11*)
11374 # Give a soname corresponding to the major version so that dld.sl refuses to
11375 # link against other versions.
11376 version_type=sunos
11377 need_lib_prefix=no
11378 need_version=no
11379 case "$host_cpu" in
11380 ia64*)
11381 shrext='.so'
11382 hardcode_into_libs=yes
11383 dynamic_linker="$host_os dld.so"
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 if test "X$HPUX_IA64_MODE" = X32; then
11389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11390 else
11391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11392 fi
11393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11394 ;;
11395 hppa*64*)
11396 shrext='.sl'
11397 hardcode_into_libs=yes
11398 dynamic_linker="$host_os dld.sl"
11399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11405 ;;
11406 *)
11407 shrext='.sl'
11408 dynamic_linker="$host_os dld.sl"
11409 shlibpath_var=SHLIB_PATH
11410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 ;;
11414 esac
11415 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11416 postinstall_cmds='chmod 555 $lib'
11417 ;;
11418
11419irix5* | irix6* | nonstopux*)
11420 case $host_os in
11421 nonstopux*) version_type=nonstopux ;;
11422 *)
11423 if test "$lt_cv_prog_gnu_ld" = yes; then
11424 version_type=linux
11425 else
11426 version_type=irix
11427 fi ;;
11428 esac
11429 need_lib_prefix=no
11430 need_version=no
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11433 case $host_os in
11434 irix5* | nonstopux*)
11435 libsuff= shlibsuff=
11436 ;;
11437 *)
11438 case $LD in # libtool.m4 will add one of these switches to LD
11439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11440 libsuff= shlibsuff= libmagic=32-bit;;
11441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11442 libsuff=32 shlibsuff=N32 libmagic=N32;;
11443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11445 *) libsuff= shlibsuff= libmagic=never-match;;
11446 esac
11447 ;;
11448 esac
11449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11450 shlibpath_overrides_runpath=no
11451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11453 hardcode_into_libs=yes
11454 ;;
11455
11456# No shared lib support for Linux oldld, aout, or coff.
11457linux*oldld* | linux*aout* | linux*coff*)
11458 dynamic_linker=no
11459 ;;
11460
11461# This must be Linux ELF.
11462linux*)
11463 version_type=linux
11464 need_lib_prefix=no
11465 need_version=no
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=no
11471 # This implies no fast_install, which is unacceptable.
11472 # Some rework will be needed to allow for fast_install
11473 # before this can be enabled.
11474 hardcode_into_libs=yes
11475
11476 # We used to test for /lib/ld.so.1 and disable shared libraries on
11477 # powerpc, because MkLinux only supported shared libraries with the
11478 # GNU dynamic linker. Since this was broken with cross compilers,
11479 # most powerpc-linux boxes support dynamic linking these days and
11480 # people can always --disable-shared, the test was removed, and we
11481 # assume the GNU/Linux dynamic linker is in use.
11482 dynamic_linker='GNU/Linux ld.so'
11483 ;;
11484
11485netbsd*)
11486 version_type=sunos
11487 need_lib_prefix=no
11488 need_version=no
11489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492 dynamic_linker='NetBSD (a.out) ld.so'
11493 else
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 dynamic_linker='NetBSD ld.elf_so'
11497 fi
11498 shlibpath_var=LD_LIBRARY_PATH
11499 shlibpath_overrides_runpath=yes
11500 hardcode_into_libs=yes
11501 ;;
11502
11503newsos6)
11504 version_type=linux
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 ;;
11509
11510nto-qnx)
11511 version_type=linux
11512 need_lib_prefix=no
11513 need_version=no
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11518 ;;
11519
11520openbsd*)
11521 version_type=sunos
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11528 case $host_os in
11529 openbsd2.[89] | openbsd2.[89].*)
11530 shlibpath_overrides_runpath=no
11531 ;;
11532 *)
11533 shlibpath_overrides_runpath=yes
11534 ;;
11535 esac
11536 else
11537 shlibpath_overrides_runpath=yes
11538 fi
11539 ;;
11540
11541os2*)
11542 libname_spec='$name'
11543 shrext=".dll"
11544 need_lib_prefix=no
11545 library_names_spec='$libname${shared_ext} $libname.a'
11546 dynamic_linker='OS/2 ld.exe'
11547 shlibpath_var=LIBPATH
11548 ;;
11549
11550osf3* | osf4* | osf5*)
11551 version_type=osf
11552 need_lib_prefix=no
11553 need_version=no
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11559 ;;
11560
11561sco3.2v5*)
11562 version_type=osf
11563 soname_spec='${libname}${release}${shared_ext}$major'
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 ;;
11567
11568solaris*)
11569 version_type=linux
11570 need_lib_prefix=no
11571 need_version=no
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=yes
11576 hardcode_into_libs=yes
11577 # ldd complains unless libraries are executable
11578 postinstall_cmds='chmod +x $lib'
11579 ;;
11580
11581sunos4*)
11582 version_type=sunos
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11587 if test "$with_gnu_ld" = yes; then
11588 need_lib_prefix=no
11589 fi
11590 need_version=yes
11591 ;;
11592
11593sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11594 version_type=linux
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 case $host_vendor in
11599 sni)
11600 shlibpath_overrides_runpath=no
11601 need_lib_prefix=no
11602 export_dynamic_flag_spec='${wl}-Blargedynsym'
11603 runpath_var=LD_RUN_PATH
11604 ;;
11605 siemens)
11606 need_lib_prefix=no
11607 ;;
11608 motorola)
11609 need_lib_prefix=no
11610 need_version=no
11611 shlibpath_overrides_runpath=no
11612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11613 ;;
11614 esac
11615 ;;
11616
11617sysv4*MP*)
11618 if test -d /usr/nec ;then
11619 version_type=linux
11620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11621 soname_spec='$libname${shared_ext}.$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 fi
11624 ;;
11625
11626uts4*)
11627 version_type=linux
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 ;;
11632
11633*)
11634 dynamic_linker=no
11635 ;;
11636esac
11637echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11638echo "${ECHO_T}$dynamic_linker" >&6
11639test "$dynamic_linker" = no && can_build_shared=no
11640
11641if test "x$enable_dlopen" != xyes; then
11642 enable_dlopen=unknown
11643 enable_dlopen_self=unknown
11644 enable_dlopen_self_static=unknown
11645else
11646 lt_cv_dlopen=no
11647 lt_cv_dlopen_libs=
11648
11649 case $host_os in
11650 beos*)
11651 lt_cv_dlopen="load_add_on"
11652 lt_cv_dlopen_libs=
11653 lt_cv_dlopen_self=yes
11654 ;;
11655
11656 mingw* | pw32*)
11657 lt_cv_dlopen="LoadLibrary"
11658 lt_cv_dlopen_libs=
11659 ;;
11660
11661 cygwin*)
11662 lt_cv_dlopen="dlopen"
11663 lt_cv_dlopen_libs=
11664 ;;
11665
11666 darwin*)
11667 # if libdl is installed we need to link against it
11668 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11669echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11670if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672else
11673 ac_check_lib_save_LIBS=$LIBS
11674LIBS="-ldl $LIBS"
11675cat >conftest.$ac_ext <<_ACEOF
11676#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011682
11683/* Override any gcc2 internal prototype to avoid an error. */
11684#ifdef __cplusplus
11685extern "C"
11686#endif
11687/* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11689char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011690int
11691main ()
11692{
11693dlopen ();
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698rm -f conftest.$ac_objext conftest$ac_exeext
11699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -s conftest$ac_exeext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 ac_cv_lib_dl_dlopen=yes
11711else
11712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011713sed 's/^/| /' conftest.$ac_ext >&5
11714
John Criswell47fdd832003-07-14 16:52:07 +000011715ac_cv_lib_dl_dlopen=no
11716fi
11717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11718LIBS=$ac_check_lib_save_LIBS
11719fi
11720echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11721echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11722if test $ac_cv_lib_dl_dlopen = yes; then
11723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11724else
11725
11726 lt_cv_dlopen="dyld"
11727 lt_cv_dlopen_libs=
11728 lt_cv_dlopen_self=yes
11729
11730fi
11731
11732 ;;
11733
11734 *)
11735 echo "$as_me:$LINENO: checking for shl_load" >&5
11736echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11737if test "${ac_cv_func_shl_load+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 cat >conftest.$ac_ext <<_ACEOF
11741#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011742/* confdefs.h. */
11743_ACEOF
11744cat confdefs.h >>conftest.$ac_ext
11745cat >>conftest.$ac_ext <<_ACEOF
11746/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011747/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011748 which can conflict with char shl_load (); below.
11749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11750 <limits.h> exists even on freestanding compilers. */
11751#ifdef __STDC__
11752# include <limits.h>
11753#else
11754# include <assert.h>
11755#endif
John Criswell47fdd832003-07-14 16:52:07 +000011756/* Override any gcc2 internal prototype to avoid an error. */
11757#ifdef __cplusplus
11758extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011759{
John Criswell47fdd832003-07-14 16:52:07 +000011760#endif
11761/* We use char because int might match the return type of a gcc2
11762 builtin and then its argument prototype would still apply. */
11763char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011764/* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767#if defined (__stub_shl_load) || defined (__stub___shl_load)
11768choke me
11769#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011770char (*f) () = shl_load;
11771#endif
11772#ifdef __cplusplus
11773}
John Criswell47fdd832003-07-14 16:52:07 +000011774#endif
11775
John Criswell0c38eaf2003-09-10 15:17:25 +000011776int
11777main ()
11778{
11779return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011780 ;
11781 return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext conftest$ac_exeext
11785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786 (eval $ac_link) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try='test -s conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 ac_cv_func_shl_load=yes
11797else
11798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011799sed 's/^/| /' conftest.$ac_ext >&5
11800
John Criswell47fdd832003-07-14 16:52:07 +000011801ac_cv_func_shl_load=no
11802fi
11803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11804fi
11805echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11806echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11807if test $ac_cv_func_shl_load = yes; then
11808 lt_cv_dlopen="shl_load"
11809else
11810 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11811echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11812if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
11815 ac_check_lib_save_LIBS=$LIBS
11816LIBS="-ldld $LIBS"
11817cat >conftest.$ac_ext <<_ACEOF
11818#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011819/* confdefs.h. */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011824
11825/* Override any gcc2 internal prototype to avoid an error. */
11826#ifdef __cplusplus
11827extern "C"
11828#endif
11829/* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11831char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011832int
11833main ()
11834{
11835shl_load ();
11836 ;
11837 return 0;
11838}
11839_ACEOF
11840rm -f conftest.$ac_objext conftest$ac_exeext
11841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -s conftest$ac_exeext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_cv_lib_dld_shl_load=yes
11853else
11854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011855sed 's/^/| /' conftest.$ac_ext >&5
11856
John Criswell47fdd832003-07-14 16:52:07 +000011857ac_cv_lib_dld_shl_load=no
11858fi
11859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860LIBS=$ac_check_lib_save_LIBS
11861fi
11862echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11863echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11864if test $ac_cv_lib_dld_shl_load = yes; then
11865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11866else
11867 echo "$as_me:$LINENO: checking for dlopen" >&5
11868echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11869if test "${ac_cv_func_dlopen+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 cat >conftest.$ac_ext <<_ACEOF
11873#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011879/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011880 which can conflict with char dlopen (); below.
11881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11882 <limits.h> exists even on freestanding compilers. */
11883#ifdef __STDC__
11884# include <limits.h>
11885#else
11886# include <assert.h>
11887#endif
John Criswell47fdd832003-07-14 16:52:07 +000011888/* Override any gcc2 internal prototype to avoid an error. */
11889#ifdef __cplusplus
11890extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011891{
John Criswell47fdd832003-07-14 16:52:07 +000011892#endif
11893/* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11895char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011896/* The GNU C library defines this for functions which it implements
11897 to always fail with ENOSYS. Some functions are actually named
11898 something starting with __ and the normal name is an alias. */
11899#if defined (__stub_dlopen) || defined (__stub___dlopen)
11900choke me
11901#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011902char (*f) () = dlopen;
11903#endif
11904#ifdef __cplusplus
11905}
John Criswell47fdd832003-07-14 16:52:07 +000011906#endif
11907
John Criswell0c38eaf2003-09-10 15:17:25 +000011908int
11909main ()
11910{
11911return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011912 ;
11913 return 0;
11914}
11915_ACEOF
11916rm -f conftest.$ac_objext conftest$ac_exeext
11917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11918 (eval $ac_link) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_cv_func_dlopen=yes
11929else
11930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011931sed 's/^/| /' conftest.$ac_ext >&5
11932
John Criswell47fdd832003-07-14 16:52:07 +000011933ac_cv_func_dlopen=no
11934fi
11935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11936fi
11937echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11938echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11939if test $ac_cv_func_dlopen = yes; then
11940 lt_cv_dlopen="dlopen"
11941else
11942 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11943echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11944if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 ac_check_lib_save_LIBS=$LIBS
11948LIBS="-ldl $LIBS"
11949cat >conftest.$ac_ext <<_ACEOF
11950#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011956
11957/* Override any gcc2 internal prototype to avoid an error. */
11958#ifdef __cplusplus
11959extern "C"
11960#endif
11961/* We use char because int might match the return type of a gcc2
11962 builtin and then its argument prototype would still apply. */
11963char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011964int
11965main ()
11966{
11967dlopen ();
11968 ;
11969 return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext conftest$ac_exeext
11973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974 (eval $ac_link) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_lib_dl_dlopen=yes
11985else
11986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011987sed 's/^/| /' conftest.$ac_ext >&5
11988
John Criswell47fdd832003-07-14 16:52:07 +000011989ac_cv_lib_dl_dlopen=no
11990fi
11991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11992LIBS=$ac_check_lib_save_LIBS
11993fi
11994echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11996if test $ac_cv_lib_dl_dlopen = yes; then
11997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11998else
11999 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12000echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12001if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003else
12004 ac_check_lib_save_LIBS=$LIBS
12005LIBS="-lsvld $LIBS"
12006cat >conftest.$ac_ext <<_ACEOF
12007#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012008/* confdefs.h. */
12009_ACEOF
12010cat confdefs.h >>conftest.$ac_ext
12011cat >>conftest.$ac_ext <<_ACEOF
12012/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012013
12014/* Override any gcc2 internal prototype to avoid an error. */
12015#ifdef __cplusplus
12016extern "C"
12017#endif
12018/* We use char because int might match the return type of a gcc2
12019 builtin and then its argument prototype would still apply. */
12020char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012021int
12022main ()
12023{
12024dlopen ();
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029rm -f conftest.$ac_objext conftest$ac_exeext
12030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_cv_lib_svld_dlopen=yes
12042else
12043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012044sed 's/^/| /' conftest.$ac_ext >&5
12045
John Criswell47fdd832003-07-14 16:52:07 +000012046ac_cv_lib_svld_dlopen=no
12047fi
12048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12049LIBS=$ac_check_lib_save_LIBS
12050fi
12051echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12052echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12053if test $ac_cv_lib_svld_dlopen = yes; then
12054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12055else
12056 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12057echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12058if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060else
12061 ac_check_lib_save_LIBS=$LIBS
12062LIBS="-ldld $LIBS"
12063cat >conftest.$ac_ext <<_ACEOF
12064#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012065/* confdefs.h. */
12066_ACEOF
12067cat confdefs.h >>conftest.$ac_ext
12068cat >>conftest.$ac_ext <<_ACEOF
12069/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012070
12071/* Override any gcc2 internal prototype to avoid an error. */
12072#ifdef __cplusplus
12073extern "C"
12074#endif
12075/* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12077char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012078int
12079main ()
12080{
12081dld_link ();
12082 ;
12083 return 0;
12084}
12085_ACEOF
12086rm -f conftest.$ac_objext conftest$ac_exeext
12087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088 (eval $ac_link) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 ac_cv_lib_dld_dld_link=yes
12099else
12100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012101sed 's/^/| /' conftest.$ac_ext >&5
12102
John Criswell47fdd832003-07-14 16:52:07 +000012103ac_cv_lib_dld_dld_link=no
12104fi
12105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12106LIBS=$ac_check_lib_save_LIBS
12107fi
12108echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12109echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12110if test $ac_cv_lib_dld_dld_link = yes; then
12111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12112fi
12113
12114
12115fi
12116
12117
12118fi
12119
12120
12121fi
12122
12123
12124fi
12125
12126
12127fi
12128
12129 ;;
12130 esac
12131
12132 if test "x$lt_cv_dlopen" != xno; then
12133 enable_dlopen=yes
12134 else
12135 enable_dlopen=no
12136 fi
12137
12138 case $lt_cv_dlopen in
12139 dlopen)
12140 save_CPPFLAGS="$CPPFLAGS"
12141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12142
12143 save_LDFLAGS="$LDFLAGS"
12144 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12145
12146 save_LIBS="$LIBS"
12147 LIBS="$lt_cv_dlopen_libs $LIBS"
12148
12149 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12150echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12151if test "${lt_cv_dlopen_self+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154 if test "$cross_compiling" = yes; then :
12155 lt_cv_dlopen_self=cross
12156else
12157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12158 lt_status=$lt_dlunknown
12159 cat > conftest.$ac_ext <<EOF
Misha Brukman811ce9f2003-11-12 22:16:51 +000012160#line 12160 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012161#include "confdefs.h"
12162
12163#if HAVE_DLFCN_H
12164#include <dlfcn.h>
12165#endif
12166
12167#include <stdio.h>
12168
12169#ifdef RTLD_GLOBAL
12170# define LT_DLGLOBAL RTLD_GLOBAL
12171#else
12172# ifdef DL_GLOBAL
12173# define LT_DLGLOBAL DL_GLOBAL
12174# else
12175# define LT_DLGLOBAL 0
12176# endif
12177#endif
12178
12179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12180 find out it does not work in some platform. */
12181#ifndef LT_DLLAZY_OR_NOW
12182# ifdef RTLD_LAZY
12183# define LT_DLLAZY_OR_NOW RTLD_LAZY
12184# else
12185# ifdef DL_LAZY
12186# define LT_DLLAZY_OR_NOW DL_LAZY
12187# else
12188# ifdef RTLD_NOW
12189# define LT_DLLAZY_OR_NOW RTLD_NOW
12190# else
12191# ifdef DL_NOW
12192# define LT_DLLAZY_OR_NOW DL_NOW
12193# else
12194# define LT_DLLAZY_OR_NOW 0
12195# endif
12196# endif
12197# endif
12198# endif
12199#endif
12200
12201#ifdef __cplusplus
12202extern "C" void exit (int);
12203#endif
12204
12205void fnord() { int i=42;}
12206int main ()
12207{
12208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12209 int status = $lt_dlunknown;
12210
12211 if (self)
12212 {
12213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12214 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12215 /* dlclose (self); */
12216 }
12217
12218 exit (status);
12219}
12220EOF
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222 (eval $ac_link) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12226 (./conftest; exit; ) 2>/dev/null
12227 lt_status=$?
12228 case x$lt_status in
12229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12230 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12231 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12232 esac
12233 else :
12234 # compilation failed
12235 lt_cv_dlopen_self=no
12236 fi
12237fi
12238rm -fr conftest*
12239
12240
12241fi
12242echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12243echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12244
12245 if test "x$lt_cv_dlopen_self" = xyes; then
12246 LDFLAGS="$LDFLAGS $link_static_flag"
12247 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12248echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12249if test "${lt_cv_dlopen_self_static+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
12252 if test "$cross_compiling" = yes; then :
12253 lt_cv_dlopen_self_static=cross
12254else
12255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12256 lt_status=$lt_dlunknown
12257 cat > conftest.$ac_ext <<EOF
Misha Brukman811ce9f2003-11-12 22:16:51 +000012258#line 12258 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012259#include "confdefs.h"
12260
12261#if HAVE_DLFCN_H
12262#include <dlfcn.h>
12263#endif
12264
12265#include <stdio.h>
12266
12267#ifdef RTLD_GLOBAL
12268# define LT_DLGLOBAL RTLD_GLOBAL
12269#else
12270# ifdef DL_GLOBAL
12271# define LT_DLGLOBAL DL_GLOBAL
12272# else
12273# define LT_DLGLOBAL 0
12274# endif
12275#endif
12276
12277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12278 find out it does not work in some platform. */
12279#ifndef LT_DLLAZY_OR_NOW
12280# ifdef RTLD_LAZY
12281# define LT_DLLAZY_OR_NOW RTLD_LAZY
12282# else
12283# ifdef DL_LAZY
12284# define LT_DLLAZY_OR_NOW DL_LAZY
12285# else
12286# ifdef RTLD_NOW
12287# define LT_DLLAZY_OR_NOW RTLD_NOW
12288# else
12289# ifdef DL_NOW
12290# define LT_DLLAZY_OR_NOW DL_NOW
12291# else
12292# define LT_DLLAZY_OR_NOW 0
12293# endif
12294# endif
12295# endif
12296# endif
12297#endif
12298
12299#ifdef __cplusplus
12300extern "C" void exit (int);
12301#endif
12302
12303void fnord() { int i=42;}
12304int main ()
12305{
12306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12307 int status = $lt_dlunknown;
12308
12309 if (self)
12310 {
12311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12313 /* dlclose (self); */
12314 }
12315
12316 exit (status);
12317}
12318EOF
12319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12320 (eval $ac_link) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12324 (./conftest; exit; ) 2>/dev/null
12325 lt_status=$?
12326 case x$lt_status in
12327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12328 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12329 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12330 esac
12331 else :
12332 # compilation failed
12333 lt_cv_dlopen_self_static=no
12334 fi
12335fi
12336rm -fr conftest*
12337
12338
12339fi
12340echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12341echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12342 fi
12343
12344 CPPFLAGS="$save_CPPFLAGS"
12345 LDFLAGS="$save_LDFLAGS"
12346 LIBS="$save_LIBS"
12347 ;;
12348 esac
12349
12350 case $lt_cv_dlopen_self in
12351 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12352 *) enable_dlopen_self=unknown ;;
12353 esac
12354
12355 case $lt_cv_dlopen_self_static in
12356 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12357 *) enable_dlopen_self_static=unknown ;;
12358 esac
12359fi
12360
12361
12362# The else clause should only fire when bootstrapping the
12363# libtool distribution, otherwise you forgot to ship ltmain.sh
12364# with your package, and you will get complaints that there are
12365# no rules to generate ltmain.sh.
12366if test -f "$ltmain"; then
12367 # See if we are running on zsh, and set the options which allow our commands through
12368 # without removal of \ escapes.
12369 if test -n "${ZSH_VERSION+set}" ; then
12370 setopt NO_GLOB_SUBST
12371 fi
12372 # Now quote all the things that may contain metacharacters while being
12373 # careful not to overquote the AC_SUBSTed values. We take copies of the
12374 # variables and quote the copies for generation of the libtool script.
12375 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12378 deplibs_check_method reload_flag reload_cmds need_locks \
12379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12380 lt_cv_sys_global_symbol_to_c_name_address \
12381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12382 old_postinstall_cmds old_postuninstall_cmds \
12383 compiler_CXX \
12384 CC_CXX \
12385 LD_CXX \
12386 lt_prog_compiler_wl_CXX \
12387 lt_prog_compiler_pic_CXX \
12388 lt_prog_compiler_static_CXX \
12389 lt_prog_compiler_no_builtin_flag_CXX \
12390 export_dynamic_flag_spec_CXX \
12391 thread_safe_flag_spec_CXX \
12392 whole_archive_flag_spec_CXX \
12393 enable_shared_with_static_runtimes_CXX \
12394 old_archive_cmds_CXX \
12395 old_archive_from_new_cmds_CXX \
12396 predep_objects_CXX \
12397 postdep_objects_CXX \
12398 predeps_CXX \
12399 postdeps_CXX \
12400 compiler_lib_search_path_CXX \
12401 archive_cmds_CXX \
12402 archive_expsym_cmds_CXX \
12403 postinstall_cmds_CXX \
12404 postuninstall_cmds_CXX \
12405 old_archive_from_expsyms_cmds_CXX \
12406 allow_undefined_flag_CXX \
12407 no_undefined_flag_CXX \
12408 export_symbols_cmds_CXX \
12409 hardcode_libdir_flag_spec_CXX \
12410 hardcode_libdir_flag_spec_ld_CXX \
12411 hardcode_libdir_separator_CXX \
12412 hardcode_automatic_CXX \
12413 module_cmds_CXX \
12414 module_expsym_cmds_CXX \
12415 lt_cv_prog_compiler_c_o_CXX \
12416 exclude_expsyms_CXX \
12417 include_expsyms_CXX; do
12418
12419 case $var in
12420 old_archive_cmds_CXX | \
12421 old_archive_from_new_cmds_CXX | \
12422 archive_cmds_CXX | \
12423 archive_expsym_cmds_CXX | \
12424 module_cmds_CXX | \
12425 module_expsym_cmds_CXX | \
12426 old_archive_from_expsyms_cmds_CXX | \
12427 export_symbols_cmds_CXX | \
12428 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12429 postinstall_cmds | postuninstall_cmds | \
12430 old_postinstall_cmds | old_postuninstall_cmds | \
12431 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12432 # Double-quote double-evaled strings.
12433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12434 ;;
12435 *)
12436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12437 ;;
12438 esac
12439 done
12440
12441 case $lt_echo in
12442 *'\$0 --fallback-echo"')
12443 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12444 ;;
12445 esac
12446
12447cfgfile="$ofile"
12448
12449 cat <<__EOF__ >> "$cfgfile"
12450# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12451
12452# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12453
12454# Shell to use when invoking shell scripts.
12455SHELL=$lt_SHELL
12456
12457# Whether or not to build shared libraries.
12458build_libtool_libs=$enable_shared
12459
12460# Whether or not to build static libraries.
12461build_old_libs=$enable_static
12462
12463# Whether or not to add -lc for building shared libraries.
12464build_libtool_need_lc=$archive_cmds_need_lc_CXX
12465
12466# Whether or not to disallow shared libs when runtime libs are static
12467allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12468
12469# Whether or not to optimize for fast installation.
12470fast_install=$enable_fast_install
12471
12472# The host system.
12473host_alias=$host_alias
12474host=$host
12475
12476# An echo program that does not interpret backslashes.
12477echo=$lt_echo
12478
12479# The archiver.
12480AR=$lt_AR
12481AR_FLAGS=$lt_AR_FLAGS
12482
12483# A C compiler.
12484LTCC=$lt_LTCC
12485
12486# A language-specific compiler.
12487CC=$lt_compiler_CXX
12488
12489# Is the compiler the GNU C compiler?
12490with_gcc=$GCC_CXX
12491
12492# An ERE matcher.
12493EGREP=$lt_EGREP
12494
12495# The linker used to build libraries.
12496LD=$lt_LD_CXX
12497
12498# Whether we need hard or soft links.
12499LN_S=$lt_LN_S
12500
12501# A BSD-compatible nm program.
12502NM=$lt_NM
12503
12504# A symbol stripping program
12505STRIP=$STRIP
12506
12507# Used to examine libraries when file_magic_cmd begins "file"
12508MAGIC_CMD=$MAGIC_CMD
12509
12510# Used on cygwin: DLL creation program.
12511DLLTOOL="$DLLTOOL"
12512
12513# Used on cygwin: object dumper.
12514OBJDUMP="$OBJDUMP"
12515
12516# Used on cygwin: assembler.
12517AS="$AS"
12518
12519# The name of the directory that contains temporary libtool files.
12520objdir=$objdir
12521
12522# How to create reloadable object files.
12523reload_flag=$lt_reload_flag
12524reload_cmds=$lt_reload_cmds
12525
12526# How to pass a linker flag through the compiler.
12527wl=$lt_lt_prog_compiler_wl_CXX
12528
12529# Object file suffix (normally "o").
12530objext="$ac_objext"
12531
12532# Old archive suffix (normally "a").
12533libext="$libext"
12534
12535# Shared library suffix (normally ".so").
12536shrext='$shrext'
12537
12538# Executable file suffix (normally "").
12539exeext="$exeext"
12540
12541# Additional compiler flags for building library objects.
12542pic_flag=$lt_lt_prog_compiler_pic_CXX
12543pic_mode=$pic_mode
12544
12545# What is the maximum length of a command?
12546max_cmd_len=$lt_cv_sys_max_cmd_len
12547
12548# Does compiler simultaneously support -c and -o options?
12549compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12550
12551# Must we lock files when doing compilation ?
12552need_locks=$lt_need_locks
12553
12554# Do we need the lib prefix for modules?
12555need_lib_prefix=$need_lib_prefix
12556
12557# Do we need a version for libraries?
12558need_version=$need_version
12559
12560# Whether dlopen is supported.
12561dlopen_support=$enable_dlopen
12562
12563# Whether dlopen of programs is supported.
12564dlopen_self=$enable_dlopen_self
12565
12566# Whether dlopen of statically linked programs is supported.
12567dlopen_self_static=$enable_dlopen_self_static
12568
12569# Compiler flag to prevent dynamic linking.
12570link_static_flag=$lt_lt_prog_compiler_static_CXX
12571
12572# Compiler flag to turn off builtin functions.
12573no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12574
12575# Compiler flag to allow reflexive dlopens.
12576export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12577
12578# Compiler flag to generate shared objects directly from archives.
12579whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12580
12581# Compiler flag to generate thread-safe objects.
12582thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12583
12584# Library versioning type.
12585version_type=$version_type
12586
12587# Format of library name prefix.
12588libname_spec=$lt_libname_spec
12589
12590# List of archive names. First name is the real one, the rest are links.
12591# The last name is the one that the linker finds with -lNAME.
12592library_names_spec=$lt_library_names_spec
12593
12594# The coded name of the library, if different from the real name.
12595soname_spec=$lt_soname_spec
12596
12597# Commands used to build and install an old-style archive.
12598RANLIB=$lt_RANLIB
12599old_archive_cmds=$lt_old_archive_cmds_CXX
12600old_postinstall_cmds=$lt_old_postinstall_cmds
12601old_postuninstall_cmds=$lt_old_postuninstall_cmds
12602
12603# Create an old-style archive from a shared archive.
12604old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12605
12606# Create a temporary old-style archive to link instead of a shared archive.
12607old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12608
12609# Commands used to build and install a shared archive.
12610archive_cmds=$lt_archive_cmds_CXX
12611archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12612postinstall_cmds=$lt_postinstall_cmds
12613postuninstall_cmds=$lt_postuninstall_cmds
12614
12615# Commands used to build a loadable module (assumed same as above if empty)
12616module_cmds=$lt_module_cmds_CXX
12617module_expsym_cmds=$lt_module_expsym_cmds_CXX
12618
12619# Commands to strip libraries.
12620old_striplib=$lt_old_striplib
12621striplib=$lt_striplib
12622
12623# Dependencies to place before the objects being linked to create a
12624# shared library.
12625predep_objects=$lt_predep_objects_CXX
12626
12627# Dependencies to place after the objects being linked to create a
12628# shared library.
12629postdep_objects=$lt_postdep_objects_CXX
12630
12631# Dependencies to place before the objects being linked to create a
12632# shared library.
12633predeps=$lt_predeps_CXX
12634
12635# Dependencies to place after the objects being linked to create a
12636# shared library.
12637postdeps=$lt_postdeps_CXX
12638
12639# The library search path used internally by the compiler when linking
12640# a shared library.
12641compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12642
12643# Method to check whether dependent libraries are shared objects.
12644deplibs_check_method=$lt_deplibs_check_method
12645
12646# Command to use when deplibs_check_method == file_magic.
12647file_magic_cmd=$lt_file_magic_cmd
12648
12649# Flag that allows shared libraries with undefined symbols to be built.
12650allow_undefined_flag=$lt_allow_undefined_flag_CXX
12651
12652# Flag that forces no undefined symbols.
12653no_undefined_flag=$lt_no_undefined_flag_CXX
12654
12655# Commands used to finish a libtool library installation in a directory.
12656finish_cmds=$lt_finish_cmds
12657
12658# Same as above, but a single script fragment to be evaled but not shown.
12659finish_eval=$lt_finish_eval
12660
12661# Take the output of nm and produce a listing of raw symbols and C names.
12662global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12663
12664# Transform the output of nm in a proper C declaration
12665global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12666
12667# Transform the output of nm in a C name address pair
12668global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12669
12670# This is the shared library runtime path variable.
12671runpath_var=$runpath_var
12672
12673# This is the shared library path variable.
12674shlibpath_var=$shlibpath_var
12675
12676# Is shlibpath searched before the hard-coded library search path?
12677shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12678
12679# How to hardcode a shared library path into an executable.
12680hardcode_action=$hardcode_action_CXX
12681
12682# Whether we should hardcode library paths into libraries.
12683hardcode_into_libs=$hardcode_into_libs
12684
12685# Flag to hardcode \$libdir into a binary during linking.
12686# This must work even if \$libdir does not exist.
12687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12688
12689# If ld is used when linking, flag to hardcode \$libdir into
12690# a binary during linking. This must work even if \$libdir does
12691# not exist.
12692hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12693
12694# Whether we need a single -rpath flag with a separated argument.
12695hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12696
12697# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12698# resulting binary.
12699hardcode_direct=$hardcode_direct_CXX
12700
12701# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12702# resulting binary.
12703hardcode_minus_L=$hardcode_minus_L_CXX
12704
12705# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12706# the resulting binary.
12707hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12708
12709# Set to yes if building a shared library automatically hardcodes DIR into the library
12710# and all subsequent libraries and executables linked against it.
12711hardcode_automatic=$hardcode_automatic_CXX
12712
12713# Variables whose values should be saved in libtool wrapper scripts and
12714# restored at relink time.
12715variables_saved_for_relink="$variables_saved_for_relink"
12716
12717# Whether libtool must link a program against all its dependency libraries.
12718link_all_deplibs=$link_all_deplibs_CXX
12719
12720# Compile-time system search path for libraries
12721sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12722
12723# Run-time system search path for libraries
12724sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12725
12726# Fix the shell variable \$srcfile for the compiler.
12727fix_srcfile_path="$fix_srcfile_path_CXX"
12728
12729# Set to yes if exported symbols are required.
12730always_export_symbols=$always_export_symbols_CXX
12731
12732# The commands to list exported symbols.
12733export_symbols_cmds=$lt_export_symbols_cmds_CXX
12734
12735# The commands to extract the exported symbol list from a shared archive.
12736extract_expsyms_cmds=$lt_extract_expsyms_cmds
12737
12738# Symbols that should not be listed in the preloaded symbols.
12739exclude_expsyms=$lt_exclude_expsyms_CXX
12740
12741# Symbols that must always be exported.
12742include_expsyms=$lt_include_expsyms_CXX
12743
12744# ### END LIBTOOL TAG CONFIG: $tagname
12745
12746__EOF__
12747
12748
12749else
12750 # If there is no Makefile yet, we rely on a make rule to execute
12751 # `config.status --recheck' to rerun these tests and create the
12752 # libtool script then.
12753 test -f Makefile && make "$ltmain"
12754fi
12755
12756
12757ac_ext=c
12758ac_cpp='$CPP $CPPFLAGS'
12759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762
12763CC=$lt_save_CC
12764LDCXX=$LD
12765LD=$lt_save_LD
12766GCC=$lt_save_GCC
12767with_gnu_ldcxx=$with_gnu_ld
12768with_gnu_ld=$lt_save_with_gnu_ld
12769lt_cv_path_LDCXX=$lt_cv_path_LD
12770lt_cv_path_LD=$lt_save_path_LD
12771lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12772lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12773
12774 else
12775 tagname=""
12776 fi
12777 ;;
12778
12779 F77)
12780 if test -n "$F77" && test "X$F77" != "Xno"; then
12781
12782ac_ext=f
12783ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12784ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12786
12787
12788archive_cmds_need_lc_F77=no
12789allow_undefined_flag_F77=
12790always_export_symbols_F77=no
12791archive_expsym_cmds_F77=
12792export_dynamic_flag_spec_F77=
12793hardcode_direct_F77=no
12794hardcode_libdir_flag_spec_F77=
12795hardcode_libdir_flag_spec_ld_F77=
12796hardcode_libdir_separator_F77=
12797hardcode_minus_L_F77=no
12798hardcode_automatic_F77=no
12799module_cmds_F77=
12800module_expsym_cmds_F77=
12801link_all_deplibs_F77=unknown
12802old_archive_cmds_F77=$old_archive_cmds
12803no_undefined_flag_F77=
12804whole_archive_flag_spec_F77=
12805enable_shared_with_static_runtimes_F77=no
12806
12807# Source file extension for f77 test sources.
12808ac_ext=f
12809
12810# Object file extension for compiled f77 test sources.
12811objext=o
12812objext_F77=$objext
12813
12814# Code to be used in simple compile tests
12815lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12816
12817# Code to be used in simple link tests
12818lt_simple_link_test_code=" program t\n end\n"
12819
12820# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12821
12822# If no C compiler was specified, use CC.
12823LTCC=${LTCC-"$CC"}
12824
12825# Allow CC to be a program name with arguments.
12826compiler=$CC
12827
12828
12829# Allow CC to be a program name with arguments.
12830lt_save_CC="$CC"
12831CC=${F77-"f77"}
12832compiler=$CC
12833compiler_F77=$CC
12834cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12835
12836echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12837echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12838echo "$as_me:$LINENO: result: $can_build_shared" >&5
12839echo "${ECHO_T}$can_build_shared" >&6
12840
12841echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12842echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12843test "$can_build_shared" = "no" && enable_shared=no
12844
12845# On AIX, shared libraries and static libraries use the same namespace, and
12846# are all built from PIC.
12847case "$host_os" in
12848aix3*)
12849 test "$enable_shared" = yes && enable_static=no
12850 if test -n "$RANLIB"; then
12851 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12852 postinstall_cmds='$RANLIB $lib'
12853 fi
12854 ;;
12855aix4*)
12856 test "$enable_shared" = yes && enable_static=no
12857 ;;
12858esac
12859echo "$as_me:$LINENO: result: $enable_shared" >&5
12860echo "${ECHO_T}$enable_shared" >&6
12861
12862echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12863echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12864# Make sure either enable_shared or enable_static is yes.
12865test "$enable_shared" = yes || enable_static=yes
12866echo "$as_me:$LINENO: result: $enable_static" >&5
12867echo "${ECHO_T}$enable_static" >&6
12868
12869test "$ld_shlibs_F77" = no && can_build_shared=no
12870
12871GCC_F77="$G77"
12872LD_F77="$LD"
12873
12874lt_prog_compiler_wl_F77=
12875lt_prog_compiler_pic_F77=
12876lt_prog_compiler_static_F77=
12877
12878echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12879echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12880
12881 if test "$GCC" = yes; then
12882 lt_prog_compiler_wl_F77='-Wl,'
12883 lt_prog_compiler_static_F77='-static'
12884
12885 case $host_os in
12886 aix*)
12887 # All AIX code is PIC.
12888 if test "$host_cpu" = ia64; then
12889 # AIX 5 now supports IA64 processor
12890 lt_prog_compiler_static_F77='-Bstatic'
12891 fi
12892 ;;
12893
12894 amigaos*)
12895 # FIXME: we need at least 68020 code to build shared libraries, but
12896 # adding the `-m68020' flag to GCC prevents building anything better,
12897 # like `-m68040'.
12898 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12899 ;;
12900
12901 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12902 # PIC is the default for these OSes.
12903 ;;
12904
12905 mingw* | pw32* | os2*)
12906 # This hack is so that the source file can tell whether it is being
12907 # built for inclusion in a dll (and should export symbols for example).
12908 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12909 ;;
12910
12911 darwin* | rhapsody*)
12912 # PIC is the default on this platform
12913 # Common symbols not allowed in MH_DYLIB files
12914 lt_prog_compiler_pic_F77='-fno-common'
12915 ;;
12916
12917 msdosdjgpp*)
12918 # Just because we use GCC doesn't mean we suddenly get shared libraries
12919 # on systems that don't support them.
12920 lt_prog_compiler_can_build_shared_F77=no
12921 enable_shared=no
12922 ;;
12923
12924 sysv4*MP*)
12925 if test -d /usr/nec; then
12926 lt_prog_compiler_pic_F77=-Kconform_pic
12927 fi
12928 ;;
12929
12930 hpux*)
12931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12932 # not for PA HP-UX.
12933 case "$host_cpu" in
12934 hppa*64*|ia64*)
12935 # +Z the default
12936 ;;
12937 *)
12938 lt_prog_compiler_pic_F77='-fPIC'
12939 ;;
12940 esac
12941 ;;
12942
12943 *)
12944 lt_prog_compiler_pic_F77='-fPIC'
12945 ;;
12946 esac
12947 else
12948 # PORTME Check for flag to pass linker flags through the system compiler.
12949 case $host_os in
12950 aix*)
12951 lt_prog_compiler_wl_F77='-Wl,'
12952 if test "$host_cpu" = ia64; then
12953 # AIX 5 now supports IA64 processor
12954 lt_prog_compiler_static_F77='-Bstatic'
12955 else
12956 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12957 fi
12958 ;;
12959
12960 mingw* | pw32* | os2*)
12961 # This hack is so that the source file can tell whether it is being
12962 # built for inclusion in a dll (and should export symbols for example).
12963 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12964 ;;
12965
12966 hpux9* | hpux10* | hpux11*)
12967 lt_prog_compiler_wl_F77='-Wl,'
12968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12969 # not for PA HP-UX.
12970 case "$host_cpu" in
12971 hppa*64*|ia64*)
12972 # +Z the default
12973 ;;
12974 *)
12975 lt_prog_compiler_pic_F77='+Z'
12976 ;;
12977 esac
12978 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12979 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12980 ;;
12981
12982 irix5* | irix6* | nonstopux*)
12983 lt_prog_compiler_wl_F77='-Wl,'
12984 # PIC (with -KPIC) is the default.
12985 lt_prog_compiler_static_F77='-non_shared'
12986 ;;
12987
12988 newsos6)
12989 lt_prog_compiler_pic_F77='-KPIC'
12990 lt_prog_compiler_static_F77='-Bstatic'
12991 ;;
12992
12993 linux*)
12994 case $CC in
12995 icc|ecc)
12996 lt_prog_compiler_wl_F77='-Wl,'
12997 lt_prog_compiler_pic_F77='-KPIC'
12998 lt_prog_compiler_static_F77='-static'
12999 ;;
13000 ccc)
13001 lt_prog_compiler_wl_F77='-Wl,'
13002 # All Alpha code is PIC.
13003 lt_prog_compiler_static_F77='-non_shared'
13004 ;;
13005 esac
13006 ;;
13007
13008 osf3* | osf4* | osf5*)
13009 lt_prog_compiler_wl_F77='-Wl,'
13010 # All OSF/1 code is PIC.
13011 lt_prog_compiler_static_F77='-non_shared'
13012 ;;
13013
13014 sco3.2v5*)
13015 lt_prog_compiler_pic_F77='-Kpic'
13016 lt_prog_compiler_static_F77='-dn'
13017 ;;
13018
13019 solaris*)
13020 lt_prog_compiler_wl_F77='-Wl,'
13021 lt_prog_compiler_pic_F77='-KPIC'
13022 lt_prog_compiler_static_F77='-Bstatic'
13023 ;;
13024
13025 sunos4*)
13026 lt_prog_compiler_wl_F77='-Qoption ld '
13027 lt_prog_compiler_pic_F77='-PIC'
13028 lt_prog_compiler_static_F77='-Bstatic'
13029 ;;
13030
13031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13032 lt_prog_compiler_wl_F77='-Wl,'
13033 lt_prog_compiler_pic_F77='-KPIC'
13034 lt_prog_compiler_static_F77='-Bstatic'
13035 ;;
13036
13037 sysv4*MP*)
13038 if test -d /usr/nec ;then
13039 lt_prog_compiler_pic_F77='-Kconform_pic'
13040 lt_prog_compiler_static_F77='-Bstatic'
13041 fi
13042 ;;
13043
13044 uts4*)
13045 lt_prog_compiler_pic_F77='-pic'
13046 lt_prog_compiler_static_F77='-Bstatic'
13047 ;;
13048
13049 *)
13050 lt_prog_compiler_can_build_shared_F77=no
13051 ;;
13052 esac
13053 fi
13054
13055echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13056echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13057
13058#
13059# Check to make sure the PIC flag actually works.
13060#
13061if test -n "$lt_prog_compiler_pic_F77"; then
13062 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13063echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13064if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066else
13067 lt_prog_compiler_pic_works_F77=no
13068 ac_outfile=conftest.$ac_objext
13069 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13070 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13071 # Insert the option either (1) after the last *FLAGS variable, or
13072 # (2) before a word containing "conftest.", or (3) at the end.
13073 # Note that $ac_compile itself does not contain backslashes and begins
13074 # with a dollar sign (not a hyphen), so the echo should work correctly.
13075 # The option is referenced via a variable to avoid confusing sed.
13076 lt_compile=`echo "$ac_compile" | $SED \
13077 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +000013080 (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013081 (eval "$lt_compile" 2>conftest.err)
13082 ac_status=$?
13083 cat conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +000013084 echo "$as_me:13084: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013085 if (exit $ac_status) && test -s "$ac_outfile"; then
13086 # The compiler can only warn and ignore the option if not recognized
13087 # So say no if there are warnings
13088 if test ! -s conftest.err; then
13089 lt_prog_compiler_pic_works_F77=yes
13090 fi
13091 fi
13092 $rm conftest*
13093
13094fi
13095echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13096echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13097
13098if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13099 case $lt_prog_compiler_pic_F77 in
13100 "" | " "*) ;;
13101 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13102 esac
13103else
13104 lt_prog_compiler_pic_F77=
13105 lt_prog_compiler_can_build_shared_F77=no
13106fi
13107
13108fi
13109case "$host_os" in
13110 # For platforms which do not support PIC, -DPIC is meaningless:
13111 *djgpp*)
13112 lt_prog_compiler_pic_F77=
13113 ;;
13114 *)
13115 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13116 ;;
13117esac
13118
13119echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13120echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13121if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123else
13124 lt_cv_prog_compiler_c_o_F77=no
13125 $rm -r conftest 2>/dev/null
13126 mkdir conftest
13127 cd conftest
13128 mkdir out
13129 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13130
13131 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13132 # that will create temporary files in the current directory regardless of
13133 # the output directory. Thus, making CWD read-only will cause this test
13134 # to fail, enabling locking or at least warning the user not to do parallel
13135 # builds.
13136 chmod -w .
13137
13138 lt_compiler_flag="-o out/conftest2.$ac_objext"
13139 # Insert the option either (1) after the last *FLAGS variable, or
13140 # (2) before a word containing "conftest.", or (3) at the end.
13141 # Note that $ac_compile itself does not contain backslashes and begins
13142 # with a dollar sign (not a hyphen), so the echo should work correctly.
13143 lt_compile=`echo "$ac_compile" | $SED \
13144 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +000013147 (eval echo "\"\$as_me:13147: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013148 (eval "$lt_compile" 2>out/conftest.err)
13149 ac_status=$?
13150 cat out/conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +000013151 echo "$as_me:13151: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013152 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13153 then
13154 # The compiler can only warn and ignore the option if not recognized
13155 # So say no if there are warnings
13156 if test ! -s out/conftest.err; then
13157 lt_cv_prog_compiler_c_o_F77=yes
13158 fi
13159 fi
13160 chmod u+w .
13161 $rm conftest* out/*
13162 rmdir out
13163 cd ..
13164 rmdir conftest
13165 $rm conftest*
13166
13167fi
13168echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13169echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13170
13171
13172hard_links="nottested"
13173if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13174 # do not overwrite the value of need_locks provided by the user
13175 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13176echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13177 hard_links=yes
13178 $rm conftest*
13179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13180 touch conftest.a
13181 ln conftest.a conftest.b 2>&5 || hard_links=no
13182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13183 echo "$as_me:$LINENO: result: $hard_links" >&5
13184echo "${ECHO_T}$hard_links" >&6
13185 if test "$hard_links" = no; then
13186 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13187echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13188 need_locks=warn
13189 fi
13190else
13191 need_locks=no
13192fi
13193
13194echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13195echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13196
13197 runpath_var=
13198 allow_undefined_flag_F77=
13199 enable_shared_with_static_runtimes_F77=no
13200 archive_cmds_F77=
13201 archive_expsym_cmds_F77=
13202 old_archive_From_new_cmds_F77=
13203 old_archive_from_expsyms_cmds_F77=
13204 export_dynamic_flag_spec_F77=
13205 whole_archive_flag_spec_F77=
13206 thread_safe_flag_spec_F77=
13207 hardcode_libdir_flag_spec_F77=
13208 hardcode_libdir_flag_spec_ld_F77=
13209 hardcode_libdir_separator_F77=
13210 hardcode_direct_F77=no
13211 hardcode_minus_L_F77=no
13212 hardcode_shlibpath_var_F77=unsupported
13213 link_all_deplibs_F77=unknown
13214 hardcode_automatic_F77=no
13215 module_cmds_F77=
13216 module_expsym_cmds_F77=
13217 always_export_symbols_F77=no
13218 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13219 # include_expsyms should be a list of space-separated symbols to be *always*
13220 # included in the symbol list
13221 include_expsyms_F77=
13222 # exclude_expsyms can be an extended regexp of symbols to exclude
13223 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13224 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13225 # as well as any symbol that contains `d'.
13226 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13227 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13228 # platforms (ab)use it in PIC code, but their linkers get confused if
13229 # the symbol is explicitly referenced. Since portable code cannot
13230 # rely on this symbol name, it's probably fine to never include it in
13231 # preloaded symbol tables.
13232 extract_expsyms_cmds=
13233
13234 case $host_os in
13235 cygwin* | mingw* | pw32*)
13236 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13237 # When not using gcc, we currently assume that we are using
13238 # Microsoft Visual C++.
13239 if test "$GCC" != yes; then
13240 with_gnu_ld=no
13241 fi
13242 ;;
13243 openbsd*)
13244 with_gnu_ld=no
13245 ;;
13246 esac
13247
13248 ld_shlibs_F77=yes
13249 if test "$with_gnu_ld" = yes; then
13250 # If archive_cmds runs LD, not CC, wlarc should be empty
13251 wlarc='${wl}'
13252
13253 # See if GNU ld supports shared libraries.
13254 case $host_os in
13255 aix3* | aix4* | aix5*)
13256 # On AIX/PPC, the GNU linker is very broken
13257 if test "$host_cpu" != ia64; then
13258 ld_shlibs_F77=no
13259 cat <<EOF 1>&2
13260
13261*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13262*** to be unable to reliably create shared libraries on AIX.
13263*** Therefore, libtool is disabling shared libraries support. If you
13264*** really care for shared libraries, you may want to modify your PATH
13265*** so that a non-GNU linker is found, and then restart.
13266
13267EOF
13268 fi
13269 ;;
13270
13271 amigaos*)
13272 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)'
13273 hardcode_libdir_flag_spec_F77='-L$libdir'
13274 hardcode_minus_L_F77=yes
13275
13276 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13277 # that the semantics of dynamic libraries on AmigaOS, at least up
13278 # to version 4, is to share data among multiple programs linked
13279 # with the same dynamic library. Since this doesn't match the
13280 # behavior of shared libraries on other platforms, we can't use
13281 # them.
13282 ld_shlibs_F77=no
13283 ;;
13284
13285 beos*)
13286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13287 allow_undefined_flag_F77=unsupported
13288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13289 # support --undefined. This deserves some investigation. FIXME
13290 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 else
13292 ld_shlibs_F77=no
13293 fi
13294 ;;
13295
13296 cygwin* | mingw* | pw32*)
13297 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13298 # as there is no search path for DLLs.
13299 hardcode_libdir_flag_spec_F77='-L$libdir'
13300 allow_undefined_flag_F77=unsupported
13301 always_export_symbols_F77=no
13302 enable_shared_with_static_runtimes_F77=yes
13303 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13304
13305 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13306 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13307 # If the export-symbols file already is a .def file (1st line
13308 # is EXPORTS), use it as is; otherwise, prepend...
13309 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13310 cp $export_symbols $output_objdir/$soname.def;
13311 else
13312 echo EXPORTS > $output_objdir/$soname.def;
13313 cat $export_symbols >> $output_objdir/$soname.def;
13314 fi~
13315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13316 else
13317 ld_shlibs=no
13318 fi
13319 ;;
13320
13321 netbsd*)
13322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13323 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13324 wlarc=
13325 else
13326 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13327 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13328 fi
13329 ;;
13330
13331 solaris* | sysv5*)
13332 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13333 ld_shlibs_F77=no
13334 cat <<EOF 1>&2
13335
13336*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13337*** create shared libraries on Solaris systems. Therefore, libtool
13338*** is disabling shared libraries support. We urge you to upgrade GNU
13339*** binutils to release 2.9.1 or newer. Another option is to modify
13340*** your PATH or compiler configuration so that the native linker is
13341*** used, and then restart.
13342
13343EOF
13344 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13347 else
13348 ld_shlibs_F77=no
13349 fi
13350 ;;
13351
13352 sunos4*)
13353 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13354 wlarc=
13355 hardcode_direct_F77=yes
13356 hardcode_shlibpath_var_F77=no
13357 ;;
13358
13359 *)
13360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13361 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13362 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13363 else
13364 ld_shlibs_F77=no
13365 fi
13366 ;;
13367 esac
13368
13369 if test "$ld_shlibs_F77" = yes; then
13370 runpath_var=LD_RUN_PATH
13371 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13372 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13373 # ancient GNU ld didn't support --whole-archive et. al.
13374 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13375 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13376 else
13377 whole_archive_flag_spec_F77=
13378 fi
13379 fi
13380 else
13381 # PORTME fill in a description of your system's linker (not GNU ld)
13382 case $host_os in
13383 aix3*)
13384 allow_undefined_flag_F77=unsupported
13385 always_export_symbols_F77=yes
13386 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'
13387 # Note: this linker hardcodes the directories in LIBPATH if there
13388 # are no directories specified by -L.
13389 hardcode_minus_L_F77=yes
13390 if test "$GCC" = yes && test -z "$link_static_flag"; then
13391 # Neither direct hardcoding nor static linking is supported with a
13392 # broken collect2.
13393 hardcode_direct_F77=unsupported
13394 fi
13395 ;;
13396
13397 aix4* | aix5*)
13398 if test "$host_cpu" = ia64; then
13399 # On IA64, the linker does run time linking by default, so we don't
13400 # have to do anything special.
13401 aix_use_runtimelinking=no
13402 exp_sym_flag='-Bexport'
13403 no_entry_flag=""
13404 else
13405 # If we're using GNU nm, then we don't want the "-C" option.
13406 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13407 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13408 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'
13409 else
13410 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'
13411 fi
13412 aix_use_runtimelinking=no
13413
13414 # Test if we are trying to use run time linking or normal
13415 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13416 # need to do runtime linking.
13417 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13418 for ld_flag in $LDFLAGS; do
13419 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13420 aix_use_runtimelinking=yes
13421 break
13422 fi
13423 done
13424 esac
13425
13426 exp_sym_flag='-bexport'
13427 no_entry_flag='-bnoentry'
13428 fi
13429
13430 # When large executables or shared objects are built, AIX ld can
13431 # have problems creating the table of contents. If linking a library
13432 # or program results in "error TOC overflow" add -mminimal-toc to
13433 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13434 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13435
13436 archive_cmds_F77=''
13437 hardcode_direct_F77=yes
13438 hardcode_libdir_separator_F77=':'
13439 link_all_deplibs_F77=yes
13440
13441 if test "$GCC" = yes; then
13442 case $host_os in aix4.012|aix4.012.*)
13443 # We only want to do this on AIX 4.2 and lower, the check
13444 # below for broken collect2 doesn't work under 4.3+
13445 collect2name=`${CC} -print-prog-name=collect2`
13446 if test -f "$collect2name" && \
13447 strings "$collect2name" | grep resolve_lib_name >/dev/null
13448 then
13449 # We have reworked collect2
13450 hardcode_direct_F77=yes
13451 else
13452 # We have old collect2
13453 hardcode_direct_F77=unsupported
13454 # It fails to find uninstalled libraries when the uninstalled
13455 # path is not listed in the libpath. Setting hardcode_minus_L
13456 # to unsupported forces relinking
13457 hardcode_minus_L_F77=yes
13458 hardcode_libdir_flag_spec_F77='-L$libdir'
13459 hardcode_libdir_separator_F77=
13460 fi
13461 esac
13462 shared_flag='-shared'
13463 else
13464 # not using gcc
13465 if test "$host_cpu" = ia64; then
13466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13467 # chokes on -Wl,-G. The following line is correct:
13468 shared_flag='-G'
13469 else
13470 if test "$aix_use_runtimelinking" = yes; then
13471 shared_flag='${wl}-G'
13472 else
13473 shared_flag='${wl}-bM:SRE'
13474 fi
13475 fi
13476 fi
13477
13478 # It seems that -bexpall does not export symbols beginning with
13479 # underscore (_), so it is better to generate a list of symbols to export.
13480 always_export_symbols_F77=yes
13481 if test "$aix_use_runtimelinking" = yes; then
13482 # Warning - without using the other runtime loading flags (-brtl),
13483 # -berok will link without error, but may produce a broken library.
13484 allow_undefined_flag_F77='-berok'
13485 # Determine the default libpath from the value encoded in an empty executable.
13486 cat >conftest.$ac_ext <<_ACEOF
13487 program main
13488
13489 end
13490_ACEOF
13491rm -f conftest.$ac_objext conftest$ac_exeext
13492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try='test -s conftest$ac_exeext'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503
13504aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13505}'`
13506# Check for a 64-bit object if we didn't find anything.
13507if 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; }
13508}'`; fi
13509else
13510 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013511sed 's/^/| /' conftest.$ac_ext >&5
13512
John Criswell47fdd832003-07-14 16:52:07 +000013513fi
13514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13516
13517 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13518 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"
13519 else
13520 if test "$host_cpu" = ia64; then
13521 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13522 allow_undefined_flag_F77="-z nodefs"
13523 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"
13524 else
13525 # Determine the default libpath from the value encoded in an empty executable.
13526 cat >conftest.$ac_ext <<_ACEOF
13527 program main
13528
13529 end
13530_ACEOF
13531rm -f conftest.$ac_objext conftest$ac_exeext
13532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13533 (eval $ac_link) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543
13544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13545}'`
13546# Check for a 64-bit object if we didn't find anything.
13547if 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; }
13548}'`; fi
13549else
13550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013551sed 's/^/| /' conftest.$ac_ext >&5
13552
John Criswell47fdd832003-07-14 16:52:07 +000013553fi
13554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13555if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13556
13557 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13558 # Warning - without using the other run time loading flags,
13559 # -berok will link without error, but may produce a broken library.
13560 no_undefined_flag_F77=' ${wl}-bernotok'
13561 allow_undefined_flag_F77=' ${wl}-berok'
13562 # -bexpall does not export symbols beginning with underscore (_)
13563 always_export_symbols_F77=yes
13564 # Exported symbols can be pulled into shared objects from archives
13565 whole_archive_flag_spec_F77=' '
13566 archive_cmds_need_lc_F77=yes
13567 # This is similar to how AIX traditionally builds it's shared libraries.
13568 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'
13569 fi
13570 fi
13571 ;;
13572
13573 amigaos*)
13574 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)'
13575 hardcode_libdir_flag_spec_F77='-L$libdir'
13576 hardcode_minus_L_F77=yes
13577 # see comment about different semantics on the GNU ld section
13578 ld_shlibs_F77=no
13579 ;;
13580
13581 bsdi4*)
13582 export_dynamic_flag_spec_F77=-rdynamic
13583 ;;
13584
13585 cygwin* | mingw* | pw32*)
13586 # When not using gcc, we currently assume that we are using
13587 # Microsoft Visual C++.
13588 # hardcode_libdir_flag_spec is actually meaningless, as there is
13589 # no search path for DLLs.
13590 hardcode_libdir_flag_spec_F77=' '
13591 allow_undefined_flag_F77=unsupported
13592 # Tell ltmain to make .lib files, not .a files.
13593 libext=lib
13594 # Tell ltmain to make .dll files, not .so files.
13595 shrext=".dll"
13596 # FIXME: Setting linknames here is a bad hack.
13597 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13598 # The linker will automatically build a .lib file if we build a DLL.
13599 old_archive_From_new_cmds_F77='true'
13600 # FIXME: Should let the user specify the lib program.
13601 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13602 fix_srcfile_path='`cygpath -w "$srcfile"`'
13603 enable_shared_with_static_runtimes_F77=yes
13604 ;;
13605
13606 darwin* | rhapsody*)
13607 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13608 archive_cmds_need_lc_F77=no
13609 case "$host_os" in
13610 rhapsody* | darwin1.[012])
13611 allow_undefined_flag_F77='-undefined suppress'
13612 ;;
13613 *) # Darwin 1.3 on
13614 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13615 ;;
13616 esac
13617 # FIXME: Relying on posixy $() will cause problems for
13618 # cross-compilation, but unfortunately the echo tests do not
13619 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13620 # `"' quotes if we put them in here... so don't!
13621 lt_int_apple_cc_single_mod=no
13622 output_verbose_link_cmd='echo'
13623 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13624 lt_int_apple_cc_single_mod=yes
13625 fi
13626 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13627 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13628 else
13629 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'
13630 fi
13631 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13633 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13634 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}'
13635 else
13636 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}'
13637 fi
13638 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}'
13639 hardcode_direct_F77=no
13640 hardcode_automatic_F77=yes
13641 hardcode_shlibpath_var_F77=unsupported
13642 whole_archive_flag_spec_F77='-all_load $convenience'
13643 link_all_deplibs_F77=yes
13644 fi
13645 ;;
13646
13647 dgux*)
13648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13649 hardcode_libdir_flag_spec_F77='-L$libdir'
13650 hardcode_shlibpath_var_F77=no
13651 ;;
13652
13653 freebsd1*)
13654 ld_shlibs_F77=no
13655 ;;
13656
13657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13658 # support. Future versions do this automatically, but an explicit c++rt0.o
13659 # does not break anything, and helps significantly (at the cost of a little
13660 # extra space).
13661 freebsd2.2*)
13662 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13663 hardcode_libdir_flag_spec_F77='-R$libdir'
13664 hardcode_direct_F77=yes
13665 hardcode_shlibpath_var_F77=no
13666 ;;
13667
13668 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13669 freebsd2*)
13670 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13671 hardcode_direct_F77=yes
13672 hardcode_minus_L_F77=yes
13673 hardcode_shlibpath_var_F77=no
13674 ;;
13675
13676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13677 freebsd*)
13678 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13679 hardcode_libdir_flag_spec_F77='-R$libdir'
13680 hardcode_direct_F77=yes
13681 hardcode_shlibpath_var_F77=no
13682 ;;
13683
13684 hpux9*)
13685 if test "$GCC" = yes; then
13686 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'
13687 else
13688 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'
13689 fi
13690 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13691 hardcode_libdir_separator_F77=:
13692 hardcode_direct_F77=yes
13693
13694 # hardcode_minus_L: Not really in the search PATH,
13695 # but as the default location of the library.
13696 hardcode_minus_L_F77=yes
13697 export_dynamic_flag_spec_F77='${wl}-E'
13698 ;;
13699
13700 hpux10* | hpux11*)
13701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13702 case "$host_cpu" in
13703 hppa*64*|ia64*)
13704 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 ;;
13706 *)
13707 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13708 ;;
13709 esac
13710 else
13711 case "$host_cpu" in
13712 hppa*64*|ia64*)
13713 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13714 ;;
13715 *)
13716 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13717 ;;
13718 esac
13719 fi
13720 if test "$with_gnu_ld" = no; then
13721 case "$host_cpu" in
13722 hppa*64*)
13723 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13724 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13725 hardcode_libdir_separator_F77=:
13726 hardcode_direct_F77=no
13727 hardcode_shlibpath_var_F77=no
13728 ;;
13729 ia64*)
13730 hardcode_libdir_flag_spec_F77='-L$libdir'
13731 hardcode_direct_F77=no
13732 hardcode_shlibpath_var_F77=no
13733
13734 # hardcode_minus_L: Not really in the search PATH,
13735 # but as the default location of the library.
13736 hardcode_minus_L_F77=yes
13737 ;;
13738 *)
13739 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13740 hardcode_libdir_separator_F77=:
13741 hardcode_direct_F77=yes
13742 export_dynamic_flag_spec_F77='${wl}-E'
13743
13744 # hardcode_minus_L: Not really in the search PATH,
13745 # but as the default location of the library.
13746 hardcode_minus_L_F77=yes
13747 ;;
13748 esac
13749 fi
13750 ;;
13751
13752 irix5* | irix6* | nonstopux*)
13753 if test "$GCC" = yes; then
13754 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'
13755 else
13756 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'
13757 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13758 fi
13759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13760 hardcode_libdir_separator_F77=:
13761 link_all_deplibs_F77=yes
13762 ;;
13763
13764 netbsd*)
13765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13767 else
13768 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13769 fi
13770 hardcode_libdir_flag_spec_F77='-R$libdir'
13771 hardcode_direct_F77=yes
13772 hardcode_shlibpath_var_F77=no
13773 ;;
13774
13775 newsos6)
13776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777 hardcode_direct_F77=yes
13778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13779 hardcode_libdir_separator_F77=:
13780 hardcode_shlibpath_var_F77=no
13781 ;;
13782
13783 openbsd*)
13784 hardcode_direct_F77=yes
13785 hardcode_shlibpath_var_F77=no
13786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13787 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13788 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13789 export_dynamic_flag_spec_F77='${wl}-E'
13790 else
13791 case $host_os in
13792 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13793 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13794 hardcode_libdir_flag_spec_F77='-R$libdir'
13795 ;;
13796 *)
13797 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13798 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13799 ;;
13800 esac
13801 fi
13802 ;;
13803
13804 os2*)
13805 hardcode_libdir_flag_spec_F77='-L$libdir'
13806 hardcode_minus_L_F77=yes
13807 allow_undefined_flag_F77=unsupported
13808 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'
13809 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13810 ;;
13811
13812 osf3*)
13813 if test "$GCC" = yes; then
13814 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13815 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'
13816 else
13817 allow_undefined_flag_F77=' -expect_unresolved \*'
13818 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'
13819 fi
13820 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13821 hardcode_libdir_separator_F77=:
13822 ;;
13823
13824 osf4* | osf5*) # as osf3* with the addition of -msym flag
13825 if test "$GCC" = yes; then
13826 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13827 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'
13828 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13829 else
13830 allow_undefined_flag_F77=' -expect_unresolved \*'
13831 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'
13832 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~
13833 $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'
13834
13835 # Both c and cxx compiler support -rpath directly
13836 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13837 fi
13838 hardcode_libdir_separator_F77=:
13839 ;;
13840
13841 sco3.2v5*)
13842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13843 hardcode_shlibpath_var_F77=no
13844 export_dynamic_flag_spec_F77='${wl}-Bexport'
13845 runpath_var=LD_RUN_PATH
13846 hardcode_runpath_var=yes
13847 ;;
13848
13849 solaris*)
13850 no_undefined_flag_F77=' -z text'
13851 if test "$GCC" = yes; then
13852 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13853 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13854 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13855 else
13856 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13859 fi
13860 hardcode_libdir_flag_spec_F77='-R$libdir'
13861 hardcode_shlibpath_var_F77=no
13862 case $host_os in
13863 solaris2.[0-5] | solaris2.[0-5].*) ;;
13864 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13865 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13866 esac
13867 link_all_deplibs_F77=yes
13868 ;;
13869
13870 sunos4*)
13871 if test "x$host_vendor" = xsequent; then
13872 # Use $CC to link under sequent, because it throws in some extra .o
13873 # files that make .init and .fini sections work.
13874 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13875 else
13876 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13877 fi
13878 hardcode_libdir_flag_spec_F77='-L$libdir'
13879 hardcode_direct_F77=yes
13880 hardcode_minus_L_F77=yes
13881 hardcode_shlibpath_var_F77=no
13882 ;;
13883
13884 sysv4)
13885 case $host_vendor in
13886 sni)
13887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888 hardcode_direct_F77=yes # is this really true???
13889 ;;
13890 siemens)
13891 ## LD is ld it makes a PLAMLIB
13892 ## CC just makes a GrossModule.
13893 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13894 reload_cmds_F77='$CC -r -o $output$reload_objs'
13895 hardcode_direct_F77=no
13896 ;;
13897 motorola)
13898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13900 ;;
13901 esac
13902 runpath_var='LD_RUN_PATH'
13903 hardcode_shlibpath_var_F77=no
13904 ;;
13905
13906 sysv4.3*)
13907 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13908 hardcode_shlibpath_var_F77=no
13909 export_dynamic_flag_spec_F77='-Bexport'
13910 ;;
13911
13912 sysv4*MP*)
13913 if test -d /usr/nec; then
13914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915 hardcode_shlibpath_var_F77=no
13916 runpath_var=LD_RUN_PATH
13917 hardcode_runpath_var=yes
13918 ld_shlibs_F77=yes
13919 fi
13920 ;;
13921
13922 sysv4.2uw2*)
13923 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13924 hardcode_direct_F77=yes
13925 hardcode_minus_L_F77=no
13926 hardcode_shlibpath_var_F77=no
13927 hardcode_runpath_var=yes
13928 runpath_var=LD_RUN_PATH
13929 ;;
13930
13931 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13932 no_undefined_flag_F77='${wl}-z ${wl}text'
13933 if test "$GCC" = yes; then
13934 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13935 else
13936 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13937 fi
13938 runpath_var='LD_RUN_PATH'
13939 hardcode_shlibpath_var_F77=no
13940 ;;
13941
13942 sysv5*)
13943 no_undefined_flag_F77=' -z text'
13944 # $CC -shared without GNU ld will not create a library from C++
13945 # object files and a static libstdc++, better avoid it by now
13946 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13949 hardcode_libdir_flag_spec_F77=
13950 hardcode_shlibpath_var_F77=no
13951 runpath_var='LD_RUN_PATH'
13952 ;;
13953
13954 uts4*)
13955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13956 hardcode_libdir_flag_spec_F77='-L$libdir'
13957 hardcode_shlibpath_var_F77=no
13958 ;;
13959
13960 *)
13961 ld_shlibs_F77=no
13962 ;;
13963 esac
13964 fi
13965
13966echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13967echo "${ECHO_T}$ld_shlibs_F77" >&6
13968test "$ld_shlibs_F77" = no && can_build_shared=no
13969
13970variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13971if test "$GCC" = yes; then
13972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13973fi
13974
13975#
13976# Do we need to explicitly link libc?
13977#
13978case "x$archive_cmds_need_lc_F77" in
13979x|xyes)
13980 # Assume -lc should be added
13981 archive_cmds_need_lc_F77=yes
13982
13983 if test "$enable_shared" = yes && test "$GCC" = yes; then
13984 case $archive_cmds_F77 in
13985 *'~'*)
13986 # FIXME: we may have to deal with multi-command sequences.
13987 ;;
13988 '$CC '*)
13989 # Test whether the compiler implicitly links with -lc since on some
13990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13991 # to ld, don't add -lc before -lgcc.
13992 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13993echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13994 $rm conftest*
13995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13996
13997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998 (eval $ac_compile) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } 2>conftest.err; then
14002 soname=conftest
14003 lib=conftest
14004 libobjs=conftest.$ac_objext
14005 deplibs=
14006 wl=$lt_prog_compiler_wl_F77
14007 compiler_flags=-v
14008 linker_flags=-v
14009 verstring=
14010 output_objdir=.
14011 libname=conftest
14012 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14013 allow_undefined_flag_F77=
14014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14015 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }
14019 then
14020 archive_cmds_need_lc_F77=no
14021 else
14022 archive_cmds_need_lc_F77=yes
14023 fi
14024 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14025 else
14026 cat conftest.err 1>&5
14027 fi
14028 $rm conftest*
14029 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14030echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14031 ;;
14032 esac
14033 fi
14034 ;;
14035esac
14036
14037echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14038echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14039hardcode_action_F77=
14040if test -n "$hardcode_libdir_flag_spec_F77" || \
14041 test -n "$runpath_var F77" || \
14042 test "X$hardcode_automatic_F77"="Xyes" ; then
14043
14044 # We can hardcode non-existant directories.
14045 if test "$hardcode_direct_F77" != no &&
14046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14047 # have to relink, otherwise we might link with an installed library
14048 # when we should be linking with a yet-to-be-installed one
14049 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14050 test "$hardcode_minus_L_F77" != no; then
14051 # Linking always hardcodes the temporary library directory.
14052 hardcode_action_F77=relink
14053 else
14054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14055 hardcode_action_F77=immediate
14056 fi
14057else
14058 # We cannot hardcode anything, or else we can only hardcode existing
14059 # directories.
14060 hardcode_action_F77=unsupported
14061fi
14062echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14063echo "${ECHO_T}$hardcode_action_F77" >&6
14064
14065if test "$hardcode_action_F77" = relink; then
14066 # Fast installation is not supported
14067 enable_fast_install=no
14068elif test "$shlibpath_overrides_runpath" = yes ||
14069 test "$enable_shared" = no; then
14070 # Fast installation is not necessary
14071 enable_fast_install=needless
14072fi
14073
14074striplib=
14075old_striplib=
14076echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14077echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14078if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14079 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14080 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14081 echo "$as_me:$LINENO: result: yes" >&5
14082echo "${ECHO_T}yes" >&6
14083else
14084# FIXME - insert some real tests, host_os isn't really good enough
14085 case $host_os in
14086 darwin*)
14087 if test -n "$STRIP" ; then
14088 striplib="$STRIP -x"
14089 echo "$as_me:$LINENO: result: yes" >&5
14090echo "${ECHO_T}yes" >&6
14091 else
14092 echo "$as_me:$LINENO: result: no" >&5
14093echo "${ECHO_T}no" >&6
14094fi
14095 ;;
14096 *)
14097 echo "$as_me:$LINENO: result: no" >&5
14098echo "${ECHO_T}no" >&6
14099 ;;
14100 esac
14101fi
14102
14103echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14104echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14105library_names_spec=
14106libname_spec='lib$name'
14107soname_spec=
14108shrext=".so"
14109postinstall_cmds=
14110postuninstall_cmds=
14111finish_cmds=
14112finish_eval=
14113shlibpath_var=
14114shlibpath_overrides_runpath=unknown
14115version_type=none
14116dynamic_linker="$host_os ld.so"
14117sys_lib_dlsearch_path_spec="/lib /usr/lib"
14118if test "$GCC" = yes; then
14119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14120 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14121 # if the path contains ";" then we assume it to be the separator
14122 # otherwise default to the standard path separator (i.e. ":") - it is
14123 # assumed that no part of a normal pathname contains ";" but that should
14124 # okay in the real world where ";" in dirpaths is itself problematic.
14125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14126 else
14127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14128 fi
14129else
14130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14131fi
14132need_lib_prefix=unknown
14133hardcode_into_libs=no
14134
14135# when you set need_version to no, make sure it does not cause -set_version
14136# flags to be left without arguments
14137need_version=unknown
14138
14139case $host_os in
14140aix3*)
14141 version_type=linux
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14143 shlibpath_var=LIBPATH
14144
14145 # AIX 3 has no versioning support, so we append a major version to the name.
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 ;;
14148
14149aix4* | aix5*)
14150 version_type=linux
14151 need_lib_prefix=no
14152 need_version=no
14153 hardcode_into_libs=yes
14154 if test "$host_cpu" = ia64; then
14155 # AIX 5 supports IA64
14156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14157 shlibpath_var=LD_LIBRARY_PATH
14158 else
14159 # With GCC up to 2.95.x, collect2 would create an import file
14160 # for dependence libraries. The import file would start with
14161 # the line `#! .'. This would cause the generated library to
14162 # depend on `.', always an invalid library. This was fixed in
14163 # development snapshots of GCC prior to 3.0.
14164 case $host_os in
14165 aix4 | aix4.[01] | aix4.[01].*)
14166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14167 echo ' yes '
14168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14169 :
14170 else
14171 can_build_shared=no
14172 fi
14173 ;;
14174 esac
14175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14176 # soname into executable. Probably we can add versioning support to
14177 # collect2, so additional links can be useful in future.
14178 if test "$aix_use_runtimelinking" = yes; then
14179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14180 # instead of lib<name>.a to let people know that these are not
14181 # typical AIX shared libraries.
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183 else
14184 # We preserve .a as extension for shared libraries through AIX4.2
14185 # and later when we are not doing run time linking.
14186 library_names_spec='${libname}${release}.a $libname.a'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 fi
14189 shlibpath_var=LIBPATH
14190 fi
14191 ;;
14192
14193amigaos*)
14194 library_names_spec='$libname.ixlibrary $libname.a'
14195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14196 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'
14197 ;;
14198
14199beos*)
14200 library_names_spec='${libname}${shared_ext}'
14201 dynamic_linker="$host_os ld.so"
14202 shlibpath_var=LIBRARY_PATH
14203 ;;
14204
14205bsdi4*)
14206 version_type=linux
14207 need_version=no
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14211 shlibpath_var=LD_LIBRARY_PATH
14212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14214 # the default ld.so.conf also contains /usr/contrib/lib and
14215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14216 # libtool to hard-code these into programs
14217 ;;
14218
14219cygwin* | mingw* | pw32*)
14220 version_type=windows
14221 shrext=".dll"
14222 need_version=no
14223 need_lib_prefix=no
14224
14225 case $GCC,$host_os in
14226 yes,cygwin* | yes,mingw* | yes,pw32*)
14227 library_names_spec='$libname.dll.a'
14228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14229 postinstall_cmds='base_file=`basename \${file}`~
14230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14231 dldir=$destdir/`dirname \$dlpath`~
14232 test -d \$dldir || mkdir -p \$dldir~
14233 $install_prog $dir/$dlname \$dldir/$dlname'
14234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14235 dlpath=$dir/\$dldll~
14236 $rm \$dlpath'
14237 shlibpath_overrides_runpath=yes
14238
14239 case $host_os in
14240 cygwin*)
14241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14243 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14244 ;;
14245 mingw*)
14246 # MinGW DLLs use traditional 'lib' prefix
14247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14250 # It is most probably a Windows format PATH printed by
14251 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14252 # path with ; separators, and with drive letters. We can handle the
14253 # drive letters (cygwin fileutils understands them), so leave them,
14254 # especially as we might pass files found there to a mingw objdump,
14255 # which wouldn't understand a cygwinified path. Ahh.
14256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14257 else
14258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14259 fi
14260 ;;
14261 pw32*)
14262 # pw32 DLLs use 'pw' prefix rather than 'lib'
14263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14264 ;;
14265 esac
14266 ;;
14267
14268 *)
14269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14270 ;;
14271 esac
14272 dynamic_linker='Win32 ld.exe'
14273 # FIXME: first we should search . and the directory the executable is in
14274 shlibpath_var=PATH
14275 ;;
14276
14277darwin* | rhapsody*)
14278 dynamic_linker="$host_os dyld"
14279 version_type=darwin
14280 need_lib_prefix=no
14281 need_version=no
14282 # FIXME: Relying on posixy $() will cause problems for
14283 # cross-compilation, but unfortunately the echo tests do not
14284 # yet detect zsh echo's removal of \ escapes.
14285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14286 soname_spec='${libname}${release}${major}$shared_ext'
14287 shlibpath_overrides_runpath=yes
14288 shlibpath_var=DYLD_LIBRARY_PATH
14289 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14290 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14291 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14292 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"`
14293 fi
14294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14295 ;;
14296
14297dgux*)
14298 version_type=linux
14299 need_lib_prefix=no
14300 need_version=no
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 ;;
14305
14306freebsd1*)
14307 dynamic_linker=no
14308 ;;
14309
14310freebsd*)
14311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14312 version_type=freebsd-$objformat
14313 case $version_type in
14314 freebsd-elf*)
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14316 need_version=no
14317 need_lib_prefix=no
14318 ;;
14319 freebsd-*)
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14321 need_version=yes
14322 ;;
14323 esac
14324 shlibpath_var=LD_LIBRARY_PATH
14325 case $host_os in
14326 freebsd2*)
14327 shlibpath_overrides_runpath=yes
14328 ;;
14329 freebsd3.01* | freebsdelf3.01*)
14330 shlibpath_overrides_runpath=yes
14331 hardcode_into_libs=yes
14332 ;;
14333 *) # from 3.2 on
14334 shlibpath_overrides_runpath=no
14335 hardcode_into_libs=yes
14336 ;;
14337 esac
14338 ;;
14339
14340gnu*)
14341 version_type=linux
14342 need_lib_prefix=no
14343 need_version=no
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 shlibpath_var=LD_LIBRARY_PATH
14347 hardcode_into_libs=yes
14348 ;;
14349
14350hpux9* | hpux10* | hpux11*)
14351 # Give a soname corresponding to the major version so that dld.sl refuses to
14352 # link against other versions.
14353 version_type=sunos
14354 need_lib_prefix=no
14355 need_version=no
14356 case "$host_cpu" in
14357 ia64*)
14358 shrext='.so'
14359 hardcode_into_libs=yes
14360 dynamic_linker="$host_os dld.so"
14361 shlibpath_var=LD_LIBRARY_PATH
14362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 if test "X$HPUX_IA64_MODE" = X32; then
14366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14367 else
14368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14369 fi
14370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14371 ;;
14372 hppa*64*)
14373 shrext='.sl'
14374 hardcode_into_libs=yes
14375 dynamic_linker="$host_os dld.sl"
14376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14382 ;;
14383 *)
14384 shrext='.sl'
14385 dynamic_linker="$host_os dld.sl"
14386 shlibpath_var=SHLIB_PATH
14387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 soname_spec='${libname}${release}${shared_ext}$major'
14390 ;;
14391 esac
14392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14393 postinstall_cmds='chmod 555 $lib'
14394 ;;
14395
14396irix5* | irix6* | nonstopux*)
14397 case $host_os in
14398 nonstopux*) version_type=nonstopux ;;
14399 *)
14400 if test "$lt_cv_prog_gnu_ld" = yes; then
14401 version_type=linux
14402 else
14403 version_type=irix
14404 fi ;;
14405 esac
14406 need_lib_prefix=no
14407 need_version=no
14408 soname_spec='${libname}${release}${shared_ext}$major'
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14410 case $host_os in
14411 irix5* | nonstopux*)
14412 libsuff= shlibsuff=
14413 ;;
14414 *)
14415 case $LD in # libtool.m4 will add one of these switches to LD
14416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14417 libsuff= shlibsuff= libmagic=32-bit;;
14418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14419 libsuff=32 shlibsuff=N32 libmagic=N32;;
14420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14422 *) libsuff= shlibsuff= libmagic=never-match;;
14423 esac
14424 ;;
14425 esac
14426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14427 shlibpath_overrides_runpath=no
14428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14430 hardcode_into_libs=yes
14431 ;;
14432
14433# No shared lib support for Linux oldld, aout, or coff.
14434linux*oldld* | linux*aout* | linux*coff*)
14435 dynamic_linker=no
14436 ;;
14437
14438# This must be Linux ELF.
14439linux*)
14440 version_type=linux
14441 need_lib_prefix=no
14442 need_version=no
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=no
14448 # This implies no fast_install, which is unacceptable.
14449 # Some rework will be needed to allow for fast_install
14450 # before this can be enabled.
14451 hardcode_into_libs=yes
14452
14453 # We used to test for /lib/ld.so.1 and disable shared libraries on
14454 # powerpc, because MkLinux only supported shared libraries with the
14455 # GNU dynamic linker. Since this was broken with cross compilers,
14456 # most powerpc-linux boxes support dynamic linking these days and
14457 # people can always --disable-shared, the test was removed, and we
14458 # assume the GNU/Linux dynamic linker is in use.
14459 dynamic_linker='GNU/Linux ld.so'
14460 ;;
14461
14462netbsd*)
14463 version_type=sunos
14464 need_lib_prefix=no
14465 need_version=no
14466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14469 dynamic_linker='NetBSD (a.out) ld.so'
14470 else
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 dynamic_linker='NetBSD ld.elf_so'
14474 fi
14475 shlibpath_var=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes
14477 hardcode_into_libs=yes
14478 ;;
14479
14480newsos6)
14481 version_type=linux
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 shlibpath_overrides_runpath=yes
14485 ;;
14486
14487nto-qnx)
14488 version_type=linux
14489 need_lib_prefix=no
14490 need_version=no
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 shlibpath_overrides_runpath=yes
14495 ;;
14496
14497openbsd*)
14498 version_type=sunos
14499 need_lib_prefix=no
14500 need_version=no
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14505 case $host_os in
14506 openbsd2.[89] | openbsd2.[89].*)
14507 shlibpath_overrides_runpath=no
14508 ;;
14509 *)
14510 shlibpath_overrides_runpath=yes
14511 ;;
14512 esac
14513 else
14514 shlibpath_overrides_runpath=yes
14515 fi
14516 ;;
14517
14518os2*)
14519 libname_spec='$name'
14520 shrext=".dll"
14521 need_lib_prefix=no
14522 library_names_spec='$libname${shared_ext} $libname.a'
14523 dynamic_linker='OS/2 ld.exe'
14524 shlibpath_var=LIBPATH
14525 ;;
14526
14527osf3* | osf4* | osf5*)
14528 version_type=osf
14529 need_lib_prefix=no
14530 need_version=no
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14536 ;;
14537
14538sco3.2v5*)
14539 version_type=osf
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 ;;
14544
14545solaris*)
14546 version_type=linux
14547 need_lib_prefix=no
14548 need_version=no
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14554 # ldd complains unless libraries are executable
14555 postinstall_cmds='chmod +x $lib'
14556 ;;
14557
14558sunos4*)
14559 version_type=sunos
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=yes
14564 if test "$with_gnu_ld" = yes; then
14565 need_lib_prefix=no
14566 fi
14567 need_version=yes
14568 ;;
14569
14570sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14571 version_type=linux
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 case $host_vendor in
14576 sni)
14577 shlibpath_overrides_runpath=no
14578 need_lib_prefix=no
14579 export_dynamic_flag_spec='${wl}-Blargedynsym'
14580 runpath_var=LD_RUN_PATH
14581 ;;
14582 siemens)
14583 need_lib_prefix=no
14584 ;;
14585 motorola)
14586 need_lib_prefix=no
14587 need_version=no
14588 shlibpath_overrides_runpath=no
14589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14590 ;;
14591 esac
14592 ;;
14593
14594sysv4*MP*)
14595 if test -d /usr/nec ;then
14596 version_type=linux
14597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14598 soname_spec='$libname${shared_ext}.$major'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 fi
14601 ;;
14602
14603uts4*)
14604 version_type=linux
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 ;;
14609
14610*)
14611 dynamic_linker=no
14612 ;;
14613esac
14614echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14615echo "${ECHO_T}$dynamic_linker" >&6
14616test "$dynamic_linker" = no && can_build_shared=no
14617
14618
14619# The else clause should only fire when bootstrapping the
14620# libtool distribution, otherwise you forgot to ship ltmain.sh
14621# with your package, and you will get complaints that there are
14622# no rules to generate ltmain.sh.
14623if test -f "$ltmain"; then
14624 # See if we are running on zsh, and set the options which allow our commands through
14625 # without removal of \ escapes.
14626 if test -n "${ZSH_VERSION+set}" ; then
14627 setopt NO_GLOB_SUBST
14628 fi
14629 # Now quote all the things that may contain metacharacters while being
14630 # careful not to overquote the AC_SUBSTed values. We take copies of the
14631 # variables and quote the copies for generation of the libtool script.
14632 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14635 deplibs_check_method reload_flag reload_cmds need_locks \
14636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14637 lt_cv_sys_global_symbol_to_c_name_address \
14638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14639 old_postinstall_cmds old_postuninstall_cmds \
14640 compiler_F77 \
14641 CC_F77 \
14642 LD_F77 \
14643 lt_prog_compiler_wl_F77 \
14644 lt_prog_compiler_pic_F77 \
14645 lt_prog_compiler_static_F77 \
14646 lt_prog_compiler_no_builtin_flag_F77 \
14647 export_dynamic_flag_spec_F77 \
14648 thread_safe_flag_spec_F77 \
14649 whole_archive_flag_spec_F77 \
14650 enable_shared_with_static_runtimes_F77 \
14651 old_archive_cmds_F77 \
14652 old_archive_from_new_cmds_F77 \
14653 predep_objects_F77 \
14654 postdep_objects_F77 \
14655 predeps_F77 \
14656 postdeps_F77 \
14657 compiler_lib_search_path_F77 \
14658 archive_cmds_F77 \
14659 archive_expsym_cmds_F77 \
14660 postinstall_cmds_F77 \
14661 postuninstall_cmds_F77 \
14662 old_archive_from_expsyms_cmds_F77 \
14663 allow_undefined_flag_F77 \
14664 no_undefined_flag_F77 \
14665 export_symbols_cmds_F77 \
14666 hardcode_libdir_flag_spec_F77 \
14667 hardcode_libdir_flag_spec_ld_F77 \
14668 hardcode_libdir_separator_F77 \
14669 hardcode_automatic_F77 \
14670 module_cmds_F77 \
14671 module_expsym_cmds_F77 \
14672 lt_cv_prog_compiler_c_o_F77 \
14673 exclude_expsyms_F77 \
14674 include_expsyms_F77; do
14675
14676 case $var in
14677 old_archive_cmds_F77 | \
14678 old_archive_from_new_cmds_F77 | \
14679 archive_cmds_F77 | \
14680 archive_expsym_cmds_F77 | \
14681 module_cmds_F77 | \
14682 module_expsym_cmds_F77 | \
14683 old_archive_from_expsyms_cmds_F77 | \
14684 export_symbols_cmds_F77 | \
14685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14686 postinstall_cmds | postuninstall_cmds | \
14687 old_postinstall_cmds | old_postuninstall_cmds | \
14688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14689 # Double-quote double-evaled strings.
14690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14691 ;;
14692 *)
14693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14694 ;;
14695 esac
14696 done
14697
14698 case $lt_echo in
14699 *'\$0 --fallback-echo"')
14700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14701 ;;
14702 esac
14703
14704cfgfile="$ofile"
14705
14706 cat <<__EOF__ >> "$cfgfile"
14707# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14708
14709# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14710
14711# Shell to use when invoking shell scripts.
14712SHELL=$lt_SHELL
14713
14714# Whether or not to build shared libraries.
14715build_libtool_libs=$enable_shared
14716
14717# Whether or not to build static libraries.
14718build_old_libs=$enable_static
14719
14720# Whether or not to add -lc for building shared libraries.
14721build_libtool_need_lc=$archive_cmds_need_lc_F77
14722
14723# Whether or not to disallow shared libs when runtime libs are static
14724allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14725
14726# Whether or not to optimize for fast installation.
14727fast_install=$enable_fast_install
14728
14729# The host system.
14730host_alias=$host_alias
14731host=$host
14732
14733# An echo program that does not interpret backslashes.
14734echo=$lt_echo
14735
14736# The archiver.
14737AR=$lt_AR
14738AR_FLAGS=$lt_AR_FLAGS
14739
14740# A C compiler.
14741LTCC=$lt_LTCC
14742
14743# A language-specific compiler.
14744CC=$lt_compiler_F77
14745
14746# Is the compiler the GNU C compiler?
14747with_gcc=$GCC_F77
14748
14749# An ERE matcher.
14750EGREP=$lt_EGREP
14751
14752# The linker used to build libraries.
14753LD=$lt_LD_F77
14754
14755# Whether we need hard or soft links.
14756LN_S=$lt_LN_S
14757
14758# A BSD-compatible nm program.
14759NM=$lt_NM
14760
14761# A symbol stripping program
14762STRIP=$STRIP
14763
14764# Used to examine libraries when file_magic_cmd begins "file"
14765MAGIC_CMD=$MAGIC_CMD
14766
14767# Used on cygwin: DLL creation program.
14768DLLTOOL="$DLLTOOL"
14769
14770# Used on cygwin: object dumper.
14771OBJDUMP="$OBJDUMP"
14772
14773# Used on cygwin: assembler.
14774AS="$AS"
14775
14776# The name of the directory that contains temporary libtool files.
14777objdir=$objdir
14778
14779# How to create reloadable object files.
14780reload_flag=$lt_reload_flag
14781reload_cmds=$lt_reload_cmds
14782
14783# How to pass a linker flag through the compiler.
14784wl=$lt_lt_prog_compiler_wl_F77
14785
14786# Object file suffix (normally "o").
14787objext="$ac_objext"
14788
14789# Old archive suffix (normally "a").
14790libext="$libext"
14791
14792# Shared library suffix (normally ".so").
14793shrext='$shrext'
14794
14795# Executable file suffix (normally "").
14796exeext="$exeext"
14797
14798# Additional compiler flags for building library objects.
14799pic_flag=$lt_lt_prog_compiler_pic_F77
14800pic_mode=$pic_mode
14801
14802# What is the maximum length of a command?
14803max_cmd_len=$lt_cv_sys_max_cmd_len
14804
14805# Does compiler simultaneously support -c and -o options?
14806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14807
14808# Must we lock files when doing compilation ?
14809need_locks=$lt_need_locks
14810
14811# Do we need the lib prefix for modules?
14812need_lib_prefix=$need_lib_prefix
14813
14814# Do we need a version for libraries?
14815need_version=$need_version
14816
14817# Whether dlopen is supported.
14818dlopen_support=$enable_dlopen
14819
14820# Whether dlopen of programs is supported.
14821dlopen_self=$enable_dlopen_self
14822
14823# Whether dlopen of statically linked programs is supported.
14824dlopen_self_static=$enable_dlopen_self_static
14825
14826# Compiler flag to prevent dynamic linking.
14827link_static_flag=$lt_lt_prog_compiler_static_F77
14828
14829# Compiler flag to turn off builtin functions.
14830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14831
14832# Compiler flag to allow reflexive dlopens.
14833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14834
14835# Compiler flag to generate shared objects directly from archives.
14836whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14837
14838# Compiler flag to generate thread-safe objects.
14839thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14840
14841# Library versioning type.
14842version_type=$version_type
14843
14844# Format of library name prefix.
14845libname_spec=$lt_libname_spec
14846
14847# List of archive names. First name is the real one, the rest are links.
14848# The last name is the one that the linker finds with -lNAME.
14849library_names_spec=$lt_library_names_spec
14850
14851# The coded name of the library, if different from the real name.
14852soname_spec=$lt_soname_spec
14853
14854# Commands used to build and install an old-style archive.
14855RANLIB=$lt_RANLIB
14856old_archive_cmds=$lt_old_archive_cmds_F77
14857old_postinstall_cmds=$lt_old_postinstall_cmds
14858old_postuninstall_cmds=$lt_old_postuninstall_cmds
14859
14860# Create an old-style archive from a shared archive.
14861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14862
14863# Create a temporary old-style archive to link instead of a shared archive.
14864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14865
14866# Commands used to build and install a shared archive.
14867archive_cmds=$lt_archive_cmds_F77
14868archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14869postinstall_cmds=$lt_postinstall_cmds
14870postuninstall_cmds=$lt_postuninstall_cmds
14871
14872# Commands used to build a loadable module (assumed same as above if empty)
14873module_cmds=$lt_module_cmds_F77
14874module_expsym_cmds=$lt_module_expsym_cmds_F77
14875
14876# Commands to strip libraries.
14877old_striplib=$lt_old_striplib
14878striplib=$lt_striplib
14879
14880# Dependencies to place before the objects being linked to create a
14881# shared library.
14882predep_objects=$lt_predep_objects_F77
14883
14884# Dependencies to place after the objects being linked to create a
14885# shared library.
14886postdep_objects=$lt_postdep_objects_F77
14887
14888# Dependencies to place before the objects being linked to create a
14889# shared library.
14890predeps=$lt_predeps_F77
14891
14892# Dependencies to place after the objects being linked to create a
14893# shared library.
14894postdeps=$lt_postdeps_F77
14895
14896# The library search path used internally by the compiler when linking
14897# a shared library.
14898compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14899
14900# Method to check whether dependent libraries are shared objects.
14901deplibs_check_method=$lt_deplibs_check_method
14902
14903# Command to use when deplibs_check_method == file_magic.
14904file_magic_cmd=$lt_file_magic_cmd
14905
14906# Flag that allows shared libraries with undefined symbols to be built.
14907allow_undefined_flag=$lt_allow_undefined_flag_F77
14908
14909# Flag that forces no undefined symbols.
14910no_undefined_flag=$lt_no_undefined_flag_F77
14911
14912# Commands used to finish a libtool library installation in a directory.
14913finish_cmds=$lt_finish_cmds
14914
14915# Same as above, but a single script fragment to be evaled but not shown.
14916finish_eval=$lt_finish_eval
14917
14918# Take the output of nm and produce a listing of raw symbols and C names.
14919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14920
14921# Transform the output of nm in a proper C declaration
14922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14923
14924# Transform the output of nm in a C name address pair
14925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14926
14927# This is the shared library runtime path variable.
14928runpath_var=$runpath_var
14929
14930# This is the shared library path variable.
14931shlibpath_var=$shlibpath_var
14932
14933# Is shlibpath searched before the hard-coded library search path?
14934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14935
14936# How to hardcode a shared library path into an executable.
14937hardcode_action=$hardcode_action_F77
14938
14939# Whether we should hardcode library paths into libraries.
14940hardcode_into_libs=$hardcode_into_libs
14941
14942# Flag to hardcode \$libdir into a binary during linking.
14943# This must work even if \$libdir does not exist.
14944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14945
14946# If ld is used when linking, flag to hardcode \$libdir into
14947# a binary during linking. This must work even if \$libdir does
14948# not exist.
14949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14950
14951# Whether we need a single -rpath flag with a separated argument.
14952hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14953
14954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14955# resulting binary.
14956hardcode_direct=$hardcode_direct_F77
14957
14958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14959# resulting binary.
14960hardcode_minus_L=$hardcode_minus_L_F77
14961
14962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14963# the resulting binary.
14964hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14965
14966# Set to yes if building a shared library automatically hardcodes DIR into the library
14967# and all subsequent libraries and executables linked against it.
14968hardcode_automatic=$hardcode_automatic_F77
14969
14970# Variables whose values should be saved in libtool wrapper scripts and
14971# restored at relink time.
14972variables_saved_for_relink="$variables_saved_for_relink"
14973
14974# Whether libtool must link a program against all its dependency libraries.
14975link_all_deplibs=$link_all_deplibs_F77
14976
14977# Compile-time system search path for libraries
14978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14979
14980# Run-time system search path for libraries
14981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14982
14983# Fix the shell variable \$srcfile for the compiler.
14984fix_srcfile_path="$fix_srcfile_path_F77"
14985
14986# Set to yes if exported symbols are required.
14987always_export_symbols=$always_export_symbols_F77
14988
14989# The commands to list exported symbols.
14990export_symbols_cmds=$lt_export_symbols_cmds_F77
14991
14992# The commands to extract the exported symbol list from a shared archive.
14993extract_expsyms_cmds=$lt_extract_expsyms_cmds
14994
14995# Symbols that should not be listed in the preloaded symbols.
14996exclude_expsyms=$lt_exclude_expsyms_F77
14997
14998# Symbols that must always be exported.
14999include_expsyms=$lt_include_expsyms_F77
15000
15001# ### END LIBTOOL TAG CONFIG: $tagname
15002
15003__EOF__
15004
15005
15006else
15007 # If there is no Makefile yet, we rely on a make rule to execute
15008 # `config.status --recheck' to rerun these tests and create the
15009 # libtool script then.
15010 test -f Makefile && make "$ltmain"
15011fi
15012
15013
15014ac_ext=c
15015ac_cpp='$CPP $CPPFLAGS'
15016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018ac_compiler_gnu=$ac_cv_c_compiler_gnu
15019
15020CC="$lt_save_CC"
15021
15022 else
15023 tagname=""
15024 fi
15025 ;;
15026
15027 GCJ)
15028 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15029
15030
15031
15032# Source file extension for Java test sources.
15033ac_ext=java
15034
15035# Object file extension for compiled Java test sources.
15036objext=o
15037objext_GCJ=$objext
15038
15039# Code to be used in simple compile tests
15040lt_simple_compile_test_code="class foo {}\n"
15041
15042# Code to be used in simple link tests
15043lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15044
15045# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15046
15047# If no C compiler was specified, use CC.
15048LTCC=${LTCC-"$CC"}
15049
15050# Allow CC to be a program name with arguments.
15051compiler=$CC
15052
15053
15054# Allow CC to be a program name with arguments.
15055lt_save_CC="$CC"
15056CC=${GCJ-"gcj"}
15057compiler=$CC
15058compiler_GCJ=$CC
15059
15060# GCJ did not exist at the time GCC didn't implicitly link libc in.
15061archive_cmds_need_lc_GCJ=no
15062
15063## CAVEAT EMPTOR:
15064## There is no encapsulation within the following macros, do not change
15065## the running order or otherwise move them around unless you know exactly
15066## what you are doing...
15067
15068lt_prog_compiler_no_builtin_flag_GCJ=
15069
15070if test "$GCC" = yes; then
15071 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15072
15073 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15074echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15075if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077else
15078 lt_cv_prog_compiler_rtti_exceptions=no
15079 ac_outfile=conftest.$ac_objext
15080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15081 lt_compiler_flag="-fno-rtti -fno-exceptions"
15082 # Insert the option either (1) after the last *FLAGS variable, or
15083 # (2) before a word containing "conftest.", or (3) at the end.
15084 # Note that $ac_compile itself does not contain backslashes and begins
15085 # with a dollar sign (not a hyphen), so the echo should work correctly.
15086 # The option is referenced via a variable to avoid confusing sed.
15087 lt_compile=`echo "$ac_compile" | $SED \
15088 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15090 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +000015091 (eval echo "\"\$as_me:15091: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015092 (eval "$lt_compile" 2>conftest.err)
15093 ac_status=$?
15094 cat conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +000015095 echo "$as_me:15095: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015096 if (exit $ac_status) && test -s "$ac_outfile"; then
15097 # The compiler can only warn and ignore the option if not recognized
15098 # So say no if there are warnings
15099 if test ! -s conftest.err; then
15100 lt_cv_prog_compiler_rtti_exceptions=yes
15101 fi
15102 fi
15103 $rm conftest*
15104
15105fi
15106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15107echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15108
15109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15110 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15111else
15112 :
15113fi
15114
15115fi
15116
15117lt_prog_compiler_wl_GCJ=
15118lt_prog_compiler_pic_GCJ=
15119lt_prog_compiler_static_GCJ=
15120
15121echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15123
15124 if test "$GCC" = yes; then
15125 lt_prog_compiler_wl_GCJ='-Wl,'
15126 lt_prog_compiler_static_GCJ='-static'
15127
15128 case $host_os in
15129 aix*)
15130 # All AIX code is PIC.
15131 if test "$host_cpu" = ia64; then
15132 # AIX 5 now supports IA64 processor
15133 lt_prog_compiler_static_GCJ='-Bstatic'
15134 fi
15135 ;;
15136
15137 amigaos*)
15138 # FIXME: we need at least 68020 code to build shared libraries, but
15139 # adding the `-m68020' flag to GCC prevents building anything better,
15140 # like `-m68040'.
15141 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15142 ;;
15143
15144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15145 # PIC is the default for these OSes.
15146 ;;
15147
15148 mingw* | pw32* | os2*)
15149 # This hack is so that the source file can tell whether it is being
15150 # built for inclusion in a dll (and should export symbols for example).
15151 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15152 ;;
15153
15154 darwin* | rhapsody*)
15155 # PIC is the default on this platform
15156 # Common symbols not allowed in MH_DYLIB files
15157 lt_prog_compiler_pic_GCJ='-fno-common'
15158 ;;
15159
15160 msdosdjgpp*)
15161 # Just because we use GCC doesn't mean we suddenly get shared libraries
15162 # on systems that don't support them.
15163 lt_prog_compiler_can_build_shared_GCJ=no
15164 enable_shared=no
15165 ;;
15166
15167 sysv4*MP*)
15168 if test -d /usr/nec; then
15169 lt_prog_compiler_pic_GCJ=-Kconform_pic
15170 fi
15171 ;;
15172
15173 hpux*)
15174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15175 # not for PA HP-UX.
15176 case "$host_cpu" in
15177 hppa*64*|ia64*)
15178 # +Z the default
15179 ;;
15180 *)
15181 lt_prog_compiler_pic_GCJ='-fPIC'
15182 ;;
15183 esac
15184 ;;
15185
15186 *)
15187 lt_prog_compiler_pic_GCJ='-fPIC'
15188 ;;
15189 esac
15190 else
15191 # PORTME Check for flag to pass linker flags through the system compiler.
15192 case $host_os in
15193 aix*)
15194 lt_prog_compiler_wl_GCJ='-Wl,'
15195 if test "$host_cpu" = ia64; then
15196 # AIX 5 now supports IA64 processor
15197 lt_prog_compiler_static_GCJ='-Bstatic'
15198 else
15199 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15200 fi
15201 ;;
15202
15203 mingw* | pw32* | os2*)
15204 # This hack is so that the source file can tell whether it is being
15205 # built for inclusion in a dll (and should export symbols for example).
15206 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15207 ;;
15208
15209 hpux9* | hpux10* | hpux11*)
15210 lt_prog_compiler_wl_GCJ='-Wl,'
15211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15212 # not for PA HP-UX.
15213 case "$host_cpu" in
15214 hppa*64*|ia64*)
15215 # +Z the default
15216 ;;
15217 *)
15218 lt_prog_compiler_pic_GCJ='+Z'
15219 ;;
15220 esac
15221 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15222 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15223 ;;
15224
15225 irix5* | irix6* | nonstopux*)
15226 lt_prog_compiler_wl_GCJ='-Wl,'
15227 # PIC (with -KPIC) is the default.
15228 lt_prog_compiler_static_GCJ='-non_shared'
15229 ;;
15230
15231 newsos6)
15232 lt_prog_compiler_pic_GCJ='-KPIC'
15233 lt_prog_compiler_static_GCJ='-Bstatic'
15234 ;;
15235
15236 linux*)
15237 case $CC in
15238 icc|ecc)
15239 lt_prog_compiler_wl_GCJ='-Wl,'
15240 lt_prog_compiler_pic_GCJ='-KPIC'
15241 lt_prog_compiler_static_GCJ='-static'
15242 ;;
15243 ccc)
15244 lt_prog_compiler_wl_GCJ='-Wl,'
15245 # All Alpha code is PIC.
15246 lt_prog_compiler_static_GCJ='-non_shared'
15247 ;;
15248 esac
15249 ;;
15250
15251 osf3* | osf4* | osf5*)
15252 lt_prog_compiler_wl_GCJ='-Wl,'
15253 # All OSF/1 code is PIC.
15254 lt_prog_compiler_static_GCJ='-non_shared'
15255 ;;
15256
15257 sco3.2v5*)
15258 lt_prog_compiler_pic_GCJ='-Kpic'
15259 lt_prog_compiler_static_GCJ='-dn'
15260 ;;
15261
15262 solaris*)
15263 lt_prog_compiler_wl_GCJ='-Wl,'
15264 lt_prog_compiler_pic_GCJ='-KPIC'
15265 lt_prog_compiler_static_GCJ='-Bstatic'
15266 ;;
15267
15268 sunos4*)
15269 lt_prog_compiler_wl_GCJ='-Qoption ld '
15270 lt_prog_compiler_pic_GCJ='-PIC'
15271 lt_prog_compiler_static_GCJ='-Bstatic'
15272 ;;
15273
15274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15275 lt_prog_compiler_wl_GCJ='-Wl,'
15276 lt_prog_compiler_pic_GCJ='-KPIC'
15277 lt_prog_compiler_static_GCJ='-Bstatic'
15278 ;;
15279
15280 sysv4*MP*)
15281 if test -d /usr/nec ;then
15282 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15283 lt_prog_compiler_static_GCJ='-Bstatic'
15284 fi
15285 ;;
15286
15287 uts4*)
15288 lt_prog_compiler_pic_GCJ='-pic'
15289 lt_prog_compiler_static_GCJ='-Bstatic'
15290 ;;
15291
15292 *)
15293 lt_prog_compiler_can_build_shared_GCJ=no
15294 ;;
15295 esac
15296 fi
15297
15298echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15299echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15300
15301#
15302# Check to make sure the PIC flag actually works.
15303#
15304if test -n "$lt_prog_compiler_pic_GCJ"; then
15305 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15306echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15307if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309else
15310 lt_prog_compiler_pic_works_GCJ=no
15311 ac_outfile=conftest.$ac_objext
15312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15313 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15314 # Insert the option either (1) after the last *FLAGS variable, or
15315 # (2) before a word containing "conftest.", or (3) at the end.
15316 # Note that $ac_compile itself does not contain backslashes and begins
15317 # with a dollar sign (not a hyphen), so the echo should work correctly.
15318 # The option is referenced via a variable to avoid confusing sed.
15319 lt_compile=`echo "$ac_compile" | $SED \
15320 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15322 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +000015323 (eval echo "\"\$as_me:15323: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015324 (eval "$lt_compile" 2>conftest.err)
15325 ac_status=$?
15326 cat conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +000015327 echo "$as_me:15327: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015328 if (exit $ac_status) && test -s "$ac_outfile"; then
15329 # The compiler can only warn and ignore the option if not recognized
15330 # So say no if there are warnings
15331 if test ! -s conftest.err; then
15332 lt_prog_compiler_pic_works_GCJ=yes
15333 fi
15334 fi
15335 $rm conftest*
15336
15337fi
15338echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15339echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15340
15341if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15342 case $lt_prog_compiler_pic_GCJ in
15343 "" | " "*) ;;
15344 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15345 esac
15346else
15347 lt_prog_compiler_pic_GCJ=
15348 lt_prog_compiler_can_build_shared_GCJ=no
15349fi
15350
15351fi
15352case "$host_os" in
15353 # For platforms which do not support PIC, -DPIC is meaningless:
15354 *djgpp*)
15355 lt_prog_compiler_pic_GCJ=
15356 ;;
15357 *)
15358 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15359 ;;
15360esac
15361
15362echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15363echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15364if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366else
15367 lt_cv_prog_compiler_c_o_GCJ=no
15368 $rm -r conftest 2>/dev/null
15369 mkdir conftest
15370 cd conftest
15371 mkdir out
15372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15373
15374 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15375 # that will create temporary files in the current directory regardless of
15376 # the output directory. Thus, making CWD read-only will cause this test
15377 # to fail, enabling locking or at least warning the user not to do parallel
15378 # builds.
15379 chmod -w .
15380
15381 lt_compiler_flag="-o out/conftest2.$ac_objext"
15382 # Insert the option either (1) after the last *FLAGS variable, or
15383 # (2) before a word containing "conftest.", or (3) at the end.
15384 # Note that $ac_compile itself does not contain backslashes and begins
15385 # with a dollar sign (not a hyphen), so the echo should work correctly.
15386 lt_compile=`echo "$ac_compile" | $SED \
15387 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389 -e 's:$: $lt_compiler_flag:'`
Misha Brukman811ce9f2003-11-12 22:16:51 +000015390 (eval echo "\"\$as_me:15390: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015391 (eval "$lt_compile" 2>out/conftest.err)
15392 ac_status=$?
15393 cat out/conftest.err >&5
Misha Brukman811ce9f2003-11-12 22:16:51 +000015394 echo "$as_me:15394: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15396 then
15397 # The compiler can only warn and ignore the option if not recognized
15398 # So say no if there are warnings
15399 if test ! -s out/conftest.err; then
15400 lt_cv_prog_compiler_c_o_GCJ=yes
15401 fi
15402 fi
15403 chmod u+w .
15404 $rm conftest* out/*
15405 rmdir out
15406 cd ..
15407 rmdir conftest
15408 $rm conftest*
15409
15410fi
15411echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15412echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15413
15414
15415hard_links="nottested"
15416if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15417 # do not overwrite the value of need_locks provided by the user
15418 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15419echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15420 hard_links=yes
15421 $rm conftest*
15422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15423 touch conftest.a
15424 ln conftest.a conftest.b 2>&5 || hard_links=no
15425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15426 echo "$as_me:$LINENO: result: $hard_links" >&5
15427echo "${ECHO_T}$hard_links" >&6
15428 if test "$hard_links" = no; then
15429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15430echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15431 need_locks=warn
15432 fi
15433else
15434 need_locks=no
15435fi
15436
15437echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15438echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15439
15440 runpath_var=
15441 allow_undefined_flag_GCJ=
15442 enable_shared_with_static_runtimes_GCJ=no
15443 archive_cmds_GCJ=
15444 archive_expsym_cmds_GCJ=
15445 old_archive_From_new_cmds_GCJ=
15446 old_archive_from_expsyms_cmds_GCJ=
15447 export_dynamic_flag_spec_GCJ=
15448 whole_archive_flag_spec_GCJ=
15449 thread_safe_flag_spec_GCJ=
15450 hardcode_libdir_flag_spec_GCJ=
15451 hardcode_libdir_flag_spec_ld_GCJ=
15452 hardcode_libdir_separator_GCJ=
15453 hardcode_direct_GCJ=no
15454 hardcode_minus_L_GCJ=no
15455 hardcode_shlibpath_var_GCJ=unsupported
15456 link_all_deplibs_GCJ=unknown
15457 hardcode_automatic_GCJ=no
15458 module_cmds_GCJ=
15459 module_expsym_cmds_GCJ=
15460 always_export_symbols_GCJ=no
15461 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15462 # include_expsyms should be a list of space-separated symbols to be *always*
15463 # included in the symbol list
15464 include_expsyms_GCJ=
15465 # exclude_expsyms can be an extended regexp of symbols to exclude
15466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15468 # as well as any symbol that contains `d'.
15469 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15471 # platforms (ab)use it in PIC code, but their linkers get confused if
15472 # the symbol is explicitly referenced. Since portable code cannot
15473 # rely on this symbol name, it's probably fine to never include it in
15474 # preloaded symbol tables.
15475 extract_expsyms_cmds=
15476
15477 case $host_os in
15478 cygwin* | mingw* | pw32*)
15479 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15480 # When not using gcc, we currently assume that we are using
15481 # Microsoft Visual C++.
15482 if test "$GCC" != yes; then
15483 with_gnu_ld=no
15484 fi
15485 ;;
15486 openbsd*)
15487 with_gnu_ld=no
15488 ;;
15489 esac
15490
15491 ld_shlibs_GCJ=yes
15492 if test "$with_gnu_ld" = yes; then
15493 # If archive_cmds runs LD, not CC, wlarc should be empty
15494 wlarc='${wl}'
15495
15496 # See if GNU ld supports shared libraries.
15497 case $host_os in
15498 aix3* | aix4* | aix5*)
15499 # On AIX/PPC, the GNU linker is very broken
15500 if test "$host_cpu" != ia64; then
15501 ld_shlibs_GCJ=no
15502 cat <<EOF 1>&2
15503
15504*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15505*** to be unable to reliably create shared libraries on AIX.
15506*** Therefore, libtool is disabling shared libraries support. If you
15507*** really care for shared libraries, you may want to modify your PATH
15508*** so that a non-GNU linker is found, and then restart.
15509
15510EOF
15511 fi
15512 ;;
15513
15514 amigaos*)
15515 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)'
15516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15517 hardcode_minus_L_GCJ=yes
15518
15519 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15520 # that the semantics of dynamic libraries on AmigaOS, at least up
15521 # to version 4, is to share data among multiple programs linked
15522 # with the same dynamic library. Since this doesn't match the
15523 # behavior of shared libraries on other platforms, we can't use
15524 # them.
15525 ld_shlibs_GCJ=no
15526 ;;
15527
15528 beos*)
15529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15530 allow_undefined_flag_GCJ=unsupported
15531 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15532 # support --undefined. This deserves some investigation. FIXME
15533 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15534 else
15535 ld_shlibs_GCJ=no
15536 fi
15537 ;;
15538
15539 cygwin* | mingw* | pw32*)
15540 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15541 # as there is no search path for DLLs.
15542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15543 allow_undefined_flag_GCJ=unsupported
15544 always_export_symbols_GCJ=no
15545 enable_shared_with_static_runtimes_GCJ=yes
15546 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15547
15548 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15549 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15550 # If the export-symbols file already is a .def file (1st line
15551 # is EXPORTS), use it as is; otherwise, prepend...
15552 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15553 cp $export_symbols $output_objdir/$soname.def;
15554 else
15555 echo EXPORTS > $output_objdir/$soname.def;
15556 cat $export_symbols >> $output_objdir/$soname.def;
15557 fi~
15558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15559 else
15560 ld_shlibs=no
15561 fi
15562 ;;
15563
15564 netbsd*)
15565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15566 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15567 wlarc=
15568 else
15569 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15570 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15571 fi
15572 ;;
15573
15574 solaris* | sysv5*)
15575 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15576 ld_shlibs_GCJ=no
15577 cat <<EOF 1>&2
15578
15579*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15580*** create shared libraries on Solaris systems. Therefore, libtool
15581*** is disabling shared libraries support. We urge you to upgrade GNU
15582*** binutils to release 2.9.1 or newer. Another option is to modify
15583*** your PATH or compiler configuration so that the native linker is
15584*** used, and then restart.
15585
15586EOF
15587 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15590 else
15591 ld_shlibs_GCJ=no
15592 fi
15593 ;;
15594
15595 sunos4*)
15596 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15597 wlarc=
15598 hardcode_direct_GCJ=yes
15599 hardcode_shlibpath_var_GCJ=no
15600 ;;
15601
15602 *)
15603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15606 else
15607 ld_shlibs_GCJ=no
15608 fi
15609 ;;
15610 esac
15611
15612 if test "$ld_shlibs_GCJ" = yes; then
15613 runpath_var=LD_RUN_PATH
15614 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15615 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15616 # ancient GNU ld didn't support --whole-archive et. al.
15617 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15618 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15619 else
15620 whole_archive_flag_spec_GCJ=
15621 fi
15622 fi
15623 else
15624 # PORTME fill in a description of your system's linker (not GNU ld)
15625 case $host_os in
15626 aix3*)
15627 allow_undefined_flag_GCJ=unsupported
15628 always_export_symbols_GCJ=yes
15629 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'
15630 # Note: this linker hardcodes the directories in LIBPATH if there
15631 # are no directories specified by -L.
15632 hardcode_minus_L_GCJ=yes
15633 if test "$GCC" = yes && test -z "$link_static_flag"; then
15634 # Neither direct hardcoding nor static linking is supported with a
15635 # broken collect2.
15636 hardcode_direct_GCJ=unsupported
15637 fi
15638 ;;
15639
15640 aix4* | aix5*)
15641 if test "$host_cpu" = ia64; then
15642 # On IA64, the linker does run time linking by default, so we don't
15643 # have to do anything special.
15644 aix_use_runtimelinking=no
15645 exp_sym_flag='-Bexport'
15646 no_entry_flag=""
15647 else
15648 # If we're using GNU nm, then we don't want the "-C" option.
15649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15650 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15651 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'
15652 else
15653 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'
15654 fi
15655 aix_use_runtimelinking=no
15656
15657 # Test if we are trying to use run time linking or normal
15658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15659 # need to do runtime linking.
15660 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15661 for ld_flag in $LDFLAGS; do
15662 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15663 aix_use_runtimelinking=yes
15664 break
15665 fi
15666 done
15667 esac
15668
15669 exp_sym_flag='-bexport'
15670 no_entry_flag='-bnoentry'
15671 fi
15672
15673 # When large executables or shared objects are built, AIX ld can
15674 # have problems creating the table of contents. If linking a library
15675 # or program results in "error TOC overflow" add -mminimal-toc to
15676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15678
15679 archive_cmds_GCJ=''
15680 hardcode_direct_GCJ=yes
15681 hardcode_libdir_separator_GCJ=':'
15682 link_all_deplibs_GCJ=yes
15683
15684 if test "$GCC" = yes; then
15685 case $host_os in aix4.012|aix4.012.*)
15686 # We only want to do this on AIX 4.2 and lower, the check
15687 # below for broken collect2 doesn't work under 4.3+
15688 collect2name=`${CC} -print-prog-name=collect2`
15689 if test -f "$collect2name" && \
15690 strings "$collect2name" | grep resolve_lib_name >/dev/null
15691 then
15692 # We have reworked collect2
15693 hardcode_direct_GCJ=yes
15694 else
15695 # We have old collect2
15696 hardcode_direct_GCJ=unsupported
15697 # It fails to find uninstalled libraries when the uninstalled
15698 # path is not listed in the libpath. Setting hardcode_minus_L
15699 # to unsupported forces relinking
15700 hardcode_minus_L_GCJ=yes
15701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15702 hardcode_libdir_separator_GCJ=
15703 fi
15704 esac
15705 shared_flag='-shared'
15706 else
15707 # not using gcc
15708 if test "$host_cpu" = ia64; then
15709 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15710 # chokes on -Wl,-G. The following line is correct:
15711 shared_flag='-G'
15712 else
15713 if test "$aix_use_runtimelinking" = yes; then
15714 shared_flag='${wl}-G'
15715 else
15716 shared_flag='${wl}-bM:SRE'
15717 fi
15718 fi
15719 fi
15720
15721 # It seems that -bexpall does not export symbols beginning with
15722 # underscore (_), so it is better to generate a list of symbols to export.
15723 always_export_symbols_GCJ=yes
15724 if test "$aix_use_runtimelinking" = yes; then
15725 # Warning - without using the other runtime loading flags (-brtl),
15726 # -berok will link without error, but may produce a broken library.
15727 allow_undefined_flag_GCJ='-berok'
15728 # Determine the default libpath from the value encoded in an empty executable.
15729 cat >conftest.$ac_ext <<_ACEOF
15730#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015731/* confdefs.h. */
15732_ACEOF
15733cat confdefs.h >>conftest.$ac_ext
15734cat >>conftest.$ac_ext <<_ACEOF
15735/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015736
John Criswell47fdd832003-07-14 16:52:07 +000015737int
15738main ()
15739{
15740
15741 ;
15742 return 0;
15743}
15744_ACEOF
15745rm -f conftest.$ac_objext conftest$ac_exeext
15746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -s conftest$ac_exeext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757
15758aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15759}'`
15760# Check for a 64-bit object if we didn't find anything.
15761if 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; }
15762}'`; fi
15763else
15764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015765sed 's/^/| /' conftest.$ac_ext >&5
15766
John Criswell47fdd832003-07-14 16:52:07 +000015767fi
15768rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15770
15771 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15772 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"
15773 else
15774 if test "$host_cpu" = ia64; then
15775 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15776 allow_undefined_flag_GCJ="-z nodefs"
15777 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"
15778 else
15779 # Determine the default libpath from the value encoded in an empty executable.
15780 cat >conftest.$ac_ext <<_ACEOF
15781#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015787
John Criswell47fdd832003-07-14 16:52:07 +000015788int
15789main ()
15790{
15791
15792 ;
15793 return 0;
15794}
15795_ACEOF
15796rm -f conftest.$ac_objext conftest$ac_exeext
15797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798 (eval $ac_link) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808
15809aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15810}'`
15811# Check for a 64-bit object if we didn't find anything.
15812if 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; }
15813}'`; fi
15814else
15815 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015816sed 's/^/| /' conftest.$ac_ext >&5
15817
John Criswell47fdd832003-07-14 16:52:07 +000015818fi
15819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15821
15822 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15823 # Warning - without using the other run time loading flags,
15824 # -berok will link without error, but may produce a broken library.
15825 no_undefined_flag_GCJ=' ${wl}-bernotok'
15826 allow_undefined_flag_GCJ=' ${wl}-berok'
15827 # -bexpall does not export symbols beginning with underscore (_)
15828 always_export_symbols_GCJ=yes
15829 # Exported symbols can be pulled into shared objects from archives
15830 whole_archive_flag_spec_GCJ=' '
15831 archive_cmds_need_lc_GCJ=yes
15832 # This is similar to how AIX traditionally builds it's shared libraries.
15833 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'
15834 fi
15835 fi
15836 ;;
15837
15838 amigaos*)
15839 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)'
15840 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15841 hardcode_minus_L_GCJ=yes
15842 # see comment about different semantics on the GNU ld section
15843 ld_shlibs_GCJ=no
15844 ;;
15845
15846 bsdi4*)
15847 export_dynamic_flag_spec_GCJ=-rdynamic
15848 ;;
15849
15850 cygwin* | mingw* | pw32*)
15851 # When not using gcc, we currently assume that we are using
15852 # Microsoft Visual C++.
15853 # hardcode_libdir_flag_spec is actually meaningless, as there is
15854 # no search path for DLLs.
15855 hardcode_libdir_flag_spec_GCJ=' '
15856 allow_undefined_flag_GCJ=unsupported
15857 # Tell ltmain to make .lib files, not .a files.
15858 libext=lib
15859 # Tell ltmain to make .dll files, not .so files.
15860 shrext=".dll"
15861 # FIXME: Setting linknames here is a bad hack.
15862 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15863 # The linker will automatically build a .lib file if we build a DLL.
15864 old_archive_From_new_cmds_GCJ='true'
15865 # FIXME: Should let the user specify the lib program.
15866 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15867 fix_srcfile_path='`cygpath -w "$srcfile"`'
15868 enable_shared_with_static_runtimes_GCJ=yes
15869 ;;
15870
15871 darwin* | rhapsody*)
15872 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15873 archive_cmds_need_lc_GCJ=no
15874 case "$host_os" in
15875 rhapsody* | darwin1.[012])
15876 allow_undefined_flag_GCJ='-undefined suppress'
15877 ;;
15878 *) # Darwin 1.3 on
15879 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15880 ;;
15881 esac
15882 # FIXME: Relying on posixy $() will cause problems for
15883 # cross-compilation, but unfortunately the echo tests do not
15884 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15885 # `"' quotes if we put them in here... so don't!
15886 lt_int_apple_cc_single_mod=no
15887 output_verbose_link_cmd='echo'
15888 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15889 lt_int_apple_cc_single_mod=yes
15890 fi
15891 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15892 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15893 else
15894 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'
15895 fi
15896 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15897 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15898 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15899 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}'
15900 else
15901 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}'
15902 fi
15903 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}'
15904 hardcode_direct_GCJ=no
15905 hardcode_automatic_GCJ=yes
15906 hardcode_shlibpath_var_GCJ=unsupported
15907 whole_archive_flag_spec_GCJ='-all_load $convenience'
15908 link_all_deplibs_GCJ=yes
15909 fi
15910 ;;
15911
15912 dgux*)
15913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15915 hardcode_shlibpath_var_GCJ=no
15916 ;;
15917
15918 freebsd1*)
15919 ld_shlibs_GCJ=no
15920 ;;
15921
15922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15923 # support. Future versions do this automatically, but an explicit c++rt0.o
15924 # does not break anything, and helps significantly (at the cost of a little
15925 # extra space).
15926 freebsd2.2*)
15927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15929 hardcode_direct_GCJ=yes
15930 hardcode_shlibpath_var_GCJ=no
15931 ;;
15932
15933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15934 freebsd2*)
15935 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15936 hardcode_direct_GCJ=yes
15937 hardcode_minus_L_GCJ=yes
15938 hardcode_shlibpath_var_GCJ=no
15939 ;;
15940
15941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15942 freebsd*)
15943 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15945 hardcode_direct_GCJ=yes
15946 hardcode_shlibpath_var_GCJ=no
15947 ;;
15948
15949 hpux9*)
15950 if test "$GCC" = yes; then
15951 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'
15952 else
15953 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'
15954 fi
15955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15956 hardcode_libdir_separator_GCJ=:
15957 hardcode_direct_GCJ=yes
15958
15959 # hardcode_minus_L: Not really in the search PATH,
15960 # but as the default location of the library.
15961 hardcode_minus_L_GCJ=yes
15962 export_dynamic_flag_spec_GCJ='${wl}-E'
15963 ;;
15964
15965 hpux10* | hpux11*)
15966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15967 case "$host_cpu" in
15968 hppa*64*|ia64*)
15969 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15970 ;;
15971 *)
15972 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15973 ;;
15974 esac
15975 else
15976 case "$host_cpu" in
15977 hppa*64*|ia64*)
15978 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15979 ;;
15980 *)
15981 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15982 ;;
15983 esac
15984 fi
15985 if test "$with_gnu_ld" = no; then
15986 case "$host_cpu" in
15987 hppa*64*)
15988 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15989 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15990 hardcode_libdir_separator_GCJ=:
15991 hardcode_direct_GCJ=no
15992 hardcode_shlibpath_var_GCJ=no
15993 ;;
15994 ia64*)
15995 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15996 hardcode_direct_GCJ=no
15997 hardcode_shlibpath_var_GCJ=no
15998
15999 # hardcode_minus_L: Not really in the search PATH,
16000 # but as the default location of the library.
16001 hardcode_minus_L_GCJ=yes
16002 ;;
16003 *)
16004 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16005 hardcode_libdir_separator_GCJ=:
16006 hardcode_direct_GCJ=yes
16007 export_dynamic_flag_spec_GCJ='${wl}-E'
16008
16009 # hardcode_minus_L: Not really in the search PATH,
16010 # but as the default location of the library.
16011 hardcode_minus_L_GCJ=yes
16012 ;;
16013 esac
16014 fi
16015 ;;
16016
16017 irix5* | irix6* | nonstopux*)
16018 if test "$GCC" = yes; then
16019 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'
16020 else
16021 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'
16022 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16023 fi
16024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16025 hardcode_libdir_separator_GCJ=:
16026 link_all_deplibs_GCJ=yes
16027 ;;
16028
16029 netbsd*)
16030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16032 else
16033 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16034 fi
16035 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16036 hardcode_direct_GCJ=yes
16037 hardcode_shlibpath_var_GCJ=no
16038 ;;
16039
16040 newsos6)
16041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_direct_GCJ=yes
16043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16044 hardcode_libdir_separator_GCJ=:
16045 hardcode_shlibpath_var_GCJ=no
16046 ;;
16047
16048 openbsd*)
16049 hardcode_direct_GCJ=yes
16050 hardcode_shlibpath_var_GCJ=no
16051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16052 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16054 export_dynamic_flag_spec_GCJ='${wl}-E'
16055 else
16056 case $host_os in
16057 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16058 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16059 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16060 ;;
16061 *)
16062 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16064 ;;
16065 esac
16066 fi
16067 ;;
16068
16069 os2*)
16070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16071 hardcode_minus_L_GCJ=yes
16072 allow_undefined_flag_GCJ=unsupported
16073 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'
16074 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16075 ;;
16076
16077 osf3*)
16078 if test "$GCC" = yes; then
16079 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16080 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'
16081 else
16082 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16083 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'
16084 fi
16085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16086 hardcode_libdir_separator_GCJ=:
16087 ;;
16088
16089 osf4* | osf5*) # as osf3* with the addition of -msym flag
16090 if test "$GCC" = yes; then
16091 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16092 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'
16093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16094 else
16095 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16096 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'
16097 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~
16098 $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'
16099
16100 # Both c and cxx compiler support -rpath directly
16101 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16102 fi
16103 hardcode_libdir_separator_GCJ=:
16104 ;;
16105
16106 sco3.2v5*)
16107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_shlibpath_var_GCJ=no
16109 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16110 runpath_var=LD_RUN_PATH
16111 hardcode_runpath_var=yes
16112 ;;
16113
16114 solaris*)
16115 no_undefined_flag_GCJ=' -z text'
16116 if test "$GCC" = yes; then
16117 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16120 else
16121 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16123 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16124 fi
16125 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16126 hardcode_shlibpath_var_GCJ=no
16127 case $host_os in
16128 solaris2.[0-5] | solaris2.[0-5].*) ;;
16129 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16130 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16131 esac
16132 link_all_deplibs_GCJ=yes
16133 ;;
16134
16135 sunos4*)
16136 if test "x$host_vendor" = xsequent; then
16137 # Use $CC to link under sequent, because it throws in some extra .o
16138 # files that make .init and .fini sections work.
16139 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16140 else
16141 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16142 fi
16143 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16144 hardcode_direct_GCJ=yes
16145 hardcode_minus_L_GCJ=yes
16146 hardcode_shlibpath_var_GCJ=no
16147 ;;
16148
16149 sysv4)
16150 case $host_vendor in
16151 sni)
16152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16153 hardcode_direct_GCJ=yes # is this really true???
16154 ;;
16155 siemens)
16156 ## LD is ld it makes a PLAMLIB
16157 ## CC just makes a GrossModule.
16158 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16159 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16160 hardcode_direct_GCJ=no
16161 ;;
16162 motorola)
16163 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16165 ;;
16166 esac
16167 runpath_var='LD_RUN_PATH'
16168 hardcode_shlibpath_var_GCJ=no
16169 ;;
16170
16171 sysv4.3*)
16172 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_shlibpath_var_GCJ=no
16174 export_dynamic_flag_spec_GCJ='-Bexport'
16175 ;;
16176
16177 sysv4*MP*)
16178 if test -d /usr/nec; then
16179 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_shlibpath_var_GCJ=no
16181 runpath_var=LD_RUN_PATH
16182 hardcode_runpath_var=yes
16183 ld_shlibs_GCJ=yes
16184 fi
16185 ;;
16186
16187 sysv4.2uw2*)
16188 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_direct_GCJ=yes
16190 hardcode_minus_L_GCJ=no
16191 hardcode_shlibpath_var_GCJ=no
16192 hardcode_runpath_var=yes
16193 runpath_var=LD_RUN_PATH
16194 ;;
16195
16196 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16197 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16198 if test "$GCC" = yes; then
16199 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200 else
16201 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 fi
16203 runpath_var='LD_RUN_PATH'
16204 hardcode_shlibpath_var_GCJ=no
16205 ;;
16206
16207 sysv5*)
16208 no_undefined_flag_GCJ=' -z text'
16209 # $CC -shared without GNU ld will not create a library from C++
16210 # object files and a static libstdc++, better avoid it by now
16211 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16214 hardcode_libdir_flag_spec_GCJ=
16215 hardcode_shlibpath_var_GCJ=no
16216 runpath_var='LD_RUN_PATH'
16217 ;;
16218
16219 uts4*)
16220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16222 hardcode_shlibpath_var_GCJ=no
16223 ;;
16224
16225 *)
16226 ld_shlibs_GCJ=no
16227 ;;
16228 esac
16229 fi
16230
16231echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16232echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16233test "$ld_shlibs_GCJ" = no && can_build_shared=no
16234
16235variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16236if test "$GCC" = yes; then
16237 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16238fi
16239
16240#
16241# Do we need to explicitly link libc?
16242#
16243case "x$archive_cmds_need_lc_GCJ" in
16244x|xyes)
16245 # Assume -lc should be added
16246 archive_cmds_need_lc_GCJ=yes
16247
16248 if test "$enable_shared" = yes && test "$GCC" = yes; then
16249 case $archive_cmds_GCJ in
16250 *'~'*)
16251 # FIXME: we may have to deal with multi-command sequences.
16252 ;;
16253 '$CC '*)
16254 # Test whether the compiler implicitly links with -lc since on some
16255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16256 # to ld, don't add -lc before -lgcc.
16257 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16258echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16259 $rm conftest*
16260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16261
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } 2>conftest.err; then
16267 soname=conftest
16268 lib=conftest
16269 libobjs=conftest.$ac_objext
16270 deplibs=
16271 wl=$lt_prog_compiler_wl_GCJ
16272 compiler_flags=-v
16273 linker_flags=-v
16274 verstring=
16275 output_objdir=.
16276 libname=conftest
16277 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16278 allow_undefined_flag_GCJ=
16279 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16280 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }
16284 then
16285 archive_cmds_need_lc_GCJ=no
16286 else
16287 archive_cmds_need_lc_GCJ=yes
16288 fi
16289 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16290 else
16291 cat conftest.err 1>&5
16292 fi
16293 $rm conftest*
16294 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16295echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16296 ;;
16297 esac
16298 fi
16299 ;;
16300esac
16301
16302echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16303echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16304hardcode_action_GCJ=
16305if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16306 test -n "$runpath_var GCJ" || \
16307 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16308
16309 # We can hardcode non-existant directories.
16310 if test "$hardcode_direct_GCJ" != no &&
16311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16312 # have to relink, otherwise we might link with an installed library
16313 # when we should be linking with a yet-to-be-installed one
16314 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16315 test "$hardcode_minus_L_GCJ" != no; then
16316 # Linking always hardcodes the temporary library directory.
16317 hardcode_action_GCJ=relink
16318 else
16319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16320 hardcode_action_GCJ=immediate
16321 fi
16322else
16323 # We cannot hardcode anything, or else we can only hardcode existing
16324 # directories.
16325 hardcode_action_GCJ=unsupported
16326fi
16327echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16328echo "${ECHO_T}$hardcode_action_GCJ" >&6
16329
16330if test "$hardcode_action_GCJ" = relink; then
16331 # Fast installation is not supported
16332 enable_fast_install=no
16333elif test "$shlibpath_overrides_runpath" = yes ||
16334 test "$enable_shared" = no; then
16335 # Fast installation is not necessary
16336 enable_fast_install=needless
16337fi
16338
16339striplib=
16340old_striplib=
16341echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16342echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16343if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16344 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16345 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16346 echo "$as_me:$LINENO: result: yes" >&5
16347echo "${ECHO_T}yes" >&6
16348else
16349# FIXME - insert some real tests, host_os isn't really good enough
16350 case $host_os in
16351 darwin*)
16352 if test -n "$STRIP" ; then
16353 striplib="$STRIP -x"
16354 echo "$as_me:$LINENO: result: yes" >&5
16355echo "${ECHO_T}yes" >&6
16356 else
16357 echo "$as_me:$LINENO: result: no" >&5
16358echo "${ECHO_T}no" >&6
16359fi
16360 ;;
16361 *)
16362 echo "$as_me:$LINENO: result: no" >&5
16363echo "${ECHO_T}no" >&6
16364 ;;
16365 esac
16366fi
16367
16368echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16369echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16370library_names_spec=
16371libname_spec='lib$name'
16372soname_spec=
16373shrext=".so"
16374postinstall_cmds=
16375postuninstall_cmds=
16376finish_cmds=
16377finish_eval=
16378shlibpath_var=
16379shlibpath_overrides_runpath=unknown
16380version_type=none
16381dynamic_linker="$host_os ld.so"
16382sys_lib_dlsearch_path_spec="/lib /usr/lib"
16383if test "$GCC" = yes; then
16384 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16385 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16386 # if the path contains ";" then we assume it to be the separator
16387 # otherwise default to the standard path separator (i.e. ":") - it is
16388 # assumed that no part of a normal pathname contains ";" but that should
16389 # okay in the real world where ";" in dirpaths is itself problematic.
16390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16391 else
16392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16393 fi
16394else
16395 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16396fi
16397need_lib_prefix=unknown
16398hardcode_into_libs=no
16399
16400# when you set need_version to no, make sure it does not cause -set_version
16401# flags to be left without arguments
16402need_version=unknown
16403
16404case $host_os in
16405aix3*)
16406 version_type=linux
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16408 shlibpath_var=LIBPATH
16409
16410 # AIX 3 has no versioning support, so we append a major version to the name.
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 ;;
16413
16414aix4* | aix5*)
16415 version_type=linux
16416 need_lib_prefix=no
16417 need_version=no
16418 hardcode_into_libs=yes
16419 if test "$host_cpu" = ia64; then
16420 # AIX 5 supports IA64
16421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 else
16424 # With GCC up to 2.95.x, collect2 would create an import file
16425 # for dependence libraries. The import file would start with
16426 # the line `#! .'. This would cause the generated library to
16427 # depend on `.', always an invalid library. This was fixed in
16428 # development snapshots of GCC prior to 3.0.
16429 case $host_os in
16430 aix4 | aix4.[01] | aix4.[01].*)
16431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16432 echo ' yes '
16433 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16434 :
16435 else
16436 can_build_shared=no
16437 fi
16438 ;;
16439 esac
16440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16441 # soname into executable. Probably we can add versioning support to
16442 # collect2, so additional links can be useful in future.
16443 if test "$aix_use_runtimelinking" = yes; then
16444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16445 # instead of lib<name>.a to let people know that these are not
16446 # typical AIX shared libraries.
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 else
16449 # We preserve .a as extension for shared libraries through AIX4.2
16450 # and later when we are not doing run time linking.
16451 library_names_spec='${libname}${release}.a $libname.a'
16452 soname_spec='${libname}${release}${shared_ext}$major'
16453 fi
16454 shlibpath_var=LIBPATH
16455 fi
16456 ;;
16457
16458amigaos*)
16459 library_names_spec='$libname.ixlibrary $libname.a'
16460 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16461 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'
16462 ;;
16463
16464beos*)
16465 library_names_spec='${libname}${shared_ext}'
16466 dynamic_linker="$host_os ld.so"
16467 shlibpath_var=LIBRARY_PATH
16468 ;;
16469
16470bsdi4*)
16471 version_type=linux
16472 need_version=no
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16478 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16479 # the default ld.so.conf also contains /usr/contrib/lib and
16480 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16481 # libtool to hard-code these into programs
16482 ;;
16483
16484cygwin* | mingw* | pw32*)
16485 version_type=windows
16486 shrext=".dll"
16487 need_version=no
16488 need_lib_prefix=no
16489
16490 case $GCC,$host_os in
16491 yes,cygwin* | yes,mingw* | yes,pw32*)
16492 library_names_spec='$libname.dll.a'
16493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16494 postinstall_cmds='base_file=`basename \${file}`~
16495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16496 dldir=$destdir/`dirname \$dlpath`~
16497 test -d \$dldir || mkdir -p \$dldir~
16498 $install_prog $dir/$dlname \$dldir/$dlname'
16499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16500 dlpath=$dir/\$dldll~
16501 $rm \$dlpath'
16502 shlibpath_overrides_runpath=yes
16503
16504 case $host_os in
16505 cygwin*)
16506 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16507 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16508 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16509 ;;
16510 mingw*)
16511 # MinGW DLLs use traditional 'lib' prefix
16512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16514 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16515 # It is most probably a Windows format PATH printed by
16516 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16517 # path with ; separators, and with drive letters. We can handle the
16518 # drive letters (cygwin fileutils understands them), so leave them,
16519 # especially as we might pass files found there to a mingw objdump,
16520 # which wouldn't understand a cygwinified path. Ahh.
16521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16522 else
16523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16524 fi
16525 ;;
16526 pw32*)
16527 # pw32 DLLs use 'pw' prefix rather than 'lib'
16528 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16529 ;;
16530 esac
16531 ;;
16532
16533 *)
16534 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16535 ;;
16536 esac
16537 dynamic_linker='Win32 ld.exe'
16538 # FIXME: first we should search . and the directory the executable is in
16539 shlibpath_var=PATH
16540 ;;
16541
16542darwin* | rhapsody*)
16543 dynamic_linker="$host_os dyld"
16544 version_type=darwin
16545 need_lib_prefix=no
16546 need_version=no
16547 # FIXME: Relying on posixy $() will cause problems for
16548 # cross-compilation, but unfortunately the echo tests do not
16549 # yet detect zsh echo's removal of \ escapes.
16550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16551 soname_spec='${libname}${release}${major}$shared_ext'
16552 shlibpath_overrides_runpath=yes
16553 shlibpath_var=DYLD_LIBRARY_PATH
16554 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16555 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16556 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16557 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"`
16558 fi
16559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16560 ;;
16561
16562dgux*)
16563 version_type=linux
16564 need_lib_prefix=no
16565 need_version=no
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 ;;
16570
16571freebsd1*)
16572 dynamic_linker=no
16573 ;;
16574
16575freebsd*)
16576 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16577 version_type=freebsd-$objformat
16578 case $version_type in
16579 freebsd-elf*)
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16581 need_version=no
16582 need_lib_prefix=no
16583 ;;
16584 freebsd-*)
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16586 need_version=yes
16587 ;;
16588 esac
16589 shlibpath_var=LD_LIBRARY_PATH
16590 case $host_os in
16591 freebsd2*)
16592 shlibpath_overrides_runpath=yes
16593 ;;
16594 freebsd3.01* | freebsdelf3.01*)
16595 shlibpath_overrides_runpath=yes
16596 hardcode_into_libs=yes
16597 ;;
16598 *) # from 3.2 on
16599 shlibpath_overrides_runpath=no
16600 hardcode_into_libs=yes
16601 ;;
16602 esac
16603 ;;
16604
16605gnu*)
16606 version_type=linux
16607 need_lib_prefix=no
16608 need_version=no
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 shlibpath_var=LD_LIBRARY_PATH
16612 hardcode_into_libs=yes
16613 ;;
16614
16615hpux9* | hpux10* | hpux11*)
16616 # Give a soname corresponding to the major version so that dld.sl refuses to
16617 # link against other versions.
16618 version_type=sunos
16619 need_lib_prefix=no
16620 need_version=no
16621 case "$host_cpu" in
16622 ia64*)
16623 shrext='.so'
16624 hardcode_into_libs=yes
16625 dynamic_linker="$host_os dld.so"
16626 shlibpath_var=LD_LIBRARY_PATH
16627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 if test "X$HPUX_IA64_MODE" = X32; then
16631 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16632 else
16633 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16634 fi
16635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16636 ;;
16637 hppa*64*)
16638 shrext='.sl'
16639 hardcode_into_libs=yes
16640 dynamic_linker="$host_os dld.sl"
16641 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644 soname_spec='${libname}${release}${shared_ext}$major'
16645 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16647 ;;
16648 *)
16649 shrext='.sl'
16650 dynamic_linker="$host_os dld.sl"
16651 shlibpath_var=SHLIB_PATH
16652 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 ;;
16656 esac
16657 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16658 postinstall_cmds='chmod 555 $lib'
16659 ;;
16660
16661irix5* | irix6* | nonstopux*)
16662 case $host_os in
16663 nonstopux*) version_type=nonstopux ;;
16664 *)
16665 if test "$lt_cv_prog_gnu_ld" = yes; then
16666 version_type=linux
16667 else
16668 version_type=irix
16669 fi ;;
16670 esac
16671 need_lib_prefix=no
16672 need_version=no
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16675 case $host_os in
16676 irix5* | nonstopux*)
16677 libsuff= shlibsuff=
16678 ;;
16679 *)
16680 case $LD in # libtool.m4 will add one of these switches to LD
16681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16682 libsuff= shlibsuff= libmagic=32-bit;;
16683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16684 libsuff=32 shlibsuff=N32 libmagic=N32;;
16685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16687 *) libsuff= shlibsuff= libmagic=never-match;;
16688 esac
16689 ;;
16690 esac
16691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16692 shlibpath_overrides_runpath=no
16693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16695 hardcode_into_libs=yes
16696 ;;
16697
16698# No shared lib support for Linux oldld, aout, or coff.
16699linux*oldld* | linux*aout* | linux*coff*)
16700 dynamic_linker=no
16701 ;;
16702
16703# This must be Linux ELF.
16704linux*)
16705 version_type=linux
16706 need_lib_prefix=no
16707 need_version=no
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=no
16713 # This implies no fast_install, which is unacceptable.
16714 # Some rework will be needed to allow for fast_install
16715 # before this can be enabled.
16716 hardcode_into_libs=yes
16717
16718 # We used to test for /lib/ld.so.1 and disable shared libraries on
16719 # powerpc, because MkLinux only supported shared libraries with the
16720 # GNU dynamic linker. Since this was broken with cross compilers,
16721 # most powerpc-linux boxes support dynamic linking these days and
16722 # people can always --disable-shared, the test was removed, and we
16723 # assume the GNU/Linux dynamic linker is in use.
16724 dynamic_linker='GNU/Linux ld.so'
16725 ;;
16726
16727netbsd*)
16728 version_type=sunos
16729 need_lib_prefix=no
16730 need_version=no
16731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16734 dynamic_linker='NetBSD (a.out) ld.so'
16735 else
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 dynamic_linker='NetBSD ld.elf_so'
16739 fi
16740 shlibpath_var=LD_LIBRARY_PATH
16741 shlibpath_overrides_runpath=yes
16742 hardcode_into_libs=yes
16743 ;;
16744
16745newsos6)
16746 version_type=linux
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748 shlibpath_var=LD_LIBRARY_PATH
16749 shlibpath_overrides_runpath=yes
16750 ;;
16751
16752nto-qnx)
16753 version_type=linux
16754 need_lib_prefix=no
16755 need_version=no
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=yes
16760 ;;
16761
16762openbsd*)
16763 version_type=sunos
16764 need_lib_prefix=no
16765 need_version=no
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16770 case $host_os in
16771 openbsd2.[89] | openbsd2.[89].*)
16772 shlibpath_overrides_runpath=no
16773 ;;
16774 *)
16775 shlibpath_overrides_runpath=yes
16776 ;;
16777 esac
16778 else
16779 shlibpath_overrides_runpath=yes
16780 fi
16781 ;;
16782
16783os2*)
16784 libname_spec='$name'
16785 shrext=".dll"
16786 need_lib_prefix=no
16787 library_names_spec='$libname${shared_ext} $libname.a'
16788 dynamic_linker='OS/2 ld.exe'
16789 shlibpath_var=LIBPATH
16790 ;;
16791
16792osf3* | osf4* | osf5*)
16793 version_type=osf
16794 need_lib_prefix=no
16795 need_version=no
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16801 ;;
16802
16803sco3.2v5*)
16804 version_type=osf
16805 soname_spec='${libname}${release}${shared_ext}$major'
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 ;;
16809
16810solaris*)
16811 version_type=linux
16812 need_lib_prefix=no
16813 need_version=no
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16819 # ldd complains unless libraries are executable
16820 postinstall_cmds='chmod +x $lib'
16821 ;;
16822
16823sunos4*)
16824 version_type=sunos
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16829 if test "$with_gnu_ld" = yes; then
16830 need_lib_prefix=no
16831 fi
16832 need_version=yes
16833 ;;
16834
16835sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16836 version_type=linux
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 case $host_vendor in
16841 sni)
16842 shlibpath_overrides_runpath=no
16843 need_lib_prefix=no
16844 export_dynamic_flag_spec='${wl}-Blargedynsym'
16845 runpath_var=LD_RUN_PATH
16846 ;;
16847 siemens)
16848 need_lib_prefix=no
16849 ;;
16850 motorola)
16851 need_lib_prefix=no
16852 need_version=no
16853 shlibpath_overrides_runpath=no
16854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16855 ;;
16856 esac
16857 ;;
16858
16859sysv4*MP*)
16860 if test -d /usr/nec ;then
16861 version_type=linux
16862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863 soname_spec='$libname${shared_ext}.$major'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 fi
16866 ;;
16867
16868uts4*)
16869 version_type=linux
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 soname_spec='${libname}${release}${shared_ext}$major'
16872 shlibpath_var=LD_LIBRARY_PATH
16873 ;;
16874
16875*)
16876 dynamic_linker=no
16877 ;;
16878esac
16879echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16880echo "${ECHO_T}$dynamic_linker" >&6
16881test "$dynamic_linker" = no && can_build_shared=no
16882
16883if test "x$enable_dlopen" != xyes; then
16884 enable_dlopen=unknown
16885 enable_dlopen_self=unknown
16886 enable_dlopen_self_static=unknown
16887else
16888 lt_cv_dlopen=no
16889 lt_cv_dlopen_libs=
16890
16891 case $host_os in
16892 beos*)
16893 lt_cv_dlopen="load_add_on"
16894 lt_cv_dlopen_libs=
16895 lt_cv_dlopen_self=yes
16896 ;;
16897
16898 mingw* | pw32*)
16899 lt_cv_dlopen="LoadLibrary"
16900 lt_cv_dlopen_libs=
16901 ;;
16902
16903 cygwin*)
16904 lt_cv_dlopen="dlopen"
16905 lt_cv_dlopen_libs=
16906 ;;
16907
16908 darwin*)
16909 # if libdl is installed we need to link against it
16910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16911echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16912if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914else
16915 ac_check_lib_save_LIBS=$LIBS
16916LIBS="-ldl $LIBS"
16917cat >conftest.$ac_ext <<_ACEOF
16918#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016919/* confdefs.h. */
16920_ACEOF
16921cat confdefs.h >>conftest.$ac_ext
16922cat >>conftest.$ac_ext <<_ACEOF
16923/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016924
16925/* Override any gcc2 internal prototype to avoid an error. */
16926#ifdef __cplusplus
16927extern "C"
16928#endif
16929/* We use char because int might match the return type of a gcc2
16930 builtin and then its argument prototype would still apply. */
16931char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016932int
16933main ()
16934{
16935dlopen ();
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940rm -f conftest.$ac_objext conftest$ac_exeext
16941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942 (eval $ac_link) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_cv_lib_dl_dlopen=yes
16953else
16954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016955sed 's/^/| /' conftest.$ac_ext >&5
16956
John Criswell47fdd832003-07-14 16:52:07 +000016957ac_cv_lib_dl_dlopen=no
16958fi
16959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16960LIBS=$ac_check_lib_save_LIBS
16961fi
16962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16964if test $ac_cv_lib_dl_dlopen = yes; then
16965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16966else
16967
16968 lt_cv_dlopen="dyld"
16969 lt_cv_dlopen_libs=
16970 lt_cv_dlopen_self=yes
16971
16972fi
16973
16974 ;;
16975
16976 *)
16977 echo "$as_me:$LINENO: checking for shl_load" >&5
16978echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16979if test "${ac_cv_func_shl_load+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 cat >conftest.$ac_ext <<_ACEOF
16983#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016984/* confdefs.h. */
16985_ACEOF
16986cat confdefs.h >>conftest.$ac_ext
16987cat >>conftest.$ac_ext <<_ACEOF
16988/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016989/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016990 which can conflict with char shl_load (); below.
16991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16992 <limits.h> exists even on freestanding compilers. */
16993#ifdef __STDC__
16994# include <limits.h>
16995#else
16996# include <assert.h>
16997#endif
John Criswell47fdd832003-07-14 16:52:07 +000016998/* Override any gcc2 internal prototype to avoid an error. */
16999#ifdef __cplusplus
17000extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017001{
John Criswell47fdd832003-07-14 16:52:07 +000017002#endif
17003/* We use char because int might match the return type of a gcc2
17004 builtin and then its argument prototype would still apply. */
17005char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017006/* The GNU C library defines this for functions which it implements
17007 to always fail with ENOSYS. Some functions are actually named
17008 something starting with __ and the normal name is an alias. */
17009#if defined (__stub_shl_load) || defined (__stub___shl_load)
17010choke me
17011#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017012char (*f) () = shl_load;
17013#endif
17014#ifdef __cplusplus
17015}
John Criswell47fdd832003-07-14 16:52:07 +000017016#endif
17017
John Criswell0c38eaf2003-09-10 15:17:25 +000017018int
17019main ()
17020{
17021return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017022 ;
17023 return 0;
17024}
17025_ACEOF
17026rm -f conftest.$ac_objext conftest$ac_exeext
17027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17028 (eval $ac_link) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 ac_cv_func_shl_load=yes
17039else
17040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017041sed 's/^/| /' conftest.$ac_ext >&5
17042
John Criswell47fdd832003-07-14 16:52:07 +000017043ac_cv_func_shl_load=no
17044fi
17045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17046fi
17047echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17048echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17049if test $ac_cv_func_shl_load = yes; then
17050 lt_cv_dlopen="shl_load"
17051else
17052 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17053echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17054if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056else
17057 ac_check_lib_save_LIBS=$LIBS
17058LIBS="-ldld $LIBS"
17059cat >conftest.$ac_ext <<_ACEOF
17060#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017061/* confdefs.h. */
17062_ACEOF
17063cat confdefs.h >>conftest.$ac_ext
17064cat >>conftest.$ac_ext <<_ACEOF
17065/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017066
17067/* Override any gcc2 internal prototype to avoid an error. */
17068#ifdef __cplusplus
17069extern "C"
17070#endif
17071/* We use char because int might match the return type of a gcc2
17072 builtin and then its argument prototype would still apply. */
17073char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017074int
17075main ()
17076{
17077shl_load ();
17078 ;
17079 return 0;
17080}
17081_ACEOF
17082rm -f conftest.$ac_objext conftest$ac_exeext
17083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17084 (eval $ac_link) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; }; then
17094 ac_cv_lib_dld_shl_load=yes
17095else
17096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017097sed 's/^/| /' conftest.$ac_ext >&5
17098
John Criswell47fdd832003-07-14 16:52:07 +000017099ac_cv_lib_dld_shl_load=no
17100fi
17101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17102LIBS=$ac_check_lib_save_LIBS
17103fi
17104echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17105echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17106if test $ac_cv_lib_dld_shl_load = yes; then
17107 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17108else
17109 echo "$as_me:$LINENO: checking for dlopen" >&5
17110echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17111if test "${ac_cv_func_dlopen+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17113else
17114 cat >conftest.$ac_ext <<_ACEOF
17115#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017116/* confdefs.h. */
17117_ACEOF
17118cat confdefs.h >>conftest.$ac_ext
17119cat >>conftest.$ac_ext <<_ACEOF
17120/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017121/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017122 which can conflict with char dlopen (); below.
17123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124 <limits.h> exists even on freestanding compilers. */
17125#ifdef __STDC__
17126# include <limits.h>
17127#else
17128# include <assert.h>
17129#endif
John Criswell47fdd832003-07-14 16:52:07 +000017130/* Override any gcc2 internal prototype to avoid an error. */
17131#ifdef __cplusplus
17132extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017133{
John Criswell47fdd832003-07-14 16:52:07 +000017134#endif
17135/* We use char because int might match the return type of a gcc2
17136 builtin and then its argument prototype would still apply. */
17137char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017138/* The GNU C library defines this for functions which it implements
17139 to always fail with ENOSYS. Some functions are actually named
17140 something starting with __ and the normal name is an alias. */
17141#if defined (__stub_dlopen) || defined (__stub___dlopen)
17142choke me
17143#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017144char (*f) () = dlopen;
17145#endif
17146#ifdef __cplusplus
17147}
John Criswell47fdd832003-07-14 16:52:07 +000017148#endif
17149
John Criswell0c38eaf2003-09-10 15:17:25 +000017150int
17151main ()
17152{
17153return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext conftest$ac_exeext
17159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17160 (eval $ac_link) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_cv_func_dlopen=yes
17171else
17172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017173sed 's/^/| /' conftest.$ac_ext >&5
17174
John Criswell47fdd832003-07-14 16:52:07 +000017175ac_cv_func_dlopen=no
17176fi
17177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17178fi
17179echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17180echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17181if test $ac_cv_func_dlopen = yes; then
17182 lt_cv_dlopen="dlopen"
17183else
17184 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17185echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17186if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17188else
17189 ac_check_lib_save_LIBS=$LIBS
17190LIBS="-ldl $LIBS"
17191cat >conftest.$ac_ext <<_ACEOF
17192#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017193/* confdefs.h. */
17194_ACEOF
17195cat confdefs.h >>conftest.$ac_ext
17196cat >>conftest.$ac_ext <<_ACEOF
17197/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017198
17199/* Override any gcc2 internal prototype to avoid an error. */
17200#ifdef __cplusplus
17201extern "C"
17202#endif
17203/* We use char because int might match the return type of a gcc2
17204 builtin and then its argument prototype would still apply. */
17205char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017206int
17207main ()
17208{
17209dlopen ();
17210 ;
17211 return 0;
17212}
17213_ACEOF
17214rm -f conftest.$ac_objext conftest$ac_exeext
17215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17216 (eval $ac_link) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -s conftest$ac_exeext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_cv_lib_dl_dlopen=yes
17227else
17228 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017229sed 's/^/| /' conftest.$ac_ext >&5
17230
John Criswell47fdd832003-07-14 16:52:07 +000017231ac_cv_lib_dl_dlopen=no
17232fi
17233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17234LIBS=$ac_check_lib_save_LIBS
17235fi
17236echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17237echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17238if test $ac_cv_lib_dl_dlopen = yes; then
17239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17240else
17241 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17242echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17243if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17245else
17246 ac_check_lib_save_LIBS=$LIBS
17247LIBS="-lsvld $LIBS"
17248cat >conftest.$ac_ext <<_ACEOF
17249#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017250/* confdefs.h. */
17251_ACEOF
17252cat confdefs.h >>conftest.$ac_ext
17253cat >>conftest.$ac_ext <<_ACEOF
17254/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017255
17256/* Override any gcc2 internal prototype to avoid an error. */
17257#ifdef __cplusplus
17258extern "C"
17259#endif
17260/* We use char because int might match the return type of a gcc2
17261 builtin and then its argument prototype would still apply. */
17262char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017263int
17264main ()
17265{
17266dlopen ();
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271rm -f conftest.$ac_objext conftest$ac_exeext
17272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17273 (eval $ac_link) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_lib_svld_dlopen=yes
17284else
17285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017286sed 's/^/| /' conftest.$ac_ext >&5
17287
John Criswell47fdd832003-07-14 16:52:07 +000017288ac_cv_lib_svld_dlopen=no
17289fi
17290rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17291LIBS=$ac_check_lib_save_LIBS
17292fi
17293echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17294echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17295if test $ac_cv_lib_svld_dlopen = yes; then
17296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17297else
17298 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17299echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17300if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302else
17303 ac_check_lib_save_LIBS=$LIBS
17304LIBS="-ldld $LIBS"
17305cat >conftest.$ac_ext <<_ACEOF
17306#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017307/* confdefs.h. */
17308_ACEOF
17309cat confdefs.h >>conftest.$ac_ext
17310cat >>conftest.$ac_ext <<_ACEOF
17311/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017312
17313/* Override any gcc2 internal prototype to avoid an error. */
17314#ifdef __cplusplus
17315extern "C"
17316#endif
17317/* We use char because int might match the return type of a gcc2
17318 builtin and then its argument prototype would still apply. */
17319char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017320int
17321main ()
17322{
17323dld_link ();
17324 ;
17325 return 0;
17326}
17327_ACEOF
17328rm -f conftest.$ac_objext conftest$ac_exeext
17329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330 (eval $ac_link) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -s conftest$ac_exeext'
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 ac_cv_lib_dld_dld_link=yes
17341else
17342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017343sed 's/^/| /' conftest.$ac_ext >&5
17344
John Criswell47fdd832003-07-14 16:52:07 +000017345ac_cv_lib_dld_dld_link=no
17346fi
17347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17348LIBS=$ac_check_lib_save_LIBS
17349fi
17350echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17351echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17352if test $ac_cv_lib_dld_dld_link = yes; then
17353 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17354fi
17355
17356
17357fi
17358
17359
17360fi
17361
17362
17363fi
17364
17365
17366fi
17367
17368
17369fi
17370
17371 ;;
17372 esac
17373
17374 if test "x$lt_cv_dlopen" != xno; then
17375 enable_dlopen=yes
17376 else
17377 enable_dlopen=no
17378 fi
17379
17380 case $lt_cv_dlopen in
17381 dlopen)
17382 save_CPPFLAGS="$CPPFLAGS"
17383 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17384
17385 save_LDFLAGS="$LDFLAGS"
17386 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17387
17388 save_LIBS="$LIBS"
17389 LIBS="$lt_cv_dlopen_libs $LIBS"
17390
17391 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17392echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17393if test "${lt_cv_dlopen_self+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395else
17396 if test "$cross_compiling" = yes; then :
17397 lt_cv_dlopen_self=cross
17398else
17399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17400 lt_status=$lt_dlunknown
17401 cat > conftest.$ac_ext <<EOF
Misha Brukman811ce9f2003-11-12 22:16:51 +000017402#line 17402 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017403#include "confdefs.h"
17404
17405#if HAVE_DLFCN_H
17406#include <dlfcn.h>
17407#endif
17408
17409#include <stdio.h>
17410
17411#ifdef RTLD_GLOBAL
17412# define LT_DLGLOBAL RTLD_GLOBAL
17413#else
17414# ifdef DL_GLOBAL
17415# define LT_DLGLOBAL DL_GLOBAL
17416# else
17417# define LT_DLGLOBAL 0
17418# endif
17419#endif
17420
17421/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17422 find out it does not work in some platform. */
17423#ifndef LT_DLLAZY_OR_NOW
17424# ifdef RTLD_LAZY
17425# define LT_DLLAZY_OR_NOW RTLD_LAZY
17426# else
17427# ifdef DL_LAZY
17428# define LT_DLLAZY_OR_NOW DL_LAZY
17429# else
17430# ifdef RTLD_NOW
17431# define LT_DLLAZY_OR_NOW RTLD_NOW
17432# else
17433# ifdef DL_NOW
17434# define LT_DLLAZY_OR_NOW DL_NOW
17435# else
17436# define LT_DLLAZY_OR_NOW 0
17437# endif
17438# endif
17439# endif
17440# endif
17441#endif
17442
17443#ifdef __cplusplus
17444extern "C" void exit (int);
17445#endif
17446
17447void fnord() { int i=42;}
17448int main ()
17449{
17450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17451 int status = $lt_dlunknown;
17452
17453 if (self)
17454 {
17455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17456 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17457 /* dlclose (self); */
17458 }
17459
17460 exit (status);
17461}
17462EOF
17463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464 (eval $ac_link) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17468 (./conftest; exit; ) 2>/dev/null
17469 lt_status=$?
17470 case x$lt_status in
17471 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17472 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17473 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17474 esac
17475 else :
17476 # compilation failed
17477 lt_cv_dlopen_self=no
17478 fi
17479fi
17480rm -fr conftest*
17481
17482
17483fi
17484echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17485echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17486
17487 if test "x$lt_cv_dlopen_self" = xyes; then
17488 LDFLAGS="$LDFLAGS $link_static_flag"
17489 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17490echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17491if test "${lt_cv_dlopen_self_static+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493else
17494 if test "$cross_compiling" = yes; then :
17495 lt_cv_dlopen_self_static=cross
17496else
17497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17498 lt_status=$lt_dlunknown
17499 cat > conftest.$ac_ext <<EOF
Misha Brukman811ce9f2003-11-12 22:16:51 +000017500#line 17500 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017501#include "confdefs.h"
17502
17503#if HAVE_DLFCN_H
17504#include <dlfcn.h>
17505#endif
17506
17507#include <stdio.h>
17508
17509#ifdef RTLD_GLOBAL
17510# define LT_DLGLOBAL RTLD_GLOBAL
17511#else
17512# ifdef DL_GLOBAL
17513# define LT_DLGLOBAL DL_GLOBAL
17514# else
17515# define LT_DLGLOBAL 0
17516# endif
17517#endif
17518
17519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17520 find out it does not work in some platform. */
17521#ifndef LT_DLLAZY_OR_NOW
17522# ifdef RTLD_LAZY
17523# define LT_DLLAZY_OR_NOW RTLD_LAZY
17524# else
17525# ifdef DL_LAZY
17526# define LT_DLLAZY_OR_NOW DL_LAZY
17527# else
17528# ifdef RTLD_NOW
17529# define LT_DLLAZY_OR_NOW RTLD_NOW
17530# else
17531# ifdef DL_NOW
17532# define LT_DLLAZY_OR_NOW DL_NOW
17533# else
17534# define LT_DLLAZY_OR_NOW 0
17535# endif
17536# endif
17537# endif
17538# endif
17539#endif
17540
17541#ifdef __cplusplus
17542extern "C" void exit (int);
17543#endif
17544
17545void fnord() { int i=42;}
17546int main ()
17547{
17548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17549 int status = $lt_dlunknown;
17550
17551 if (self)
17552 {
17553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17555 /* dlclose (self); */
17556 }
17557
17558 exit (status);
17559}
17560EOF
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17566 (./conftest; exit; ) 2>/dev/null
17567 lt_status=$?
17568 case x$lt_status in
17569 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17570 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17571 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17572 esac
17573 else :
17574 # compilation failed
17575 lt_cv_dlopen_self_static=no
17576 fi
17577fi
17578rm -fr conftest*
17579
17580
17581fi
17582echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17583echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17584 fi
17585
17586 CPPFLAGS="$save_CPPFLAGS"
17587 LDFLAGS="$save_LDFLAGS"
17588 LIBS="$save_LIBS"
17589 ;;
17590 esac
17591
17592 case $lt_cv_dlopen_self in
17593 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17594 *) enable_dlopen_self=unknown ;;
17595 esac
17596
17597 case $lt_cv_dlopen_self_static in
17598 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17599 *) enable_dlopen_self_static=unknown ;;
17600 esac
17601fi
17602
17603
17604# The else clause should only fire when bootstrapping the
17605# libtool distribution, otherwise you forgot to ship ltmain.sh
17606# with your package, and you will get complaints that there are
17607# no rules to generate ltmain.sh.
17608if test -f "$ltmain"; then
17609 # See if we are running on zsh, and set the options which allow our commands through
17610 # without removal of \ escapes.
17611 if test -n "${ZSH_VERSION+set}" ; then
17612 setopt NO_GLOB_SUBST
17613 fi
17614 # Now quote all the things that may contain metacharacters while being
17615 # careful not to overquote the AC_SUBSTed values. We take copies of the
17616 # variables and quote the copies for generation of the libtool script.
17617 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17618 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17619 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17620 deplibs_check_method reload_flag reload_cmds need_locks \
17621 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17622 lt_cv_sys_global_symbol_to_c_name_address \
17623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17624 old_postinstall_cmds old_postuninstall_cmds \
17625 compiler_GCJ \
17626 CC_GCJ \
17627 LD_GCJ \
17628 lt_prog_compiler_wl_GCJ \
17629 lt_prog_compiler_pic_GCJ \
17630 lt_prog_compiler_static_GCJ \
17631 lt_prog_compiler_no_builtin_flag_GCJ \
17632 export_dynamic_flag_spec_GCJ \
17633 thread_safe_flag_spec_GCJ \
17634 whole_archive_flag_spec_GCJ \
17635 enable_shared_with_static_runtimes_GCJ \
17636 old_archive_cmds_GCJ \
17637 old_archive_from_new_cmds_GCJ \
17638 predep_objects_GCJ \
17639 postdep_objects_GCJ \
17640 predeps_GCJ \
17641 postdeps_GCJ \
17642 compiler_lib_search_path_GCJ \
17643 archive_cmds_GCJ \
17644 archive_expsym_cmds_GCJ \
17645 postinstall_cmds_GCJ \
17646 postuninstall_cmds_GCJ \
17647 old_archive_from_expsyms_cmds_GCJ \
17648 allow_undefined_flag_GCJ \
17649 no_undefined_flag_GCJ \
17650 export_symbols_cmds_GCJ \
17651 hardcode_libdir_flag_spec_GCJ \
17652 hardcode_libdir_flag_spec_ld_GCJ \
17653 hardcode_libdir_separator_GCJ \
17654 hardcode_automatic_GCJ \
17655 module_cmds_GCJ \
17656 module_expsym_cmds_GCJ \
17657 lt_cv_prog_compiler_c_o_GCJ \
17658 exclude_expsyms_GCJ \
17659 include_expsyms_GCJ; do
17660
17661 case $var in
17662 old_archive_cmds_GCJ | \
17663 old_archive_from_new_cmds_GCJ | \
17664 archive_cmds_GCJ | \
17665 archive_expsym_cmds_GCJ | \
17666 module_cmds_GCJ | \
17667 module_expsym_cmds_GCJ | \
17668 old_archive_from_expsyms_cmds_GCJ | \
17669 export_symbols_cmds_GCJ | \
17670 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17671 postinstall_cmds | postuninstall_cmds | \
17672 old_postinstall_cmds | old_postuninstall_cmds | \
17673 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17674 # Double-quote double-evaled strings.
17675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17676 ;;
17677 *)
17678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17679 ;;
17680 esac
17681 done
17682
17683 case $lt_echo in
17684 *'\$0 --fallback-echo"')
17685 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17686 ;;
17687 esac
17688
17689cfgfile="$ofile"
17690
17691 cat <<__EOF__ >> "$cfgfile"
17692# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17693
17694# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17695
17696# Shell to use when invoking shell scripts.
17697SHELL=$lt_SHELL
17698
17699# Whether or not to build shared libraries.
17700build_libtool_libs=$enable_shared
17701
17702# Whether or not to build static libraries.
17703build_old_libs=$enable_static
17704
17705# Whether or not to add -lc for building shared libraries.
17706build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17707
17708# Whether or not to disallow shared libs when runtime libs are static
17709allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17710
17711# Whether or not to optimize for fast installation.
17712fast_install=$enable_fast_install
17713
17714# The host system.
17715host_alias=$host_alias
17716host=$host
17717
17718# An echo program that does not interpret backslashes.
17719echo=$lt_echo
17720
17721# The archiver.
17722AR=$lt_AR
17723AR_FLAGS=$lt_AR_FLAGS
17724
17725# A C compiler.
17726LTCC=$lt_LTCC
17727
17728# A language-specific compiler.
17729CC=$lt_compiler_GCJ
17730
17731# Is the compiler the GNU C compiler?
17732with_gcc=$GCC_GCJ
17733
17734# An ERE matcher.
17735EGREP=$lt_EGREP
17736
17737# The linker used to build libraries.
17738LD=$lt_LD_GCJ
17739
17740# Whether we need hard or soft links.
17741LN_S=$lt_LN_S
17742
17743# A BSD-compatible nm program.
17744NM=$lt_NM
17745
17746# A symbol stripping program
17747STRIP=$STRIP
17748
17749# Used to examine libraries when file_magic_cmd begins "file"
17750MAGIC_CMD=$MAGIC_CMD
17751
17752# Used on cygwin: DLL creation program.
17753DLLTOOL="$DLLTOOL"
17754
17755# Used on cygwin: object dumper.
17756OBJDUMP="$OBJDUMP"
17757
17758# Used on cygwin: assembler.
17759AS="$AS"
17760
17761# The name of the directory that contains temporary libtool files.
17762objdir=$objdir
17763
17764# How to create reloadable object files.
17765reload_flag=$lt_reload_flag
17766reload_cmds=$lt_reload_cmds
17767
17768# How to pass a linker flag through the compiler.
17769wl=$lt_lt_prog_compiler_wl_GCJ
17770
17771# Object file suffix (normally "o").
17772objext="$ac_objext"
17773
17774# Old archive suffix (normally "a").
17775libext="$libext"
17776
17777# Shared library suffix (normally ".so").
17778shrext='$shrext'
17779
17780# Executable file suffix (normally "").
17781exeext="$exeext"
17782
17783# Additional compiler flags for building library objects.
17784pic_flag=$lt_lt_prog_compiler_pic_GCJ
17785pic_mode=$pic_mode
17786
17787# What is the maximum length of a command?
17788max_cmd_len=$lt_cv_sys_max_cmd_len
17789
17790# Does compiler simultaneously support -c and -o options?
17791compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17792
17793# Must we lock files when doing compilation ?
17794need_locks=$lt_need_locks
17795
17796# Do we need the lib prefix for modules?
17797need_lib_prefix=$need_lib_prefix
17798
17799# Do we need a version for libraries?
17800need_version=$need_version
17801
17802# Whether dlopen is supported.
17803dlopen_support=$enable_dlopen
17804
17805# Whether dlopen of programs is supported.
17806dlopen_self=$enable_dlopen_self
17807
17808# Whether dlopen of statically linked programs is supported.
17809dlopen_self_static=$enable_dlopen_self_static
17810
17811# Compiler flag to prevent dynamic linking.
17812link_static_flag=$lt_lt_prog_compiler_static_GCJ
17813
17814# Compiler flag to turn off builtin functions.
17815no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17816
17817# Compiler flag to allow reflexive dlopens.
17818export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17819
17820# Compiler flag to generate shared objects directly from archives.
17821whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17822
17823# Compiler flag to generate thread-safe objects.
17824thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17825
17826# Library versioning type.
17827version_type=$version_type
17828
17829# Format of library name prefix.
17830libname_spec=$lt_libname_spec
17831
17832# List of archive names. First name is the real one, the rest are links.
17833# The last name is the one that the linker finds with -lNAME.
17834library_names_spec=$lt_library_names_spec
17835
17836# The coded name of the library, if different from the real name.
17837soname_spec=$lt_soname_spec
17838
17839# Commands used to build and install an old-style archive.
17840RANLIB=$lt_RANLIB
17841old_archive_cmds=$lt_old_archive_cmds_GCJ
17842old_postinstall_cmds=$lt_old_postinstall_cmds
17843old_postuninstall_cmds=$lt_old_postuninstall_cmds
17844
17845# Create an old-style archive from a shared archive.
17846old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17847
17848# Create a temporary old-style archive to link instead of a shared archive.
17849old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17850
17851# Commands used to build and install a shared archive.
17852archive_cmds=$lt_archive_cmds_GCJ
17853archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17854postinstall_cmds=$lt_postinstall_cmds
17855postuninstall_cmds=$lt_postuninstall_cmds
17856
17857# Commands used to build a loadable module (assumed same as above if empty)
17858module_cmds=$lt_module_cmds_GCJ
17859module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17860
17861# Commands to strip libraries.
17862old_striplib=$lt_old_striplib
17863striplib=$lt_striplib
17864
17865# Dependencies to place before the objects being linked to create a
17866# shared library.
17867predep_objects=$lt_predep_objects_GCJ
17868
17869# Dependencies to place after the objects being linked to create a
17870# shared library.
17871postdep_objects=$lt_postdep_objects_GCJ
17872
17873# Dependencies to place before the objects being linked to create a
17874# shared library.
17875predeps=$lt_predeps_GCJ
17876
17877# Dependencies to place after the objects being linked to create a
17878# shared library.
17879postdeps=$lt_postdeps_GCJ
17880
17881# The library search path used internally by the compiler when linking
17882# a shared library.
17883compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17884
17885# Method to check whether dependent libraries are shared objects.
17886deplibs_check_method=$lt_deplibs_check_method
17887
17888# Command to use when deplibs_check_method == file_magic.
17889file_magic_cmd=$lt_file_magic_cmd
17890
17891# Flag that allows shared libraries with undefined symbols to be built.
17892allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17893
17894# Flag that forces no undefined symbols.
17895no_undefined_flag=$lt_no_undefined_flag_GCJ
17896
17897# Commands used to finish a libtool library installation in a directory.
17898finish_cmds=$lt_finish_cmds
17899
17900# Same as above, but a single script fragment to be evaled but not shown.
17901finish_eval=$lt_finish_eval
17902
17903# Take the output of nm and produce a listing of raw symbols and C names.
17904global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17905
17906# Transform the output of nm in a proper C declaration
17907global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17908
17909# Transform the output of nm in a C name address pair
17910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17911
17912# This is the shared library runtime path variable.
17913runpath_var=$runpath_var
17914
17915# This is the shared library path variable.
17916shlibpath_var=$shlibpath_var
17917
17918# Is shlibpath searched before the hard-coded library search path?
17919shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17920
17921# How to hardcode a shared library path into an executable.
17922hardcode_action=$hardcode_action_GCJ
17923
17924# Whether we should hardcode library paths into libraries.
17925hardcode_into_libs=$hardcode_into_libs
17926
17927# Flag to hardcode \$libdir into a binary during linking.
17928# This must work even if \$libdir does not exist.
17929hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17930
17931# If ld is used when linking, flag to hardcode \$libdir into
17932# a binary during linking. This must work even if \$libdir does
17933# not exist.
17934hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17935
17936# Whether we need a single -rpath flag with a separated argument.
17937hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17938
17939# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17940# resulting binary.
17941hardcode_direct=$hardcode_direct_GCJ
17942
17943# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17944# resulting binary.
17945hardcode_minus_L=$hardcode_minus_L_GCJ
17946
17947# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17948# the resulting binary.
17949hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17950
17951# Set to yes if building a shared library automatically hardcodes DIR into the library
17952# and all subsequent libraries and executables linked against it.
17953hardcode_automatic=$hardcode_automatic_GCJ
17954
17955# Variables whose values should be saved in libtool wrapper scripts and
17956# restored at relink time.
17957variables_saved_for_relink="$variables_saved_for_relink"
17958
17959# Whether libtool must link a program against all its dependency libraries.
17960link_all_deplibs=$link_all_deplibs_GCJ
17961
17962# Compile-time system search path for libraries
17963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17964
17965# Run-time system search path for libraries
17966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17967
17968# Fix the shell variable \$srcfile for the compiler.
17969fix_srcfile_path="$fix_srcfile_path_GCJ"
17970
17971# Set to yes if exported symbols are required.
17972always_export_symbols=$always_export_symbols_GCJ
17973
17974# The commands to list exported symbols.
17975export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17976
17977# The commands to extract the exported symbol list from a shared archive.
17978extract_expsyms_cmds=$lt_extract_expsyms_cmds
17979
17980# Symbols that should not be listed in the preloaded symbols.
17981exclude_expsyms=$lt_exclude_expsyms_GCJ
17982
17983# Symbols that must always be exported.
17984include_expsyms=$lt_include_expsyms_GCJ
17985
17986# ### END LIBTOOL TAG CONFIG: $tagname
17987
17988__EOF__
17989
17990
17991else
17992 # If there is no Makefile yet, we rely on a make rule to execute
17993 # `config.status --recheck' to rerun these tests and create the
17994 # libtool script then.
17995 test -f Makefile && make "$ltmain"
17996fi
17997
17998
17999ac_ext=c
18000ac_cpp='$CPP $CPPFLAGS'
18001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18003ac_compiler_gnu=$ac_cv_c_compiler_gnu
18004
18005CC="$lt_save_CC"
18006
18007 else
18008 tagname=""
18009 fi
18010 ;;
18011
18012 RC)
18013
18014
18015
18016# Source file extension for RC test sources.
18017ac_ext=rc
18018
18019# Object file extension for compiled RC test sources.
18020objext=o
18021objext_RC=$objext
18022
18023# Code to be used in simple compile tests
18024lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18025
18026# Code to be used in simple link tests
18027lt_simple_link_test_code="$lt_simple_compile_test_code"
18028
18029# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18030
18031# If no C compiler was specified, use CC.
18032LTCC=${LTCC-"$CC"}
18033
18034# Allow CC to be a program name with arguments.
18035compiler=$CC
18036
18037
18038# Allow CC to be a program name with arguments.
18039lt_save_CC="$CC"
18040CC=${RC-"windres"}
18041compiler=$CC
18042compiler_RC=$CC
18043lt_cv_prog_compiler_c_o_RC=yes
18044
18045# The else clause should only fire when bootstrapping the
18046# libtool distribution, otherwise you forgot to ship ltmain.sh
18047# with your package, and you will get complaints that there are
18048# no rules to generate ltmain.sh.
18049if test -f "$ltmain"; then
18050 # See if we are running on zsh, and set the options which allow our commands through
18051 # without removal of \ escapes.
18052 if test -n "${ZSH_VERSION+set}" ; then
18053 setopt NO_GLOB_SUBST
18054 fi
18055 # Now quote all the things that may contain metacharacters while being
18056 # careful not to overquote the AC_SUBSTed values. We take copies of the
18057 # variables and quote the copies for generation of the libtool script.
18058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18061 deplibs_check_method reload_flag reload_cmds need_locks \
18062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18063 lt_cv_sys_global_symbol_to_c_name_address \
18064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18065 old_postinstall_cmds old_postuninstall_cmds \
18066 compiler_RC \
18067 CC_RC \
18068 LD_RC \
18069 lt_prog_compiler_wl_RC \
18070 lt_prog_compiler_pic_RC \
18071 lt_prog_compiler_static_RC \
18072 lt_prog_compiler_no_builtin_flag_RC \
18073 export_dynamic_flag_spec_RC \
18074 thread_safe_flag_spec_RC \
18075 whole_archive_flag_spec_RC \
18076 enable_shared_with_static_runtimes_RC \
18077 old_archive_cmds_RC \
18078 old_archive_from_new_cmds_RC \
18079 predep_objects_RC \
18080 postdep_objects_RC \
18081 predeps_RC \
18082 postdeps_RC \
18083 compiler_lib_search_path_RC \
18084 archive_cmds_RC \
18085 archive_expsym_cmds_RC \
18086 postinstall_cmds_RC \
18087 postuninstall_cmds_RC \
18088 old_archive_from_expsyms_cmds_RC \
18089 allow_undefined_flag_RC \
18090 no_undefined_flag_RC \
18091 export_symbols_cmds_RC \
18092 hardcode_libdir_flag_spec_RC \
18093 hardcode_libdir_flag_spec_ld_RC \
18094 hardcode_libdir_separator_RC \
18095 hardcode_automatic_RC \
18096 module_cmds_RC \
18097 module_expsym_cmds_RC \
18098 lt_cv_prog_compiler_c_o_RC \
18099 exclude_expsyms_RC \
18100 include_expsyms_RC; do
18101
18102 case $var in
18103 old_archive_cmds_RC | \
18104 old_archive_from_new_cmds_RC | \
18105 archive_cmds_RC | \
18106 archive_expsym_cmds_RC | \
18107 module_cmds_RC | \
18108 module_expsym_cmds_RC | \
18109 old_archive_from_expsyms_cmds_RC | \
18110 export_symbols_cmds_RC | \
18111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18112 postinstall_cmds | postuninstall_cmds | \
18113 old_postinstall_cmds | old_postuninstall_cmds | \
18114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18115 # Double-quote double-evaled strings.
18116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18117 ;;
18118 *)
18119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18120 ;;
18121 esac
18122 done
18123
18124 case $lt_echo in
18125 *'\$0 --fallback-echo"')
18126 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18127 ;;
18128 esac
18129
18130cfgfile="$ofile"
18131
18132 cat <<__EOF__ >> "$cfgfile"
18133# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18134
18135# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18136
18137# Shell to use when invoking shell scripts.
18138SHELL=$lt_SHELL
18139
18140# Whether or not to build shared libraries.
18141build_libtool_libs=$enable_shared
18142
18143# Whether or not to build static libraries.
18144build_old_libs=$enable_static
18145
18146# Whether or not to add -lc for building shared libraries.
18147build_libtool_need_lc=$archive_cmds_need_lc_RC
18148
18149# Whether or not to disallow shared libs when runtime libs are static
18150allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18151
18152# Whether or not to optimize for fast installation.
18153fast_install=$enable_fast_install
18154
18155# The host system.
18156host_alias=$host_alias
18157host=$host
18158
18159# An echo program that does not interpret backslashes.
18160echo=$lt_echo
18161
18162# The archiver.
18163AR=$lt_AR
18164AR_FLAGS=$lt_AR_FLAGS
18165
18166# A C compiler.
18167LTCC=$lt_LTCC
18168
18169# A language-specific compiler.
18170CC=$lt_compiler_RC
18171
18172# Is the compiler the GNU C compiler?
18173with_gcc=$GCC_RC
18174
18175# An ERE matcher.
18176EGREP=$lt_EGREP
18177
18178# The linker used to build libraries.
18179LD=$lt_LD_RC
18180
18181# Whether we need hard or soft links.
18182LN_S=$lt_LN_S
18183
18184# A BSD-compatible nm program.
18185NM=$lt_NM
18186
18187# A symbol stripping program
18188STRIP=$STRIP
18189
18190# Used to examine libraries when file_magic_cmd begins "file"
18191MAGIC_CMD=$MAGIC_CMD
18192
18193# Used on cygwin: DLL creation program.
18194DLLTOOL="$DLLTOOL"
18195
18196# Used on cygwin: object dumper.
18197OBJDUMP="$OBJDUMP"
18198
18199# Used on cygwin: assembler.
18200AS="$AS"
18201
18202# The name of the directory that contains temporary libtool files.
18203objdir=$objdir
18204
18205# How to create reloadable object files.
18206reload_flag=$lt_reload_flag
18207reload_cmds=$lt_reload_cmds
18208
18209# How to pass a linker flag through the compiler.
18210wl=$lt_lt_prog_compiler_wl_RC
18211
18212# Object file suffix (normally "o").
18213objext="$ac_objext"
18214
18215# Old archive suffix (normally "a").
18216libext="$libext"
18217
18218# Shared library suffix (normally ".so").
18219shrext='$shrext'
18220
18221# Executable file suffix (normally "").
18222exeext="$exeext"
18223
18224# Additional compiler flags for building library objects.
18225pic_flag=$lt_lt_prog_compiler_pic_RC
18226pic_mode=$pic_mode
18227
18228# What is the maximum length of a command?
18229max_cmd_len=$lt_cv_sys_max_cmd_len
18230
18231# Does compiler simultaneously support -c and -o options?
18232compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18233
18234# Must we lock files when doing compilation ?
18235need_locks=$lt_need_locks
18236
18237# Do we need the lib prefix for modules?
18238need_lib_prefix=$need_lib_prefix
18239
18240# Do we need a version for libraries?
18241need_version=$need_version
18242
18243# Whether dlopen is supported.
18244dlopen_support=$enable_dlopen
18245
18246# Whether dlopen of programs is supported.
18247dlopen_self=$enable_dlopen_self
18248
18249# Whether dlopen of statically linked programs is supported.
18250dlopen_self_static=$enable_dlopen_self_static
18251
18252# Compiler flag to prevent dynamic linking.
18253link_static_flag=$lt_lt_prog_compiler_static_RC
18254
18255# Compiler flag to turn off builtin functions.
18256no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18257
18258# Compiler flag to allow reflexive dlopens.
18259export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18260
18261# Compiler flag to generate shared objects directly from archives.
18262whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18263
18264# Compiler flag to generate thread-safe objects.
18265thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18266
18267# Library versioning type.
18268version_type=$version_type
18269
18270# Format of library name prefix.
18271libname_spec=$lt_libname_spec
18272
18273# List of archive names. First name is the real one, the rest are links.
18274# The last name is the one that the linker finds with -lNAME.
18275library_names_spec=$lt_library_names_spec
18276
18277# The coded name of the library, if different from the real name.
18278soname_spec=$lt_soname_spec
18279
18280# Commands used to build and install an old-style archive.
18281RANLIB=$lt_RANLIB
18282old_archive_cmds=$lt_old_archive_cmds_RC
18283old_postinstall_cmds=$lt_old_postinstall_cmds
18284old_postuninstall_cmds=$lt_old_postuninstall_cmds
18285
18286# Create an old-style archive from a shared archive.
18287old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18288
18289# Create a temporary old-style archive to link instead of a shared archive.
18290old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18291
18292# Commands used to build and install a shared archive.
18293archive_cmds=$lt_archive_cmds_RC
18294archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18295postinstall_cmds=$lt_postinstall_cmds
18296postuninstall_cmds=$lt_postuninstall_cmds
18297
18298# Commands used to build a loadable module (assumed same as above if empty)
18299module_cmds=$lt_module_cmds_RC
18300module_expsym_cmds=$lt_module_expsym_cmds_RC
18301
18302# Commands to strip libraries.
18303old_striplib=$lt_old_striplib
18304striplib=$lt_striplib
18305
18306# Dependencies to place before the objects being linked to create a
18307# shared library.
18308predep_objects=$lt_predep_objects_RC
18309
18310# Dependencies to place after the objects being linked to create a
18311# shared library.
18312postdep_objects=$lt_postdep_objects_RC
18313
18314# Dependencies to place before the objects being linked to create a
18315# shared library.
18316predeps=$lt_predeps_RC
18317
18318# Dependencies to place after the objects being linked to create a
18319# shared library.
18320postdeps=$lt_postdeps_RC
18321
18322# The library search path used internally by the compiler when linking
18323# a shared library.
18324compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18325
18326# Method to check whether dependent libraries are shared objects.
18327deplibs_check_method=$lt_deplibs_check_method
18328
18329# Command to use when deplibs_check_method == file_magic.
18330file_magic_cmd=$lt_file_magic_cmd
18331
18332# Flag that allows shared libraries with undefined symbols to be built.
18333allow_undefined_flag=$lt_allow_undefined_flag_RC
18334
18335# Flag that forces no undefined symbols.
18336no_undefined_flag=$lt_no_undefined_flag_RC
18337
18338# Commands used to finish a libtool library installation in a directory.
18339finish_cmds=$lt_finish_cmds
18340
18341# Same as above, but a single script fragment to be evaled but not shown.
18342finish_eval=$lt_finish_eval
18343
18344# Take the output of nm and produce a listing of raw symbols and C names.
18345global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18346
18347# Transform the output of nm in a proper C declaration
18348global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18349
18350# Transform the output of nm in a C name address pair
18351global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18352
18353# This is the shared library runtime path variable.
18354runpath_var=$runpath_var
18355
18356# This is the shared library path variable.
18357shlibpath_var=$shlibpath_var
18358
18359# Is shlibpath searched before the hard-coded library search path?
18360shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18361
18362# How to hardcode a shared library path into an executable.
18363hardcode_action=$hardcode_action_RC
18364
18365# Whether we should hardcode library paths into libraries.
18366hardcode_into_libs=$hardcode_into_libs
18367
18368# Flag to hardcode \$libdir into a binary during linking.
18369# This must work even if \$libdir does not exist.
18370hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18371
18372# If ld is used when linking, flag to hardcode \$libdir into
18373# a binary during linking. This must work even if \$libdir does
18374# not exist.
18375hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18376
18377# Whether we need a single -rpath flag with a separated argument.
18378hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18379
18380# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18381# resulting binary.
18382hardcode_direct=$hardcode_direct_RC
18383
18384# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18385# resulting binary.
18386hardcode_minus_L=$hardcode_minus_L_RC
18387
18388# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18389# the resulting binary.
18390hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18391
18392# Set to yes if building a shared library automatically hardcodes DIR into the library
18393# and all subsequent libraries and executables linked against it.
18394hardcode_automatic=$hardcode_automatic_RC
18395
18396# Variables whose values should be saved in libtool wrapper scripts and
18397# restored at relink time.
18398variables_saved_for_relink="$variables_saved_for_relink"
18399
18400# Whether libtool must link a program against all its dependency libraries.
18401link_all_deplibs=$link_all_deplibs_RC
18402
18403# Compile-time system search path for libraries
18404sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18405
18406# Run-time system search path for libraries
18407sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18408
18409# Fix the shell variable \$srcfile for the compiler.
18410fix_srcfile_path="$fix_srcfile_path_RC"
18411
18412# Set to yes if exported symbols are required.
18413always_export_symbols=$always_export_symbols_RC
18414
18415# The commands to list exported symbols.
18416export_symbols_cmds=$lt_export_symbols_cmds_RC
18417
18418# The commands to extract the exported symbol list from a shared archive.
18419extract_expsyms_cmds=$lt_extract_expsyms_cmds
18420
18421# Symbols that should not be listed in the preloaded symbols.
18422exclude_expsyms=$lt_exclude_expsyms_RC
18423
18424# Symbols that must always be exported.
18425include_expsyms=$lt_include_expsyms_RC
18426
18427# ### END LIBTOOL TAG CONFIG: $tagname
18428
18429__EOF__
18430
18431
18432else
18433 # If there is no Makefile yet, we rely on a make rule to execute
18434 # `config.status --recheck' to rerun these tests and create the
18435 # libtool script then.
18436 test -f Makefile && make "$ltmain"
18437fi
18438
18439
18440ac_ext=c
18441ac_cpp='$CPP $CPPFLAGS'
18442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18444ac_compiler_gnu=$ac_cv_c_compiler_gnu
18445
18446CC="$lt_save_CC"
18447
18448 ;;
18449
18450 *)
18451 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18452echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18453 { (exit 1); exit 1; }; }
18454 ;;
18455 esac
18456
18457 # Append the new tag name to the list of available tags.
18458 if test -n "$tagname" ; then
18459 available_tags="$available_tags $tagname"
18460 fi
18461 fi
18462 done
18463 IFS="$lt_save_ifs"
18464
18465 # Now substitute the updated list of available tags.
18466 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18467 mv "${ofile}T" "$ofile"
18468 chmod +x "$ofile"
18469 else
18470 rm -f "${ofile}T"
18471 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18472echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18473 { (exit 1); exit 1; }; }
18474 fi
18475fi
John Criswell7a73b802003-06-30 21:59:07 +000018476
18477
18478
18479# This can be used to rebuild libtool when needed
18480LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18481
18482# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018483LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018484
18485# Prevent multiple expansion
18486
18487
18488
John Criswell47fdd832003-07-14 16:52:07 +000018489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
John Criswellde00db22003-08-25 16:49:54 +000018507# Extract the first word of "pwd", so it can be a program name with args.
18508set dummy pwd; ac_word=$2
18509echo "$as_me:$LINENO: checking for $ac_word" >&5
18510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18511if test "${ac_cv_path_RPWD+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513else
18514 case $RPWD in
18515 [\\/]* | ?:[\\/]*)
18516 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18517 ;;
18518 *)
18519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520for as_dir in $PATH
18521do
18522 IFS=$as_save_IFS
18523 test -z "$as_dir" && as_dir=.
18524 for ac_exec_ext in '' $ac_executable_extensions; do
18525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18526 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18528 break 2
18529 fi
18530done
18531done
18532
John Criswell39827c82003-09-23 15:28:52 +000018533 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018534 ;;
18535esac
18536fi
18537RPWD=$ac_cv_path_RPWD
18538
18539if test -n "$RPWD"; then
18540 echo "$as_me:$LINENO: result: $RPWD" >&5
18541echo "${ECHO_T}$RPWD" >&6
18542else
18543 echo "$as_me:$LINENO: result: no" >&5
18544echo "${ECHO_T}no" >&6
18545fi
18546
John Criswell39827c82003-09-23 15:28:52 +000018547if test ${RPWD} = "false"
18548then
18549 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18550echo "$as_me: error: pwd required but not found" >&2;}
18551 { (exit 1); exit 1; }; }
18552fi
18553
John Criswell7a73b802003-06-30 21:59:07 +000018554# Extract the first word of "ar", so it can be a program name with args.
18555set dummy ar; ac_word=$2
18556echo "$as_me:$LINENO: checking for $ac_word" >&5
18557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18558if test "${ac_cv_path_AR+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560else
18561 case $AR in
18562 [\\/]* | ?:[\\/]*)
18563 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18564 ;;
18565 *)
18566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18567for as_dir in $PATH
18568do
18569 IFS=$as_save_IFS
18570 test -z "$as_dir" && as_dir=.
18571 for ac_exec_ext in '' $ac_executable_extensions; do
18572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18573 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18575 break 2
18576 fi
18577done
18578done
18579
John Criswell39827c82003-09-23 15:28:52 +000018580 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018581 ;;
18582esac
18583fi
18584AR=$ac_cv_path_AR
18585
18586if test -n "$AR"; then
18587 echo "$as_me:$LINENO: result: $AR" >&5
18588echo "${ECHO_T}$AR" >&6
18589else
18590 echo "$as_me:$LINENO: result: no" >&5
18591echo "${ECHO_T}no" >&6
18592fi
18593
John Criswell39827c82003-09-23 15:28:52 +000018594if test ${AR} = "false"
18595then
18596 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18597echo "$as_me: error: ar required but not found" >&2;}
18598 { (exit 1); exit 1; }; }
18599fi
18600
John Criswell7a73b802003-06-30 21:59:07 +000018601# Extract the first word of "sed", so it can be a program name with args.
18602set dummy sed; ac_word=$2
18603echo "$as_me:$LINENO: checking for $ac_word" >&5
18604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18605if test "${ac_cv_path_SED+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607else
18608 case $SED in
18609 [\\/]* | ?:[\\/]*)
18610 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18611 ;;
18612 *)
18613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614for as_dir in $PATH
18615do
18616 IFS=$as_save_IFS
18617 test -z "$as_dir" && as_dir=.
18618 for ac_exec_ext in '' $ac_executable_extensions; do
18619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18622 break 2
18623 fi
18624done
18625done
18626
John Criswell39827c82003-09-23 15:28:52 +000018627 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018628 ;;
18629esac
18630fi
18631SED=$ac_cv_path_SED
18632
18633if test -n "$SED"; then
18634 echo "$as_me:$LINENO: result: $SED" >&5
18635echo "${ECHO_T}$SED" >&6
18636else
18637 echo "$as_me:$LINENO: result: no" >&5
18638echo "${ECHO_T}no" >&6
18639fi
18640
John Criswell39827c82003-09-23 15:28:52 +000018641if test ${SED} = "false"
18642then
18643 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18644echo "$as_me: error: sed required but not found" >&2;}
18645 { (exit 1); exit 1; }; }
18646fi
18647
John Criswell7a73b802003-06-30 21:59:07 +000018648# Extract the first word of "rm", so it can be a program name with args.
18649set dummy rm; ac_word=$2
18650echo "$as_me:$LINENO: checking for $ac_word" >&5
18651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18652if test "${ac_cv_path_RM+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18654else
18655 case $RM in
18656 [\\/]* | ?:[\\/]*)
18657 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18658 ;;
18659 *)
18660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661for as_dir in $PATH
18662do
18663 IFS=$as_save_IFS
18664 test -z "$as_dir" && as_dir=.
18665 for ac_exec_ext in '' $ac_executable_extensions; do
18666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18667 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18669 break 2
18670 fi
18671done
18672done
18673
John Criswell39827c82003-09-23 15:28:52 +000018674 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018675 ;;
18676esac
18677fi
18678RM=$ac_cv_path_RM
18679
18680if test -n "$RM"; then
18681 echo "$as_me:$LINENO: result: $RM" >&5
18682echo "${ECHO_T}$RM" >&6
18683else
18684 echo "$as_me:$LINENO: result: no" >&5
18685echo "${ECHO_T}no" >&6
18686fi
18687
John Criswell39827c82003-09-23 15:28:52 +000018688if test ${RM} = "false"
18689then
18690 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18691echo "$as_me: error: rm required but not found" >&2;}
18692 { (exit 1); exit 1; }; }
18693fi
18694
John Criswell7a73b802003-06-30 21:59:07 +000018695# Extract the first word of "echo", so it can be a program name with args.
18696set dummy echo; ac_word=$2
18697echo "$as_me:$LINENO: checking for $ac_word" >&5
18698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18699if test "${ac_cv_path_ECHO+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18701else
18702 case $ECHO in
18703 [\\/]* | ?:[\\/]*)
18704 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18705 ;;
18706 *)
18707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18708for as_dir in $PATH
18709do
18710 IFS=$as_save_IFS
18711 test -z "$as_dir" && as_dir=.
18712 for ac_exec_ext in '' $ac_executable_extensions; do
18713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18714 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18716 break 2
18717 fi
18718done
18719done
18720
John Criswell39827c82003-09-23 15:28:52 +000018721 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018722 ;;
18723esac
18724fi
18725ECHO=$ac_cv_path_ECHO
18726
18727if test -n "$ECHO"; then
18728 echo "$as_me:$LINENO: result: $ECHO" >&5
18729echo "${ECHO_T}$ECHO" >&6
18730else
18731 echo "$as_me:$LINENO: result: no" >&5
18732echo "${ECHO_T}no" >&6
18733fi
18734
John Criswell39827c82003-09-23 15:28:52 +000018735if test ${ECHO} = "false"
18736then
18737 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18738echo "$as_me: error: echo required but not found" >&2;}
18739 { (exit 1); exit 1; }; }
18740fi
18741
John Criswell7a73b802003-06-30 21:59:07 +000018742# Extract the first word of "mkdir", so it can be a program name with args.
18743set dummy mkdir; ac_word=$2
18744echo "$as_me:$LINENO: checking for $ac_word" >&5
18745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18746if test "${ac_cv_path_MKDIR+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18748else
18749 case $MKDIR in
18750 [\\/]* | ?:[\\/]*)
18751 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18752 ;;
18753 *)
18754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18755for as_dir in $PATH
18756do
18757 IFS=$as_save_IFS
18758 test -z "$as_dir" && as_dir=.
18759 for ac_exec_ext in '' $ac_executable_extensions; do
18760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18761 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18763 break 2
18764 fi
18765done
18766done
18767
John Criswell39827c82003-09-23 15:28:52 +000018768 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018769 ;;
18770esac
18771fi
18772MKDIR=$ac_cv_path_MKDIR
18773
18774if test -n "$MKDIR"; then
18775 echo "$as_me:$LINENO: result: $MKDIR" >&5
18776echo "${ECHO_T}$MKDIR" >&6
18777else
18778 echo "$as_me:$LINENO: result: no" >&5
18779echo "${ECHO_T}no" >&6
18780fi
18781
John Criswell39827c82003-09-23 15:28:52 +000018782if test ${MKDIR} = "false"
18783then
18784 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18785echo "$as_me: error: mkdir required but not found" >&2;}
18786 { (exit 1); exit 1; }; }
18787fi
18788
John Criswell7a73b802003-06-30 21:59:07 +000018789# Extract the first word of "date", so it can be a program name with args.
18790set dummy date; ac_word=$2
18791echo "$as_me:$LINENO: checking for $ac_word" >&5
18792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18793if test "${ac_cv_path_DATE+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795else
18796 case $DATE in
18797 [\\/]* | ?:[\\/]*)
18798 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18799 ;;
18800 *)
18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802for as_dir in $PATH
18803do
18804 IFS=$as_save_IFS
18805 test -z "$as_dir" && as_dir=.
18806 for ac_exec_ext in '' $ac_executable_extensions; do
18807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18810 break 2
18811 fi
18812done
18813done
18814
John Criswell39827c82003-09-23 15:28:52 +000018815 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018816 ;;
18817esac
18818fi
18819DATE=$ac_cv_path_DATE
18820
18821if test -n "$DATE"; then
18822 echo "$as_me:$LINENO: result: $DATE" >&5
18823echo "${ECHO_T}$DATE" >&6
18824else
18825 echo "$as_me:$LINENO: result: no" >&5
18826echo "${ECHO_T}no" >&6
18827fi
18828
John Criswell39827c82003-09-23 15:28:52 +000018829if test ${DATE} = "false"
18830then
18831 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18832echo "$as_me: error: date required but not found" >&2;}
18833 { (exit 1); exit 1; }; }
18834fi
18835
John Criswell7a73b802003-06-30 21:59:07 +000018836# Extract the first word of "mv", so it can be a program name with args.
18837set dummy mv; ac_word=$2
18838echo "$as_me:$LINENO: checking for $ac_word" >&5
18839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18840if test "${ac_cv_path_MV+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 case $MV in
18844 [\\/]* | ?:[\\/]*)
18845 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18846 ;;
18847 *)
18848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18849for as_dir in $PATH
18850do
18851 IFS=$as_save_IFS
18852 test -z "$as_dir" && as_dir=.
18853 for ac_exec_ext in '' $ac_executable_extensions; do
18854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18855 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18857 break 2
18858 fi
18859done
18860done
18861
John Criswell39827c82003-09-23 15:28:52 +000018862 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018863 ;;
18864esac
18865fi
18866MV=$ac_cv_path_MV
18867
18868if test -n "$MV"; then
18869 echo "$as_me:$LINENO: result: $MV" >&5
18870echo "${ECHO_T}$MV" >&6
18871else
18872 echo "$as_me:$LINENO: result: no" >&5
18873echo "${ECHO_T}no" >&6
18874fi
18875
John Criswell39827c82003-09-23 15:28:52 +000018876if test ${MV} = "false"
18877then
18878 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18879echo "$as_me: error: mv required but not found" >&2;}
18880 { (exit 1); exit 1; }; }
18881fi
18882
John Criswell7a73b802003-06-30 21:59:07 +000018883# Extract the first word of "dot", so it can be a program name with args.
18884set dummy dot; ac_word=$2
18885echo "$as_me:$LINENO: checking for $ac_word" >&5
18886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18887if test "${ac_cv_path_DOT+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890 case $DOT in
18891 [\\/]* | ?:[\\/]*)
18892 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18893 ;;
18894 *)
18895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896for as_dir in $PATH
18897do
18898 IFS=$as_save_IFS
18899 test -z "$as_dir" && as_dir=.
18900 for ac_exec_ext in '' $ac_executable_extensions; do
18901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18902 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18904 break 2
18905 fi
18906done
18907done
18908
John Criswell39827c82003-09-23 15:28:52 +000018909 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018910 ;;
18911esac
18912fi
18913DOT=$ac_cv_path_DOT
18914
18915if test -n "$DOT"; then
18916 echo "$as_me:$LINENO: result: $DOT" >&5
18917echo "${ECHO_T}$DOT" >&6
18918else
18919 echo "$as_me:$LINENO: result: no" >&5
18920echo "${ECHO_T}no" >&6
18921fi
18922
John Criswell39827c82003-09-23 15:28:52 +000018923
John Criswell7a73b802003-06-30 21:59:07 +000018924# Extract the first word of "etags", so it can be a program name with args.
18925set dummy etags; ac_word=$2
18926echo "$as_me:$LINENO: checking for $ac_word" >&5
18927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18928if test "${ac_cv_path_ETAGS+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930else
18931 case $ETAGS in
18932 [\\/]* | ?:[\\/]*)
18933 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18934 ;;
18935 *)
18936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937for as_dir in $PATH
18938do
18939 IFS=$as_save_IFS
18940 test -z "$as_dir" && as_dir=.
18941 for ac_exec_ext in '' $ac_executable_extensions; do
18942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18943 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18945 break 2
18946 fi
18947done
18948done
18949
John Criswell39827c82003-09-23 15:28:52 +000018950 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018951 ;;
18952esac
18953fi
18954ETAGS=$ac_cv_path_ETAGS
18955
18956if test -n "$ETAGS"; then
18957 echo "$as_me:$LINENO: result: $ETAGS" >&5
18958echo "${ECHO_T}$ETAGS" >&6
18959else
18960 echo "$as_me:$LINENO: result: no" >&5
18961echo "${ECHO_T}no" >&6
18962fi
18963
John Criswell39827c82003-09-23 15:28:52 +000018964
John Criswellde00db22003-08-25 16:49:54 +000018965# Extract the first word of "python", so it can be a program name with args.
18966set dummy python; ac_word=$2
18967echo "$as_me:$LINENO: checking for $ac_word" >&5
18968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969if test "${ac_cv_path_PYTHON+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972 case $PYTHON in
18973 [\\/]* | ?:[\\/]*)
18974 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18975 ;;
18976 *)
18977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978for as_dir in $PATH
18979do
18980 IFS=$as_save_IFS
18981 test -z "$as_dir" && as_dir=.
18982 for ac_exec_ext in '' $ac_executable_extensions; do
18983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986 break 2
18987 fi
18988done
18989done
18990
John Criswell39827c82003-09-23 15:28:52 +000018991 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018992 ;;
18993esac
18994fi
18995PYTHON=$ac_cv_path_PYTHON
18996
18997if test -n "$PYTHON"; then
18998 echo "$as_me:$LINENO: result: $PYTHON" >&5
18999echo "${ECHO_T}$PYTHON" >&6
19000else
19001 echo "$as_me:$LINENO: result: no" >&5
19002echo "${ECHO_T}no" >&6
19003fi
19004
John Criswell39827c82003-09-23 15:28:52 +000019005if test ${PYTHON} = "false"
19006then
John Criswell61095982003-09-23 20:46:32 +000019007 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19008echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019009fi
19010
John Criswellde00db22003-08-25 16:49:54 +000019011# Extract the first word of "qmtest", so it can be a program name with args.
19012set dummy qmtest; ac_word=$2
19013echo "$as_me:$LINENO: checking for $ac_word" >&5
19014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19015if test "${ac_cv_path_QMTEST+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018 case $QMTEST in
19019 [\\/]* | ?:[\\/]*)
19020 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19021 ;;
19022 *)
19023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024for as_dir in $PATH
19025do
19026 IFS=$as_save_IFS
19027 test -z "$as_dir" && as_dir=.
19028 for ac_exec_ext in '' $ac_executable_extensions; do
19029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19030 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19032 break 2
19033 fi
19034done
19035done
19036
John Criswell39827c82003-09-23 15:28:52 +000019037 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019038 ;;
19039esac
19040fi
19041QMTEST=$ac_cv_path_QMTEST
19042
19043if test -n "$QMTEST"; then
19044 echo "$as_me:$LINENO: result: $QMTEST" >&5
19045echo "${ECHO_T}$QMTEST" >&6
19046else
19047 echo "$as_me:$LINENO: result: no" >&5
19048echo "${ECHO_T}no" >&6
19049fi
19050
John Criswell39827c82003-09-23 15:28:52 +000019051if test ${QMTEST} = "false"
19052then
John Criswell61095982003-09-23 20:46:32 +000019053 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19054echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019055fi
John Criswellde00db22003-08-25 16:49:54 +000019056
19057pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19058pymajor=`echo $pyversion | cut -d. -f1`
19059pyminor=`echo $pyversion | cut -d. -f2`
19060
19061if test "$pymajor" -ge "2"
19062then
19063 if test "$pymajor" -eq "2"
19064 then
19065 if test "$pyminor" -lt "2"
19066 then
19067 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19068echo "$as_me: error: Python 2.2 or greater required" >&2;}
19069 { (exit 1); exit 1; }; }
19070 fi
19071 fi
19072else
19073 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19074echo "$as_me: error: Python 2.2 or greater required" >&2;}
19075 { (exit 1); exit 1; }; }
19076fi
John Criswell7a73b802003-06-30 21:59:07 +000019077
19078
19079
19080
19081
19082echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19083echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19084if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086else
19087 ac_check_lib_save_LIBS=$LIBS
19088LIBS="-lelf $LIBS"
19089cat >conftest.$ac_ext <<_ACEOF
19090#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019091/* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019096
19097/* Override any gcc2 internal prototype to avoid an error. */
19098#ifdef __cplusplus
19099extern "C"
19100#endif
19101/* We use char because int might match the return type of a gcc2
19102 builtin and then its argument prototype would still apply. */
19103char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019104int
19105main ()
19106{
19107elf_begin ();
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext conftest$ac_exeext
19113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19114 (eval $ac_link) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_lib_elf_elf_begin=yes
19125else
19126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019127sed 's/^/| /' conftest.$ac_ext >&5
19128
John Criswell7a73b802003-06-30 21:59:07 +000019129ac_cv_lib_elf_elf_begin=no
19130fi
19131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19132LIBS=$ac_check_lib_save_LIBS
19133fi
19134echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19135echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19136if test $ac_cv_lib_elf_elf_begin = yes; then
19137 cat >>confdefs.h <<_ACEOF
19138#define HAVE_LIBELF 1
19139_ACEOF
19140
19141 LIBS="-lelf $LIBS"
19142
19143fi
19144
19145
19146echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19147echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19148if test "${ac_cv_search_dlopen+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150else
19151 ac_func_search_save_LIBS=$LIBS
19152ac_cv_search_dlopen=no
19153cat >conftest.$ac_ext <<_ACEOF
19154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019160
19161/* Override any gcc2 internal prototype to avoid an error. */
19162#ifdef __cplusplus
19163extern "C"
19164#endif
19165/* We use char because int might match the return type of a gcc2
19166 builtin and then its argument prototype would still apply. */
19167char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019168int
19169main ()
19170{
19171dlopen ();
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178 (eval $ac_link) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_search_dlopen="none required"
19189else
19190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019191sed 's/^/| /' conftest.$ac_ext >&5
19192
John Criswell7a73b802003-06-30 21:59:07 +000019193fi
19194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19195if test "$ac_cv_search_dlopen" = no; then
19196 for ac_lib in dl; do
19197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19198 cat >conftest.$ac_ext <<_ACEOF
19199#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019205
19206/* Override any gcc2 internal prototype to avoid an error. */
19207#ifdef __cplusplus
19208extern "C"
19209#endif
19210/* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19212char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019213int
19214main ()
19215{
19216dlopen ();
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext conftest$ac_exeext
19222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_search_dlopen="-l$ac_lib"
19234break
19235else
19236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019237sed 's/^/| /' conftest.$ac_ext >&5
19238
John Criswell7a73b802003-06-30 21:59:07 +000019239fi
19240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19241 done
19242fi
19243LIBS=$ac_func_search_save_LIBS
19244fi
19245echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19246echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19247if test "$ac_cv_search_dlopen" != no; then
19248 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019249
19250cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019251#define HAVE_DLOPEN 1
19252_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019253
19254else
Brian Gaekec45be042003-10-07 06:01:34 +000019255 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19256echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019257fi
19258
19259
19260echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19261echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19262if test "${ac_cv_search_mallinfo+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264else
19265 ac_func_search_save_LIBS=$LIBS
19266ac_cv_search_mallinfo=no
19267cat >conftest.$ac_ext <<_ACEOF
19268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019274
19275/* Override any gcc2 internal prototype to avoid an error. */
19276#ifdef __cplusplus
19277extern "C"
19278#endif
19279/* We use char because int might match the return type of a gcc2
19280 builtin and then its argument prototype would still apply. */
19281char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019282int
19283main ()
19284{
19285mallinfo ();
19286 ;
19287 return 0;
19288}
19289_ACEOF
19290rm -f conftest.$ac_objext conftest$ac_exeext
19291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -s conftest$ac_exeext'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_cv_search_mallinfo="none required"
19303else
19304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019305sed 's/^/| /' conftest.$ac_ext >&5
19306
John Criswell7a73b802003-06-30 21:59:07 +000019307fi
19308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19309if test "$ac_cv_search_mallinfo" = no; then
19310 for ac_lib in malloc; do
19311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19312 cat >conftest.$ac_ext <<_ACEOF
19313#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019314/* confdefs.h. */
19315_ACEOF
19316cat confdefs.h >>conftest.$ac_ext
19317cat >>conftest.$ac_ext <<_ACEOF
19318/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019319
19320/* Override any gcc2 internal prototype to avoid an error. */
19321#ifdef __cplusplus
19322extern "C"
19323#endif
19324/* We use char because int might match the return type of a gcc2
19325 builtin and then its argument prototype would still apply. */
19326char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019327int
19328main ()
19329{
19330mallinfo ();
19331 ;
19332 return 0;
19333}
19334_ACEOF
19335rm -f conftest.$ac_objext conftest$ac_exeext
19336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337 (eval $ac_link) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -s conftest$ac_exeext'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_search_mallinfo="-l$ac_lib"
19348break
19349else
19350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019351sed 's/^/| /' conftest.$ac_ext >&5
19352
John Criswell7a73b802003-06-30 21:59:07 +000019353fi
19354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19355 done
19356fi
19357LIBS=$ac_func_search_save_LIBS
19358fi
19359echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19360echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19361if test "$ac_cv_search_mallinfo" != no; then
19362 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019363
19364cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019365#define HAVE_MALLINFO 1
19366_ACEOF
19367
19368fi
19369
19370
19371
19372echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19373echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19374if test "${ac_cv_header_stdc+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19376else
19377 cat >conftest.$ac_ext <<_ACEOF
19378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019379/* confdefs.h. */
19380_ACEOF
19381cat confdefs.h >>conftest.$ac_ext
19382cat >>conftest.$ac_ext <<_ACEOF
19383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019384#include <stdlib.h>
19385#include <stdarg.h>
19386#include <string.h>
19387#include <float.h>
19388
John Criswell0c38eaf2003-09-10 15:17:25 +000019389int
19390main ()
19391{
19392
19393 ;
19394 return 0;
19395}
John Criswell7a73b802003-06-30 21:59:07 +000019396_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019397rm -f conftest.$ac_objext
19398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19399 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019400 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019402 (exit $ac_status); } &&
19403 { ac_try='test -s conftest.$ac_objext'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019409 ac_cv_header_stdc=yes
19410else
19411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019412sed 's/^/| /' conftest.$ac_ext >&5
19413
19414ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019415fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019416rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019417
19418if test $ac_cv_header_stdc = yes; then
19419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19420 cat >conftest.$ac_ext <<_ACEOF
19421#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019427#include <string.h>
19428
19429_ACEOF
19430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019431 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019432 :
19433else
19434 ac_cv_header_stdc=no
19435fi
19436rm -f conftest*
19437
19438fi
19439
19440if test $ac_cv_header_stdc = yes; then
19441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19442 cat >conftest.$ac_ext <<_ACEOF
19443#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019444/* confdefs.h. */
19445_ACEOF
19446cat confdefs.h >>conftest.$ac_ext
19447cat >>conftest.$ac_ext <<_ACEOF
19448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019449#include <stdlib.h>
19450
19451_ACEOF
19452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019453 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019454 :
19455else
19456 ac_cv_header_stdc=no
19457fi
19458rm -f conftest*
19459
19460fi
19461
19462if test $ac_cv_header_stdc = yes; then
19463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19464 if test "$cross_compiling" = yes; then
19465 :
19466else
19467 cat >conftest.$ac_ext <<_ACEOF
19468#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019474#include <ctype.h>
19475#if ((' ' & 0x0FF) == 0x020)
19476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19478#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019479# define ISLOWER(c) \
19480 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019481 || ('j' <= (c) && (c) <= 'r') \
19482 || ('s' <= (c) && (c) <= 'z'))
19483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19484#endif
19485
19486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19487int
19488main ()
19489{
19490 int i;
19491 for (i = 0; i < 256; i++)
19492 if (XOR (islower (i), ISLOWER (i))
19493 || toupper (i) != TOUPPER (i))
19494 exit(2);
19495 exit (0);
19496}
19497_ACEOF
19498rm -f conftest$ac_exeext
19499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19500 (eval $ac_link) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 :
19510else
19511 echo "$as_me: program exited with status $ac_status" >&5
19512echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019513sed 's/^/| /' conftest.$ac_ext >&5
19514
John Criswell7a73b802003-06-30 21:59:07 +000019515( exit $ac_status )
19516ac_cv_header_stdc=no
19517fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019518rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019519fi
19520fi
19521fi
19522echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19523echo "${ECHO_T}$ac_cv_header_stdc" >&6
19524if test $ac_cv_header_stdc = yes; then
19525
19526cat >>confdefs.h <<\_ACEOF
19527#define STDC_HEADERS 1
19528_ACEOF
19529
19530fi
19531
19532echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19533echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19534if test "${ac_cv_header_sys_wait_h+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19536else
19537 cat >conftest.$ac_ext <<_ACEOF
19538#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019539/* confdefs.h. */
19540_ACEOF
19541cat confdefs.h >>conftest.$ac_ext
19542cat >>conftest.$ac_ext <<_ACEOF
19543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019544#include <sys/types.h>
19545#include <sys/wait.h>
19546#ifndef WEXITSTATUS
19547# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19548#endif
19549#ifndef WIFEXITED
19550# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19551#endif
19552
John Criswell7a73b802003-06-30 21:59:07 +000019553int
19554main ()
19555{
19556 int s;
19557 wait (&s);
19558 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19559 ;
19560 return 0;
19561}
19562_ACEOF
19563rm -f conftest.$ac_objext
19564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565 (eval $ac_compile) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -s conftest.$ac_objext'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_header_sys_wait_h=yes
19576else
19577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019578sed 's/^/| /' conftest.$ac_ext >&5
19579
John Criswell7a73b802003-06-30 21:59:07 +000019580ac_cv_header_sys_wait_h=no
19581fi
19582rm -f conftest.$ac_objext conftest.$ac_ext
19583fi
19584echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19585echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19586if test $ac_cv_header_sys_wait_h = yes; then
19587
19588cat >>confdefs.h <<\_ACEOF
19589#define HAVE_SYS_WAIT_H 1
19590_ACEOF
19591
19592fi
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19604do
19605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19606if eval "test \"\${$as_ac_Header+set}\" = set"; then
19607 echo "$as_me:$LINENO: checking for $ac_header" >&5
19608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19609if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611fi
19612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19614else
19615 # Is the header compilable?
19616echo "$as_me:$LINENO: checking $ac_header usability" >&5
19617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19618cat >conftest.$ac_ext <<_ACEOF
19619#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019625$ac_includes_default
19626#include <$ac_header>
19627_ACEOF
19628rm -f conftest.$ac_objext
19629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630 (eval $ac_compile) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_header_compiler=yes
19641else
19642 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019643sed 's/^/| /' conftest.$ac_ext >&5
19644
John Criswell7a73b802003-06-30 21:59:07 +000019645ac_header_compiler=no
19646fi
19647rm -f conftest.$ac_objext conftest.$ac_ext
19648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19649echo "${ECHO_T}$ac_header_compiler" >&6
19650
19651# Is the header present?
19652echo "$as_me:$LINENO: checking $ac_header presence" >&5
19653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19654cat >conftest.$ac_ext <<_ACEOF
19655#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019656/* confdefs.h. */
19657_ACEOF
19658cat confdefs.h >>conftest.$ac_ext
19659cat >>conftest.$ac_ext <<_ACEOF
19660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019661#include <$ac_header>
19662_ACEOF
19663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19665 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019666 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } >/dev/null; then
19671 if test -s conftest.err; then
19672 ac_cpp_err=$ac_c_preproc_warn_flag
19673 else
19674 ac_cpp_err=
19675 fi
19676else
19677 ac_cpp_err=yes
19678fi
19679if test -z "$ac_cpp_err"; then
19680 ac_header_preproc=yes
19681else
19682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019683sed 's/^/| /' conftest.$ac_ext >&5
19684
John Criswell7a73b802003-06-30 21:59:07 +000019685 ac_header_preproc=no
19686fi
19687rm -f conftest.err conftest.$ac_ext
19688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19689echo "${ECHO_T}$ac_header_preproc" >&6
19690
19691# So? What about this header?
19692case $ac_header_compiler:$ac_header_preproc in
19693 yes:no )
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19698 (
19699 cat <<\_ASBOX
19700## ------------------------------------ ##
19701## Report this to bug-autoconf@gnu.org. ##
19702## ------------------------------------ ##
19703_ASBOX
19704 ) |
19705 sed "s/^/$as_me: WARNING: /" >&2
19706 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019707 no:yes )
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19709echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19711echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19714 (
19715 cat <<\_ASBOX
19716## ------------------------------------ ##
19717## Report this to bug-autoconf@gnu.org. ##
19718## ------------------------------------ ##
19719_ASBOX
19720 ) |
19721 sed "s/^/$as_me: WARNING: /" >&2
19722 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019723esac
19724echo "$as_me:$LINENO: checking for $ac_header" >&5
19725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19726if eval "test \"\${$as_ac_Header+set}\" = set"; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19728else
19729 eval "$as_ac_Header=$ac_header_preproc"
19730fi
19731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19733
19734fi
19735if test `eval echo '${'$as_ac_Header'}'` = yes; then
19736 cat >>confdefs.h <<_ACEOF
19737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19738_ACEOF
19739
19740fi
19741
19742done
19743
19744
19745
19746
19747
John Criswelle8a63eb2003-10-23 19:16:12 +000019748for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019749do
19750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19751if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752 echo "$as_me:$LINENO: checking for $ac_header" >&5
19753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19754if eval "test \"\${$as_ac_Header+set}\" = set"; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756fi
19757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19759else
19760 # Is the header compilable?
19761echo "$as_me:$LINENO: checking $ac_header usability" >&5
19762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19763cat >conftest.$ac_ext <<_ACEOF
19764#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019770$ac_includes_default
19771#include <$ac_header>
19772_ACEOF
19773rm -f conftest.$ac_objext
19774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19775 (eval $ac_compile) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -s conftest.$ac_objext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_header_compiler=yes
19786else
19787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019788sed 's/^/| /' conftest.$ac_ext >&5
19789
John Criswell7a73b802003-06-30 21:59:07 +000019790ac_header_compiler=no
19791fi
19792rm -f conftest.$ac_objext conftest.$ac_ext
19793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794echo "${ECHO_T}$ac_header_compiler" >&6
19795
19796# Is the header present?
19797echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19799cat >conftest.$ac_ext <<_ACEOF
19800#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019806#include <$ac_header>
19807_ACEOF
19808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19810 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019811 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } >/dev/null; then
19816 if test -s conftest.err; then
19817 ac_cpp_err=$ac_c_preproc_warn_flag
19818 else
19819 ac_cpp_err=
19820 fi
19821else
19822 ac_cpp_err=yes
19823fi
19824if test -z "$ac_cpp_err"; then
19825 ac_header_preproc=yes
19826else
19827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019828sed 's/^/| /' conftest.$ac_ext >&5
19829
John Criswell7a73b802003-06-30 21:59:07 +000019830 ac_header_preproc=no
19831fi
19832rm -f conftest.err conftest.$ac_ext
19833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19834echo "${ECHO_T}$ac_header_preproc" >&6
19835
19836# So? What about this header?
19837case $ac_header_compiler:$ac_header_preproc in
19838 yes:no )
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843 (
19844 cat <<\_ASBOX
19845## ------------------------------------ ##
19846## Report this to bug-autoconf@gnu.org. ##
19847## ------------------------------------ ##
19848_ASBOX
19849 ) |
19850 sed "s/^/$as_me: WARNING: /" >&2
19851 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019852 no:yes )
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19859 (
19860 cat <<\_ASBOX
19861## ------------------------------------ ##
19862## Report this to bug-autoconf@gnu.org. ##
19863## ------------------------------------ ##
19864_ASBOX
19865 ) |
19866 sed "s/^/$as_me: WARNING: /" >&2
19867 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019868esac
19869echo "$as_me:$LINENO: checking for $ac_header" >&5
19870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19871if eval "test \"\${$as_ac_Header+set}\" = set"; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873else
19874 eval "$as_ac_Header=$ac_header_preproc"
19875fi
19876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19878
19879fi
19880if test `eval echo '${'$as_ac_Header'}'` = yes; then
19881 cat >>confdefs.h <<_ACEOF
19882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19883_ACEOF
19884
19885fi
19886
19887done
19888
19889
19890
19891
19892for ac_header in dlfcn.h link.h
19893do
19894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19895if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896 echo "$as_me:$LINENO: checking for $ac_header" >&5
19897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19898if eval "test \"\${$as_ac_Header+set}\" = set"; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19900fi
19901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19903else
19904 # Is the header compilable?
19905echo "$as_me:$LINENO: checking $ac_header usability" >&5
19906echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19907cat >conftest.$ac_ext <<_ACEOF
19908#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019909/* confdefs.h. */
19910_ACEOF
19911cat confdefs.h >>conftest.$ac_ext
19912cat >>conftest.$ac_ext <<_ACEOF
19913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019914$ac_includes_default
19915#include <$ac_header>
19916_ACEOF
19917rm -f conftest.$ac_objext
19918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19919 (eval $ac_compile) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -s conftest.$ac_objext'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_header_compiler=yes
19930else
19931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019932sed 's/^/| /' conftest.$ac_ext >&5
19933
John Criswell7a73b802003-06-30 21:59:07 +000019934ac_header_compiler=no
19935fi
19936rm -f conftest.$ac_objext conftest.$ac_ext
19937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19938echo "${ECHO_T}$ac_header_compiler" >&6
19939
19940# Is the header present?
19941echo "$as_me:$LINENO: checking $ac_header presence" >&5
19942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19943cat >conftest.$ac_ext <<_ACEOF
19944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019945/* confdefs.h. */
19946_ACEOF
19947cat confdefs.h >>conftest.$ac_ext
19948cat >>conftest.$ac_ext <<_ACEOF
19949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019950#include <$ac_header>
19951_ACEOF
19952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19954 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019955 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } >/dev/null; then
19960 if test -s conftest.err; then
19961 ac_cpp_err=$ac_c_preproc_warn_flag
19962 else
19963 ac_cpp_err=
19964 fi
19965else
19966 ac_cpp_err=yes
19967fi
19968if test -z "$ac_cpp_err"; then
19969 ac_header_preproc=yes
19970else
19971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019972sed 's/^/| /' conftest.$ac_ext >&5
19973
John Criswell7a73b802003-06-30 21:59:07 +000019974 ac_header_preproc=no
19975fi
19976rm -f conftest.err conftest.$ac_ext
19977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978echo "${ECHO_T}$ac_header_preproc" >&6
19979
19980# So? What about this header?
19981case $ac_header_compiler:$ac_header_preproc in
19982 yes:no )
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987 (
19988 cat <<\_ASBOX
19989## ------------------------------------ ##
19990## Report this to bug-autoconf@gnu.org. ##
19991## ------------------------------------ ##
19992_ASBOX
19993 ) |
19994 sed "s/^/$as_me: WARNING: /" >&2
19995 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019996 no:yes )
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19998echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20000echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20003 (
20004 cat <<\_ASBOX
20005## ------------------------------------ ##
20006## Report this to bug-autoconf@gnu.org. ##
20007## ------------------------------------ ##
20008_ASBOX
20009 ) |
20010 sed "s/^/$as_me: WARNING: /" >&2
20011 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020012esac
20013echo "$as_me:$LINENO: checking for $ac_header" >&5
20014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20015if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017else
20018 eval "$as_ac_Header=$ac_header_preproc"
20019fi
20020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20022
20023fi
20024if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027_ACEOF
20028
20029fi
20030
20031done
20032
20033
20034
John Criswell7a73b802003-06-30 21:59:07 +000020035echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20036echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20037if test "${ac_cv_c_const+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20039else
20040 cat >conftest.$ac_ext <<_ACEOF
20041#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020042/* confdefs.h. */
20043_ACEOF
20044cat confdefs.h >>conftest.$ac_ext
20045cat >>conftest.$ac_ext <<_ACEOF
20046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020047
John Criswell7a73b802003-06-30 21:59:07 +000020048int
20049main ()
20050{
20051/* FIXME: Include the comments suggested by Paul. */
20052#ifndef __cplusplus
20053 /* Ultrix mips cc rejects this. */
20054 typedef int charset[2];
20055 const charset x;
20056 /* SunOS 4.1.1 cc rejects this. */
20057 char const *const *ccp;
20058 char **p;
20059 /* NEC SVR4.0.2 mips cc rejects this. */
20060 struct point {int x, y;};
20061 static struct point const zero = {0,0};
20062 /* AIX XL C 1.02.0.0 rejects this.
20063 It does not let you subtract one const X* pointer from another in
20064 an arm of an if-expression whose if-part is not a constant
20065 expression */
20066 const char *g = "string";
20067 ccp = &g + (g ? g-g : 0);
20068 /* HPUX 7.0 cc rejects these. */
20069 ++ccp;
20070 p = (char**) ccp;
20071 ccp = (char const *const *) p;
20072 { /* SCO 3.2v4 cc rejects this. */
20073 char *t;
20074 char const *s = 0 ? (char *) 0 : (char const *) 0;
20075
20076 *t++ = 0;
20077 }
20078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20079 int x[] = {25, 17};
20080 const int *foo = &x[0];
20081 ++foo;
20082 }
20083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20084 typedef const int *iptr;
20085 iptr p = 0;
20086 ++p;
20087 }
20088 { /* AIX XL C 1.02.0.0 rejects this saying
20089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20090 struct s { int j; const int *ap[3]; };
20091 struct s *b; b->j = 5;
20092 }
20093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20094 const int foo = 10;
20095 }
20096#endif
20097
20098 ;
20099 return 0;
20100}
20101_ACEOF
20102rm -f conftest.$ac_objext
20103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20104 (eval $ac_compile) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -s conftest.$ac_objext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 ac_cv_c_const=yes
20115else
20116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020117sed 's/^/| /' conftest.$ac_ext >&5
20118
John Criswell7a73b802003-06-30 21:59:07 +000020119ac_cv_c_const=no
20120fi
20121rm -f conftest.$ac_objext conftest.$ac_ext
20122fi
20123echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20124echo "${ECHO_T}$ac_cv_c_const" >&6
20125if test $ac_cv_c_const = no; then
20126
20127cat >>confdefs.h <<\_ACEOF
20128#define const
20129_ACEOF
20130
20131fi
20132
20133echo "$as_me:$LINENO: checking for inline" >&5
20134echo $ECHO_N "checking for inline... $ECHO_C" >&6
20135if test "${ac_cv_c_inline+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 ac_cv_c_inline=no
20139for ac_kw in inline __inline__ __inline; do
20140 cat >conftest.$ac_ext <<_ACEOF
20141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020142/* confdefs.h. */
20143_ACEOF
20144cat confdefs.h >>conftest.$ac_ext
20145cat >>conftest.$ac_ext <<_ACEOF
20146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020147#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020148typedef int foo_t;
20149static $ac_kw foo_t static_foo () {return 0; }
20150$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020151#endif
20152
20153_ACEOF
20154rm -f conftest.$ac_objext
20155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20156 (eval $ac_compile) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
20160 { ac_try='test -s conftest.$ac_objext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_cv_c_inline=$ac_kw; break
20167else
20168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020169sed 's/^/| /' conftest.$ac_ext >&5
20170
John Criswell7a73b802003-06-30 21:59:07 +000020171fi
20172rm -f conftest.$ac_objext conftest.$ac_ext
20173done
20174
20175fi
20176echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20177echo "${ECHO_T}$ac_cv_c_inline" >&6
20178case $ac_cv_c_inline in
20179 inline | yes) ;;
20180 no)
20181cat >>confdefs.h <<\_ACEOF
20182#define inline
20183_ACEOF
20184 ;;
20185 *) cat >>confdefs.h <<_ACEOF
20186#define inline $ac_cv_c_inline
20187_ACEOF
20188 ;;
20189esac
20190
20191
20192echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20193echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20194if test "${ac_cv_c_bigendian+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20196else
20197 # See if sys/param.h defines the BYTE_ORDER macro.
20198cat >conftest.$ac_ext <<_ACEOF
20199#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020205#include <sys/types.h>
20206#include <sys/param.h>
20207
John Criswell7a73b802003-06-30 21:59:07 +000020208int
20209main ()
20210{
20211#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20212 bogus endian macros
20213#endif
20214
20215 ;
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest.$ac_objext
20220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221 (eval $ac_compile) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -s conftest.$ac_objext'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; }; then
20231 # It does; now see whether it defined to BIG_ENDIAN or not.
20232cat >conftest.$ac_ext <<_ACEOF
20233#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020239#include <sys/types.h>
20240#include <sys/param.h>
20241
John Criswell7a73b802003-06-30 21:59:07 +000020242int
20243main ()
20244{
20245#if BYTE_ORDER != BIG_ENDIAN
20246 not big endian
20247#endif
20248
20249 ;
20250 return 0;
20251}
20252_ACEOF
20253rm -f conftest.$ac_objext
20254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20255 (eval $ac_compile) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_c_bigendian=yes
20266else
20267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020268sed 's/^/| /' conftest.$ac_ext >&5
20269
John Criswell7a73b802003-06-30 21:59:07 +000020270ac_cv_c_bigendian=no
20271fi
20272rm -f conftest.$ac_objext conftest.$ac_ext
20273else
20274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020275sed 's/^/| /' conftest.$ac_ext >&5
20276
John Criswell7a73b802003-06-30 21:59:07 +000020277# It does not; compile a test program.
20278if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020279 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020280 ac_cv_c_bigendian=unknown
20281 cat >conftest.$ac_ext <<_ACEOF
20282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020288short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20289short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20290void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20291short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20292short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20293void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020294int
20295main ()
20296{
20297 _ascii (); _ebcdic ();
20298 ;
20299 return 0;
20300}
20301_ACEOF
20302rm -f conftest.$ac_objext
20303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20304 (eval $ac_compile) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020315 ac_cv_c_bigendian=yes
20316fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020317if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020318 if test "$ac_cv_c_bigendian" = unknown; then
20319 ac_cv_c_bigendian=no
20320 else
20321 # finding both strings is unlikely to happen, but who knows?
20322 ac_cv_c_bigendian=unknown
20323 fi
20324fi
20325else
20326 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020327sed 's/^/| /' conftest.$ac_ext >&5
20328
John Criswell7a73b802003-06-30 21:59:07 +000020329fi
20330rm -f conftest.$ac_objext conftest.$ac_ext
20331else
20332 cat >conftest.$ac_ext <<_ACEOF
20333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020334/* confdefs.h. */
20335_ACEOF
20336cat confdefs.h >>conftest.$ac_ext
20337cat >>conftest.$ac_ext <<_ACEOF
20338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020339int
20340main ()
20341{
20342 /* Are we little or big endian? From Harbison&Steele. */
20343 union
20344 {
20345 long l;
20346 char c[sizeof (long)];
20347 } u;
20348 u.l = 1;
20349 exit (u.c[sizeof (long) - 1] == 1);
20350}
20351_ACEOF
20352rm -f conftest$ac_exeext
20353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354 (eval $ac_link) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_c_bigendian=no
20364else
20365 echo "$as_me: program exited with status $ac_status" >&5
20366echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020367sed 's/^/| /' conftest.$ac_ext >&5
20368
John Criswell7a73b802003-06-30 21:59:07 +000020369( exit $ac_status )
20370ac_cv_c_bigendian=yes
20371fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020372rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020373fi
20374fi
20375rm -f conftest.$ac_objext conftest.$ac_ext
20376fi
20377echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20378echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20379case $ac_cv_c_bigendian in
20380 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020381
20382cat >>confdefs.h <<\_ACEOF
20383#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020384_ACEOF
20385 ;;
20386 no)
John Criswell5ab73462003-10-09 15:44:28 +000020387
20388cat >>confdefs.h <<\_ACEOF
20389#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020390_ACEOF
20391 ;;
20392 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020393 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020394presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020395echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020396presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20397 { (exit 1); exit 1; }; } ;;
20398esac
20399
20400
20401echo "$as_me:$LINENO: checking for pid_t" >&5
20402echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20403if test "${ac_cv_type_pid_t+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405else
20406 cat >conftest.$ac_ext <<_ACEOF
20407#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020408/* confdefs.h. */
20409_ACEOF
20410cat confdefs.h >>conftest.$ac_ext
20411cat >>conftest.$ac_ext <<_ACEOF
20412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020413$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020414int
20415main ()
20416{
20417if ((pid_t *) 0)
20418 return 0;
20419if (sizeof (pid_t))
20420 return 0;
20421 ;
20422 return 0;
20423}
20424_ACEOF
20425rm -f conftest.$ac_objext
20426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20427 (eval $ac_compile) 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -s conftest.$ac_objext'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 ac_cv_type_pid_t=yes
20438else
20439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020440sed 's/^/| /' conftest.$ac_ext >&5
20441
John Criswell7a73b802003-06-30 21:59:07 +000020442ac_cv_type_pid_t=no
20443fi
20444rm -f conftest.$ac_objext conftest.$ac_ext
20445fi
20446echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20447echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20448if test $ac_cv_type_pid_t = yes; then
20449 :
20450else
20451
20452cat >>confdefs.h <<_ACEOF
20453#define pid_t int
20454_ACEOF
20455
20456fi
20457
20458echo "$as_me:$LINENO: checking for size_t" >&5
20459echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20460if test "${ac_cv_type_size_t+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20462else
20463 cat >conftest.$ac_ext <<_ACEOF
20464#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020465/* confdefs.h. */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020470$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020471int
20472main ()
20473{
20474if ((size_t *) 0)
20475 return 0;
20476if (sizeof (size_t))
20477 return 0;
20478 ;
20479 return 0;
20480}
20481_ACEOF
20482rm -f conftest.$ac_objext
20483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484 (eval $ac_compile) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } &&
20488 { ac_try='test -s conftest.$ac_objext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_type_size_t=yes
20495else
20496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020497sed 's/^/| /' conftest.$ac_ext >&5
20498
John Criswell7a73b802003-06-30 21:59:07 +000020499ac_cv_type_size_t=no
20500fi
20501rm -f conftest.$ac_objext conftest.$ac_ext
20502fi
20503echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20504echo "${ECHO_T}$ac_cv_type_size_t" >&6
20505if test $ac_cv_type_size_t = yes; then
20506 :
20507else
20508
20509cat >>confdefs.h <<_ACEOF
20510#define size_t unsigned
20511_ACEOF
20512
20513fi
20514
20515echo "$as_me:$LINENO: checking for int64_t" >&5
20516echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20517if test "${ac_cv_type_int64_t+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20519else
20520 cat >conftest.$ac_ext <<_ACEOF
20521#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020522/* confdefs.h. */
20523_ACEOF
20524cat confdefs.h >>conftest.$ac_ext
20525cat >>conftest.$ac_ext <<_ACEOF
20526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020527$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020528int
20529main ()
20530{
20531if ((int64_t *) 0)
20532 return 0;
20533if (sizeof (int64_t))
20534 return 0;
20535 ;
20536 return 0;
20537}
20538_ACEOF
20539rm -f conftest.$ac_objext
20540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541 (eval $ac_compile) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
20545 { ac_try='test -s conftest.$ac_objext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_cv_type_int64_t=yes
20552else
20553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020554sed 's/^/| /' conftest.$ac_ext >&5
20555
John Criswell7a73b802003-06-30 21:59:07 +000020556ac_cv_type_int64_t=no
20557fi
20558rm -f conftest.$ac_objext conftest.$ac_ext
20559fi
20560echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20561echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20562if test $ac_cv_type_int64_t = yes; then
20563
20564cat >>confdefs.h <<_ACEOF
20565#define HAVE_INT64_T 1
20566_ACEOF
20567
20568
20569else
20570 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20571echo "$as_me: error: Type int64_t required but not found" >&2;}
20572 { (exit 1); exit 1; }; }
20573fi
20574
20575echo "$as_me:$LINENO: checking for uint64_t" >&5
20576echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20577if test "${ac_cv_type_uint64_t+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20579else
20580 cat >conftest.$ac_ext <<_ACEOF
20581#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020582/* confdefs.h. */
20583_ACEOF
20584cat confdefs.h >>conftest.$ac_ext
20585cat >>conftest.$ac_ext <<_ACEOF
20586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020587$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020588int
20589main ()
20590{
20591if ((uint64_t *) 0)
20592 return 0;
20593if (sizeof (uint64_t))
20594 return 0;
20595 ;
20596 return 0;
20597}
20598_ACEOF
20599rm -f conftest.$ac_objext
20600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20601 (eval $ac_compile) 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -s conftest.$ac_objext'
20606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; }; then
20611 ac_cv_type_uint64_t=yes
20612else
20613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020614sed 's/^/| /' conftest.$ac_ext >&5
20615
John Criswell7a73b802003-06-30 21:59:07 +000020616ac_cv_type_uint64_t=no
20617fi
20618rm -f conftest.$ac_objext conftest.$ac_ext
20619fi
20620echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20621echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20622if test $ac_cv_type_uint64_t = yes; then
20623
20624cat >>confdefs.h <<_ACEOF
20625#define HAVE_UINT64_T 1
20626_ACEOF
20627
20628
20629else
20630 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20631echo "$as_me: error: Type uint64_t required but not found" >&2;}
20632 { (exit 1); exit 1; }; }
20633fi
20634
20635echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20636echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20637if test "${ac_cv_header_time+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20639else
20640 cat >conftest.$ac_ext <<_ACEOF
20641#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020642/* confdefs.h. */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020647#include <sys/types.h>
20648#include <sys/time.h>
20649#include <time.h>
20650
John Criswell7a73b802003-06-30 21:59:07 +000020651int
20652main ()
20653{
20654if ((struct tm *) 0)
20655return 0;
20656 ;
20657 return 0;
20658}
20659_ACEOF
20660rm -f conftest.$ac_objext
20661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20662 (eval $ac_compile) 2>&5
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); } &&
20666 { ac_try='test -s conftest.$ac_objext'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_header_time=yes
20673else
20674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020675sed 's/^/| /' conftest.$ac_ext >&5
20676
John Criswell7a73b802003-06-30 21:59:07 +000020677ac_cv_header_time=no
20678fi
20679rm -f conftest.$ac_objext conftest.$ac_ext
20680fi
20681echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20682echo "${ECHO_T}$ac_cv_header_time" >&6
20683if test $ac_cv_header_time = yes; then
20684
20685cat >>confdefs.h <<\_ACEOF
20686#define TIME_WITH_SYS_TIME 1
20687_ACEOF
20688
20689fi
20690
20691echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20692echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20693if test "${ac_cv_struct_tm+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695else
20696 cat >conftest.$ac_ext <<_ACEOF
20697#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020698/* confdefs.h. */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
20702/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020703#include <sys/types.h>
20704#include <time.h>
20705
John Criswell7a73b802003-06-30 21:59:07 +000020706int
20707main ()
20708{
20709struct tm *tp; tp->tm_sec;
20710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext
20715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716 (eval $ac_compile) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } &&
20720 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_struct_tm=time.h
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 +000020731ac_cv_struct_tm=sys/time.h
20732fi
20733rm -f conftest.$ac_objext conftest.$ac_ext
20734fi
20735echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20736echo "${ECHO_T}$ac_cv_struct_tm" >&6
20737if test $ac_cv_struct_tm = sys/time.h; then
20738
20739cat >>confdefs.h <<\_ACEOF
20740#define TM_IN_SYS_TIME 1
20741_ACEOF
20742
20743fi
20744
20745
John Criswella0137d32003-10-13 16:22:01 +000020746
20747
20748
20749 ac_ext=c
20750ac_cpp='$CPP $CPPFLAGS'
20751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20753ac_compiler_gnu=$ac_cv_c_compiler_gnu
20754
20755 if test "$cross_compiling" = yes; then
20756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20757See \`config.log' for more details." >&5
20758echo "$as_me: error: cannot run test program while cross compiling
20759See \`config.log' for more details." >&2;}
20760 { (exit 1); exit 1; }; }
20761else
20762 cat >conftest.$ac_ext <<_ACEOF
20763#line $LINENO "configure"
20764/* confdefs.h. */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h. */
20769#include <stdio.h>
20770 #include <stdlib.h>
20771int
20772main ()
20773{
20774
20775 volatile double A, B;
20776 char Buffer[100];
20777 A = 1;
20778 A /= 10.0;
20779 sprintf(Buffer, "%a", A);
20780 B = atof(Buffer);
20781 if (A != B)
20782 return (1);
20783 if (A != 0x1.999999999999ap-4)
20784 return (1);
20785 return (0);
20786 ;
20787 return 0;
20788}
20789_ACEOF
20790rm -f conftest$ac_exeext
20791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20792 (eval $ac_link) 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 ac_c_printf_a=yes
20802else
20803 echo "$as_me: program exited with status $ac_status" >&5
20804echo "$as_me: failed program was:" >&5
20805sed 's/^/| /' conftest.$ac_ext >&5
20806
20807( exit $ac_status )
20808ac_c_printf_a=no
20809fi
20810rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20811fi
20812 ac_ext=c
20813ac_cpp='$CPP $CPPFLAGS'
20814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816ac_compiler_gnu=$ac_cv_c_compiler_gnu
20817
20818 if test "$ac_c_printf_a" = "yes"; then
20819
20820cat >>confdefs.h <<\_ACEOF
20821#define HAVE_PRINTF_A 1
20822_ACEOF
20823
20824 fi
20825
20826
John Criswell7a73b802003-06-30 21:59:07 +000020827echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20828echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20829if test "${ac_cv_cxx_namespaces+set}" = set; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20831else
20832
20833
20834 ac_ext=cc
20835ac_cpp='$CXXCPP $CPPFLAGS'
20836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20839
20840 cat >conftest.$ac_ext <<_ACEOF
20841#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020847namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020848int
20849main ()
20850{
20851using namespace Outer::Inner; return i;
20852 ;
20853 return 0;
20854}
20855_ACEOF
20856rm -f conftest.$ac_objext
20857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858 (eval $ac_compile) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -s conftest.$ac_objext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ac_cv_cxx_namespaces=yes
20869else
20870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020871sed 's/^/| /' conftest.$ac_ext >&5
20872
John Criswell7a73b802003-06-30 21:59:07 +000020873ac_cv_cxx_namespaces=no
20874fi
20875rm -f conftest.$ac_objext conftest.$ac_ext
20876 ac_ext=c
20877ac_cpp='$CPP $CPPFLAGS'
20878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20880ac_compiler_gnu=$ac_cv_c_compiler_gnu
20881
20882
20883fi
20884echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20885echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20886if test "$ac_cv_cxx_namespaces" = yes; then
20887
20888cat >>confdefs.h <<\_ACEOF
20889#define HAVE_NAMESPACES
20890_ACEOF
20891
20892fi
20893
Brian Gaeke90583492003-11-10 03:06:28 +000020894echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20895echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20896if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020897 echo $ECHO_N "(cached) $ECHO_C" >&6
20898else
20899
20900
20901
20902 ac_ext=cc
20903ac_cpp='$CXXCPP $CPPFLAGS'
20904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20907
20908 cat >conftest.$ac_ext <<_ACEOF
20909#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020915#include <ext/hash_map>
20916#ifdef HAVE_NAMESPACES
20917using namespace std;
20918#endif
John Criswell7a73b802003-06-30 21:59:07 +000020919int
20920main ()
20921{
Brian Gaeke90583492003-11-10 03:06:28 +000020922hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020923 ;
20924 return 0;
20925}
20926_ACEOF
20927rm -f conftest.$ac_objext
20928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20929 (eval $ac_compile) 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020939 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020940else
20941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020942sed 's/^/| /' conftest.$ac_ext >&5
20943
Brian Gaeke90583492003-11-10 03:06:28 +000020944ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020945fi
20946rm -f conftest.$ac_objext conftest.$ac_ext
20947 ac_ext=c
20948ac_cpp='$CPP $CPPFLAGS'
20949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952
John Criswell7a73b802003-06-30 21:59:07 +000020953fi
Brian Gaeke90583492003-11-10 03:06:28 +000020954echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20955echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20956 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020957
20958cat >>confdefs.h <<\_ACEOF
20959#define HAVE_STD_EXT_HASH_MAP
20960_ACEOF
20961
Brian Gaeke90583492003-11-10 03:06:28 +000020962 fi
20963 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20964echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20965if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967else
20968
20969
20970
20971 ac_ext=cc
20972ac_cpp='$CXXCPP $CPPFLAGS'
20973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20976
20977 cat >conftest.$ac_ext <<_ACEOF
20978#line $LINENO "configure"
20979/* confdefs.h. */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
20983/* end confdefs.h. */
20984#include <ext/hash_map>
20985#ifdef HAVE_NAMESPACES
20986using namespace __gnu_cxx;
20987#endif
20988int
20989main ()
20990{
20991hash_map<int,int> t;
20992 ;
20993 return 0;
20994}
20995_ACEOF
20996rm -f conftest.$ac_objext
20997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -s conftest.$ac_objext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 ac_cv_cxx_have_gnu_ext_hash_map=yes
21009else
21010 echo "$as_me: failed program was:" >&5
21011sed 's/^/| /' conftest.$ac_ext >&5
21012
21013ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021014fi
Brian Gaeke90583492003-11-10 03:06:28 +000021015rm -f conftest.$ac_objext conftest.$ac_ext
21016 ac_ext=c
21017ac_cpp='$CPP $CPPFLAGS'
21018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_c_compiler_gnu
21021
21022fi
21023echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21024echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21025 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021026
21027cat >>confdefs.h <<\_ACEOF
21028#define HAVE_GNU_EXT_HASH_MAP
21029_ACEOF
21030
Brian Gaeke90583492003-11-10 03:06:28 +000021031 fi
21032 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21033echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21034if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036else
John Criswell7a73b802003-06-30 21:59:07 +000021037
Brian Gaeke90583492003-11-10 03:06:28 +000021038
21039
21040 ac_ext=cc
21041ac_cpp='$CXXCPP $CPPFLAGS'
21042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21045
21046 cat >conftest.$ac_ext <<_ACEOF
21047#line $LINENO "configure"
21048/* confdefs.h. */
21049_ACEOF
21050cat confdefs.h >>conftest.$ac_ext
21051cat >>conftest.$ac_ext <<_ACEOF
21052/* end confdefs.h. */
21053#include <hash_map>
21054int
21055main ()
21056{
21057hash_map<int,int> t;
21058 ;
21059 return 0;
21060}
21061_ACEOF
21062rm -f conftest.$ac_objext
21063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21064 (eval $ac_compile) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -s conftest.$ac_objext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_cxx_have_global_hash_map=yes
21075else
21076 echo "$as_me: failed program was:" >&5
21077sed 's/^/| /' conftest.$ac_ext >&5
21078
21079ac_cv_cxx_have_global_hash_map=no
21080fi
21081rm -f conftest.$ac_objext conftest.$ac_ext
21082 ac_ext=c
21083ac_cpp='$CPP $CPPFLAGS'
21084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087
21088fi
21089echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21090echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21091 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21092
21093cat >>confdefs.h <<\_ACEOF
21094#define HAVE_GLOBAL_HASH_MAP
21095_ACEOF
21096
21097 fi
21098echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21099echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21100if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102else
21103
21104
21105
21106 ac_ext=cc
21107ac_cpp='$CXXCPP $CPPFLAGS'
21108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21111
21112 cat >conftest.$ac_ext <<_ACEOF
21113#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021114/* confdefs.h. */
21115_ACEOF
21116cat confdefs.h >>conftest.$ac_ext
21117cat >>conftest.$ac_ext <<_ACEOF
21118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021119#include <ext/hash_set>
21120#ifdef HAVE_NAMESPACES
21121using namespace std;
21122#endif
John Criswell7a73b802003-06-30 21:59:07 +000021123int
21124main ()
21125{
Brian Gaeke90583492003-11-10 03:06:28 +000021126hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021127 ;
21128 return 0;
21129}
21130_ACEOF
21131rm -f conftest.$ac_objext
21132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21133 (eval $ac_compile) 2>&5
21134 ac_status=$?
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -s conftest.$ac_objext'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21140 ac_status=$?
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021143 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021144else
21145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021146sed 's/^/| /' conftest.$ac_ext >&5
21147
Brian Gaeke90583492003-11-10 03:06:28 +000021148ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021149fi
21150rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021151 ac_ext=c
21152ac_cpp='$CPP $CPPFLAGS'
21153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21155ac_compiler_gnu=$ac_cv_c_compiler_gnu
21156
21157fi
21158echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21159echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21160 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21161
21162cat >>confdefs.h <<\_ACEOF
21163#define HAVE_STD_EXT_HASH_SET
21164_ACEOF
21165
21166 fi
21167 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21168echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21169if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21171else
21172
21173
21174
21175 ac_ext=cc
21176ac_cpp='$CXXCPP $CPPFLAGS'
21177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21180
John Criswell7a73b802003-06-30 21:59:07 +000021181 cat >conftest.$ac_ext <<_ACEOF
21182#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021183/* confdefs.h. */
21184_ACEOF
21185cat confdefs.h >>conftest.$ac_ext
21186cat >>conftest.$ac_ext <<_ACEOF
21187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021188#include <ext/hash_set>
21189#ifdef HAVE_NAMESPACES
21190using namespace __gnu_cxx;
21191#endif
John Criswell7a73b802003-06-30 21:59:07 +000021192int
21193main ()
21194{
Brian Gaeke90583492003-11-10 03:06:28 +000021195hash_set<int> t;
21196 ;
21197 return 0;
21198}
21199_ACEOF
21200rm -f conftest.$ac_objext
21201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21202 (eval $ac_compile) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
21206 { ac_try='test -s conftest.$ac_objext'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ac_cv_cxx_have_gnu_ext_hash_set=yes
21213else
21214 echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217ac_cv_cxx_have_gnu_ext_hash_set=no
21218fi
21219rm -f conftest.$ac_objext conftest.$ac_ext
21220 ac_ext=c
21221ac_cpp='$CPP $CPPFLAGS'
21222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224ac_compiler_gnu=$ac_cv_c_compiler_gnu
21225
21226fi
21227echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21228echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21229 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21230
21231cat >>confdefs.h <<\_ACEOF
21232#define HAVE_GNU_EXT_HASH_SET
21233_ACEOF
21234
21235 fi
21236 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21237echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21238if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21240else
21241
21242
21243
21244 ac_ext=cc
21245ac_cpp='$CXXCPP $CPPFLAGS'
21246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21249
21250 cat >conftest.$ac_ext <<_ACEOF
21251#line $LINENO "configure"
21252/* confdefs.h. */
21253_ACEOF
21254cat confdefs.h >>conftest.$ac_ext
21255cat >>conftest.$ac_ext <<_ACEOF
21256/* end confdefs.h. */
21257#include <hash_set>
21258int
21259main ()
21260{
John Criswell7a73b802003-06-30 21:59:07 +000021261hash_set<int> t; return 0;
21262 ;
21263 return 0;
21264}
21265_ACEOF
21266rm -f conftest.$ac_objext
21267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21268 (eval $ac_compile) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021278 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021279else
21280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021281sed 's/^/| /' conftest.$ac_ext >&5
21282
Brian Gaeke90583492003-11-10 03:06:28 +000021283ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021284fi
21285rm -f conftest.$ac_objext conftest.$ac_ext
21286 ac_ext=c
21287ac_cpp='$CPP $CPPFLAGS'
21288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21290ac_compiler_gnu=$ac_cv_c_compiler_gnu
21291
John Criswell7a73b802003-06-30 21:59:07 +000021292fi
Brian Gaeke90583492003-11-10 03:06:28 +000021293echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21294echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21295 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021296
21297cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021298#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000021299_ACEOF
21300
Brian Gaeke90583492003-11-10 03:06:28 +000021301 fi
John Criswell7a73b802003-06-30 21:59:07 +000021302echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21303echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21304if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306else
21307
21308
21309
21310 ac_ext=cc
21311ac_cpp='$CXXCPP $CPPFLAGS'
21312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21315
21316 cat >conftest.$ac_ext <<_ACEOF
21317#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021318/* confdefs.h. */
21319_ACEOF
21320cat confdefs.h >>conftest.$ac_ext
21321cat >>conftest.$ac_ext <<_ACEOF
21322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021323#include <ext/slist>
21324#ifdef HAVE_NAMESPACES
21325using namespace std;
21326#endif
John Criswell7a73b802003-06-30 21:59:07 +000021327int
21328main ()
21329{
21330slist<int> s; return 0;
21331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext
21336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21337 (eval $ac_compile) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try='test -s conftest.$ac_objext'
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ac_cv_cxx_have_ext_slist=std
21348else
21349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021350sed 's/^/| /' conftest.$ac_ext >&5
21351
John Criswell7a73b802003-06-30 21:59:07 +000021352ac_cv_cxx_have_ext_slist=no
21353fi
21354rm -f conftest.$ac_objext conftest.$ac_ext
21355 cat >conftest.$ac_ext <<_ACEOF
21356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021357/* confdefs.h. */
21358_ACEOF
21359cat confdefs.h >>conftest.$ac_ext
21360cat >>conftest.$ac_ext <<_ACEOF
21361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021362#include <ext/slist>
21363#ifdef HAVE_NAMESPACES
21364using namespace __gnu_cxx;
21365#endif
John Criswell7a73b802003-06-30 21:59:07 +000021366int
21367main ()
21368{
21369slist<int> s; return 0;
21370 ;
21371 return 0;
21372}
21373_ACEOF
21374rm -f conftest.$ac_objext
21375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376 (eval $ac_compile) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } &&
21380 { ac_try='test -s conftest.$ac_objext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_cv_cxx_have_ext_slist=gnu
21387else
21388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021389sed 's/^/| /' conftest.$ac_ext >&5
21390
John Criswell7a73b802003-06-30 21:59:07 +000021391ac_cv_cxx_have_ext_slist=no
21392fi
21393rm -f conftest.$ac_objext conftest.$ac_ext
21394
21395 ac_ext=c
21396ac_cpp='$CPP $CPPFLAGS'
21397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21399ac_compiler_gnu=$ac_cv_c_compiler_gnu
21400
21401
21402fi
21403echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21404echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21405if test "$ac_cv_cxx_have_ext_slist" = std; then
21406
21407cat >>confdefs.h <<\_ACEOF
21408#define HAVE_EXT_SLIST std
21409_ACEOF
21410
21411fi
21412if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21413
21414cat >>confdefs.h <<\_ACEOF
21415#define HAVE_EXT_SLIST gnu
21416_ACEOF
21417
21418fi
21419
21420echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21421echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21422if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424else
21425
21426
21427
21428 ac_ext=cc
21429ac_cpp='$CXXCPP $CPPFLAGS'
21430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21433
21434 cat >conftest.$ac_ext <<_ACEOF
21435#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021436/* confdefs.h. */
21437_ACEOF
21438cat confdefs.h >>conftest.$ac_ext
21439cat >>conftest.$ac_ext <<_ACEOF
21440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021441#include <iterator>
21442#ifdef HAVE_NAMESPACES
21443using namespace std;
21444#endif
John Criswell7a73b802003-06-30 21:59:07 +000021445int
21446main ()
21447{
21448iterator<int,int,int> t; return 0;
21449 ;
21450 return 0;
21451}
21452_ACEOF
21453rm -f conftest.$ac_objext
21454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21455 (eval $ac_compile) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } &&
21459 { ac_try='test -s conftest.$ac_objext'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ac_cv_cxx_have_std_iterator=yes
21466else
21467 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021468sed 's/^/| /' conftest.$ac_ext >&5
21469
John Criswell7a73b802003-06-30 21:59:07 +000021470ac_cv_cxx_have_std_iterator=no
21471fi
21472rm -f conftest.$ac_objext conftest.$ac_ext
21473 ac_ext=c
21474ac_cpp='$CPP $CPPFLAGS'
21475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21477ac_compiler_gnu=$ac_cv_c_compiler_gnu
21478
21479
21480fi
21481echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21482echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21483if test "$ac_cv_cxx_have_std_iterator" = yes; then
21484
21485cat >>confdefs.h <<\_ACEOF
21486#define HAVE_STD_ITERATOR
21487_ACEOF
21488
21489fi
21490
21491echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21492echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21493if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21495else
21496
21497
21498
21499 ac_ext=cc
21500ac_cpp='$CXXCPP $CPPFLAGS'
21501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21504
21505 cat >conftest.$ac_ext <<_ACEOF
21506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021512#include <iterator>
21513#ifdef HAVE_NAMESPACES
21514using namespace std;
21515#endif
John Criswell7a73b802003-06-30 21:59:07 +000021516int
21517main ()
21518{
John Criswellc78022e2003-07-29 19:11:58 +000021519bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021520 ;
21521 return 0;
21522}
21523_ACEOF
21524rm -f conftest.$ac_objext
21525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try='test -s conftest.$ac_objext'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 ac_cv_cxx_have_bi_iterator=yes
21537else
21538 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021539sed 's/^/| /' conftest.$ac_ext >&5
21540
John Criswell7a73b802003-06-30 21:59:07 +000021541ac_cv_cxx_have_bi_iterator=no
21542fi
21543rm -f conftest.$ac_objext conftest.$ac_ext
21544 ac_ext=c
21545ac_cpp='$CPP $CPPFLAGS'
21546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548ac_compiler_gnu=$ac_cv_c_compiler_gnu
21549
21550
21551fi
21552echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21553echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21554if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21555
21556cat >>confdefs.h <<\_ACEOF
21557#define HAVE_BI_ITERATOR
21558_ACEOF
21559
21560fi
21561
21562echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21563echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21564if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21566else
21567
21568
21569
21570 ac_ext=cc
21571ac_cpp='$CXXCPP $CPPFLAGS'
21572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21575
21576 cat >conftest.$ac_ext <<_ACEOF
21577#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021583#include <iterator>
21584#ifdef HAVE_NAMESPACES
21585using namespace std;
21586#endif
John Criswell7a73b802003-06-30 21:59:07 +000021587int
21588main ()
21589{
John Criswellc78022e2003-07-29 19:11:58 +000021590forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021591 ;
21592 return 0;
21593}
21594_ACEOF
21595rm -f conftest.$ac_objext
21596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21597 (eval $ac_compile) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
21601 { ac_try='test -s conftest.$ac_objext'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 ac_cv_cxx_have_fwd_iterator=yes
21608else
21609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021610sed 's/^/| /' conftest.$ac_ext >&5
21611
John Criswell7a73b802003-06-30 21:59:07 +000021612ac_cv_cxx_have_fwd_iterator=no
21613fi
21614rm -f conftest.$ac_objext conftest.$ac_ext
21615 ac_ext=c
21616ac_cpp='$CPP $CPPFLAGS'
21617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21619ac_compiler_gnu=$ac_cv_c_compiler_gnu
21620
21621
21622fi
21623echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21624echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21625if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21626
21627cat >>confdefs.h <<\_ACEOF
21628#define HAVE_FWD_ITERATOR
21629_ACEOF
21630
21631fi
21632
21633
21634# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21635# for constant arguments. Useless!
21636echo "$as_me:$LINENO: checking for working alloca.h" >&5
21637echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21638if test "${ac_cv_working_alloca_h+set}" = set; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21640else
21641 cat >conftest.$ac_ext <<_ACEOF
21642#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021643/* confdefs.h. */
21644_ACEOF
21645cat confdefs.h >>conftest.$ac_ext
21646cat >>conftest.$ac_ext <<_ACEOF
21647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021648#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021649int
21650main ()
21651{
21652char *p = (char *) alloca (2 * sizeof (int));
21653 ;
21654 return 0;
21655}
21656_ACEOF
21657rm -f conftest.$ac_objext conftest$ac_exeext
21658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21659 (eval $ac_link) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try='test -s conftest$ac_exeext'
21664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 ac_cv_working_alloca_h=yes
21670else
21671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021672sed 's/^/| /' conftest.$ac_ext >&5
21673
John Criswell7a73b802003-06-30 21:59:07 +000021674ac_cv_working_alloca_h=no
21675fi
21676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21677fi
21678echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21679echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21680if test $ac_cv_working_alloca_h = yes; then
21681
21682cat >>confdefs.h <<\_ACEOF
21683#define HAVE_ALLOCA_H 1
21684_ACEOF
21685
21686fi
21687
21688echo "$as_me:$LINENO: checking for alloca" >&5
21689echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21690if test "${ac_cv_func_alloca_works+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692else
21693 cat >conftest.$ac_ext <<_ACEOF
21694#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021695/* confdefs.h. */
21696_ACEOF
21697cat confdefs.h >>conftest.$ac_ext
21698cat >>conftest.$ac_ext <<_ACEOF
21699/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021700#ifdef __GNUC__
21701# define alloca __builtin_alloca
21702#else
21703# ifdef _MSC_VER
21704# include <malloc.h>
21705# define alloca _alloca
21706# else
21707# if HAVE_ALLOCA_H
21708# include <alloca.h>
21709# else
21710# ifdef _AIX
21711 #pragma alloca
21712# else
21713# ifndef alloca /* predefined by HP cc +Olibcalls */
21714char *alloca ();
21715# endif
21716# endif
21717# endif
21718# endif
21719#endif
21720
John Criswell7a73b802003-06-30 21:59:07 +000021721int
21722main ()
21723{
21724char *p = (char *) alloca (1);
21725 ;
21726 return 0;
21727}
21728_ACEOF
21729rm -f conftest.$ac_objext conftest$ac_exeext
21730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731 (eval $ac_link) 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
21735 { ac_try='test -s conftest$ac_exeext'
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; }; then
21741 ac_cv_func_alloca_works=yes
21742else
21743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021744sed 's/^/| /' conftest.$ac_ext >&5
21745
John Criswell7a73b802003-06-30 21:59:07 +000021746ac_cv_func_alloca_works=no
21747fi
21748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21749fi
21750echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21751echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21752
21753if test $ac_cv_func_alloca_works = yes; then
21754
21755cat >>confdefs.h <<\_ACEOF
21756#define HAVE_ALLOCA 1
21757_ACEOF
21758
21759else
21760 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21761# that cause trouble. Some versions do not even contain alloca or
21762# contain a buggy version. If you still want to use their alloca,
21763# use ar to extract alloca.o from them instead of compiling alloca.c.
21764
21765ALLOCA=alloca.$ac_objext
21766
21767cat >>confdefs.h <<\_ACEOF
21768#define C_ALLOCA 1
21769_ACEOF
21770
21771
21772echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21773echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21774if test "${ac_cv_os_cray+set}" = set; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776else
21777 cat >conftest.$ac_ext <<_ACEOF
21778#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021779/* confdefs.h. */
21780_ACEOF
21781cat confdefs.h >>conftest.$ac_ext
21782cat >>conftest.$ac_ext <<_ACEOF
21783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021784#if defined(CRAY) && ! defined(CRAY2)
21785webecray
21786#else
21787wenotbecray
21788#endif
21789
21790_ACEOF
21791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021792 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021793 ac_cv_os_cray=yes
21794else
21795 ac_cv_os_cray=no
21796fi
21797rm -f conftest*
21798
21799fi
21800echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21801echo "${ECHO_T}$ac_cv_os_cray" >&6
21802if test $ac_cv_os_cray = yes; then
21803 for ac_func in _getb67 GETB67 getb67; do
21804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21805echo "$as_me:$LINENO: checking for $ac_func" >&5
21806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21807if eval "test \"\${$as_ac_var+set}\" = set"; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21809else
21810 cat >conftest.$ac_ext <<_ACEOF
21811#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021812/* confdefs.h. */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021817/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021818 which can conflict with char $ac_func (); below.
21819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21820 <limits.h> exists even on freestanding compilers. */
21821#ifdef __STDC__
21822# include <limits.h>
21823#else
21824# include <assert.h>
21825#endif
John Criswell7a73b802003-06-30 21:59:07 +000021826/* Override any gcc2 internal prototype to avoid an error. */
21827#ifdef __cplusplus
21828extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021829{
John Criswell7a73b802003-06-30 21:59:07 +000021830#endif
21831/* We use char because int might match the return type of a gcc2
21832 builtin and then its argument prototype would still apply. */
21833char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021834/* The GNU C library defines this for functions which it implements
21835 to always fail with ENOSYS. Some functions are actually named
21836 something starting with __ and the normal name is an alias. */
21837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21838choke me
21839#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021840char (*f) () = $ac_func;
21841#endif
21842#ifdef __cplusplus
21843}
John Criswell7a73b802003-06-30 21:59:07 +000021844#endif
21845
John Criswell0c38eaf2003-09-10 15:17:25 +000021846int
21847main ()
21848{
21849return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021850 ;
21851 return 0;
21852}
21853_ACEOF
21854rm -f conftest.$ac_objext conftest$ac_exeext
21855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21856 (eval $ac_link) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } &&
21860 { ac_try='test -s conftest$ac_exeext'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 eval "$as_ac_var=yes"
21867else
21868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021869sed 's/^/| /' conftest.$ac_ext >&5
21870
John Criswell7a73b802003-06-30 21:59:07 +000021871eval "$as_ac_var=no"
21872fi
21873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21874fi
21875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21877if test `eval echo '${'$as_ac_var'}'` = yes; then
21878
21879cat >>confdefs.h <<_ACEOF
21880#define CRAY_STACKSEG_END $ac_func
21881_ACEOF
21882
21883 break
21884fi
21885
21886 done
21887fi
21888
21889echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21890echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21891if test "${ac_cv_c_stack_direction+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21893else
21894 if test "$cross_compiling" = yes; then
21895 ac_cv_c_stack_direction=0
21896else
21897 cat >conftest.$ac_ext <<_ACEOF
21898#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021899/* confdefs.h. */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021904int
21905find_stack_direction ()
21906{
21907 static char *addr = 0;
21908 auto char dummy;
21909 if (addr == 0)
21910 {
21911 addr = &dummy;
21912 return find_stack_direction ();
21913 }
21914 else
21915 return (&dummy > addr) ? 1 : -1;
21916}
21917
21918int
21919main ()
21920{
21921 exit (find_stack_direction () < 0);
21922}
21923_ACEOF
21924rm -f conftest$ac_exeext
21925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21926 (eval $ac_link) 2>&5
21927 ac_status=$?
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21932 ac_status=$?
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; }; then
21935 ac_cv_c_stack_direction=1
21936else
21937 echo "$as_me: program exited with status $ac_status" >&5
21938echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021939sed 's/^/| /' conftest.$ac_ext >&5
21940
John Criswell7a73b802003-06-30 21:59:07 +000021941( exit $ac_status )
21942ac_cv_c_stack_direction=-1
21943fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021944rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021945fi
21946fi
21947echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21948echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21949
21950cat >>confdefs.h <<_ACEOF
21951#define STACK_DIRECTION $ac_cv_c_stack_direction
21952_ACEOF
21953
21954
21955fi
21956
21957if test $ac_cv_c_compiler_gnu = yes; then
21958 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21959echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21960if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962else
21963 ac_pattern="Autoconf.*'x'"
21964 cat >conftest.$ac_ext <<_ACEOF
21965#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021966/* confdefs.h. */
21967_ACEOF
21968cat confdefs.h >>conftest.$ac_ext
21969cat >>conftest.$ac_ext <<_ACEOF
21970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021971#include <sgtty.h>
21972Autoconf TIOCGETP
21973_ACEOF
21974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021975 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021976 ac_cv_prog_gcc_traditional=yes
21977else
21978 ac_cv_prog_gcc_traditional=no
21979fi
21980rm -f conftest*
21981
21982
21983 if test $ac_cv_prog_gcc_traditional = no; then
21984 cat >conftest.$ac_ext <<_ACEOF
21985#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021986/* confdefs.h. */
21987_ACEOF
21988cat confdefs.h >>conftest.$ac_ext
21989cat >>conftest.$ac_ext <<_ACEOF
21990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021991#include <termio.h>
21992Autoconf TCGETA
21993_ACEOF
21994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021995 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021996 ac_cv_prog_gcc_traditional=yes
21997fi
21998rm -f conftest*
21999
22000 fi
22001fi
22002echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22003echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22004 if test $ac_cv_prog_gcc_traditional = yes; then
22005 CC="$CC -traditional"
22006 fi
22007fi
22008
22009echo "$as_me:$LINENO: checking for working memcmp" >&5
22010echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22011if test "${ac_cv_func_memcmp_working+set}" = set; then
22012 echo $ECHO_N "(cached) $ECHO_C" >&6
22013else
22014 if test "$cross_compiling" = yes; then
22015 ac_cv_func_memcmp_working=no
22016else
22017 cat >conftest.$ac_ext <<_ACEOF
22018#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022019/* confdefs.h. */
22020_ACEOF
22021cat confdefs.h >>conftest.$ac_ext
22022cat >>conftest.$ac_ext <<_ACEOF
22023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022024
John Criswell7a73b802003-06-30 21:59:07 +000022025int
22026main ()
22027{
22028
22029 /* Some versions of memcmp are not 8-bit clean. */
22030 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22031 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22032 exit (1);
22033
22034 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22035 or more and with at least one buffer not starting on a 4-byte boundary.
22036 William Lewis provided this test program. */
22037 {
22038 char foo[21];
22039 char bar[21];
22040 int i;
22041 for (i = 0; i < 4; i++)
22042 {
22043 char *a = foo + i;
22044 char *b = bar + i;
22045 strcpy (a, "--------01111111");
22046 strcpy (b, "--------10000000");
22047 if (memcmp (a, b, 16) >= 0)
22048 exit (1);
22049 }
22050 exit (0);
22051 }
22052
22053 ;
22054 return 0;
22055}
22056_ACEOF
22057rm -f conftest$ac_exeext
22058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22059 (eval $ac_link) 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_cv_func_memcmp_working=yes
22069else
22070 echo "$as_me: program exited with status $ac_status" >&5
22071echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022072sed 's/^/| /' conftest.$ac_ext >&5
22073
John Criswell7a73b802003-06-30 21:59:07 +000022074( exit $ac_status )
22075ac_cv_func_memcmp_working=no
22076fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022077rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022078fi
22079fi
22080echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22081echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22082test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22083
22084
22085
22086for ac_header in stdlib.h unistd.h
22087do
22088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089if eval "test \"\${$as_ac_Header+set}\" = set"; then
22090 echo "$as_me:$LINENO: checking for $ac_header" >&5
22091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22092if eval "test \"\${$as_ac_Header+set}\" = set"; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22094fi
22095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22097else
22098 # Is the header compilable?
22099echo "$as_me:$LINENO: checking $ac_header usability" >&5
22100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22101cat >conftest.$ac_ext <<_ACEOF
22102#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022103/* confdefs.h. */
22104_ACEOF
22105cat confdefs.h >>conftest.$ac_ext
22106cat >>conftest.$ac_ext <<_ACEOF
22107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022108$ac_includes_default
22109#include <$ac_header>
22110_ACEOF
22111rm -f conftest.$ac_objext
22112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22113 (eval $ac_compile) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
22117 { ac_try='test -s conftest.$ac_objext'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_header_compiler=yes
22124else
22125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022126sed 's/^/| /' conftest.$ac_ext >&5
22127
John Criswell7a73b802003-06-30 21:59:07 +000022128ac_header_compiler=no
22129fi
22130rm -f conftest.$ac_objext conftest.$ac_ext
22131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22132echo "${ECHO_T}$ac_header_compiler" >&6
22133
22134# Is the header present?
22135echo "$as_me:$LINENO: checking $ac_header presence" >&5
22136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22137cat >conftest.$ac_ext <<_ACEOF
22138#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022139/* confdefs.h. */
22140_ACEOF
22141cat confdefs.h >>conftest.$ac_ext
22142cat >>conftest.$ac_ext <<_ACEOF
22143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022144#include <$ac_header>
22145_ACEOF
22146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22148 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022149 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022150 rm -f conftest.er1
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } >/dev/null; then
22154 if test -s conftest.err; then
22155 ac_cpp_err=$ac_c_preproc_warn_flag
22156 else
22157 ac_cpp_err=
22158 fi
22159else
22160 ac_cpp_err=yes
22161fi
22162if test -z "$ac_cpp_err"; then
22163 ac_header_preproc=yes
22164else
22165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022166sed 's/^/| /' conftest.$ac_ext >&5
22167
John Criswell7a73b802003-06-30 21:59:07 +000022168 ac_header_preproc=no
22169fi
22170rm -f conftest.err conftest.$ac_ext
22171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172echo "${ECHO_T}$ac_header_preproc" >&6
22173
22174# So? What about this header?
22175case $ac_header_compiler:$ac_header_preproc in
22176 yes:no )
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22181 (
22182 cat <<\_ASBOX
22183## ------------------------------------ ##
22184## Report this to bug-autoconf@gnu.org. ##
22185## ------------------------------------ ##
22186_ASBOX
22187 ) |
22188 sed "s/^/$as_me: WARNING: /" >&2
22189 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022190 no:yes )
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22197 (
22198 cat <<\_ASBOX
22199## ------------------------------------ ##
22200## Report this to bug-autoconf@gnu.org. ##
22201## ------------------------------------ ##
22202_ASBOX
22203 ) |
22204 sed "s/^/$as_me: WARNING: /" >&2
22205 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022206esac
22207echo "$as_me:$LINENO: checking for $ac_header" >&5
22208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22209if eval "test \"\${$as_ac_Header+set}\" = set"; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22211else
22212 eval "$as_ac_Header=$ac_header_preproc"
22213fi
22214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22216
22217fi
22218if test `eval echo '${'$as_ac_Header'}'` = yes; then
22219 cat >>confdefs.h <<_ACEOF
22220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22221_ACEOF
22222
22223fi
22224
22225done
22226
22227
22228for ac_func in getpagesize
22229do
22230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22231echo "$as_me:$LINENO: checking for $ac_func" >&5
22232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22233if eval "test \"\${$as_ac_var+set}\" = set"; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235else
22236 cat >conftest.$ac_ext <<_ACEOF
22237#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022238/* confdefs.h. */
22239_ACEOF
22240cat confdefs.h >>conftest.$ac_ext
22241cat >>conftest.$ac_ext <<_ACEOF
22242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022243/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022244 which can conflict with char $ac_func (); below.
22245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22246 <limits.h> exists even on freestanding compilers. */
22247#ifdef __STDC__
22248# include <limits.h>
22249#else
22250# include <assert.h>
22251#endif
John Criswell7a73b802003-06-30 21:59:07 +000022252/* Override any gcc2 internal prototype to avoid an error. */
22253#ifdef __cplusplus
22254extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022255{
John Criswell7a73b802003-06-30 21:59:07 +000022256#endif
22257/* We use char because int might match the return type of a gcc2
22258 builtin and then its argument prototype would still apply. */
22259char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022260/* The GNU C library defines this for functions which it implements
22261 to always fail with ENOSYS. Some functions are actually named
22262 something starting with __ and the normal name is an alias. */
22263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22264choke me
22265#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022266char (*f) () = $ac_func;
22267#endif
22268#ifdef __cplusplus
22269}
John Criswell7a73b802003-06-30 21:59:07 +000022270#endif
22271
John Criswell0c38eaf2003-09-10 15:17:25 +000022272int
22273main ()
22274{
22275return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022276 ;
22277 return 0;
22278}
22279_ACEOF
22280rm -f conftest.$ac_objext conftest$ac_exeext
22281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22282 (eval $ac_link) 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
22286 { ac_try='test -s conftest$ac_exeext'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }; then
22292 eval "$as_ac_var=yes"
22293else
22294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022295sed 's/^/| /' conftest.$ac_ext >&5
22296
John Criswell7a73b802003-06-30 21:59:07 +000022297eval "$as_ac_var=no"
22298fi
22299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22300fi
22301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22303if test `eval echo '${'$as_ac_var'}'` = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22306_ACEOF
22307
22308fi
22309done
22310
22311echo "$as_me:$LINENO: checking for working mmap" >&5
22312echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22313if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22315else
22316 if test "$cross_compiling" = yes; then
22317 ac_cv_func_mmap_fixed_mapped=no
22318else
22319 cat >conftest.$ac_ext <<_ACEOF
22320#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022321/* confdefs.h. */
22322_ACEOF
22323cat confdefs.h >>conftest.$ac_ext
22324cat >>conftest.$ac_ext <<_ACEOF
22325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022326$ac_includes_default
22327/* malloc might have been renamed as rpl_malloc. */
22328#undef malloc
22329
22330/* Thanks to Mike Haertel and Jim Avera for this test.
22331 Here is a matrix of mmap possibilities:
22332 mmap private not fixed
22333 mmap private fixed at somewhere currently unmapped
22334 mmap private fixed at somewhere already mapped
22335 mmap shared not fixed
22336 mmap shared fixed at somewhere currently unmapped
22337 mmap shared fixed at somewhere already mapped
22338 For private mappings, we should verify that changes cannot be read()
22339 back from the file, nor mmap's back from the file at a different
22340 address. (There have been systems where private was not correctly
22341 implemented like the infamous i386 svr4.0, and systems where the
22342 VM page cache was not coherent with the file system buffer cache
22343 like early versions of FreeBSD and possibly contemporary NetBSD.)
22344 For shared mappings, we should conversely verify that changes get
22345 propagated back to all the places they're supposed to be.
22346
22347 Grep wants private fixed already mapped.
22348 The main things grep needs to know about mmap are:
22349 * does it exist and is it safe to write into the mmap'd area
22350 * how to use it (BSD variants) */
22351
22352#include <fcntl.h>
22353#include <sys/mman.h>
22354
22355#if !STDC_HEADERS && !HAVE_STDLIB_H
22356char *malloc ();
22357#endif
22358
22359/* This mess was copied from the GNU getpagesize.h. */
22360#if !HAVE_GETPAGESIZE
22361/* Assume that all systems that can run configure have sys/param.h. */
22362# if !HAVE_SYS_PARAM_H
22363# define HAVE_SYS_PARAM_H 1
22364# endif
22365
22366# ifdef _SC_PAGESIZE
22367# define getpagesize() sysconf(_SC_PAGESIZE)
22368# else /* no _SC_PAGESIZE */
22369# if HAVE_SYS_PARAM_H
22370# include <sys/param.h>
22371# ifdef EXEC_PAGESIZE
22372# define getpagesize() EXEC_PAGESIZE
22373# else /* no EXEC_PAGESIZE */
22374# ifdef NBPG
22375# define getpagesize() NBPG * CLSIZE
22376# ifndef CLSIZE
22377# define CLSIZE 1
22378# endif /* no CLSIZE */
22379# else /* no NBPG */
22380# ifdef NBPC
22381# define getpagesize() NBPC
22382# else /* no NBPC */
22383# ifdef PAGESIZE
22384# define getpagesize() PAGESIZE
22385# endif /* PAGESIZE */
22386# endif /* no NBPC */
22387# endif /* no NBPG */
22388# endif /* no EXEC_PAGESIZE */
22389# else /* no HAVE_SYS_PARAM_H */
22390# define getpagesize() 8192 /* punt totally */
22391# endif /* no HAVE_SYS_PARAM_H */
22392# endif /* no _SC_PAGESIZE */
22393
22394#endif /* no HAVE_GETPAGESIZE */
22395
22396int
22397main ()
22398{
22399 char *data, *data2, *data3;
22400 int i, pagesize;
22401 int fd;
22402
22403 pagesize = getpagesize ();
22404
22405 /* First, make a file with some known garbage in it. */
22406 data = (char *) malloc (pagesize);
22407 if (!data)
22408 exit (1);
22409 for (i = 0; i < pagesize; ++i)
22410 *(data + i) = rand ();
22411 umask (0);
22412 fd = creat ("conftest.mmap", 0600);
22413 if (fd < 0)
22414 exit (1);
22415 if (write (fd, data, pagesize) != pagesize)
22416 exit (1);
22417 close (fd);
22418
22419 /* Next, try to mmap the file at a fixed address which already has
22420 something else allocated at it. If we can, also make sure that
22421 we see the same garbage. */
22422 fd = open ("conftest.mmap", O_RDWR);
22423 if (fd < 0)
22424 exit (1);
22425 data2 = (char *) malloc (2 * pagesize);
22426 if (!data2)
22427 exit (1);
22428 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22429 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22430 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22431 exit (1);
22432 for (i = 0; i < pagesize; ++i)
22433 if (*(data + i) != *(data2 + i))
22434 exit (1);
22435
22436 /* Finally, make sure that changes to the mapped area do not
22437 percolate back to the file as seen by read(). (This is a bug on
22438 some variants of i386 svr4.0.) */
22439 for (i = 0; i < pagesize; ++i)
22440 *(data2 + i) = *(data2 + i) + 1;
22441 data3 = (char *) malloc (pagesize);
22442 if (!data3)
22443 exit (1);
22444 if (read (fd, data3, pagesize) != pagesize)
22445 exit (1);
22446 for (i = 0; i < pagesize; ++i)
22447 if (*(data + i) != *(data3 + i))
22448 exit (1);
22449 close (fd);
22450 exit (0);
22451}
22452_ACEOF
22453rm -f conftest$ac_exeext
22454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22455 (eval $ac_link) 2>&5
22456 ac_status=$?
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 ac_cv_func_mmap_fixed_mapped=yes
22465else
22466 echo "$as_me: program exited with status $ac_status" >&5
22467echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022468sed 's/^/| /' conftest.$ac_ext >&5
22469
John Criswell7a73b802003-06-30 21:59:07 +000022470( exit $ac_status )
22471ac_cv_func_mmap_fixed_mapped=no
22472fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022473rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022474fi
22475fi
22476echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22477echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22478if test $ac_cv_func_mmap_fixed_mapped = yes; then
22479
22480cat >>confdefs.h <<\_ACEOF
22481#define HAVE_MMAP 1
22482_ACEOF
22483
22484fi
22485rm -f conftest.mmap
22486
22487echo "$as_me:$LINENO: checking for mmap of files" >&5
22488echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22489if test "${ac_cv_func_mmap_file+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22491else
22492
22493
22494 ac_ext=c
22495ac_cpp='$CPP $CPPFLAGS'
22496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22498ac_compiler_gnu=$ac_cv_c_compiler_gnu
22499
22500 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22502See \`config.log' for more details." >&5
22503echo "$as_me: error: cannot run test program while cross compiling
22504See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022505 { (exit 1); exit 1; }; }
22506else
22507 cat >conftest.$ac_ext <<_ACEOF
22508#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022509/* confdefs.h. */
22510_ACEOF
22511cat confdefs.h >>conftest.$ac_ext
22512cat >>conftest.$ac_ext <<_ACEOF
22513/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022514
John Criswell7a73b802003-06-30 21:59:07 +000022515#ifdef HAVE_SYS_TYPES_H
22516#include <sys/types.h>
22517#endif
22518
John Criswell5ab73462003-10-09 15:44:28 +000022519#ifdef HAVE_SYS_MMAN_H
22520#include <sys/mman.h>
22521#endif
22522
John Criswell7a73b802003-06-30 21:59:07 +000022523#ifdef HAVE_FCNTL_H
22524#include <fcntl.h>
22525#endif
22526
22527 int fd;
22528 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022529 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 +000022530_ACEOF
22531rm -f conftest$ac_exeext
22532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533 (eval $ac_link) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22542 ac_cv_func_mmap_file=yes
22543else
22544 echo "$as_me: program exited with status $ac_status" >&5
22545echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022546sed 's/^/| /' conftest.$ac_ext >&5
22547
John Criswell7a73b802003-06-30 21:59:07 +000022548( exit $ac_status )
22549ac_cv_func_mmap_file=no
22550fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022551rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022552fi
22553 ac_ext=c
22554ac_cpp='$CPP $CPPFLAGS'
22555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22557ac_compiler_gnu=$ac_cv_c_compiler_gnu
22558
22559
22560fi
22561echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22562echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22563if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022564
22565cat >>confdefs.h <<\_ACEOF
22566#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022567_ACEOF
22568
22569 MMAP_FILE=yes
22570
22571fi
22572
22573if test ${ac_cv_func_mmap_file} = "no"
22574then
22575 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22576echo "$as_me: error: mmap() of files required but not found" >&2;}
22577 { (exit 1); exit 1; }; }
22578fi
22579echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22580echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22581if test "${ac_cv_header_mmap_anon+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22583else
22584
22585
22586 ac_ext=c
22587ac_cpp='$CPP $CPPFLAGS'
22588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22590ac_compiler_gnu=$ac_cv_c_compiler_gnu
22591
22592 cat >conftest.$ac_ext <<_ACEOF
22593#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022594/* confdefs.h. */
22595_ACEOF
22596cat confdefs.h >>conftest.$ac_ext
22597cat >>conftest.$ac_ext <<_ACEOF
22598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022599#include <sys/mman.h>
22600 #include <unistd.h>
22601 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022602int
22603main ()
22604{
22605mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22606 ;
22607 return 0;
22608}
22609_ACEOF
22610rm -f conftest.$ac_objext
22611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22612 (eval $ac_compile) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
22616 { ac_try='test -s conftest.$ac_objext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_cv_header_mmap_anon=yes
22623else
22624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022625sed 's/^/| /' conftest.$ac_ext >&5
22626
John Criswell7a73b802003-06-30 21:59:07 +000022627ac_cv_header_mmap_anon=no
22628fi
22629rm -f conftest.$ac_objext conftest.$ac_ext
22630 ac_ext=c
22631ac_cpp='$CPP $CPPFLAGS'
22632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22634ac_compiler_gnu=$ac_cv_c_compiler_gnu
22635
22636
22637fi
22638echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22639echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22640if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022641
22642cat >>confdefs.h <<\_ACEOF
22643#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022644_ACEOF
22645
22646fi
22647
22648echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22649echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22650if test "${ac_cv_type_signal+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22652else
22653 cat >conftest.$ac_ext <<_ACEOF
22654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022655/* confdefs.h. */
22656_ACEOF
22657cat confdefs.h >>conftest.$ac_ext
22658cat >>conftest.$ac_ext <<_ACEOF
22659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022660#include <sys/types.h>
22661#include <signal.h>
22662#ifdef signal
22663# undef signal
22664#endif
22665#ifdef __cplusplus
22666extern "C" void (*signal (int, void (*)(int)))(int);
22667#else
22668void (*signal ()) ();
22669#endif
22670
John Criswell7a73b802003-06-30 21:59:07 +000022671int
22672main ()
22673{
22674int i;
22675 ;
22676 return 0;
22677}
22678_ACEOF
22679rm -f conftest.$ac_objext
22680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22681 (eval $ac_compile) 2>&5
22682 ac_status=$?
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
22685 { ac_try='test -s conftest.$ac_objext'
22686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687 (eval $ac_try) 2>&5
22688 ac_status=$?
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); }; }; then
22691 ac_cv_type_signal=void
22692else
22693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022694sed 's/^/| /' conftest.$ac_ext >&5
22695
John Criswell7a73b802003-06-30 21:59:07 +000022696ac_cv_type_signal=int
22697fi
22698rm -f conftest.$ac_objext conftest.$ac_ext
22699fi
22700echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22701echo "${ECHO_T}$ac_cv_type_signal" >&6
22702
22703cat >>confdefs.h <<_ACEOF
22704#define RETSIGTYPE $ac_cv_type_signal
22705_ACEOF
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
Brian Gaekec45be042003-10-07 06:01:34 +000022717
22718
John Criswella0137d32003-10-13 16:22:01 +000022719for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022720do
22721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22722echo "$as_me:$LINENO: checking for $ac_func" >&5
22723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22724if eval "test \"\${$as_ac_var+set}\" = set"; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726else
22727 cat >conftest.$ac_ext <<_ACEOF
22728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022729/* confdefs.h. */
22730_ACEOF
22731cat confdefs.h >>conftest.$ac_ext
22732cat >>conftest.$ac_ext <<_ACEOF
22733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022734/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022735 which can conflict with char $ac_func (); below.
22736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22737 <limits.h> exists even on freestanding compilers. */
22738#ifdef __STDC__
22739# include <limits.h>
22740#else
22741# include <assert.h>
22742#endif
John Criswell7a73b802003-06-30 21:59:07 +000022743/* Override any gcc2 internal prototype to avoid an error. */
22744#ifdef __cplusplus
22745extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022746{
John Criswell7a73b802003-06-30 21:59:07 +000022747#endif
22748/* We use char because int might match the return type of a gcc2
22749 builtin and then its argument prototype would still apply. */
22750char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022751/* The GNU C library defines this for functions which it implements
22752 to always fail with ENOSYS. Some functions are actually named
22753 something starting with __ and the normal name is an alias. */
22754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22755choke me
22756#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022757char (*f) () = $ac_func;
22758#endif
22759#ifdef __cplusplus
22760}
John Criswell7a73b802003-06-30 21:59:07 +000022761#endif
22762
John Criswell0c38eaf2003-09-10 15:17:25 +000022763int
22764main ()
22765{
22766return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022767 ;
22768 return 0;
22769}
22770_ACEOF
22771rm -f conftest.$ac_objext conftest$ac_exeext
22772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773 (eval $ac_link) 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } &&
22777 { ac_try='test -s conftest$ac_exeext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 eval "$as_ac_var=yes"
22784else
22785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022786sed 's/^/| /' conftest.$ac_ext >&5
22787
John Criswell7a73b802003-06-30 21:59:07 +000022788eval "$as_ac_var=no"
22789fi
22790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22791fi
22792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22793echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22794if test `eval echo '${'$as_ac_var'}'` = yes; then
22795 cat >>confdefs.h <<_ACEOF
22796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22797_ACEOF
22798
22799fi
22800done
22801
22802
22803
22804echo "$as_me:$LINENO: checking for mmap" >&5
22805echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22806if test "${ac_cv_func_mmap+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808else
22809 cat >conftest.$ac_ext <<_ACEOF
22810#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022811/* confdefs.h. */
22812_ACEOF
22813cat confdefs.h >>conftest.$ac_ext
22814cat >>conftest.$ac_ext <<_ACEOF
22815/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022816/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022817 which can conflict with char mmap (); below.
22818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22819 <limits.h> exists even on freestanding compilers. */
22820#ifdef __STDC__
22821# include <limits.h>
22822#else
22823# include <assert.h>
22824#endif
John Criswell7a73b802003-06-30 21:59:07 +000022825/* Override any gcc2 internal prototype to avoid an error. */
22826#ifdef __cplusplus
22827extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022828{
John Criswell7a73b802003-06-30 21:59:07 +000022829#endif
22830/* We use char because int might match the return type of a gcc2
22831 builtin and then its argument prototype would still apply. */
22832char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022833/* The GNU C library defines this for functions which it implements
22834 to always fail with ENOSYS. Some functions are actually named
22835 something starting with __ and the normal name is an alias. */
22836#if defined (__stub_mmap) || defined (__stub___mmap)
22837choke me
22838#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022839char (*f) () = mmap;
22840#endif
22841#ifdef __cplusplus
22842}
John Criswell7a73b802003-06-30 21:59:07 +000022843#endif
22844
John Criswell0c38eaf2003-09-10 15:17:25 +000022845int
22846main ()
22847{
22848return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022849 ;
22850 return 0;
22851}
22852_ACEOF
22853rm -f conftest.$ac_objext conftest$ac_exeext
22854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22855 (eval $ac_link) 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } &&
22859 { ac_try='test -s conftest$ac_exeext'
22860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861 (eval $ac_try) 2>&5
22862 ac_status=$?
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; }; then
22865 ac_cv_func_mmap=yes
22866else
22867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022868sed 's/^/| /' conftest.$ac_ext >&5
22869
John Criswell7a73b802003-06-30 21:59:07 +000022870ac_cv_func_mmap=no
22871fi
22872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22873fi
22874echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22875echo "${ECHO_T}$ac_cv_func_mmap" >&6
22876if test $ac_cv_func_mmap = yes; then
22877 :
22878else
22879 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22880echo "$as_me: error: Function mmap() required but not found" >&2;}
22881 { (exit 1); exit 1; }; }
22882fi
22883
22884echo "$as_me:$LINENO: checking for mprotect" >&5
22885echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22886if test "${ac_cv_func_mprotect+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22888else
22889 cat >conftest.$ac_ext <<_ACEOF
22890#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022891/* confdefs.h. */
22892_ACEOF
22893cat confdefs.h >>conftest.$ac_ext
22894cat >>conftest.$ac_ext <<_ACEOF
22895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022896/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022897 which can conflict with char mprotect (); below.
22898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22899 <limits.h> exists even on freestanding compilers. */
22900#ifdef __STDC__
22901# include <limits.h>
22902#else
22903# include <assert.h>
22904#endif
John Criswell7a73b802003-06-30 21:59:07 +000022905/* Override any gcc2 internal prototype to avoid an error. */
22906#ifdef __cplusplus
22907extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022908{
John Criswell7a73b802003-06-30 21:59:07 +000022909#endif
22910/* We use char because int might match the return type of a gcc2
22911 builtin and then its argument prototype would still apply. */
22912char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022913/* The GNU C library defines this for functions which it implements
22914 to always fail with ENOSYS. Some functions are actually named
22915 something starting with __ and the normal name is an alias. */
22916#if defined (__stub_mprotect) || defined (__stub___mprotect)
22917choke me
22918#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022919char (*f) () = mprotect;
22920#endif
22921#ifdef __cplusplus
22922}
John Criswell7a73b802003-06-30 21:59:07 +000022923#endif
22924
John Criswell0c38eaf2003-09-10 15:17:25 +000022925int
22926main ()
22927{
22928return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022929 ;
22930 return 0;
22931}
22932_ACEOF
22933rm -f conftest.$ac_objext conftest$ac_exeext
22934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22935 (eval $ac_link) 2>&5
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } &&
22939 { ac_try='test -s conftest$ac_exeext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_func_mprotect=yes
22946else
22947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022948sed 's/^/| /' conftest.$ac_ext >&5
22949
John Criswell7a73b802003-06-30 21:59:07 +000022950ac_cv_func_mprotect=no
22951fi
22952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22953fi
22954echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22955echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22956if test $ac_cv_func_mprotect = yes; then
22957 :
22958else
22959 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22960echo "$as_me: error: Function mprotect() required but not found" >&2;}
22961 { (exit 1); exit 1; }; }
22962fi
22963
22964
John Criswellb13092b2003-07-22 21:00:24 +000022965
John Criswell7a73b802003-06-30 21:59:07 +000022966# Check whether --enable-purify or --disable-purify was given.
22967if test "${enable_purify+set}" = set; then
22968 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022969
22970else
John Criswellb13092b2003-07-22 21:00:24 +000022971 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022972fi;
John Criswellb13092b2003-07-22 21:00:24 +000022973if test ${enableval} = "no"
22974then
22975 ENABLE_PURIFY=
22976
22977else
22978 ENABLE_PURIFY=ENABLE_PURIFY=1
22979
22980fi
22981
John Criswell7a73b802003-06-30 21:59:07 +000022982# Check whether --enable-optimized or --disable-optimized was given.
22983if test "${enable_optimized+set}" = set; then
22984 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022985
22986else
John Criswellb13092b2003-07-22 21:00:24 +000022987 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022988fi;
John Criswellb13092b2003-07-22 21:00:24 +000022989if test ${enableval} = "no"
22990then
22991 ENABLE_OPTIMIZED=
22992
22993else
22994 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22995
22996fi
22997
John Criswell55126592003-10-07 21:57:39 +000022998# Check whether --enable-spec2000 or --disable-spec2000 was given.
22999if test "${enable_spec2000+set}" = set; then
23000 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000023001
23002else
John Criswellb13092b2003-07-22 21:00:24 +000023003 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023004fi;
John Criswellb13092b2003-07-22 21:00:24 +000023005if test ${enableval} = "no"
23006then
John Criswell55126592003-10-07 21:57:39 +000023007 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
23008 then
23009 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000023010
John Criswell55126592003-10-07 21:57:39 +000023011 USE_SPEC=USE_SPEC=1
23012
23013 else
23014 USE_SPEC=
23015
23016
23017 fi
John Criswellb13092b2003-07-22 21:00:24 +000023018else
John Criswell55126592003-10-07 21:57:39 +000023019 if test ${enableval} = ""
23020 then
23021 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23022
23023 else
23024 SPEC_ROOT=${enableval}
23025
23026 fi
John Criswellb13092b2003-07-22 21:00:24 +000023027 USE_SPEC=USE_SPEC=1
23028
23029fi
23030
John Criswell7a73b802003-06-30 21:59:07 +000023031# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23032if test "${enable_precompiled_bytecode+set}" = set; then
23033 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023034
23035else
John Criswellb13092b2003-07-22 21:00:24 +000023036 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023037fi;
John Criswellb13092b2003-07-22 21:00:24 +000023038if test ${enableval} = "no"
23039then
23040 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023041
John Criswellb13092b2003-07-22 21:00:24 +000023042else
23043 UPB=USE_PRECOMPILED_BYTECODE=1
23044
23045fi
John Criswellf02dbf02003-07-22 20:07:49 +000023046
23047
23048# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23049if test "${enable_llc_diffs+set}" = set; then
23050 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023051
23052else
John Criswellb13092b2003-07-22 21:00:24 +000023053 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023054fi;
John Criswellb13092b2003-07-22 21:00:24 +000023055if test ${enableval} = "no"
23056then
23057 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023058
John Criswellb13092b2003-07-22 21:00:24 +000023059else
23060 DISABLE_LLC_DIFFS=
23061
23062fi
23063
23064# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023065if test "${enable_jit+set}" = set; then
23066 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023067
23068else
John Criswellc78022e2003-07-29 19:11:58 +000023069 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023070fi;
John Criswellb13092b2003-07-22 21:00:24 +000023071
23072if test ${enableval} = "no"
23073then
23074 JIT=
23075
23076else
John Criswellc78022e2003-07-29 19:11:58 +000023077 case $target in
23078 *i*86*)
23079 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023080
John Criswellc78022e2003-07-29 19:11:58 +000023081 ;;
23082 *sparc*)
23083 JIT=TARGET_HAS_JIT=1
23084
23085 ;;
23086 *)
23087 JIT=
23088
23089 ;;
23090 esac
John Criswellb13092b2003-07-22 21:00:24 +000023091fi
John Criswell7a73b802003-06-30 21:59:07 +000023092
23093
John Criswellc78022e2003-07-29 19:11:58 +000023094
John Criswell7a73b802003-06-30 21:59:07 +000023095# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23096if test "${with_llvmgccdir+set}" = set; then
23097 withval="$with_llvmgccdir"
23098 LLVMGCCDIR=$withval
23099
23100fi;
23101
John Criswellc78022e2003-07-29 19:11:58 +000023102
John Criswell7a73b802003-06-30 21:59:07 +000023103# Check whether --with-bcrepos or --without-bcrepos was given.
23104if test "${with_bcrepos+set}" = set; then
23105 withval="$with_bcrepos"
23106 BCR=$withval
23107
23108else
23109 BCR=/home/vadve/lattner/LLVMPrograms
23110
23111fi;
23112
John Criswellc78022e2003-07-29 19:11:58 +000023113
John Criswell7a73b802003-06-30 21:59:07 +000023114# Check whether --with-papi or --without-papi was given.
23115if test "${with_papi+set}" = set; then
23116 withval="$with_papi"
23117 PAPIDIR=$withval
23118
23119else
John Criswellde00db22003-08-25 16:49:54 +000023120 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023121
23122fi;
23123
John Criswell7a73b802003-06-30 21:59:07 +000023124
23125# Check whether --with-purify or --without-purify was given.
23126if test "${with_purify+set}" = set; then
23127 withval="$with_purify"
23128 PURIFY=$withval
23129
23130fi;
23131
John Criswellde00db22003-08-25 16:49:54 +000023132
John Criswell0c38eaf2003-09-10 15:17:25 +000023133 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000023134cat >confcache <<\_ACEOF
23135# This file is a shell script that caches the results of configure
23136# tests run on this system so they can be shared between configure
23137# scripts and configure runs, see configure's option --config-cache.
23138# It is not useful on other systems. If it contains results you don't
23139# want to keep, you may remove or edit it.
23140#
23141# config.status only pays attention to the cache file if you give it
23142# the --recheck option to rerun configure.
23143#
John Criswell0c38eaf2003-09-10 15:17:25 +000023144# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023145# loading this file, other *unset* `ac_cv_foo' will be assigned the
23146# following values.
23147
23148_ACEOF
23149
23150# The following way of writing the cache mishandles newlines in values,
23151# but we know of no workaround that is simple, portable, and efficient.
23152# So, don't put newlines in cache variables' values.
23153# Ultrix sh set writes to stderr and can't be redirected directly,
23154# and sets the high bit in the cache file unless we assign to the vars.
23155{
23156 (set) 2>&1 |
23157 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23158 *ac_space=\ *)
23159 # `set' does not quote correctly, so add quotes (double-quote
23160 # substitution turns \\\\ into \\, and sed turns \\ into \).
23161 sed -n \
23162 "s/'/'\\\\''/g;
23163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23164 ;;
23165 *)
23166 # `set' quotes correctly as required by POSIX, so do not add quotes.
23167 sed -n \
23168 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23169 ;;
23170 esac;
23171} |
23172 sed '
23173 t clear
23174 : clear
23175 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23176 t end
23177 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23178 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023179if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023180 if test -w $cache_file; then
23181 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23182 cat confcache >$cache_file
23183 else
23184 echo "not updating unwritable cache $cache_file"
23185 fi
23186fi
23187rm -f confcache
23188
23189test "x$prefix" = xNONE && prefix=$ac_default_prefix
23190# Let make expand exec_prefix.
23191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23192
23193# VPATH may cause trouble with some makes, so we remove $(srcdir),
23194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23195# trailing colons and then remove the whole line if VPATH becomes empty
23196# (actually we leave an empty line to preserve line numbers).
23197if test "x$srcdir" = x.; then
23198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23199s/:*\$(srcdir):*/:/;
23200s/:*\${srcdir}:*/:/;
23201s/:*@srcdir@:*/:/;
23202s/^\([^=]*=[ ]*\):*/\1/;
23203s/:*$//;
23204s/^[^=]*=[ ]*$//;
23205}'
23206fi
23207
23208DEFS=-DHAVE_CONFIG_H
23209
John Criswell0c38eaf2003-09-10 15:17:25 +000023210ac_libobjs=
23211ac_ltlibobjs=
23212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23213 # 1. Remove the extension, and $U if already installed.
23214 ac_i=`echo "$ac_i" |
23215 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23216 # 2. Add them.
23217 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23218 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23219done
23220LIBOBJS=$ac_libobjs
23221
23222LTLIBOBJS=$ac_ltlibobjs
23223
23224
John Criswell7a73b802003-06-30 21:59:07 +000023225
23226: ${CONFIG_STATUS=./config.status}
23227ac_clean_files_save=$ac_clean_files
23228ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23229{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23230echo "$as_me: creating $CONFIG_STATUS" >&6;}
23231cat >$CONFIG_STATUS <<_ACEOF
23232#! $SHELL
23233# Generated by $as_me.
23234# Run this file to recreate the current configuration.
23235# Compiler output produced by configure, useful for debugging
23236# configure, is in config.log if it exists.
23237
23238debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023239ac_cs_recheck=false
23240ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023241SHELL=\${CONFIG_SHELL-$SHELL}
23242_ACEOF
23243
23244cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023245## --------------------- ##
23246## M4sh Initialization. ##
23247## --------------------- ##
23248
23249# Be Bourne compatible
23250if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23251 emulate sh
23252 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023253 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23254 # is contrary to our usage. Disable this feature.
23255 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023256elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23257 set -o posix
23258fi
23259
John Criswell7a73b802003-06-30 21:59:07 +000023260# Support unset when possible.
23261if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23262 as_unset=unset
23263else
23264 as_unset=false
23265fi
23266
John Criswell0c38eaf2003-09-10 15:17:25 +000023267
23268# Work around bugs in pre-3.0 UWIN ksh.
23269$as_unset ENV MAIL MAILPATH
23270PS1='$ '
23271PS2='> '
23272PS4='+ '
23273
23274# NLS nuisances.
23275for as_var in \
23276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23278 LC_TELEPHONE LC_TIME
23279do
23280 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23281 eval $as_var=C; export $as_var
23282 else
23283 $as_unset $as_var
23284 fi
23285done
23286
23287# Required to use basename.
23288if expr a : '\(a\)' >/dev/null 2>&1; then
23289 as_expr=expr
23290else
23291 as_expr=false
23292fi
23293
23294if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23295 as_basename=basename
23296else
23297 as_basename=false
23298fi
John Criswell7a73b802003-06-30 21:59:07 +000023299
23300
23301# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023302as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23304 X"$0" : 'X\(//\)$' \| \
23305 X"$0" : 'X\(/\)$' \| \
23306 . : '\(.\)' 2>/dev/null ||
23307echo X/"$0" |
23308 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23309 /^X\/\(\/\/\)$/{ s//\1/; q; }
23310 /^X\/\(\/\).*/{ s//\1/; q; }
23311 s/.*/./; q'`
23312
John Criswell0c38eaf2003-09-10 15:17:25 +000023313
John Criswell7a73b802003-06-30 21:59:07 +000023314# PATH needs CR, and LINENO needs CR and PATH.
23315# Avoid depending upon Character Ranges.
23316as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23318as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23319as_cr_digits='0123456789'
23320as_cr_alnum=$as_cr_Letters$as_cr_digits
23321
23322# The user is always right.
23323if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023324 echo "#! /bin/sh" >conf$$.sh
23325 echo "exit 0" >>conf$$.sh
23326 chmod +x conf$$.sh
23327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023328 PATH_SEPARATOR=';'
23329 else
23330 PATH_SEPARATOR=:
23331 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023332 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023333fi
23334
23335
23336 as_lineno_1=$LINENO
23337 as_lineno_2=$LINENO
23338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23339 test "x$as_lineno_1" != "x$as_lineno_2" &&
23340 test "x$as_lineno_3" = "x$as_lineno_2" || {
23341 # Find who we are. Look in the path if we contain no path at all
23342 # relative or not.
23343 case $0 in
23344 *[\\/]* ) as_myself=$0 ;;
23345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23346for as_dir in $PATH
23347do
23348 IFS=$as_save_IFS
23349 test -z "$as_dir" && as_dir=.
23350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23351done
23352
23353 ;;
23354 esac
23355 # We did not find ourselves, most probably we were run as `sh COMMAND'
23356 # in which case we are not to be found in the path.
23357 if test "x$as_myself" = x; then
23358 as_myself=$0
23359 fi
23360 if test ! -f "$as_myself"; then
23361 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23362echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23363 { (exit 1); exit 1; }; }
23364 fi
23365 case $CONFIG_SHELL in
23366 '')
23367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23368for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23369do
23370 IFS=$as_save_IFS
23371 test -z "$as_dir" && as_dir=.
23372 for as_base in sh bash ksh sh5; do
23373 case $as_dir in
23374 /*)
23375 if ("$as_dir/$as_base" -c '
23376 as_lineno_1=$LINENO
23377 as_lineno_2=$LINENO
23378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23379 test "x$as_lineno_1" != "x$as_lineno_2" &&
23380 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023381 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23382 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023383 CONFIG_SHELL=$as_dir/$as_base
23384 export CONFIG_SHELL
23385 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23386 fi;;
23387 esac
23388 done
23389done
23390;;
23391 esac
23392
23393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23394 # uniformly replaced by the line number. The first 'sed' inserts a
23395 # line-number line before each line; the second 'sed' does the real
23396 # work. The second script uses 'N' to pair each line-number line
23397 # with the numbered line, and appends trailing '-' during
23398 # substitution so that $LINENO is not a special case at line end.
23399 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23400 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23401 sed '=' <$as_myself |
23402 sed '
23403 N
23404 s,$,-,
23405 : loop
23406 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23407 t loop
23408 s,-$,,
23409 s,^['$as_cr_digits']*\n,,
23410 ' >$as_me.lineno &&
23411 chmod +x $as_me.lineno ||
23412 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23413echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23414 { (exit 1); exit 1; }; }
23415
23416 # Don't try to exec as it changes $[0], causing all sort of problems
23417 # (the dirname of $[0] is not the place where we might find the
23418 # original and so on. Autoconf is especially sensible to this).
23419 . ./$as_me.lineno
23420 # Exit status is that of the last command.
23421 exit
23422}
23423
23424
23425case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23426 *c*,-n*) ECHO_N= ECHO_C='
23427' ECHO_T=' ' ;;
23428 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23429 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23430esac
23431
23432if expr a : '\(a\)' >/dev/null 2>&1; then
23433 as_expr=expr
23434else
23435 as_expr=false
23436fi
23437
23438rm -f conf$$ conf$$.exe conf$$.file
23439echo >conf$$.file
23440if ln -s conf$$.file conf$$ 2>/dev/null; then
23441 # We could just check for DJGPP; but this test a) works b) is more generic
23442 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23443 if test -f conf$$.exe; then
23444 # Don't use ln at all; we don't have any links
23445 as_ln_s='cp -p'
23446 else
23447 as_ln_s='ln -s'
23448 fi
23449elif ln conf$$.file conf$$ 2>/dev/null; then
23450 as_ln_s=ln
23451else
23452 as_ln_s='cp -p'
23453fi
23454rm -f conf$$ conf$$.exe conf$$.file
23455
John Criswell0c38eaf2003-09-10 15:17:25 +000023456if mkdir -p . 2>/dev/null; then
23457 as_mkdir_p=:
23458else
23459 as_mkdir_p=false
23460fi
23461
John Criswell7a73b802003-06-30 21:59:07 +000023462as_executable_p="test -f"
23463
23464# Sed expression to map a string onto a valid CPP name.
23465as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23466
23467# Sed expression to map a string onto a valid variable name.
23468as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23469
23470
23471# IFS
23472# We need space, tab and new line, in precisely that order.
23473as_nl='
23474'
23475IFS=" $as_nl"
23476
23477# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023478$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023479
23480exec 6>&1
23481
23482# Open the log real soon, to keep \$[0] and so on meaningful, and to
23483# report actual input values of CONFIG_FILES etc. instead of their
23484# values after options handling. Logging --version etc. is OK.
23485exec 5>>config.log
23486{
23487 echo
23488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23489## Running $as_me. ##
23490_ASBOX
23491} >&5
23492cat >&5 <<_CSEOF
23493
23494This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023495generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023496
23497 CONFIG_FILES = $CONFIG_FILES
23498 CONFIG_HEADERS = $CONFIG_HEADERS
23499 CONFIG_LINKS = $CONFIG_LINKS
23500 CONFIG_COMMANDS = $CONFIG_COMMANDS
23501 $ $0 $@
23502
23503_CSEOF
23504echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23505echo >&5
23506_ACEOF
23507
23508# Files that config.status was made for.
23509if test -n "$ac_config_files"; then
23510 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23511fi
23512
23513if test -n "$ac_config_headers"; then
23514 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23515fi
23516
23517if test -n "$ac_config_links"; then
23518 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23519fi
23520
23521if test -n "$ac_config_commands"; then
23522 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23523fi
23524
23525cat >>$CONFIG_STATUS <<\_ACEOF
23526
23527ac_cs_usage="\
23528\`$as_me' instantiates files from templates according to the
23529current configuration.
23530
23531Usage: $0 [OPTIONS] [FILE]...
23532
23533 -h, --help print this help, then exit
23534 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023535 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023536 -d, --debug don't remove temporary files
23537 --recheck update $as_me by reconfiguring in the same conditions
23538 --file=FILE[:TEMPLATE]
23539 instantiate the configuration file FILE
23540 --header=FILE[:TEMPLATE]
23541 instantiate the configuration header FILE
23542
23543Configuration files:
23544$config_files
23545
23546Configuration headers:
23547$config_headers
23548
John Criswellc764fbc2003-09-06 15:17:13 +000023549Configuration commands:
23550$config_commands
23551
John Criswell7a73b802003-06-30 21:59:07 +000023552Report bugs to <bug-autoconf@gnu.org>."
23553_ACEOF
23554
23555cat >>$CONFIG_STATUS <<_ACEOF
23556ac_cs_version="\\
23557[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023558configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023559 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23560
23561Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23562Free Software Foundation, Inc.
23563This config.status script is free software; the Free Software Foundation
23564gives unlimited permission to copy, distribute and modify it."
23565srcdir=$srcdir
23566INSTALL="$INSTALL"
23567_ACEOF
23568
23569cat >>$CONFIG_STATUS <<\_ACEOF
23570# If no file are specified by the user, then we need to provide default
23571# value. By we need to know if files were specified by the user.
23572ac_need_defaults=:
23573while test $# != 0
23574do
23575 case $1 in
23576 --*=*)
23577 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23578 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023579 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023580 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023581 -*)
23582 ac_option=$1
23583 ac_optarg=$2
23584 ac_shift=shift
23585 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023586 *) # This is not an option, so the user has probably given explicit
23587 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023588 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023589 ac_need_defaults=false;;
23590 esac
23591
John Criswell0c38eaf2003-09-10 15:17:25 +000023592 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023593 # Handling of the options.
23594_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023595cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23597 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023598 --version | --vers* | -V )
23599 echo "$ac_cs_version"; exit 0 ;;
23600 --he | --h)
23601 # Conflict between --help and --header
23602 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23603Try \`$0 --help' for more information." >&5
23604echo "$as_me: error: ambiguous option: $1
23605Try \`$0 --help' for more information." >&2;}
23606 { (exit 1); exit 1; }; };;
23607 --help | --hel | -h )
23608 echo "$ac_cs_usage"; exit 0 ;;
23609 --debug | --d* | -d )
23610 debug=: ;;
23611 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023612 $ac_shift
23613 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023614 ac_need_defaults=false;;
23615 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023616 $ac_shift
23617 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023618 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23620 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23621 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023622
23623 # This is an error.
23624 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23625Try \`$0 --help' for more information." >&5
23626echo "$as_me: error: unrecognized option: $1
23627Try \`$0 --help' for more information." >&2;}
23628 { (exit 1); exit 1; }; } ;;
23629
23630 *) ac_config_targets="$ac_config_targets $1" ;;
23631
23632 esac
23633 shift
23634done
23635
John Criswell0c38eaf2003-09-10 15:17:25 +000023636ac_configure_extra_args=
23637
23638if $ac_cs_silent; then
23639 exec 6>/dev/null
23640 ac_configure_extra_args="$ac_configure_extra_args --silent"
23641fi
23642
23643_ACEOF
23644cat >>$CONFIG_STATUS <<_ACEOF
23645if \$ac_cs_recheck; then
23646 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23647 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23648fi
23649
John Criswell7a73b802003-06-30 21:59:07 +000023650_ACEOF
23651
John Criswellc764fbc2003-09-06 15:17:13 +000023652cat >>$CONFIG_STATUS <<_ACEOF
23653#
23654# INIT-COMMANDS section.
23655#
John Criswell7a73b802003-06-30 21:59:07 +000023656
John Criswellc764fbc2003-09-06 15:17:13 +000023657${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23658${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23659${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23660${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23661${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23662${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23663${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23664${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23665${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23666${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23667${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23668${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23669${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23670${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23671${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23672${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23673${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023674${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23675${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23676${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23677${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23678${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023679${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023680${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23681${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23682${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23683${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23684${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23685${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23686${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23687${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23688${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23689${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23690${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23691${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23692${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23693${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23694${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023695${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023696${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23697${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23698${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23699${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023700${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023701${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023702${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23703${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023704${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23705${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023706${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023707${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23708${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023709${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23710${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023711${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23712${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23713${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23714${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23715${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23716${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23717${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23718${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23719${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23720${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23721${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23722${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23723${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23724${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23725${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23726${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23727${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23728${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023729${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023730${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023731${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023732${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23733${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23734${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23735${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23736${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23737${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23738${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23739${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23740${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23741${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023742${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23743${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023744${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23745${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23746${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23747${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23748${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23749${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23750${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023751${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23752${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023753${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23754${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023755${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23756${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023757${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/Makefile`
23758${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile`
23759${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23760${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23761${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23762${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23763${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23764${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23765${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23766${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23767${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23768${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23769${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23770${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23771${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswell48e3cb92003-09-12 16:31:43 +000023772${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23773${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23774${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23775${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23776${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23777${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23778${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23779${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23780${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23781${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23782${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23783${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23784${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23785${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23786${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23787${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23788${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23789${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23790${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23791${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23792${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23793${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023794${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023795${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23796${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23797${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23798${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23799${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23800${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023801${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023802${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023803${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23804${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023805${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23806${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23807${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23808${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23809${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23810${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023811${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023812${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023813${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023814${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023815${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23816${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023817${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023818${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23819${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023820${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023821${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23822${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23823${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023824${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023825${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023826${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023827${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023828${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023829${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023830${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023831${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023832${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023833${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023834${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23835${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23836${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23837${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023838${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023839${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23840${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23841${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23842${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23843
23844_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023845
23846
23847
23848cat >>$CONFIG_STATUS <<\_ACEOF
23849for ac_config_target in $ac_config_targets
23850do
23851 case "$ac_config_target" in
23852 # Handling of arguments.
23853 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023854 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23855 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23856 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23857 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23858 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23859 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23860 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23861 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23862 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23863 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23864 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23865 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23866 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23867 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23868 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23869 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23870 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023871 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23872 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23873 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23874 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23875 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023876 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023877 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23878 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23879 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23880 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23881 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23882 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23883 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23884 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23885 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23886 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23887 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23888 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23889 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23890 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23891 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023892 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023893 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23894 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23895 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23896 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023897 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023898 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023899 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23900 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023901 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23902 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000023903 "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023904 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23905 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023906 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23907 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023908 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23909 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23910 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23911 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23912 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23913 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23914 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23915 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23916 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23917 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23918 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23919 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23920 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23921 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23922 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23923 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23924 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23925 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023926 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023927 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023928 "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023929 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23930 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23931 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23932 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23933 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23934 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23935 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23936 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23937 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23938 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
John Criswell987e49c2003-10-10 01:11:54 +000023939 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23940 "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023941 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23942 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23943 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23944 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23945 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23946 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23947 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023948 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23949 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023950 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23951 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023952 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23953 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000023954 "test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ;;
23955 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ;;
23956 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23957 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23958 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23959 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23960 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23961 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23962 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23963 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23964 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23965 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23966 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23967 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23968 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023969 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23970 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23971 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23972 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23973 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23974 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23975 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23976 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23977 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23978 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23979 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23980 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23981 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23982 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23983 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23984 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23985 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23986 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23987 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23988 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23989 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23990 "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023991 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023992 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23993 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23994 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23995 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23996 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23997 "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023998 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023999 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024000 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24001 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024002 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
24003 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
24004 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
24005 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
24006 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
24007 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024008 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024009 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000024010 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000024011 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000024012 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
24013 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024014 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024015 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24016 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024017 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024018 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
24019 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
24020 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024021 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024022 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024023 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024024 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024025 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024026 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024027 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000024028 "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024029 "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024030 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024031 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24032 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
24033 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
24034 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024035 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024036 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
24037 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
24038 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
24039 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024040 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24041 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24042echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24043 { (exit 1); exit 1; }; };;
24044 esac
24045done
24046
24047# If the user did not use the arguments to specify the items to instantiate,
24048# then the envvar interface is used. Set only those that are not.
24049# We use the long form for the default assignment because of an extremely
24050# bizarre bug on SunOS 4.1.3.
24051if $ac_need_defaults; then
24052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000024054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024055fi
24056
John Criswell0c38eaf2003-09-10 15:17:25 +000024057# Have a temporary directory for convenience. Make it in the build tree
24058# simply because there is no reason to put it here, and in addition,
24059# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024060# Create a temporary directory, and hook for its removal unless debugging.
24061$debug ||
24062{
24063 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24064 trap '{ (exit 1); exit 1; }' 1 2 13 15
24065}
24066
24067# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024068
John Criswell7a73b802003-06-30 21:59:07 +000024069{
John Criswell0c38eaf2003-09-10 15:17:25 +000024070 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024071 test -n "$tmp" && test -d "$tmp"
24072} ||
24073{
John Criswell0c38eaf2003-09-10 15:17:25 +000024074 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024075 (umask 077 && mkdir $tmp)
24076} ||
24077{
John Criswell0c38eaf2003-09-10 15:17:25 +000024078 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024079 { (exit 1); exit 1; }
24080}
24081
24082_ACEOF
24083
24084cat >>$CONFIG_STATUS <<_ACEOF
24085
24086#
24087# CONFIG_FILES section.
24088#
24089
24090# No need to generate the scripts if there are no CONFIG_FILES.
24091# This happens for instance when ./config.status config.h
24092if test -n "\$CONFIG_FILES"; then
24093 # Protect against being on the right side of a sed subst in config.status.
24094 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24095 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24096s,@SHELL@,$SHELL,;t t
24097s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24098s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24099s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24100s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24101s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24102s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24103s,@exec_prefix@,$exec_prefix,;t t
24104s,@prefix@,$prefix,;t t
24105s,@program_transform_name@,$program_transform_name,;t t
24106s,@bindir@,$bindir,;t t
24107s,@sbindir@,$sbindir,;t t
24108s,@libexecdir@,$libexecdir,;t t
24109s,@datadir@,$datadir,;t t
24110s,@sysconfdir@,$sysconfdir,;t t
24111s,@sharedstatedir@,$sharedstatedir,;t t
24112s,@localstatedir@,$localstatedir,;t t
24113s,@libdir@,$libdir,;t t
24114s,@includedir@,$includedir,;t t
24115s,@oldincludedir@,$oldincludedir,;t t
24116s,@infodir@,$infodir,;t t
24117s,@mandir@,$mandir,;t t
24118s,@build_alias@,$build_alias,;t t
24119s,@host_alias@,$host_alias,;t t
24120s,@target_alias@,$target_alias,;t t
24121s,@DEFS@,$DEFS,;t t
24122s,@ECHO_C@,$ECHO_C,;t t
24123s,@ECHO_N@,$ECHO_N,;t t
24124s,@ECHO_T@,$ECHO_T,;t t
24125s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024126s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024127s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24128s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24129s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24130s,@build@,$build,;t t
24131s,@build_cpu@,$build_cpu,;t t
24132s,@build_vendor@,$build_vendor,;t t
24133s,@build_os@,$build_os,;t t
24134s,@host@,$host,;t t
24135s,@host_cpu@,$host_cpu,;t t
24136s,@host_vendor@,$host_vendor,;t t
24137s,@host_os@,$host_os,;t t
24138s,@target@,$target,;t t
24139s,@target_cpu@,$target_cpu,;t t
24140s,@target_vendor@,$target_vendor,;t t
24141s,@target_os@,$target_os,;t t
24142s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024143s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024144s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024145s,@CXX@,$CXX,;t t
24146s,@CXXFLAGS@,$CXXFLAGS,;t t
24147s,@LDFLAGS@,$LDFLAGS,;t t
24148s,@CPPFLAGS@,$CPPFLAGS,;t t
24149s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24150s,@EXEEXT@,$EXEEXT,;t t
24151s,@OBJEXT@,$OBJEXT,;t t
24152s,@CC@,$CC,;t t
24153s,@CFLAGS@,$CFLAGS,;t t
24154s,@ac_ct_CC@,$ac_ct_CC,;t t
24155s,@CPP@,$CPP,;t t
24156s,@ifGNUmake@,$ifGNUmake,;t t
24157s,@LEX@,$LEX,;t t
24158s,@LEXLIB@,$LEXLIB,;t t
24159s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24160s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024161s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024162s,@LN_S@,$LN_S,;t t
24163s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024164s,@AR@,$AR,;t t
24165s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024166s,@RANLIB@,$RANLIB,;t t
24167s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24168s,@STRIP@,$STRIP,;t t
24169s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024170s,@CXXCPP@,$CXXCPP,;t t
24171s,@F77@,$F77,;t t
24172s,@FFLAGS@,$FFLAGS,;t t
24173s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024174s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000024175s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024176s,@SED@,$SED,;t t
24177s,@RM@,$RM,;t t
24178s,@MKDIR@,$MKDIR,;t t
24179s,@DATE@,$DATE,;t t
24180s,@MV@,$MV,;t t
24181s,@DOT@,$DOT,;t t
24182s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024183s,@PYTHON@,$PYTHON,;t t
24184s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024185s,@ALLOCA@,$ALLOCA,;t t
24186s,@LIBOBJS@,$LIBOBJS,;t t
24187s,@MMAP_FILE@,$MMAP_FILE,;t t
24188s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024189s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000024190s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024191s,@USE_SPEC@,$USE_SPEC,;t t
24192s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024193s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024194s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024195s,@BCR@,$BCR,;t t
24196s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000024197s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024198s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024199CEOF
24200
24201_ACEOF
24202
24203 cat >>$CONFIG_STATUS <<\_ACEOF
24204 # Split the substitutions into bite-sized pieces for seds with
24205 # small command number limits, like on Digital OSF/1 and HP-UX.
24206 ac_max_sed_lines=48
24207 ac_sed_frag=1 # Number of current file.
24208 ac_beg=1 # First line for current file.
24209 ac_end=$ac_max_sed_lines # Line after last line for current file.
24210 ac_more_lines=:
24211 ac_sed_cmds=
24212 while $ac_more_lines; do
24213 if test $ac_beg -gt 1; then
24214 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24215 else
24216 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24217 fi
24218 if test ! -s $tmp/subs.frag; then
24219 ac_more_lines=false
24220 else
24221 # The purpose of the label and of the branching condition is to
24222 # speed up the sed processing (if there are no `@' at all, there
24223 # is no need to browse any of the substitutions).
24224 # These are the two extra sed commands mentioned above.
24225 (echo ':t
24226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24227 if test -z "$ac_sed_cmds"; then
24228 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24229 else
24230 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24231 fi
24232 ac_sed_frag=`expr $ac_sed_frag + 1`
24233 ac_beg=$ac_end
24234 ac_end=`expr $ac_end + $ac_max_sed_lines`
24235 fi
24236 done
24237 if test -z "$ac_sed_cmds"; then
24238 ac_sed_cmds=cat
24239 fi
24240fi # test -n "$CONFIG_FILES"
24241
24242_ACEOF
24243cat >>$CONFIG_STATUS <<\_ACEOF
24244for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24246 case $ac_file in
24247 - | *:- | *:-:* ) # input from stdin
24248 cat >$tmp/stdin
24249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24253 * ) ac_file_in=$ac_file.in ;;
24254 esac
24255
24256 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24259 X"$ac_file" : 'X\(//\)[^/]' \| \
24260 X"$ac_file" : 'X\(//\)$' \| \
24261 X"$ac_file" : 'X\(/\)' \| \
24262 . : '\(.\)' 2>/dev/null ||
24263echo X"$ac_file" |
24264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24266 /^X\(\/\/\)$/{ s//\1/; q; }
24267 /^X\(\/\).*/{ s//\1/; q; }
24268 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024269 { if $as_mkdir_p; then
24270 mkdir -p "$ac_dir"
24271 else
24272 as_dir="$ac_dir"
24273 as_dirs=
24274 while test ! -d "$as_dir"; do
24275 as_dirs="$as_dir $as_dirs"
24276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24277$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24278 X"$as_dir" : 'X\(//\)[^/]' \| \
24279 X"$as_dir" : 'X\(//\)$' \| \
24280 X"$as_dir" : 'X\(/\)' \| \
24281 . : '\(.\)' 2>/dev/null ||
24282echo X"$as_dir" |
24283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24285 /^X\(\/\/\)$/{ s//\1/; q; }
24286 /^X\(\/\).*/{ s//\1/; q; }
24287 s/.*/./; q'`
24288 done
24289 test ! -n "$as_dirs" || mkdir $as_dirs
24290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24291echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24292 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024293
24294 ac_builddir=.
24295
24296if test "$ac_dir" != .; then
24297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24298 # A "../" for each directory in $ac_dir_suffix.
24299 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24300else
24301 ac_dir_suffix= ac_top_builddir=
24302fi
24303
24304case $srcdir in
24305 .) # No --srcdir option. We are building in place.
24306 ac_srcdir=.
24307 if test -z "$ac_top_builddir"; then
24308 ac_top_srcdir=.
24309 else
24310 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24311 fi ;;
24312 [\\/]* | ?:[\\/]* ) # Absolute path.
24313 ac_srcdir=$srcdir$ac_dir_suffix;
24314 ac_top_srcdir=$srcdir ;;
24315 *) # Relative path.
24316 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24317 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24318esac
24319# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24320# absolute.
24321ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024322ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024323ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24324ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24325
24326
24327 case $INSTALL in
24328 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24329 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24330 esac
24331
24332 if test x"$ac_file" != x-; then
24333 { echo "$as_me:$LINENO: creating $ac_file" >&5
24334echo "$as_me: creating $ac_file" >&6;}
24335 rm -f "$ac_file"
24336 fi
24337 # Let's still pretend it is `configure' which instantiates (i.e., don't
24338 # use $as_me), people would be surprised to read:
24339 # /* config.h. Generated by config.status. */
24340 if test x"$ac_file" = x-; then
24341 configure_input=
24342 else
24343 configure_input="$ac_file. "
24344 fi
24345 configure_input=$configure_input"Generated from `echo $ac_file_in |
24346 sed 's,.*/,,'` by configure."
24347
24348 # First look for the input files in the build tree, otherwise in the
24349 # src tree.
24350 ac_file_inputs=`IFS=:
24351 for f in $ac_file_in; do
24352 case $f in
24353 -) echo $tmp/stdin ;;
24354 [\\/$]*)
24355 # Absolute (can't be DOS-style, as IFS=:)
24356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24357echo "$as_me: error: cannot find input file: $f" >&2;}
24358 { (exit 1); exit 1; }; }
24359 echo $f;;
24360 *) # Relative
24361 if test -f "$f"; then
24362 # Build tree
24363 echo $f
24364 elif test -f "$srcdir/$f"; then
24365 # Source tree
24366 echo $srcdir/$f
24367 else
24368 # /dev/null tree
24369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24370echo "$as_me: error: cannot find input file: $f" >&2;}
24371 { (exit 1); exit 1; }; }
24372 fi;;
24373 esac
24374 done` || { (exit 1); exit 1; }
24375_ACEOF
24376cat >>$CONFIG_STATUS <<_ACEOF
24377 sed "$ac_vpsub
24378$extrasub
24379_ACEOF
24380cat >>$CONFIG_STATUS <<\_ACEOF
24381:t
24382/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24383s,@configure_input@,$configure_input,;t t
24384s,@srcdir@,$ac_srcdir,;t t
24385s,@abs_srcdir@,$ac_abs_srcdir,;t t
24386s,@top_srcdir@,$ac_top_srcdir,;t t
24387s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24388s,@builddir@,$ac_builddir,;t t
24389s,@abs_builddir@,$ac_abs_builddir,;t t
24390s,@top_builddir@,$ac_top_builddir,;t t
24391s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24392s,@INSTALL@,$ac_INSTALL,;t t
24393" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24394 rm -f $tmp/stdin
24395 if test x"$ac_file" != x-; then
24396 mv $tmp/out $ac_file
24397 else
24398 cat $tmp/out
24399 rm -f $tmp/out
24400 fi
24401
24402done
24403_ACEOF
24404cat >>$CONFIG_STATUS <<\_ACEOF
24405
24406#
24407# CONFIG_HEADER section.
24408#
24409
24410# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24411# NAME is the cpp macro being defined and VALUE is the value it is being given.
24412#
24413# ac_d sets the value in "#define NAME VALUE" lines.
24414ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24415ac_dB='[ ].*$,\1#\2'
24416ac_dC=' '
24417ac_dD=',;t'
24418# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24419ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24420ac_uB='$,\1#\2define\3'
24421ac_uC=' '
24422ac_uD=',;t'
24423
24424for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24426 case $ac_file in
24427 - | *:- | *:-:* ) # input from stdin
24428 cat >$tmp/stdin
24429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24433 * ) ac_file_in=$ac_file.in ;;
24434 esac
24435
24436 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24437echo "$as_me: creating $ac_file" >&6;}
24438
24439 # First look for the input files in the build tree, otherwise in the
24440 # src tree.
24441 ac_file_inputs=`IFS=:
24442 for f in $ac_file_in; do
24443 case $f in
24444 -) echo $tmp/stdin ;;
24445 [\\/$]*)
24446 # Absolute (can't be DOS-style, as IFS=:)
24447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24448echo "$as_me: error: cannot find input file: $f" >&2;}
24449 { (exit 1); exit 1; }; }
24450 echo $f;;
24451 *) # Relative
24452 if test -f "$f"; then
24453 # Build tree
24454 echo $f
24455 elif test -f "$srcdir/$f"; then
24456 # Source tree
24457 echo $srcdir/$f
24458 else
24459 # /dev/null tree
24460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24461echo "$as_me: error: cannot find input file: $f" >&2;}
24462 { (exit 1); exit 1; }; }
24463 fi;;
24464 esac
24465 done` || { (exit 1); exit 1; }
24466 # Remove the trailing spaces.
24467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24468
24469_ACEOF
24470
24471# Transform confdefs.h into two sed scripts, `conftest.defines' and
24472# `conftest.undefs', that substitutes the proper values into
24473# config.h.in to produce config.h. The first handles `#define'
24474# templates, and the second `#undef' templates.
24475# And first: Protect against being on the right side of a sed subst in
24476# config.status. Protect against being in an unquoted here document
24477# in config.status.
24478rm -f conftest.defines conftest.undefs
24479# Using a here document instead of a string reduces the quoting nightmare.
24480# Putting comments in sed scripts is not portable.
24481#
24482# `end' is used to avoid that the second main sed command (meant for
24483# 0-ary CPP macros) applies to n-ary macro definitions.
24484# See the Autoconf documentation for `clear'.
24485cat >confdef2sed.sed <<\_ACEOF
24486s/[\\&,]/\\&/g
24487s,[\\$`],\\&,g
24488t clear
24489: clear
24490s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24491t end
24492s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24493: end
24494_ACEOF
24495# If some macros were called several times there might be several times
24496# the same #defines, which is useless. Nevertheless, we may not want to
24497# sort them, since we want the *last* AC-DEFINE to be honored.
24498uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24499sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24500rm -f confdef2sed.sed
24501
24502# This sed command replaces #undef with comments. This is necessary, for
24503# example, in the case of _POSIX_SOURCE, which is predefined and required
24504# on some systems where configure will not decide to define it.
24505cat >>conftest.undefs <<\_ACEOF
24506s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24507_ACEOF
24508
24509# Break up conftest.defines because some shells have a limit on the size
24510# of here documents, and old seds have small limits too (100 cmds).
24511echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024512echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024513echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24514echo ' :' >>$CONFIG_STATUS
24515rm -f conftest.tail
24516while grep . conftest.defines >/dev/null
24517do
24518 # Write a limited-size here document to $tmp/defines.sed.
24519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24520 # Speed up: don't consider the non `#define' lines.
24521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24522 # Work around the forget-to-reset-the-flag bug.
24523 echo 't clr' >>$CONFIG_STATUS
24524 echo ': clr' >>$CONFIG_STATUS
24525 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24526 echo 'CEOF
24527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24528 rm -f $tmp/in
24529 mv $tmp/out $tmp/in
24530' >>$CONFIG_STATUS
24531 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24532 rm -f conftest.defines
24533 mv conftest.tail conftest.defines
24534done
24535rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024536echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024537echo >>$CONFIG_STATUS
24538
24539# Break up conftest.undefs because some shells have a limit on the size
24540# of here documents, and old seds have small limits too (100 cmds).
24541echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24542rm -f conftest.tail
24543while grep . conftest.undefs >/dev/null
24544do
24545 # Write a limited-size here document to $tmp/undefs.sed.
24546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24547 # Speed up: don't consider the non `#undef'
24548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24549 # Work around the forget-to-reset-the-flag bug.
24550 echo 't clr' >>$CONFIG_STATUS
24551 echo ': clr' >>$CONFIG_STATUS
24552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24553 echo 'CEOF
24554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24555 rm -f $tmp/in
24556 mv $tmp/out $tmp/in
24557' >>$CONFIG_STATUS
24558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24559 rm -f conftest.undefs
24560 mv conftest.tail conftest.undefs
24561done
24562rm -f conftest.undefs
24563
24564cat >>$CONFIG_STATUS <<\_ACEOF
24565 # Let's still pretend it is `configure' which instantiates (i.e., don't
24566 # use $as_me), people would be surprised to read:
24567 # /* config.h. Generated by config.status. */
24568 if test x"$ac_file" = x-; then
24569 echo "/* Generated by configure. */" >$tmp/config.h
24570 else
24571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24572 fi
24573 cat $tmp/in >>$tmp/config.h
24574 rm -f $tmp/in
24575 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024576 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24578echo "$as_me: $ac_file is unchanged" >&6;}
24579 else
24580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24581$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24582 X"$ac_file" : 'X\(//\)[^/]' \| \
24583 X"$ac_file" : 'X\(//\)$' \| \
24584 X"$ac_file" : 'X\(/\)' \| \
24585 . : '\(.\)' 2>/dev/null ||
24586echo X"$ac_file" |
24587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24589 /^X\(\/\/\)$/{ s//\1/; q; }
24590 /^X\(\/\).*/{ s//\1/; q; }
24591 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024592 { if $as_mkdir_p; then
24593 mkdir -p "$ac_dir"
24594 else
24595 as_dir="$ac_dir"
24596 as_dirs=
24597 while test ! -d "$as_dir"; do
24598 as_dirs="$as_dir $as_dirs"
24599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24601 X"$as_dir" : 'X\(//\)[^/]' \| \
24602 X"$as_dir" : 'X\(//\)$' \| \
24603 X"$as_dir" : 'X\(/\)' \| \
24604 . : '\(.\)' 2>/dev/null ||
24605echo X"$as_dir" |
24606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24608 /^X\(\/\/\)$/{ s//\1/; q; }
24609 /^X\(\/\).*/{ s//\1/; q; }
24610 s/.*/./; q'`
24611 done
24612 test ! -n "$as_dirs" || mkdir $as_dirs
24613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24614echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24615 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024616
24617 rm -f $ac_file
24618 mv $tmp/config.h $ac_file
24619 fi
24620 else
24621 cat $tmp/config.h
24622 rm -f $tmp/config.h
24623 fi
24624done
24625_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024626cat >>$CONFIG_STATUS <<\_ACEOF
24627
24628#
24629# CONFIG_COMMANDS section.
24630#
24631for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24632 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24633 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24634 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24635$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24636 X"$ac_dest" : 'X\(//\)[^/]' \| \
24637 X"$ac_dest" : 'X\(//\)$' \| \
24638 X"$ac_dest" : 'X\(/\)' \| \
24639 . : '\(.\)' 2>/dev/null ||
24640echo X"$ac_dest" |
24641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24643 /^X\(\/\/\)$/{ s//\1/; q; }
24644 /^X\(\/\).*/{ s//\1/; q; }
24645 s/.*/./; q'`
24646 ac_builddir=.
24647
24648if test "$ac_dir" != .; then
24649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24650 # A "../" for each directory in $ac_dir_suffix.
24651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24652else
24653 ac_dir_suffix= ac_top_builddir=
24654fi
24655
24656case $srcdir in
24657 .) # No --srcdir option. We are building in place.
24658 ac_srcdir=.
24659 if test -z "$ac_top_builddir"; then
24660 ac_top_srcdir=.
24661 else
24662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24663 fi ;;
24664 [\\/]* | ?:[\\/]* ) # Absolute path.
24665 ac_srcdir=$srcdir$ac_dir_suffix;
24666 ac_top_srcdir=$srcdir ;;
24667 *) # Relative path.
24668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24669 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24670esac
24671# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24672# absolute.
24673ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024674ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024675ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24676ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24677
24678
24679 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24680echo "$as_me: executing $ac_dest commands" >&6;}
24681 case $ac_dest in
24682 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24683 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24684 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24685 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24686 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24687 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24688 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24689 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24690 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24691 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24692 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24693 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24694 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24695 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24696 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24697 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24698 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024699 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24700 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24701 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24702 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24703 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024704 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024705 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24706 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24707 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24708 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24709 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24710 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24711 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24712 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24713 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24714 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24715 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24716 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24717 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24718 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24719 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024720 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024721 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24722 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24723 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24724 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024725 runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024726 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024727 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24728 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024729 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24730 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024731 runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024732 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24733 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024734 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24735 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 +000024736 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24737 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24738 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24739 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24740 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24741 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24742 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24743 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24744 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24745 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24746 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24747 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24748 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24749 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24750 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24751 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24752 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24753 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 +000024754 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 Criswellc764fbc2003-09-06 15:17:13 +000024755 test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
John Criswell5ab73462003-10-09 15:44:28 +000024756 test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024757 test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24758 test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24759 test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24760 test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24761 test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24762 test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24763 test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24764 test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24765 test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24766 test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
John Criswell987e49c2003-10-10 01:11:54 +000024767 test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24768 test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024769 test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24770 test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24771 test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24772 test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24773 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24774 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24775 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024776 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24777 test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024778 test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24779 test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024780 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24781 test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024782 test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ;;
24783 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ;;
24784 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 ;;
24785 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 ;;
24786 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 ;;
24787 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 ;;
24788 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 ;;
24789 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 ;;
24790 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 ;;
24791 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 ;;
24792 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 ;;
24793 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 ;;
24794 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 ;;
24795 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 ;;
24796 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 Criswell48e3cb92003-09-12 16:31:43 +000024797 test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24798 test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24799 test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24800 test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24801 test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24802 test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24803 test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24804 test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24805 test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24806 test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24807 test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24808 test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24809 test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24810 test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24811 test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24812 test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24813 test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24814 test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24815 test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24816 test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24817 test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24818 test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024819 test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024820 test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24821 test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24822 test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24823 test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24824 test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24825 test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024826 test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024827 test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024828 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24829 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024830 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24831 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24832 test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24833 test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24834 test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24835 test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024836 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024837 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
John Criswell0afe8252003-09-11 20:53:48 +000024838 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswell67181ca2003-09-26 14:53:17 +000024839 test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
John Criswell68886d42003-09-26 19:51:42 +000024840 test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24841 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024842 test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024843 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24844 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024845 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024846 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24847 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24848 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024849 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024850 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024851 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024852 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024853 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024854 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024855 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000024856 tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024857 tools/llvm-prof/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-prof/Makefile tools/llvm-prof/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024858 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024859 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24860 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24861 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24862 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024863 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024864 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24865 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24866 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24867 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24868 esac
24869done
24870_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024871
24872cat >>$CONFIG_STATUS <<\_ACEOF
24873
24874{ (exit 0); exit 0; }
24875_ACEOF
24876chmod +x $CONFIG_STATUS
24877ac_clean_files=$ac_clean_files_save
24878
24879
24880# configure is writing to config.log, and then calls config.status.
24881# config.status does its own redirection, appending to config.log.
24882# Unfortunately, on DOS this fails, as config.log is still kept open
24883# by configure, so config.status won't be able to write to it; its
24884# output is simply discarded. So we exec the FD to /dev/null,
24885# effectively closing config.log, so it can be properly (re)opened and
24886# appended to by config.status. When coming back to configure, we
24887# need to make the FD available again.
24888if test "$no_create" != yes; then
24889 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024890 ac_config_status_args=
24891 test "$silent" = yes &&
24892 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024893 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024895 exec 5>>config.log
24896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24897 # would make configure fail if this is the last instruction.
24898 $ac_cs_success || { (exit 1); exit 1; }
24899fi
24900
John Criswell12399a12003-09-30 15:55:44 +000024901#
24902# CONFIG_SUBDIRS section.
24903#
24904if test "$no_recursion" != yes; then
24905
24906 # Remove --cache-file and --srcdir arguments so they do not pile up.
24907 ac_sub_configure_args=
24908 ac_prev=
24909 for ac_arg in $ac_configure_args; do
24910 if test -n "$ac_prev"; then
24911 ac_prev=
24912 continue
24913 fi
24914 case $ac_arg in
24915 -cache-file | --cache-file | --cache-fil | --cache-fi \
24916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24917 ac_prev=cache_file ;;
24918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24920 | --c=*)
24921 ;;
24922 --config-cache | -C)
24923 ;;
24924 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24925 ac_prev=srcdir ;;
24926 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24927 ;;
24928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24929 ac_prev=prefix ;;
24930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24931 ;;
24932 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24933 esac
24934 done
24935
24936 # Always prepend --prefix to ensure using the same prefix
24937 # in subdir configurations.
24938 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24939
24940 ac_popdir=`pwd`
24941 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24942
24943 # Do not complain, so a configure script can configure whichever
24944 # parts of a large source tree are present.
24945 test -d $srcdir/$ac_dir || continue
24946
24947 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24948echo "$as_me: configuring in $ac_dir" >&6;}
24949 { if $as_mkdir_p; then
24950 mkdir -p "$ac_dir"
24951 else
24952 as_dir="$ac_dir"
24953 as_dirs=
24954 while test ! -d "$as_dir"; do
24955 as_dirs="$as_dir $as_dirs"
24956 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24957$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24958 X"$as_dir" : 'X\(//\)[^/]' \| \
24959 X"$as_dir" : 'X\(//\)$' \| \
24960 X"$as_dir" : 'X\(/\)' \| \
24961 . : '\(.\)' 2>/dev/null ||
24962echo X"$as_dir" |
24963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24965 /^X\(\/\/\)$/{ s//\1/; q; }
24966 /^X\(\/\).*/{ s//\1/; q; }
24967 s/.*/./; q'`
24968 done
24969 test ! -n "$as_dirs" || mkdir $as_dirs
24970 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24971echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24972 { (exit 1); exit 1; }; }; }
24973
24974 ac_builddir=.
24975
24976if test "$ac_dir" != .; then
24977 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24978 # A "../" for each directory in $ac_dir_suffix.
24979 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24980else
24981 ac_dir_suffix= ac_top_builddir=
24982fi
24983
24984case $srcdir in
24985 .) # No --srcdir option. We are building in place.
24986 ac_srcdir=.
24987 if test -z "$ac_top_builddir"; then
24988 ac_top_srcdir=.
24989 else
24990 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24991 fi ;;
24992 [\\/]* | ?:[\\/]* ) # Absolute path.
24993 ac_srcdir=$srcdir$ac_dir_suffix;
24994 ac_top_srcdir=$srcdir ;;
24995 *) # Relative path.
24996 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24997 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24998esac
24999# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25000# absolute.
25001ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25002ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25003ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25004ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25005
25006
25007 cd $ac_dir
25008
25009 # Check for guested configure; otherwise get Cygnus style configure.
25010 if test -f $ac_srcdir/configure.gnu; then
25011 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25012 elif test -f $ac_srcdir/configure; then
25013 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25014 elif test -f $ac_srcdir/configure.in; then
25015 ac_sub_configure=$ac_configure
25016 else
25017 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25018echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25019 ac_sub_configure=
25020 fi
25021
25022 # The recursion is here.
25023 if test -n "$ac_sub_configure"; then
25024 # Make the cache file name correct relative to the subdirectory.
25025 case $cache_file in
25026 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25027 *) # Relative path.
25028 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25029 esac
25030
25031 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25032echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25033 # The eval makes quoting arguments work.
25034 eval $ac_sub_configure $ac_sub_configure_args \
25035 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25036 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25037echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25038 { (exit 1); exit 1; }; }
25039 fi
25040
25041 cd $ac_popdir
25042 done
25043fi
25044