blob: abcfaa33f2cf0665598c3f264b8e4037320c192b [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 Criswell12399a12003-09-30 15:55:44 +0000429ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000430ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
John Criswell12399a12003-09-30 15:55:44 +0000469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC 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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001035 --enable-optimized Compile with optimizations enabled (default is NO)
1036 --enable-spec Compile SPEC benchmarks (default is NO)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-spec Location of SPEC benchmarks
1051 --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 Criswell12399a12003-09-30 15:55:44 +00001524if test -d ${srcdir}/projects/reopt
1525then
1526
1527
1528subdirs="$subdirs projects/reopt"
1529
1530fi
1531
John Criswell559a6c12003-09-30 16:31:48 +00001532if test -d ${srcdir}/projects/poolalloc
1533then
1534
1535
1536subdirs="$subdirs projects/poolalloc"
1537
1538fi
1539
John Criswell0c38eaf2003-09-10 15:17:25 +00001540 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell613758d2003-09-11 18:03:50 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001660
1661
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell613758d2003-09-11 18:03:50 +00001668 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell613758d2003-09-11 18:03:50 +00001674 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1675
1676
1677 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell08acb9b2003-09-16 02:12:45 +00001692 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001732
1733
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell613758d2003-09-11 18:03:50 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell0c38eaf2003-09-10 15:17:25 +00001794 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001795
1796
John Criswell0c38eaf2003-09-10 15:17:25 +00001797 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001798
1799
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001801
1802
John Criswell0c38eaf2003-09-10 15:17:25 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell48e3cb92003-09-12 16:31:43 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell39e83892003-09-12 16:36:17 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1813
1814
1815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001864
1865
John Criswell48e3cb92003-09-12 16:31:43 +00001866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001867
1868
John Criswell48e3cb92003-09-12 16:31:43 +00001869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001870
1871
John Criswell48e3cb92003-09-12 16:31:43 +00001872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell48e3cb92003-09-12 16:31:43 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001876
1877
John Criswell48e3cb92003-09-12 16:31:43 +00001878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell48e3cb92003-09-12 16:31:43 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1882
1883
1884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1885
1886
1887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell39e83892003-09-12 16:36:17 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell48e3cb92003-09-12 16:31:43 +00001899 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell48e3cb92003-09-12 16:31:43 +00001902 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell48e3cb92003-09-12 16:31:43 +00001905 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell48e3cb92003-09-12 16:31:43 +00001908 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell48e3cb92003-09-12 16:31:43 +00001911 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell48e3cb92003-09-12 16:31:43 +00001914 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswell0c38eaf2003-09-10 15:17:25 +00001923 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001924
1925
John Criswell0c38eaf2003-09-10 15:17:25 +00001926 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001927
1928
John Criswell0c38eaf2003-09-10 15:17:25 +00001929 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001930
1931
John Criswell0c38eaf2003-09-10 15:17:25 +00001932 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001933
1934
John Criswell0c38eaf2003-09-10 15:17:25 +00001935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001936
1937
John Criswell0c38eaf2003-09-10 15:17:25 +00001938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001939
1940
John Criswellffaaf3b2003-09-10 18:38:44 +00001941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1942
1943
1944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1945
1946
1947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1948
1949
1950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1951
1952
1953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1954
1955
1956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1957
1958
John Criswell0c38eaf2003-09-10 15:17:25 +00001959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001960
1961
John Criswell0c38eaf2003-09-10 15:17:25 +00001962 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001963
1964
John Criswell0afe8252003-09-11 20:53:48 +00001965 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1966
1967
John Criswell67181ca2003-09-26 14:53:17 +00001968 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1969
1970
John Criswell68886d42003-09-26 19:51:42 +00001971 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1972
1973
1974 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1975
1976
John Criswellc66bbd52003-09-29 21:35:32 +00001977 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1978
1979
1980 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/CompileFail/Makefile"
1981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001987
1988
John Criswell0c38eaf2003-09-10 15:17:25 +00001989 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
John Criswell0c38eaf2003-09-10 15:17:25 +00001992 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001993
1994
John Criswell0c38eaf2003-09-10 15:17:25 +00001995 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswell0c38eaf2003-09-10 15:17:25 +00002001 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002002
2003
John Criswell0c38eaf2003-09-10 15:17:25 +00002004 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
John Criswellddb7b4e2003-09-16 15:54:19 +00002007 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
Chris Lattnerebd70302003-09-13 03:29:53 +00002010 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2011
2012
John Criswellddb7b4e2003-09-16 15:54:19 +00002013 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2014
2015
John Criswell0c38eaf2003-09-10 15:17:25 +00002016 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002017
2018
John Criswellddb7b4e2003-09-16 15:54:19 +00002019 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2020
2021
2022 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002047
2048
John Criswell0c38eaf2003-09-10 15:17:25 +00002049 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002050
2051
John Criswell0c38eaf2003-09-10 15:17:25 +00002052 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002053
2054
John Criswell0c38eaf2003-09-10 15:17:25 +00002055 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002056
2057
John Criswell0c38eaf2003-09-10 15:17:25 +00002058 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002059
2060
John Criswell0c38eaf2003-09-10 15:17:25 +00002061 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002062
2063
John Criswell4e079782003-09-29 14:52:28 +00002064 ac_config_commands="$ac_config_commands support/Makefile"
2065
2066
2067 ac_config_commands="$ac_config_commands support/lib/Makefile"
2068
2069
2070 ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2071
2072
2073 ac_config_commands="$ac_config_commands support/tools/Makefile"
2074
2075
2076 ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2077
2078
2079 ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2080
2081
2082 ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2083
2084
John Criswell392aaa32003-07-22 19:18:09 +00002085
2086
John Criswell7a73b802003-06-30 21:59:07 +00002087# Find a good install program. We prefer a C program (faster),
2088# so one script is as good as another. But avoid the broken or
2089# incompatible versions:
2090# SysV /etc/install, /usr/sbin/install
2091# SunOS /usr/etc/install
2092# IRIX /sbin/install
2093# AIX /bin/install
2094# AmigaOS /C/install, which installs bootblocks on floppy discs
2095# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098# ./install, which can be erroneously created by make from ./install.sh.
2099echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2100echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2101if test -z "$INSTALL"; then
2102if test "${ac_cv_path_install+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 # Account for people who put trailing slashes in PATH elements.
2111case $as_dir/ in
2112 ./ | .// | /cC/* | \
2113 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2114 /usr/ucb/* ) ;;
2115 *)
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2118 # by default.
2119 for ac_prog in ginstall scoinst install; do
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2122 if test $ac_prog = install &&
2123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124 # AIX install. It has an incompatible calling convention.
2125 :
2126 elif test $ac_prog = install &&
2127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2128 # program-specific install script used by HP pwplus--don't use.
2129 :
2130 else
2131 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2132 break 3
2133 fi
2134 fi
2135 done
2136 done
2137 ;;
2138esac
2139done
2140
2141
2142fi
2143 if test "${ac_cv_path_install+set}" = set; then
2144 INSTALL=$ac_cv_path_install
2145 else
2146 # As a last resort, use the slow shell script. We don't cache a
2147 # path for INSTALL within a source directory, because that will
2148 # break other packages using the cache if that directory is
2149 # removed, or if the path is relative.
2150 INSTALL=$ac_install_sh
2151 fi
2152fi
2153echo "$as_me:$LINENO: result: $INSTALL" >&5
2154echo "${ECHO_T}$INSTALL" >&6
2155
2156# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2157# It thinks the first close brace ends the variable substitution.
2158test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2159
2160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2161
2162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2163
2164
2165# Make sure we can run config.sub.
2166$ac_config_sub sun4 >/dev/null 2>&1 ||
2167 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2168echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2169 { (exit 1); exit 1; }; }
2170
2171echo "$as_me:$LINENO: checking build system type" >&5
2172echo $ECHO_N "checking build system type... $ECHO_C" >&6
2173if test "${ac_cv_build+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176 ac_cv_build_alias=$build_alias
2177test -z "$ac_cv_build_alias" &&
2178 ac_cv_build_alias=`$ac_config_guess`
2179test -z "$ac_cv_build_alias" &&
2180 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2181echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2182 { (exit 1); exit 1; }; }
2183ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2184 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2185echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2187
2188fi
2189echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2190echo "${ECHO_T}$ac_cv_build" >&6
2191build=$ac_cv_build
2192build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2193build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2194build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2195
2196
2197echo "$as_me:$LINENO: checking host system type" >&5
2198echo $ECHO_N "checking host system type... $ECHO_C" >&6
2199if test "${ac_cv_host+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 ac_cv_host_alias=$host_alias
2203test -z "$ac_cv_host_alias" &&
2204 ac_cv_host_alias=$ac_cv_build_alias
2205ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2206 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2207echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2208 { (exit 1); exit 1; }; }
2209
2210fi
2211echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2212echo "${ECHO_T}$ac_cv_host" >&6
2213host=$ac_cv_host
2214host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2215host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2216host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2217
2218
2219echo "$as_me:$LINENO: checking target system type" >&5
2220echo $ECHO_N "checking target system type... $ECHO_C" >&6
2221if test "${ac_cv_target+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224 ac_cv_target_alias=$target_alias
2225test "x$ac_cv_target_alias" = "x" &&
2226 ac_cv_target_alias=$ac_cv_host_alias
2227ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2228 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2229echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2230 { (exit 1); exit 1; }; }
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234echo "${ECHO_T}$ac_cv_target" >&6
2235target=$ac_cv_target
2236target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2237target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2238target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2239
2240
2241# The aliases save the names the user supplied, while $host etc.
2242# will get canonicalized.
2243test -n "$target_alias" &&
2244 test "$program_prefix$program_suffix$program_transform_name" = \
2245 NONENONEs,x,x, &&
2246 program_prefix=${target_alias}-
2247
2248case $build in
2249 *i*86*) OS=Linux
2250
John Criswellf02dbf02003-07-22 20:07:49 +00002251 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002252
2253 ;;
2254
2255 *sparc*) OS=SunOS
2256
2257 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2258
2259 ;;
2260
2261 *) OS=Unknown
2262
2263 ;;
2264esac
2265
2266case $target in
2267 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2268
2269 ;;
2270esac
2271
John Criswell76595452003-07-01 22:07:39 +00002272case $target in
2273 *i*86*) ARCH=x86
2274
2275 ;;
2276 *sparc*solaris*) ARCH=Sparc
2277
2278 ;;
2279esac
2280
John Criswell7a73b802003-06-30 21:59:07 +00002281
2282ac_ext=cc
2283ac_cpp='$CXXCPP $CPPFLAGS'
2284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2287if test -n "$ac_tool_prefix"; then
2288 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2289 do
2290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2292echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294if test "${ac_cv_prog_CXX+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 if test -n "$CXX"; then
2298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
2313
2314fi
2315fi
2316CXX=$ac_cv_prog_CXX
2317if test -n "$CXX"; then
2318 echo "$as_me:$LINENO: result: $CXX" >&5
2319echo "${ECHO_T}$CXX" >&6
2320else
2321 echo "$as_me:$LINENO: result: no" >&5
2322echo "${ECHO_T}no" >&6
2323fi
2324
2325 test -n "$CXX" && break
2326 done
2327fi
2328if test -z "$CXX"; then
2329 ac_ct_CXX=$CXX
2330 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2331do
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333set dummy $ac_prog; ac_word=$2
2334echo "$as_me:$LINENO: checking for $ac_word" >&5
2335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339 if test -n "$ac_ct_CXX"; then
2340 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_ac_ct_CXX="$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353done
2354done
2355
2356fi
2357fi
2358ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2359if test -n "$ac_ct_CXX"; then
2360 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2361echo "${ECHO_T}$ac_ct_CXX" >&6
2362else
2363 echo "$as_me:$LINENO: result: no" >&5
2364echo "${ECHO_T}no" >&6
2365fi
2366
2367 test -n "$ac_ct_CXX" && break
2368done
2369test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2370
2371 CXX=$ac_ct_CXX
2372fi
2373
2374
2375# Provide some information about the compiler.
2376echo "$as_me:$LINENO:" \
2377 "checking for C++ compiler version" >&5
2378ac_compiler=`set X $ac_compile; echo $2`
2379{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380 (eval $ac_compiler --version </dev/null >&5) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }
2384{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385 (eval $ac_compiler -v </dev/null >&5) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }
2389{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390 (eval $ac_compiler -V </dev/null >&5) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }
2394
2395cat >conftest.$ac_ext <<_ACEOF
2396#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002397/* confdefs.h. */
2398_ACEOF
2399cat confdefs.h >>conftest.$ac_ext
2400cat >>conftest.$ac_ext <<_ACEOF
2401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002402
John Criswell7a73b802003-06-30 21:59:07 +00002403int
2404main ()
2405{
2406
2407 ;
2408 return 0;
2409}
2410_ACEOF
2411ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002412ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002413# Try to create an executable without -o first, disregard a.out.
2414# It will help us diagnose broken compilers, and finding out an intuition
2415# of exeext.
2416echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2417echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2418ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2419if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2420 (eval $ac_link_default) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 # Find the output, starting from the most likely. This scheme is
2425# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2426# resort.
2427
2428# Be careful to initialize this variable, since it used to be cached.
2429# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2430ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002431# b.out is created by i960 compilers.
2432for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2433do
2434 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002435 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2437 ;;
2438 conftest.$ac_ext )
2439 # This is the source file.
2440 ;;
2441 [ab].out )
2442 # We found the default executable, but exeext='' is most
2443 # certainly right.
2444 break;;
2445 *.* )
2446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447 # FIXME: I believe we export ac_cv_exeext for Libtool,
2448 # but it would be cool to find out if it's true. Does anybody
2449 # maintain Libtool? --akim.
2450 export ac_cv_exeext
2451 break;;
2452 * )
2453 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002454 esac
2455done
2456else
2457 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002458sed 's/^/| /' conftest.$ac_ext >&5
2459
2460{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2461See \`config.log' for more details." >&5
2462echo "$as_me: error: C++ compiler cannot create executables
2463See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002464 { (exit 77); exit 77; }; }
2465fi
2466
2467ac_exeext=$ac_cv_exeext
2468echo "$as_me:$LINENO: result: $ac_file" >&5
2469echo "${ECHO_T}$ac_file" >&6
2470
2471# Check the compiler produces executables we can run. If not, either
2472# the compiler is broken, or we cross compile.
2473echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2474echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2475# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476# If not cross compiling, check that we can run a simple program.
2477if test "$cross_compiling" != yes; then
2478 if { ac_try='./$ac_file'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2484 cross_compiling=no
2485 else
2486 if test "$cross_compiling" = maybe; then
2487 cross_compiling=yes
2488 else
2489 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002490If you meant to cross compile, use \`--host'.
2491See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002492echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002493If you meant to cross compile, use \`--host'.
2494See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002495 { (exit 1); exit 1; }; }
2496 fi
2497 fi
2498fi
2499echo "$as_me:$LINENO: result: yes" >&5
2500echo "${ECHO_T}yes" >&6
2501
John Criswell0c38eaf2003-09-10 15:17:25 +00002502rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002503ac_clean_files=$ac_clean_files_save
2504# Check the compiler produces executables we can run. If not, either
2505# the compiler is broken, or we cross compile.
2506echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2507echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2508echo "$as_me:$LINENO: result: $cross_compiling" >&5
2509echo "${ECHO_T}$cross_compiling" >&6
2510
2511echo "$as_me:$LINENO: checking for suffix of executables" >&5
2512echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2514 (eval $ac_link) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; then
2518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2519# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2520# work properly (i.e., refer to `conftest.exe'), while it won't with
2521# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002522for ac_file in conftest.exe conftest conftest.*; do
2523 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002524 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527 export ac_cv_exeext
2528 break;;
2529 * ) break;;
2530 esac
2531done
2532else
John Criswell0c38eaf2003-09-10 15:17:25 +00002533 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2534See \`config.log' for more details." >&5
2535echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2536See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002537 { (exit 1); exit 1; }; }
2538fi
2539
2540rm -f conftest$ac_cv_exeext
2541echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2542echo "${ECHO_T}$ac_cv_exeext" >&6
2543
2544rm -f conftest.$ac_ext
2545EXEEXT=$ac_cv_exeext
2546ac_exeext=$EXEEXT
2547echo "$as_me:$LINENO: checking for suffix of object files" >&5
2548echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2549if test "${ac_cv_objext+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552 cat >conftest.$ac_ext <<_ACEOF
2553#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002559
John Criswell7a73b802003-06-30 21:59:07 +00002560int
2561main ()
2562{
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.o conftest.obj
2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; then
2574 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2575 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578 break;;
2579 esac
2580done
2581else
2582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586See \`config.log' for more details." >&5
2587echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002589 { (exit 1); exit 1; }; }
2590fi
2591
2592rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593fi
2594echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595echo "${ECHO_T}$ac_cv_objext" >&6
2596OBJEXT=$ac_cv_objext
2597ac_objext=$OBJEXT
2598echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2599echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2600if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602else
2603 cat >conftest.$ac_ext <<_ACEOF
2604#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002605/* confdefs.h. */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002610
John Criswell7a73b802003-06-30 21:59:07 +00002611int
2612main ()
2613{
2614#ifndef __GNUC__
2615 choke me
2616#endif
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 ac_compiler_gnu=yes
2635else
2636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002637sed 's/^/| /' conftest.$ac_ext >&5
2638
John Criswell7a73b802003-06-30 21:59:07 +00002639ac_compiler_gnu=no
2640fi
2641rm -f conftest.$ac_objext conftest.$ac_ext
2642ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2643
2644fi
2645echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2646echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2647GXX=`test $ac_compiler_gnu = yes && echo yes`
2648ac_test_CXXFLAGS=${CXXFLAGS+set}
2649ac_save_CXXFLAGS=$CXXFLAGS
2650CXXFLAGS="-g"
2651echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2652echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2653if test "${ac_cv_prog_cxx_g+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656 cat >conftest.$ac_ext <<_ACEOF
2657#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002658/* confdefs.h. */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002663
John Criswell7a73b802003-06-30 21:59:07 +00002664int
2665main ()
2666{
2667
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 ac_cv_prog_cxx_g=yes
2685else
2686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002687sed 's/^/| /' conftest.$ac_ext >&5
2688
John Criswell7a73b802003-06-30 21:59:07 +00002689ac_cv_prog_cxx_g=no
2690fi
2691rm -f conftest.$ac_objext conftest.$ac_ext
2692fi
2693echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2694echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2695if test "$ac_test_CXXFLAGS" = set; then
2696 CXXFLAGS=$ac_save_CXXFLAGS
2697elif test $ac_cv_prog_cxx_g = yes; then
2698 if test "$GXX" = yes; then
2699 CXXFLAGS="-g -O2"
2700 else
2701 CXXFLAGS="-g"
2702 fi
2703else
2704 if test "$GXX" = yes; then
2705 CXXFLAGS="-O2"
2706 else
2707 CXXFLAGS=
2708 fi
2709fi
2710for ac_declaration in \
2711 ''\
2712 '#include <stdlib.h>' \
2713 'extern "C" void std::exit (int) throw (); using std::exit;' \
2714 'extern "C" void std::exit (int); using std::exit;' \
2715 'extern "C" void exit (int) throw ();' \
2716 'extern "C" void exit (int);' \
2717 'void exit (int);'
2718do
2719 cat >conftest.$ac_ext <<_ACEOF
2720#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002721/* confdefs.h. */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002726#include <stdlib.h>
2727$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002728int
2729main ()
2730{
2731exit (42);
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2748 :
2749else
2750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002751sed 's/^/| /' conftest.$ac_ext >&5
2752
John Criswell7a73b802003-06-30 21:59:07 +00002753continue
2754fi
2755rm -f conftest.$ac_objext conftest.$ac_ext
2756 cat >conftest.$ac_ext <<_ACEOF
2757#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002758/* confdefs.h. */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002763$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002764int
2765main ()
2766{
2767exit (42);
2768 ;
2769 return 0;
2770}
2771_ACEOF
2772rm -f conftest.$ac_objext
2773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 break
2785else
2786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002787sed 's/^/| /' conftest.$ac_ext >&5
2788
John Criswell7a73b802003-06-30 21:59:07 +00002789fi
2790rm -f conftest.$ac_objext conftest.$ac_ext
2791done
2792rm -f conftest*
2793if test -n "$ac_declaration"; then
2794 echo '#ifdef __cplusplus' >>confdefs.h
2795 echo $ac_declaration >>confdefs.h
2796 echo '#endif' >>confdefs.h
2797fi
2798
2799ac_ext=c
2800ac_cpp='$CPP $CPPFLAGS'
2801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
2805ac_ext=c
2806ac_cpp='$CPP $CPPFLAGS'
2807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810if test -n "$ac_tool_prefix"; then
2811 for ac_prog in gcc
2812 do
2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815echo "$as_me:$LINENO: checking for $ac_word" >&5
2816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817if test "${ac_cv_prog_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835done
2836
2837fi
2838fi
2839CC=$ac_cv_prog_CC
2840if test -n "$CC"; then
2841 echo "$as_me:$LINENO: result: $CC" >&5
2842echo "${ECHO_T}$CC" >&6
2843else
2844 echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6
2846fi
2847
2848 test -n "$CC" && break
2849 done
2850fi
2851if test -z "$CC"; then
2852 ac_ct_CC=$CC
2853 for ac_prog in gcc
2854do
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856set dummy $ac_prog; ac_word=$2
2857echo "$as_me:$LINENO: checking for $ac_word" >&5
2858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876done
2877done
2878
2879fi
2880fi
2881ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882if test -n "$ac_ct_CC"; then
2883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2884echo "${ECHO_T}$ac_ct_CC" >&6
2885else
2886 echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6
2888fi
2889
2890 test -n "$ac_ct_CC" && break
2891done
2892
2893 CC=$ac_ct_CC
2894fi
2895
2896
John Criswell0c38eaf2003-09-10 15:17:25 +00002897test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: no acceptable C compiler found in \$PATH
2900See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002901 { (exit 1); exit 1; }; }
2902
2903# Provide some information about the compiler.
2904echo "$as_me:$LINENO:" \
2905 "checking for C compiler version" >&5
2906ac_compiler=`set X $ac_compile; echo $2`
2907{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2908 (eval $ac_compiler --version </dev/null >&5) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2913 (eval $ac_compiler -v </dev/null >&5) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }
2917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2918 (eval $ac_compiler -V </dev/null >&5) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922
2923echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2925if test "${ac_cv_c_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 cat >conftest.$ac_ext <<_ACEOF
2929#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002935
John Criswell7a73b802003-06-30 21:59:07 +00002936int
2937main ()
2938{
2939#ifndef __GNUC__
2940 choke me
2941#endif
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 ac_compiler_gnu=yes
2960else
2961 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002962sed 's/^/| /' conftest.$ac_ext >&5
2963
John Criswell7a73b802003-06-30 21:59:07 +00002964ac_compiler_gnu=no
2965fi
2966rm -f conftest.$ac_objext conftest.$ac_ext
2967ac_cv_c_compiler_gnu=$ac_compiler_gnu
2968
2969fi
2970echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2971echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2972GCC=`test $ac_compiler_gnu = yes && echo yes`
2973ac_test_CFLAGS=${CFLAGS+set}
2974ac_save_CFLAGS=$CFLAGS
2975CFLAGS="-g"
2976echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2977echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2978if test "${ac_cv_prog_cc_g+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 cat >conftest.$ac_ext <<_ACEOF
2982#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002988
John Criswell7a73b802003-06-30 21:59:07 +00002989int
2990main ()
2991{
2992
2993 ;
2994 return 0;
2995}
2996_ACEOF
2997rm -f conftest.$ac_objext
2998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 ac_cv_prog_cc_g=yes
3010else
3011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003012sed 's/^/| /' conftest.$ac_ext >&5
3013
John Criswell7a73b802003-06-30 21:59:07 +00003014ac_cv_prog_cc_g=no
3015fi
3016rm -f conftest.$ac_objext conftest.$ac_ext
3017fi
3018echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3019echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3020if test "$ac_test_CFLAGS" = set; then
3021 CFLAGS=$ac_save_CFLAGS
3022elif test $ac_cv_prog_cc_g = yes; then
3023 if test "$GCC" = yes; then
3024 CFLAGS="-g -O2"
3025 else
3026 CFLAGS="-g"
3027 fi
3028else
3029 if test "$GCC" = yes; then
3030 CFLAGS="-O2"
3031 else
3032 CFLAGS=
3033 fi
3034fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003035echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3036echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3037if test "${ac_cv_prog_cc_stdc+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040 ac_cv_prog_cc_stdc=no
3041ac_save_CC=$CC
3042cat >conftest.$ac_ext <<_ACEOF
3043#line $LINENO "configure"
3044/* confdefs.h. */
3045_ACEOF
3046cat confdefs.h >>conftest.$ac_ext
3047cat >>conftest.$ac_ext <<_ACEOF
3048/* end confdefs.h. */
3049#include <stdarg.h>
3050#include <stdio.h>
3051#include <sys/types.h>
3052#include <sys/stat.h>
3053/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3054struct buf { int x; };
3055FILE * (*rcsopen) (struct buf *, struct stat *, int);
3056static char *e (p, i)
3057 char **p;
3058 int i;
3059{
3060 return p[i];
3061}
3062static char *f (char * (*g) (char **, int), char **p, ...)
3063{
3064 char *s;
3065 va_list v;
3066 va_start (v,p);
3067 s = g (p, va_arg (v,int));
3068 va_end (v);
3069 return s;
3070}
3071int test (int i, double x);
3072struct s1 {int (*f) (int a);};
3073struct s2 {int (*f) (double a);};
3074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3075int argc;
3076char **argv;
3077int
3078main ()
3079{
3080return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085# Don't try gcc -ansi; that turns off useful extensions and
3086# breaks some systems' header files.
3087# AIX -qlanglvl=ansi
3088# Ultrix and OSF/1 -std1
3089# HP-UX 10.20 and later -Ae
3090# HP-UX older versions -Aa -D_HPUX_SOURCE
3091# SVR4 -Xc -D__EXTENSIONS__
3092for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3093do
3094 CC="$ac_save_CC $ac_arg"
3095 rm -f conftest.$ac_objext
3096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 ac_cv_prog_cc_stdc=$ac_arg
3108break
3109else
3110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113fi
3114rm -f conftest.$ac_objext
3115done
3116rm -f conftest.$ac_ext conftest.$ac_objext
3117CC=$ac_save_CC
3118
3119fi
3120
3121case "x$ac_cv_prog_cc_stdc" in
3122 x|xno)
3123 echo "$as_me:$LINENO: result: none needed" >&5
3124echo "${ECHO_T}none needed" >&6 ;;
3125 *)
3126 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3127echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3128 CC="$CC $ac_cv_prog_cc_stdc" ;;
3129esac
3130
John Criswell7a73b802003-06-30 21:59:07 +00003131# Some people use a C++ compiler to compile C. Since we use `exit',
3132# in C++ we need to declare it. In case someone uses the same compiler
3133# for both compiling C and C++ we need to have the C++ compiler decide
3134# the declaration of exit, since it's the most demanding environment.
3135cat >conftest.$ac_ext <<_ACEOF
3136#ifndef __cplusplus
3137 choke me
3138#endif
3139_ACEOF
3140rm -f conftest.$ac_objext
3141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 for ac_declaration in \
3153 ''\
3154 '#include <stdlib.h>' \
3155 'extern "C" void std::exit (int) throw (); using std::exit;' \
3156 'extern "C" void std::exit (int); using std::exit;' \
3157 'extern "C" void exit (int) throw ();' \
3158 'extern "C" void exit (int);' \
3159 'void exit (int);'
3160do
3161 cat >conftest.$ac_ext <<_ACEOF
3162#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003168#include <stdlib.h>
3169$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003170int
3171main ()
3172{
3173exit (42);
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext
3179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 :
3191else
3192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003193sed 's/^/| /' conftest.$ac_ext >&5
3194
John Criswell7a73b802003-06-30 21:59:07 +00003195continue
3196fi
3197rm -f conftest.$ac_objext conftest.$ac_ext
3198 cat >conftest.$ac_ext <<_ACEOF
3199#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003205$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003206int
3207main ()
3208{
3209exit (42);
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214rm -f conftest.$ac_objext
3215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216 (eval $ac_compile) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -s conftest.$ac_objext'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3226 break
3227else
3228 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003229sed 's/^/| /' conftest.$ac_ext >&5
3230
John Criswell7a73b802003-06-30 21:59:07 +00003231fi
3232rm -f conftest.$ac_objext conftest.$ac_ext
3233done
3234rm -f conftest*
3235if test -n "$ac_declaration"; then
3236 echo '#ifdef __cplusplus' >>confdefs.h
3237 echo $ac_declaration >>confdefs.h
3238 echo '#endif' >>confdefs.h
3239fi
3240
3241else
3242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003243sed 's/^/| /' conftest.$ac_ext >&5
3244
John Criswell7a73b802003-06-30 21:59:07 +00003245fi
3246rm -f conftest.$ac_objext conftest.$ac_ext
3247ac_ext=c
3248ac_cpp='$CPP $CPPFLAGS'
3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252
3253ac_ext=c
3254ac_cpp='$CPP $CPPFLAGS'
3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3259echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3260# On Suns, sometimes $CPP names a directory.
3261if test -n "$CPP" && test -d "$CPP"; then
3262 CPP=
3263fi
3264if test -z "$CPP"; then
3265 if test "${ac_cv_prog_CPP+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268 # Double quotes because CPP needs to be expanded
3269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3270 do
3271 ac_preproc_ok=false
3272for ac_c_preproc_warn_flag in '' yes
3273do
3274 # Use a header file that comes with gcc, so configuring glibc
3275 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3277 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003278 # On the NeXT, cc -E runs the code through the compiler's parser,
3279 # not just through cpp. "Syntax error" is here to catch this case.
3280 cat >conftest.$ac_ext <<_ACEOF
3281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
3287#ifdef __STDC__
3288# include <limits.h>
3289#else
3290# include <assert.h>
3291#endif
John Criswell7a73b802003-06-30 21:59:07 +00003292 Syntax error
3293_ACEOF
3294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3296 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003297 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003298 rm -f conftest.er1
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3304 else
3305 ac_cpp_err=
3306 fi
3307else
3308 ac_cpp_err=yes
3309fi
3310if test -z "$ac_cpp_err"; then
3311 :
3312else
3313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003314sed 's/^/| /' conftest.$ac_ext >&5
3315
John Criswell7a73b802003-06-30 21:59:07 +00003316 # Broken: fails on valid input.
3317continue
3318fi
3319rm -f conftest.err conftest.$ac_ext
3320
3321 # OK, works on sane cases. Now check whether non-existent headers
3322 # can be detected and how.
3323 cat >conftest.$ac_ext <<_ACEOF
3324#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003325/* confdefs.h. */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003330#include <ac_nonexistent.h>
3331_ACEOF
3332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3334 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003335 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null; then
3340 if test -s conftest.err; then
3341 ac_cpp_err=$ac_c_preproc_warn_flag
3342 else
3343 ac_cpp_err=
3344 fi
3345else
3346 ac_cpp_err=yes
3347fi
3348if test -z "$ac_cpp_err"; then
3349 # Broken: success on invalid input.
3350continue
3351else
3352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003353sed 's/^/| /' conftest.$ac_ext >&5
3354
John Criswell7a73b802003-06-30 21:59:07 +00003355 # Passes both tests.
3356ac_preproc_ok=:
3357break
3358fi
3359rm -f conftest.err conftest.$ac_ext
3360
3361done
3362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363rm -f conftest.err conftest.$ac_ext
3364if $ac_preproc_ok; then
3365 break
3366fi
3367
3368 done
3369 ac_cv_prog_CPP=$CPP
3370
3371fi
3372 CPP=$ac_cv_prog_CPP
3373else
3374 ac_cv_prog_CPP=$CPP
3375fi
3376echo "$as_me:$LINENO: result: $CPP" >&5
3377echo "${ECHO_T}$CPP" >&6
3378ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3388#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394#ifdef __STDC__
3395# include <limits.h>
3396#else
3397# include <assert.h>
3398#endif
John Criswell7a73b802003-06-30 21:59:07 +00003399 Syntax error
3400_ACEOF
3401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003404 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null; then
3409 if test -s conftest.err; then
3410 ac_cpp_err=$ac_c_preproc_warn_flag
3411 else
3412 ac_cpp_err=
3413 fi
3414else
3415 ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418 :
3419else
3420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003421sed 's/^/| /' conftest.$ac_ext >&5
3422
John Criswell7a73b802003-06-30 21:59:07 +00003423 # Broken: fails on valid input.
3424continue
3425fi
3426rm -f conftest.err conftest.$ac_ext
3427
3428 # OK, works on sane cases. Now check whether non-existent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003437#include <ac_nonexistent.h>
3438_ACEOF
3439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3441 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003442 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_c_preproc_warn_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3457continue
3458else
3459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003460sed 's/^/| /' conftest.$ac_ext >&5
3461
John Criswell7a73b802003-06-30 21:59:07 +00003462 # Passes both tests.
3463ac_preproc_ok=:
3464break
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468done
3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470rm -f conftest.err conftest.$ac_ext
3471if $ac_preproc_ok; then
3472 :
3473else
John Criswell0c38eaf2003-09-10 15:17:25 +00003474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475See \`config.log' for more details." >&5
3476echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003478 { (exit 1); exit 1; }; }
3479fi
3480
3481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488if test "$GCC" != "yes"
3489then
3490 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3491echo "$as_me: error: gcc required but not found" >&2;}
3492 { (exit 1); exit 1; }; }
3493fi
3494
3495if test "$GXX" != "yes"
3496then
3497 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3498echo "$as_me: error: g++ required but not found" >&2;}
3499 { (exit 1); exit 1; }; }
3500fi
3501
John Criswellde00db22003-08-25 16:49:54 +00003502gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3503if test "$gccmajor" -lt "3"
3504then
3505 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3506echo "$as_me: error: gcc 3.x required" >&2;}
3507 { (exit 1); exit 1; }; }
3508fi
3509
John Criswell7a73b802003-06-30 21:59:07 +00003510 echo "$as_me:$LINENO: checking for GNU make" >&5
3511echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3512if test "${_cv_gnu_make_command+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 _cv_gnu_make_command='' ;
3516 for a in "$MAKE" make gmake gnumake ; do
3517 if test -z "$a" ; then continue ; fi ;
3518 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3519 _cv_gnu_make_command=$a ;
3520 break;
3521 fi
3522 done ;
3523
3524fi
3525echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3526echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3527 if test "x$_cv_gnu_make_command" != "x" ; then
3528 ifGNUmake='' ;
3529 else
3530 ifGNUmake='#' ;
3531 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3532echo "${ECHO_T}\"Not found\"" >&6;
3533 fi
3534
3535
3536if test -z "$_cv_gnu_make_command"
3537then
3538 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3539echo "$as_me: error: GNU Make required but not found" >&2;}
3540 { (exit 1); exit 1; }; }
3541fi
3542
3543
3544echo "$as_me:$LINENO: checking " >&5
3545echo $ECHO_N "checking ... $ECHO_C" >&6
3546if test "${ac_cv_has_flex+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 for ac_prog in flex lex
3550do
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3552set dummy $ac_prog; ac_word=$2
3553echo "$as_me:$LINENO: checking for $ac_word" >&5
3554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555if test "${ac_cv_prog_LEX+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 if test -n "$LEX"; then
3559 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_LEX="$ac_prog"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573done
3574
3575fi
3576fi
3577LEX=$ac_cv_prog_LEX
3578if test -n "$LEX"; then
3579 echo "$as_me:$LINENO: result: $LEX" >&5
3580echo "${ECHO_T}$LEX" >&6
3581else
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
3584fi
3585
3586 test -n "$LEX" && break
3587done
3588test -n "$LEX" || LEX=":"
3589
3590if test -z "$LEXLIB"
3591then
3592 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3593echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3594if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597 ac_check_lib_save_LIBS=$LIBS
3598LIBS="-lfl $LIBS"
3599cat >conftest.$ac_ext <<_ACEOF
3600#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003601/* confdefs.h. */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003606
3607/* Override any gcc2 internal prototype to avoid an error. */
3608#ifdef __cplusplus
3609extern "C"
3610#endif
3611/* We use char because int might match the return type of a gcc2
3612 builtin and then its argument prototype would still apply. */
3613char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003614int
3615main ()
3616{
3617yywrap ();
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622rm -f conftest.$ac_objext conftest$ac_exeext
3623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3624 (eval $ac_link) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -s conftest$ac_exeext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_cv_lib_fl_yywrap=yes
3635else
3636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003637sed 's/^/| /' conftest.$ac_ext >&5
3638
John Criswell7a73b802003-06-30 21:59:07 +00003639ac_cv_lib_fl_yywrap=no
3640fi
3641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3642LIBS=$ac_check_lib_save_LIBS
3643fi
3644echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3645echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3646if test $ac_cv_lib_fl_yywrap = yes; then
3647 LEXLIB="-lfl"
3648else
3649 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3650echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3651if test "${ac_cv_lib_l_yywrap+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653else
3654 ac_check_lib_save_LIBS=$LIBS
3655LIBS="-ll $LIBS"
3656cat >conftest.$ac_ext <<_ACEOF
3657#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003658/* confdefs.h. */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003663
3664/* Override any gcc2 internal prototype to avoid an error. */
3665#ifdef __cplusplus
3666extern "C"
3667#endif
3668/* We use char because int might match the return type of a gcc2
3669 builtin and then its argument prototype would still apply. */
3670char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003671int
3672main ()
3673{
3674yywrap ();
3675 ;
3676 return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext conftest$ac_exeext
3680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3681 (eval $ac_link) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -s conftest$ac_exeext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_cv_lib_l_yywrap=yes
3692else
3693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003694sed 's/^/| /' conftest.$ac_ext >&5
3695
John Criswell7a73b802003-06-30 21:59:07 +00003696ac_cv_lib_l_yywrap=no
3697fi
3698rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3699LIBS=$ac_check_lib_save_LIBS
3700fi
3701echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3702echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3703if test $ac_cv_lib_l_yywrap = yes; then
3704 LEXLIB="-ll"
3705fi
3706
3707fi
3708
3709fi
3710
3711if test "x$LEX" != "x:"; then
3712 echo "$as_me:$LINENO: checking lex output file root" >&5
3713echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3714if test "${ac_cv_prog_lex_root+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 # The minimal lex program is just a single line: %%. But some broken lexes
3718# (Solaris, I think it was) want two %% lines, so accommodate them.
3719cat >conftest.l <<_ACEOF
3720%%
3721%%
3722_ACEOF
3723{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3724 (eval $LEX conftest.l) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }
3728if test -f lex.yy.c; then
3729 ac_cv_prog_lex_root=lex.yy
3730elif test -f lexyy.c; then
3731 ac_cv_prog_lex_root=lexyy
3732else
3733 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3734echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3735 { (exit 1); exit 1; }; }
3736fi
3737fi
3738echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3739echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3740rm -f conftest.l
3741LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3742
3743echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3744echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3745if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748 # POSIX says lex can declare yytext either as a pointer or an array; the
3749# default is implementation-dependent. Figure out which it is, since
3750# not all implementations provide the %pointer and %array declarations.
3751ac_cv_prog_lex_yytext_pointer=no
3752echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3753ac_save_LIBS=$LIBS
3754LIBS="$LIBS $LEXLIB"
3755cat >conftest.$ac_ext <<_ACEOF
3756`cat $LEX_OUTPUT_ROOT.c`
3757_ACEOF
3758rm -f conftest.$ac_objext conftest$ac_exeext
3759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760 (eval $ac_link) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -s conftest$ac_exeext'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3770 ac_cv_prog_lex_yytext_pointer=yes
3771else
3772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003773sed 's/^/| /' conftest.$ac_ext >&5
3774
John Criswell7a73b802003-06-30 21:59:07 +00003775fi
3776rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3777LIBS=$ac_save_LIBS
3778rm -f "${LEX_OUTPUT_ROOT}.c"
3779
3780fi
3781echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3782echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3783if test $ac_cv_prog_lex_yytext_pointer = yes; then
3784
3785cat >>confdefs.h <<\_ACEOF
3786#define YYTEXT_POINTER 1
3787_ACEOF
3788
3789fi
3790
3791fi
3792
3793fi
3794echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3795echo "${ECHO_T}$ac_cv_has_flex" >&6
3796if test "$LEX" != "flex"; then
3797 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3798echo "$as_me: error: flex not found but required" >&2;}
3799 { (exit 1); exit 1; }; }
3800fi
3801
3802echo "$as_me:$LINENO: checking " >&5
3803echo $ECHO_N "checking ... $ECHO_C" >&6
3804if test "${ac_cv_has_bison+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 for ac_prog in 'bison -y' byacc
3808do
3809 # Extract the first word of "$ac_prog", so it can be a program name with args.
3810set dummy $ac_prog; ac_word=$2
3811echo "$as_me:$LINENO: checking for $ac_word" >&5
3812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813if test "${ac_cv_prog_YACC+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816 if test -n "$YACC"; then
3817 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3818else
3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_YACC="$ac_prog"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3829 fi
3830done
3831done
3832
3833fi
3834fi
3835YACC=$ac_cv_prog_YACC
3836if test -n "$YACC"; then
3837 echo "$as_me:$LINENO: result: $YACC" >&5
3838echo "${ECHO_T}$YACC" >&6
3839else
3840 echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6
3842fi
3843
3844 test -n "$YACC" && break
3845done
3846test -n "$YACC" || YACC="yacc"
3847
3848
3849fi
3850echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3851echo "${ECHO_T}$ac_cv_has_bison" >&6
3852if test "$YACC" != "bison -y"; then
3853 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3854echo "$as_me: error: bison not found but required" >&2;}
3855 { (exit 1); exit 1; }; }
3856else
3857 YACC=bison
3858
3859fi
3860
3861
3862# Check whether --enable-shared or --disable-shared was given.
3863if test "${enable_shared+set}" = set; then
3864 enableval="$enable_shared"
3865 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003866 case $enableval in
3867 yes) enable_shared=yes ;;
3868 no) enable_shared=no ;;
3869 *)
3870 enable_shared=no
3871 # Look at the argument we got. We use all the common list separators.
3872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3873 for pkg in $enableval; do
3874 IFS="$lt_save_ifs"
3875 if test "X$pkg" = "X$p"; then
3876 enable_shared=yes
3877 fi
3878 done
3879 IFS="$lt_save_ifs"
3880 ;;
3881 esac
John Criswell7a73b802003-06-30 21:59:07 +00003882else
3883 enable_shared=yes
3884fi;
John Criswell47fdd832003-07-14 16:52:07 +00003885
John Criswell7a73b802003-06-30 21:59:07 +00003886# Check whether --enable-static or --disable-static was given.
3887if test "${enable_static+set}" = set; then
3888 enableval="$enable_static"
3889 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003890 case $enableval in
3891 yes) enable_static=yes ;;
3892 no) enable_static=no ;;
3893 *)
3894 enable_static=no
3895 # Look at the argument we got. We use all the common list separators.
3896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3897 for pkg in $enableval; do
3898 IFS="$lt_save_ifs"
3899 if test "X$pkg" = "X$p"; then
3900 enable_static=yes
3901 fi
3902 done
3903 IFS="$lt_save_ifs"
3904 ;;
3905 esac
John Criswell7a73b802003-06-30 21:59:07 +00003906else
3907 enable_static=yes
3908fi;
John Criswell47fdd832003-07-14 16:52:07 +00003909
John Criswell7a73b802003-06-30 21:59:07 +00003910# Check whether --enable-fast-install or --disable-fast-install was given.
3911if test "${enable_fast_install+set}" = set; then
3912 enableval="$enable_fast_install"
3913 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003914 case $enableval in
3915 yes) enable_fast_install=yes ;;
3916 no) enable_fast_install=no ;;
3917 *)
3918 enable_fast_install=no
3919 # Look at the argument we got. We use all the common list separators.
3920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3921 for pkg in $enableval; do
3922 IFS="$lt_save_ifs"
3923 if test "X$pkg" = "X$p"; then
3924 enable_fast_install=yes
3925 fi
3926 done
3927 IFS="$lt_save_ifs"
3928 ;;
3929 esac
John Criswell7a73b802003-06-30 21:59:07 +00003930else
3931 enable_fast_install=yes
3932fi;
John Criswell47fdd832003-07-14 16:52:07 +00003933
3934echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3935echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3936if test "${lt_cv_path_SED+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 # Loop through the user's path and test for sed and gsed.
3940# Then use that list of sed's as ones to test for truncation.
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for lt_ac_prog in sed gsed; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3949 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3950 fi
3951 done
3952 done
3953done
3954lt_ac_max=0
3955lt_ac_count=0
3956# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3957# along with /bin/sed that truncates output.
3958for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3959 test ! -f $lt_ac_sed && break
3960 cat /dev/null > conftest.in
3961 lt_ac_count=0
3962 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3963 # Check for GNU sed and select it if it is found.
3964 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3965 lt_cv_path_SED=$lt_ac_sed
3966 break
3967 fi
3968 while true; do
3969 cat conftest.in conftest.in >conftest.tmp
3970 mv conftest.tmp conftest.in
3971 cp conftest.in conftest.nl
3972 echo >>conftest.nl
3973 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3974 cmp -s conftest.out conftest.nl || break
3975 # 10000 chars as input seems more than enough
3976 test $lt_ac_count -gt 10 && break
3977 lt_ac_count=`expr $lt_ac_count + 1`
3978 if test $lt_ac_count -gt $lt_ac_max; then
3979 lt_ac_max=$lt_ac_count
3980 lt_cv_path_SED=$lt_ac_sed
3981 fi
3982 done
3983done
3984SED=$lt_cv_path_SED
3985
John Criswell7a73b802003-06-30 21:59:07 +00003986fi
3987
John Criswell47fdd832003-07-14 16:52:07 +00003988echo "$as_me:$LINENO: result: $SED" >&5
3989echo "${ECHO_T}$SED" >&6
3990
3991echo "$as_me:$LINENO: checking for egrep" >&5
3992echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3993if test "${ac_cv_prog_egrep+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3997 then ac_cv_prog_egrep='grep -E'
3998 else ac_cv_prog_egrep='egrep'
3999 fi
4000fi
4001echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4002echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4003 EGREP=$ac_cv_prog_egrep
4004
4005
John Criswell7a73b802003-06-30 21:59:07 +00004006
4007# Check whether --with-gnu-ld or --without-gnu-ld was given.
4008if test "${with_gnu_ld+set}" = set; then
4009 withval="$with_gnu_ld"
4010 test "$withval" = no || with_gnu_ld=yes
4011else
4012 with_gnu_ld=no
4013fi;
4014ac_prog=ld
4015if test "$GCC" = yes; then
4016 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004017 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4018echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004019 case $host in
4020 *-*-mingw*)
4021 # gcc leaves a trailing carriage return which upsets mingw
4022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4023 *)
4024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4025 esac
4026 case $ac_prog in
4027 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004028 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004029 re_direlt='/[^/][^/]*/\.\./'
4030 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004031 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004033 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004034 done
4035 test -z "$LD" && LD="$ac_prog"
4036 ;;
4037 "")
4038 # If it fails, then pretend we aren't using GCC.
4039 ac_prog=ld
4040 ;;
4041 *)
4042 # If it is relative, then search for the first ld in PATH.
4043 with_gnu_ld=unknown
4044 ;;
4045 esac
4046elif test "$with_gnu_ld" = yes; then
4047 echo "$as_me:$LINENO: checking for GNU ld" >&5
4048echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4049else
4050 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4051echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4052fi
4053if test "${lt_cv_path_LD+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004058 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004059 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004060 test -z "$ac_dir" && ac_dir=.
4061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4062 lt_cv_path_LD="$ac_dir/$ac_prog"
4063 # Check to see if the program is GNU ld. I'd rather use --version,
4064 # but apparently some GNU ld's only accept -v.
4065 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4067 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004068 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004069 ;;
4070 *)
John Criswell7a73b802003-06-30 21:59:07 +00004071 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004072 ;;
4073 esac
John Criswell7a73b802003-06-30 21:59:07 +00004074 fi
4075 done
John Criswell47fdd832003-07-14 16:52:07 +00004076 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004077else
4078 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4079fi
4080fi
4081
4082LD="$lt_cv_path_LD"
4083if test -n "$LD"; then
4084 echo "$as_me:$LINENO: result: $LD" >&5
4085echo "${ECHO_T}$LD" >&6
4086else
4087 echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6
4089fi
4090test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4091echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4092 { (exit 1); exit 1; }; }
4093echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4094echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4095if test "${lt_cv_prog_gnu_ld+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004099case `"$LD" -v 2>&1 </dev/null` in
4100*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004101 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004102 ;;
4103*)
John Criswell7a73b802003-06-30 21:59:07 +00004104 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004105 ;;
4106esac
John Criswell7a73b802003-06-30 21:59:07 +00004107fi
4108echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4109echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4110with_gnu_ld=$lt_cv_prog_gnu_ld
4111
4112
4113echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4114echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4115if test "${lt_cv_ld_reload_flag+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118 lt_cv_ld_reload_flag='-r'
4119fi
4120echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4121echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4122reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004123case $reload_flag in
4124"" | " "*) ;;
4125*) reload_flag=" $reload_flag" ;;
4126esac
4127reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004128
4129echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4130echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4131if test "${lt_cv_path_NM+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134 if test -n "$NM"; then
4135 # Let the user override the test.
4136 lt_cv_path_NM="$NM"
4137else
John Criswell47fdd832003-07-14 16:52:07 +00004138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004139 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004140 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004141 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004142 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4143 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004144 # Check to see if the nm accepts a BSD-compat flag.
4145 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4146 # nm: unknown option "B" ignored
4147 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004148 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4149 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004150 lt_cv_path_NM="$tmp_nm -B"
4151 break
John Criswell47fdd832003-07-14 16:52:07 +00004152 ;;
4153 *)
4154 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4155 */dev/null*)
4156 lt_cv_path_NM="$tmp_nm -p"
4157 break
4158 ;;
4159 *)
4160 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4161 continue # so that we can try to find one that supports BSD flags
4162 ;;
4163 esac
4164 esac
John Criswell7a73b802003-06-30 21:59:07 +00004165 fi
4166 done
John Criswell47fdd832003-07-14 16:52:07 +00004167 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004168 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4169fi
4170fi
John Criswell47fdd832003-07-14 16:52:07 +00004171echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4172echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004173NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004174
4175echo "$as_me:$LINENO: checking whether ln -s works" >&5
4176echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4177LN_S=$as_ln_s
4178if test "$LN_S" = "ln -s"; then
4179 echo "$as_me:$LINENO: result: yes" >&5
4180echo "${ECHO_T}yes" >&6
4181else
4182 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4183echo "${ECHO_T}no, using $LN_S" >&6
4184fi
4185
John Criswell47fdd832003-07-14 16:52:07 +00004186echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4187echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004188if test "${lt_cv_deplibs_check_method+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 lt_cv_file_magic_cmd='$MAGIC_CMD'
4192lt_cv_file_magic_test_file=
4193lt_cv_deplibs_check_method='unknown'
4194# Need to set the preceding variable on all platforms that support
4195# interlibrary dependencies.
4196# 'none' -- dependencies not supported.
4197# `unknown' -- same as none, but documents that we really don't know.
4198# 'pass_all' -- all dependencies passed with no checks.
4199# 'test_compile' -- check by making test program.
4200# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004201# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004202# If you have `file' or equivalent on your system and you're not sure
4203# whether `pass_all' will *always* work, you probably want this one.
4204
4205case $host_os in
4206aix4* | aix5*)
4207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210beos*)
4211 lt_cv_deplibs_check_method=pass_all
4212 ;;
4213
4214bsdi4*)
4215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4216 lt_cv_file_magic_cmd='/usr/bin/file -L'
4217 lt_cv_file_magic_test_file=/shlib/libc.so
4218 ;;
4219
4220cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004221 # win32_libid is a shell function defined in ltmain.sh
4222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4223 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004224 ;;
4225
4226darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004227 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004228 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4229 lt_cv_file_magic_cmd='/usr/bin/file -L'
4230 case "$host_os" in
4231 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004232 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004233 ;;
4234 *) # Darwin 1.3 on
4235 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4236 ;;
4237 esac
John Criswell47fdd832003-07-14 16:52:07 +00004238 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004239 ;;
4240
4241freebsd*)
4242 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4243 case $host_cpu in
4244 i*86 )
4245 # Not sure whether the presence of OpenBSD here was a mistake.
4246 # Let's accept both of them until this is cleared up.
4247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4248 lt_cv_file_magic_cmd=/usr/bin/file
4249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4250 ;;
4251 esac
4252 else
4253 lt_cv_deplibs_check_method=pass_all
4254 fi
4255 ;;
4256
4257gnu*)
4258 lt_cv_deplibs_check_method=pass_all
4259 ;;
4260
John Criswell47fdd832003-07-14 16:52:07 +00004261hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004262 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004263 case "$host_cpu" in
4264 ia64*)
4265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4267 ;;
4268 hppa*64*)
4269 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]'
4270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4271 ;;
4272 *)
4273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4275 ;;
4276 esac
John Criswell7a73b802003-06-30 21:59:07 +00004277 ;;
4278
John Criswell47fdd832003-07-14 16:52:07 +00004279irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004280 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004281 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004282 # this will be overridden with pass_all, but let us keep it just in case
4283 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4284 ;;
4285 *)
4286 case $LD in
4287 *-32|*"-32 ") libmagic=32-bit;;
4288 *-n32|*"-n32 ") libmagic=N32;;
4289 *-64|*"-64 ") libmagic=64-bit;;
4290 *) libmagic=never-match;;
4291 esac
4292 # this will be overridden with pass_all, but let us keep it just in case
4293 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4294 ;;
4295 esac
4296 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4297 lt_cv_deplibs_check_method=pass_all
4298 ;;
4299
4300# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004301linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004302 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004303 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004304 lt_cv_deplibs_check_method=pass_all ;;
4305 *)
4306 # glibc up to 2.1.1 does not perform some relocations on ARM
4307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4308 esac
4309 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4310 ;;
4311
4312netbsd*)
4313 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004315 else
John Criswell47fdd832003-07-14 16:52:07 +00004316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004317 fi
4318 ;;
4319
4320newos6*)
4321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4322 lt_cv_file_magic_cmd=/usr/bin/file
4323 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4324 ;;
4325
John Criswell47fdd832003-07-14 16:52:07 +00004326nto-qnx)
4327 lt_cv_deplibs_check_method=unknown
4328 ;;
4329
John Criswell7a73b802003-06-30 21:59:07 +00004330openbsd*)
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4335 else
4336 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4337 fi
4338 ;;
4339
4340osf3* | osf4* | osf5*)
4341 # this will be overridden with pass_all, but let us keep it just in case
4342 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4343 lt_cv_file_magic_test_file=/shlib/libc.so
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
4346
4347sco3.2v5*)
4348 lt_cv_deplibs_check_method=pass_all
4349 ;;
4350
4351solaris*)
4352 lt_cv_deplibs_check_method=pass_all
4353 lt_cv_file_magic_test_file=/lib/libc.so
4354 ;;
4355
John Criswell7a73b802003-06-30 21:59:07 +00004356sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4357 case $host_vendor in
4358 motorola)
4359 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]'
4360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4361 ;;
4362 ncr)
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
4365 sequent)
4366 lt_cv_file_magic_cmd='/bin/file'
4367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4368 ;;
4369 sni)
4370 lt_cv_file_magic_cmd='/bin/file'
4371 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4372 lt_cv_file_magic_test_file=/lib/libc.so
4373 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004374 siemens)
4375 lt_cv_deplibs_check_method=pass_all
4376 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004377 esac
4378 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004379
4380sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4381 lt_cv_deplibs_check_method=pass_all
4382 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004383esac
4384
4385fi
4386echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4387echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4388file_magic_cmd=$lt_cv_file_magic_cmd
4389deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004390test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004391
4392
4393
4394
John Criswell47fdd832003-07-14 16:52:07 +00004395# If no C compiler was specified, use CC.
4396LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004397
John Criswell47fdd832003-07-14 16:52:07 +00004398# Allow CC to be a program name with arguments.
4399compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004400
John Criswell47fdd832003-07-14 16:52:07 +00004401# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4402if test "${enable_libtool_lock+set}" = set; then
4403 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004404
John Criswell47fdd832003-07-14 16:52:07 +00004405fi;
4406test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004407
John Criswell47fdd832003-07-14 16:52:07 +00004408# Some flags need to be propagated to the compiler or linker for good
4409# libtool support.
4410case $host in
4411ia64-*-hpux*)
4412 # Find out which ABI we are using.
4413 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004419 case `/usr/bin/file conftest.$ac_objext` in
4420 *ELF-32*)
4421 HPUX_IA64_MODE="32"
4422 ;;
4423 *ELF-64*)
4424 HPUX_IA64_MODE="64"
4425 ;;
4426 esac
4427 fi
4428 rm -rf conftest*
4429 ;;
4430*-*-irix6*)
4431 # Find out which ABI we are using.
John Criswell559a6c12003-09-30 16:31:48 +00004432 echo '#line 4432 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004437 (exit $ac_status); }; then
4438 if test "$lt_cv_prog_gnu_ld" = yes; then
4439 case `/usr/bin/file conftest.$ac_objext` in
4440 *32-bit*)
4441 LD="${LD-ld} -melf32bsmip"
4442 ;;
4443 *N32*)
4444 LD="${LD-ld} -melf32bmipn32"
4445 ;;
4446 *64-bit*)
4447 LD="${LD-ld} -melf64bmip"
4448 ;;
4449 esac
4450 else
4451 case `/usr/bin/file conftest.$ac_objext` in
4452 *32-bit*)
4453 LD="${LD-ld} -32"
4454 ;;
4455 *N32*)
4456 LD="${LD-ld} -n32"
4457 ;;
4458 *64-bit*)
4459 LD="${LD-ld} -64"
4460 ;;
4461 esac
4462 fi
4463 fi
4464 rm -rf conftest*
4465 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004466
John Criswell47fdd832003-07-14 16:52:07 +00004467x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4468 # Find out which ABI we are using.
4469 echo 'int i;' > conftest.$ac_ext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; then
4475 case "`/usr/bin/file conftest.o`" in
4476 *32-bit*)
4477 case $host in
4478 x86_64-*linux*)
4479 LD="${LD-ld} -m elf_i386"
4480 ;;
4481 ppc64-*linux*)
4482 LD="${LD-ld} -m elf32ppclinux"
4483 ;;
4484 s390x-*linux*)
4485 LD="${LD-ld} -m elf_s390"
4486 ;;
4487 sparc64-*linux*)
4488 LD="${LD-ld} -m elf32_sparc"
4489 ;;
4490 esac
4491 ;;
4492 *64-bit*)
4493 case $host in
4494 x86_64-*linux*)
4495 LD="${LD-ld} -m elf_x86_64"
4496 ;;
4497 ppc*-*linux*|powerpc*-*linux*)
4498 LD="${LD-ld} -m elf64ppc"
4499 ;;
4500 s390*-*linux*)
4501 LD="${LD-ld} -m elf64_s390"
4502 ;;
4503 sparc*-*linux*)
4504 LD="${LD-ld} -m elf64_sparc"
4505 ;;
4506 esac
4507 ;;
4508 esac
4509 fi
4510 rm -rf conftest*
4511 ;;
4512
4513*-*-sco3.2v5*)
4514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4515 SAVE_CFLAGS="$CFLAGS"
4516 CFLAGS="$CFLAGS -belf"
4517 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4518echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4519if test "${lt_cv_cc_needs_belf+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528 cat >conftest.$ac_ext <<_ACEOF
4529#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004530/* confdefs.h. */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004535
John Criswell47fdd832003-07-14 16:52:07 +00004536int
4537main ()
John Criswell7a73b802003-06-30 21:59:07 +00004538{
John Criswell7a73b802003-06-30 21:59:07 +00004539
John Criswell47fdd832003-07-14 16:52:07 +00004540 ;
4541 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004542}
John Criswell47fdd832003-07-14 16:52:07 +00004543_ACEOF
4544rm -f conftest.$ac_objext conftest$ac_exeext
4545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004546 (eval $ac_link) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004549 (exit $ac_status); } &&
4550 { ac_try='test -s conftest$ac_exeext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004557else
John Criswell47fdd832003-07-14 16:52:07 +00004558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004559sed 's/^/| /' conftest.$ac_ext >&5
4560
John Criswell47fdd832003-07-14 16:52:07 +00004561lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004562fi
John Criswell47fdd832003-07-14 16:52:07 +00004563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4564 ac_ext=c
4565ac_cpp='$CPP $CPPFLAGS'
4566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569
John Criswell7a73b802003-06-30 21:59:07 +00004570fi
John Criswell47fdd832003-07-14 16:52:07 +00004571echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4572echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4573 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4574 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4575 CFLAGS="$SAVE_CFLAGS"
4576 fi
4577 ;;
4578
4579esac
4580
4581need_locks="$enable_libtool_lock"
4582
John Criswell7a73b802003-06-30 21:59:07 +00004583
4584
4585echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4586echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4587if test "${ac_cv_header_stdc+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 cat >conftest.$ac_ext <<_ACEOF
4591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004597#include <stdlib.h>
4598#include <stdarg.h>
4599#include <string.h>
4600#include <float.h>
4601
John Criswell0c38eaf2003-09-10 15:17:25 +00004602int
4603main ()
4604{
4605
4606 ;
4607 return 0;
4608}
John Criswell7a73b802003-06-30 21:59:07 +00004609_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004610rm -f conftest.$ac_objext
4611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004613 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004615 (exit $ac_status); } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004622 ac_cv_header_stdc=yes
4623else
4624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004628fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004629rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004630
4631if test $ac_cv_header_stdc = yes; then
4632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4633 cat >conftest.$ac_ext <<_ACEOF
4634#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004635/* confdefs.h. */
4636_ACEOF
4637cat confdefs.h >>conftest.$ac_ext
4638cat >>conftest.$ac_ext <<_ACEOF
4639/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004640#include <string.h>
4641
4642_ACEOF
4643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004644 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004645 :
4646else
4647 ac_cv_header_stdc=no
4648fi
4649rm -f conftest*
4650
4651fi
4652
4653if test $ac_cv_header_stdc = yes; then
4654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4655 cat >conftest.$ac_ext <<_ACEOF
4656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004662#include <stdlib.h>
4663
4664_ACEOF
4665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004666 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004667 :
4668else
4669 ac_cv_header_stdc=no
4670fi
4671rm -f conftest*
4672
4673fi
4674
4675if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then
4678 :
4679else
4680 cat >conftest.$ac_ext <<_ACEOF
4681#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004682/* confdefs.h. */
4683_ACEOF
4684cat confdefs.h >>conftest.$ac_ext
4685cat >>conftest.$ac_ext <<_ACEOF
4686/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004687#include <ctype.h>
4688#if ((' ' & 0x0FF) == 0x020)
4689# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004692# define ISLOWER(c) \
4693 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004694 || ('j' <= (c) && (c) <= 'r') \
4695 || ('s' <= (c) && (c) <= 'z'))
4696# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4697#endif
4698
4699#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4700int
4701main ()
4702{
4703 int i;
4704 for (i = 0; i < 256; i++)
4705 if (XOR (islower (i), ISLOWER (i))
4706 || toupper (i) != TOUPPER (i))
4707 exit(2);
4708 exit (0);
4709}
4710_ACEOF
4711rm -f conftest$ac_exeext
4712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 :
4723else
4724 echo "$as_me: program exited with status $ac_status" >&5
4725echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004726sed 's/^/| /' conftest.$ac_ext >&5
4727
John Criswell7a73b802003-06-30 21:59:07 +00004728( exit $ac_status )
4729ac_cv_header_stdc=no
4730fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004731rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004732fi
4733fi
4734fi
4735echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4736echo "${ECHO_T}$ac_cv_header_stdc" >&6
4737if test $ac_cv_header_stdc = yes; then
4738
4739cat >>confdefs.h <<\_ACEOF
4740#define STDC_HEADERS 1
4741_ACEOF
4742
4743fi
4744
4745# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4756 inttypes.h stdint.h unistd.h
4757do
4758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4759echo "$as_me:$LINENO: checking for $ac_header" >&5
4760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
4764 cat >conftest.$ac_ext <<_ACEOF
4765#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004766/* confdefs.h. */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004771$ac_includes_default
4772
4773#include <$ac_header>
4774_ACEOF
4775rm -f conftest.$ac_objext
4776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 eval "$as_ac_Header=yes"
4788else
4789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004790sed 's/^/| /' conftest.$ac_ext >&5
4791
John Criswell7a73b802003-06-30 21:59:07 +00004792eval "$as_ac_Header=no"
4793fi
4794rm -f conftest.$ac_objext conftest.$ac_ext
4795fi
4796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4798if test `eval echo '${'$as_ac_Header'}'` = yes; then
4799 cat >>confdefs.h <<_ACEOF
4800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4801_ACEOF
4802
4803fi
4804
4805done
4806
4807
4808
4809for ac_header in dlfcn.h
4810do
4811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813 echo "$as_me:$LINENO: checking for $ac_header" >&5
4814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817fi
4818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820else
4821 # Is the header compilable?
4822echo "$as_me:$LINENO: checking $ac_header usability" >&5
4823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4824cat >conftest.$ac_ext <<_ACEOF
4825#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004831$ac_includes_default
4832#include <$ac_header>
4833_ACEOF
4834rm -f conftest.$ac_objext
4835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -s conftest.$ac_objext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_header_compiler=yes
4847else
4848 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004849sed 's/^/| /' conftest.$ac_ext >&5
4850
John Criswell7a73b802003-06-30 21:59:07 +00004851ac_header_compiler=no
4852fi
4853rm -f conftest.$ac_objext conftest.$ac_ext
4854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4855echo "${ECHO_T}$ac_header_compiler" >&6
4856
4857# Is the header present?
4858echo "$as_me:$LINENO: checking $ac_header presence" >&5
4859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4860cat >conftest.$ac_ext <<_ACEOF
4861#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004862/* confdefs.h. */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004867#include <$ac_header>
4868_ACEOF
4869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4871 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004872 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } >/dev/null; then
4877 if test -s conftest.err; then
4878 ac_cpp_err=$ac_c_preproc_warn_flag
4879 else
4880 ac_cpp_err=
4881 fi
4882else
4883 ac_cpp_err=yes
4884fi
4885if test -z "$ac_cpp_err"; then
4886 ac_header_preproc=yes
4887else
4888 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004889sed 's/^/| /' conftest.$ac_ext >&5
4890
John Criswell7a73b802003-06-30 21:59:07 +00004891 ac_header_preproc=no
4892fi
4893rm -f conftest.err conftest.$ac_ext
4894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4895echo "${ECHO_T}$ac_header_preproc" >&6
4896
4897# So? What about this header?
4898case $ac_header_compiler:$ac_header_preproc in
4899 yes:no )
4900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904 (
4905 cat <<\_ASBOX
4906## ------------------------------------ ##
4907## Report this to bug-autoconf@gnu.org. ##
4908## ------------------------------------ ##
4909_ASBOX
4910 ) |
4911 sed "s/^/$as_me: WARNING: /" >&2
4912 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004913 no:yes )
4914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920 (
4921 cat <<\_ASBOX
4922## ------------------------------------ ##
4923## Report this to bug-autoconf@gnu.org. ##
4924## ------------------------------------ ##
4925_ASBOX
4926 ) |
4927 sed "s/^/$as_me: WARNING: /" >&2
4928 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004929esac
4930echo "$as_me:$LINENO: checking for $ac_header" >&5
4931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4932if eval "test \"\${$as_ac_Header+set}\" = set"; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 eval "$as_ac_Header=$ac_header_preproc"
4936fi
4937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4939
4940fi
4941if test `eval echo '${'$as_ac_Header'}'` = yes; then
4942 cat >>confdefs.h <<_ACEOF
4943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4944_ACEOF
4945
4946fi
4947
4948done
4949
John Criswell47fdd832003-07-14 16:52:07 +00004950ac_ext=cc
4951ac_cpp='$CXXCPP $CPPFLAGS'
4952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4955echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4956echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4957if test -z "$CXXCPP"; then
4958 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960else
John Criswell47fdd832003-07-14 16:52:07 +00004961 # Double quotes because CXXCPP needs to be expanded
4962 for CXXCPP in "$CXX -E" "/lib/cpp"
4963 do
4964 ac_preproc_ok=false
4965for ac_cxx_preproc_warn_flag in '' yes
4966do
4967 # Use a header file that comes with gcc, so configuring glibc
4968 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004971 # On the NeXT, cc -E runs the code through the compiler's parser,
4972 # not just through cpp. "Syntax error" is here to catch this case.
4973 cat >conftest.$ac_ext <<_ACEOF
4974#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
4980#ifdef __STDC__
4981# include <limits.h>
4982#else
4983# include <assert.h>
4984#endif
John Criswell47fdd832003-07-14 16:52:07 +00004985 Syntax error
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004990 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004997 else
John Criswell47fdd832003-07-14 16:52:07 +00004998 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004999 fi
John Criswell47fdd832003-07-14 16:52:07 +00005000else
5001 ac_cpp_err=yes
5002fi
5003if test -z "$ac_cpp_err"; then
5004 :
5005else
5006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005007sed 's/^/| /' conftest.$ac_ext >&5
5008
John Criswell47fdd832003-07-14 16:52:07 +00005009 # Broken: fails on valid input.
5010continue
5011fi
5012rm -f conftest.err conftest.$ac_ext
5013
5014 # OK, works on sane cases. Now check whether non-existent headers
5015 # can be detected and how.
5016 cat >conftest.$ac_ext <<_ACEOF
5017#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005023#include <ac_nonexistent.h>
5024_ACEOF
5025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005028 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } >/dev/null; then
5033 if test -s conftest.err; then
5034 ac_cpp_err=$ac_cxx_preproc_warn_flag
5035 else
5036 ac_cpp_err=
5037 fi
5038else
5039 ac_cpp_err=yes
5040fi
5041if test -z "$ac_cpp_err"; then
5042 # Broken: success on invalid input.
5043continue
5044else
5045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005046sed 's/^/| /' conftest.$ac_ext >&5
5047
John Criswell47fdd832003-07-14 16:52:07 +00005048 # Passes both tests.
5049ac_preproc_ok=:
5050break
5051fi
5052rm -f conftest.err conftest.$ac_ext
5053
5054done
5055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5056rm -f conftest.err conftest.$ac_ext
5057if $ac_preproc_ok; then
5058 break
John Criswell7a73b802003-06-30 21:59:07 +00005059fi
5060
John Criswell47fdd832003-07-14 16:52:07 +00005061 done
5062 ac_cv_prog_CXXCPP=$CXXCPP
5063
5064fi
5065 CXXCPP=$ac_cv_prog_CXXCPP
5066else
5067 ac_cv_prog_CXXCPP=$CXXCPP
5068fi
5069echo "$as_me:$LINENO: result: $CXXCPP" >&5
5070echo "${ECHO_T}$CXXCPP" >&6
5071ac_preproc_ok=false
5072for ac_cxx_preproc_warn_flag in '' yes
5073do
5074 # Use a header file that comes with gcc, so configuring glibc
5075 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5077 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005078 # On the NeXT, cc -E runs the code through the compiler's parser,
5079 # not just through cpp. "Syntax error" is here to catch this case.
5080 cat >conftest.$ac_ext <<_ACEOF
5081#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005082/* confdefs.h. */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h. */
5087#ifdef __STDC__
5088# include <limits.h>
5089#else
5090# include <assert.h>
5091#endif
John Criswell47fdd832003-07-14 16:52:07 +00005092 Syntax error
5093_ACEOF
5094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005097 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_cxx_preproc_warn_flag
5104 else
5105 ac_cpp_err=
5106 fi
5107else
5108 ac_cpp_err=yes
5109fi
5110if test -z "$ac_cpp_err"; then
5111 :
5112else
5113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005114sed 's/^/| /' conftest.$ac_ext >&5
5115
John Criswell47fdd832003-07-14 16:52:07 +00005116 # Broken: fails on valid input.
5117continue
5118fi
5119rm -f conftest.err conftest.$ac_ext
5120
5121 # OK, works on sane cases. Now check whether non-existent headers
5122 # can be detected and how.
5123 cat >conftest.$ac_ext <<_ACEOF
5124#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005125/* confdefs.h. */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5129/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005130#include <ac_nonexistent.h>
5131_ACEOF
5132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005135 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null; then
5140 if test -s conftest.err; then
5141 ac_cpp_err=$ac_cxx_preproc_warn_flag
5142 else
5143 ac_cpp_err=
5144 fi
5145else
5146 ac_cpp_err=yes
5147fi
5148if test -z "$ac_cpp_err"; then
5149 # Broken: success on invalid input.
5150continue
5151else
5152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005153sed 's/^/| /' conftest.$ac_ext >&5
5154
John Criswell47fdd832003-07-14 16:52:07 +00005155 # Passes both tests.
5156ac_preproc_ok=:
5157break
5158fi
5159rm -f conftest.err conftest.$ac_ext
5160
5161done
5162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5163rm -f conftest.err conftest.$ac_ext
5164if $ac_preproc_ok; then
5165 :
5166else
John Criswell0c38eaf2003-09-10 15:17:25 +00005167 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5168See \`config.log' for more details." >&5
5169echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5170See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005171 { (exit 1); exit 1; }; }
5172fi
5173
5174ac_ext=cc
5175ac_cpp='$CXXCPP $CPPFLAGS'
5176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5179
5180
5181ac_ext=f
5182ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5183ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5185if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005186 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 +00005187 do
5188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_F77+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 if test -n "$F77"; then
5196 ac_cv_prog_F77="$F77" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209done
5210done
5211
5212fi
5213fi
5214F77=$ac_cv_prog_F77
5215if test -n "$F77"; then
5216 echo "$as_me:$LINENO: result: $F77" >&5
5217echo "${ECHO_T}$F77" >&6
5218else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221fi
5222
5223 test -n "$F77" && break
5224 done
5225fi
5226if test -z "$F77"; then
5227 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005228 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 +00005229do
5230 # Extract the first word of "$ac_prog", so it can be a program name with args.
5231set dummy $ac_prog; ac_word=$2
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 if test -n "$ac_ct_F77"; then
5238 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_ac_ct_F77="$ac_prog"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251done
5252done
5253
5254fi
5255fi
5256ac_ct_F77=$ac_cv_prog_ac_ct_F77
5257if test -n "$ac_ct_F77"; then
5258 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5259echo "${ECHO_T}$ac_ct_F77" >&6
5260else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263fi
5264
5265 test -n "$ac_ct_F77" && break
5266done
5267
5268 F77=$ac_ct_F77
5269fi
5270
5271
5272# Provide some information about the compiler.
John Criswell559a6c12003-09-30 16:31:48 +00005273echo "$as_me:5273:" \
John Criswell47fdd832003-07-14 16:52:07 +00005274 "checking for Fortran 77 compiler version" >&5
5275ac_compiler=`set X $ac_compile; echo $2`
5276{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5277 (eval $ac_compiler --version </dev/null >&5) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }
5281{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5282 (eval $ac_compiler -v </dev/null >&5) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5287 (eval $ac_compiler -V </dev/null >&5) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291
5292# If we don't use `.F' as extension, the preprocessor is not run on the
5293# input file.
5294ac_save_ext=$ac_ext
5295ac_ext=F
5296echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5297echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5298if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 cat >conftest.$ac_ext <<_ACEOF
5302 program main
5303#ifndef __GNUC__
5304 choke me
5305#endif
5306
5307 end
5308_ACEOF
5309rm -f conftest.$ac_objext
5310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311 (eval $ac_compile) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_compiler_gnu=yes
5322else
5323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005324sed 's/^/| /' conftest.$ac_ext >&5
5325
John Criswell47fdd832003-07-14 16:52:07 +00005326ac_compiler_gnu=no
5327fi
5328rm -f conftest.$ac_objext conftest.$ac_ext
5329ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5330
5331fi
5332echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5333echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5334ac_ext=$ac_save_ext
5335G77=`test $ac_compiler_gnu = yes && echo yes`
5336ac_test_FFLAGS=${FFLAGS+set}
5337ac_save_FFLAGS=$FFLAGS
5338FFLAGS=
5339echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5340echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5341if test "${ac_cv_prog_f77_g+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344 FFLAGS=-g
5345cat >conftest.$ac_ext <<_ACEOF
5346 program main
5347
5348 end
5349_ACEOF
5350rm -f conftest.$ac_objext
5351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_cv_prog_f77_g=yes
5363else
5364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005365sed 's/^/| /' conftest.$ac_ext >&5
5366
John Criswell47fdd832003-07-14 16:52:07 +00005367ac_cv_prog_f77_g=no
5368fi
5369rm -f conftest.$ac_objext conftest.$ac_ext
5370
5371fi
5372echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374if test "$ac_test_FFLAGS" = set; then
5375 FFLAGS=$ac_save_FFLAGS
5376elif test $ac_cv_prog_f77_g = yes; then
5377 if test "$G77" = yes; then
5378 FFLAGS="-g -O2"
5379 else
5380 FFLAGS="-g"
5381 fi
5382else
5383 if test "$G77" = yes; then
5384 FFLAGS="-O2"
5385 else
5386 FFLAGS=
5387 fi
5388fi
5389ac_ext=c
5390ac_cpp='$CPP $CPPFLAGS'
5391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
5396
5397# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5398
5399# find the maximum length of command line arguments
5400echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5401echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5402if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405 i=0
5406 testring="ABCD"
5407
5408 case $build_os in
5409 msdosdjgpp*)
5410 # On DJGPP, this test can blow up pretty badly due to problems in libc
5411 # (any single argument exceeding 2000 bytes causes a buffer overrun
5412 # during glob expansion). Even if it were fixed, the result of this
5413 # check would be larger than it should be.
5414 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5415 ;;
5416
5417 gnu*)
5418 # Under GNU Hurd, this test is not required because there is
5419 # no limit to the length of command line arguments.
5420 # Libtool will interpret -1 as no limit whatsoever
5421 lt_cv_sys_max_cmd_len=-1;
5422 ;;
5423
5424 cygwin* | mingw*)
5425 # On Win9x/ME, this test blows up -- it succeeds, but takes
5426 # about 5 minutes as the teststring grows exponentially.
5427 # Worse, since 9x/ME are not pre-emptively multitasking,
5428 # you end up with a "frozen" computer, even though with patience
5429 # the test eventually succeeds (with a max line length of 256k).
5430 # Instead, let's just punt: use the minimum linelength reported by
5431 # all of the supported platforms: 8192 (on NT/2K/XP).
5432 lt_cv_sys_max_cmd_len=8192;
5433 ;;
5434
5435 *)
5436 # If test is not a shell built-in, we'll probably end up computing a
5437 # maximum length that is only half of the actual maximum length, but
5438 # we can't tell.
5439 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5440 = "XX$testring") >/dev/null 2>&1 &&
5441 new_result=`expr "X$testring" : ".*" 2>&1` &&
5442 lt_cv_sys_max_cmd_len=$new_result &&
5443 test $i != 17 # 1/2 MB should be enough
5444 do
5445 i=`expr $i + 1`
5446 testring=$testring$testring
5447 done
5448 testring=
5449 # Add a significant safety factor because C++ compilers can tack on massive
5450 # amounts of additional arguments before passing them to the linker.
5451 # It appears as though 1/2 is a usable value.
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453 ;;
5454 esac
5455
5456fi
5457
5458if test -n $lt_cv_sys_max_cmd_len ; then
5459 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5460echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5461else
5462 echo "$as_me:$LINENO: result: none" >&5
5463echo "${ECHO_T}none" >&6
5464fi
5465
5466
5467
5468
5469# Check for command to grab the raw symbol name followed by C symbol from nm.
5470echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5471echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5472if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475
5476# These are sane defaults that work on at least a few old systems.
5477# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5478
5479# Character class describing NM global symbol codes.
5480symcode='[BCDEGRST]'
5481
5482# Regexp to match symbols that can be accessed directly from C.
5483sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5484
5485# Transform the above into a raw symbol and a C symbol.
5486symxfrm='\1 \2\3 \3'
5487
5488# Transform an extracted symbol line into a proper C declaration
5489lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5490
5491# Transform an extracted symbol line into symbol name and symbol address
5492lt_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'"
5493
5494# Define system-specific variables.
5495case $host_os in
5496aix*)
5497 symcode='[BCDT]'
5498 ;;
5499cygwin* | mingw* | pw32*)
5500 symcode='[ABCDGISTW]'
5501 ;;
5502hpux*) # Its linker distinguishes data from code symbols
5503 if test "$host_cpu" = ia64; then
5504 symcode='[ABCDEGRST]'
5505 fi
5506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507 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'"
5508 ;;
5509irix* | nonstopux*)
5510 symcode='[BCDEGRST]'
5511 ;;
5512osf*)
5513 symcode='[BCDEGQRST]'
5514 ;;
5515solaris* | sysv5*)
5516 symcode='[BDT]'
5517 ;;
5518sysv4)
5519 symcode='[DFNSTU]'
5520 ;;
5521esac
5522
5523# Handle CRLF in mingw tool chain
5524opt_cr=
5525case $build_os in
5526mingw*)
5527 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5528 ;;
5529esac
5530
5531# If we're using GNU nm, then use its standard symbol codes.
5532case `$NM -V 2>&1` in
5533*GNU* | *'with BFD'*)
5534 symcode='[ABCDGISTW]' ;;
5535esac
5536
5537# Try without a prefix undercore, then with it.
5538for ac_symprfx in "" "_"; do
5539
5540 # Write the raw and C identifiers.
5541 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5542
5543 # Check to see that the pipe works correctly.
5544 pipe_works=no
5545
5546 rm -f conftest*
5547 cat > conftest.$ac_ext <<EOF
5548#ifdef __cplusplus
5549extern "C" {
5550#endif
5551char nm_test_var;
5552void nm_test_func(){}
5553#ifdef __cplusplus
5554}
5555#endif
5556int main(){nm_test_var='a';nm_test_func();return(0);}
5557EOF
5558
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; then
5564 # Now try to grab the symbols.
5565 nlist=conftest.nm
5566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5567 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && test -s "$nlist"; then
5571 # Try sorting and uniquifying the output.
5572 if sort "$nlist" | uniq > "$nlist"T; then
5573 mv -f "$nlist"T "$nlist"
5574 else
5575 rm -f "$nlist"T
5576 fi
5577
5578 # Make sure that we snagged all the symbols we need.
5579 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5580 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5581 cat <<EOF > conftest.$ac_ext
5582#ifdef __cplusplus
5583extern "C" {
5584#endif
5585
5586EOF
5587 # Now generate the symbol file.
5588 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5589
5590 cat <<EOF >> conftest.$ac_ext
5591#if defined (__STDC__) && __STDC__
5592# define lt_ptr_t void *
5593#else
5594# define lt_ptr_t char *
5595# define const
5596#endif
5597
5598/* The mapping between symbol names and symbols. */
5599const struct {
5600 const char *name;
5601 lt_ptr_t address;
5602}
5603lt_preloaded_symbols[] =
5604{
5605EOF
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5607 cat <<\EOF >> conftest.$ac_ext
5608 {0, (lt_ptr_t) 0}
5609};
5610
5611#ifdef __cplusplus
5612}
5613#endif
5614EOF
5615 # Now try linking the two files.
5616 mv conftest.$ac_objext conftstm.$ac_objext
5617 lt_save_LIBS="$LIBS"
5618 lt_save_CFLAGS="$CFLAGS"
5619 LIBS="conftstm.$ac_objext"
5620 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622 (eval $ac_link) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5626 pipe_works=yes
5627 fi
5628 LIBS="$lt_save_LIBS"
5629 CFLAGS="$lt_save_CFLAGS"
5630 else
5631 echo "cannot find nm_test_func in $nlist" >&5
5632 fi
5633 else
5634 echo "cannot find nm_test_var in $nlist" >&5
5635 fi
5636 else
5637 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5638 fi
5639 else
5640 echo "$progname: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5642 fi
5643 rm -f conftest* conftst*
5644
5645 # Do not use the global_symbol_pipe unless it works.
5646 if test "$pipe_works" = yes; then
5647 break
5648 else
5649 lt_cv_sys_global_symbol_pipe=
5650 fi
5651done
5652
5653fi
5654
5655if test -z "$lt_cv_sys_global_symbol_pipe"; then
5656 lt_cv_sys_global_symbol_to_cdecl=
5657fi
5658if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5659 echo "$as_me:$LINENO: result: failed" >&5
5660echo "${ECHO_T}failed" >&6
5661else
5662 echo "$as_me:$LINENO: result: ok" >&5
5663echo "${ECHO_T}ok" >&6
5664fi
5665
5666echo "$as_me:$LINENO: checking for objdir" >&5
5667echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5668if test "${lt_cv_objdir+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 rm -f .libs 2>/dev/null
5672mkdir .libs 2>/dev/null
5673if test -d .libs; then
5674 lt_cv_objdir=.libs
5675else
5676 # MS-DOS does not allow filenames that begin with a dot.
5677 lt_cv_objdir=_libs
5678fi
5679rmdir .libs 2>/dev/null
5680fi
5681echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5682echo "${ECHO_T}$lt_cv_objdir" >&6
5683objdir=$lt_cv_objdir
5684
5685
5686
5687
5688
5689case $host_os in
5690aix3*)
5691 # AIX sometimes has problems with the GCC collect2 program. For some
5692 # reason, if we set the COLLECT_NAMES environment variable, the problems
5693 # vanish in a puff of smoke.
5694 if test "X${COLLECT_NAMES+set}" != Xset; then
5695 COLLECT_NAMES=
5696 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005697 fi
5698 ;;
5699esac
5700
John Criswell47fdd832003-07-14 16:52:07 +00005701# Sed substitution that helps us do robust quoting. It backslashifies
5702# metacharacters that are still active within double-quoted strings.
5703Xsed='sed -e s/^X//'
5704sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5705
5706# Same as above, but do not quote variable references.
5707double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5708
5709# Sed substitution to delay expansion of an escaped shell variable in a
5710# double_quote_subst'ed string.
5711delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5712
5713# Sed substitution to avoid accidental globbing in evaled expressions
5714no_glob_subst='s/\*/\\\*/g'
5715
5716# Constants:
5717rm="rm -f"
5718
5719# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005720default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005721can_build_shared=yes
5722
5723# All known linkers require a `.a' archive for static linking (except M$VC,
5724# which needs '.lib').
5725libext=a
5726ltmain="$ac_aux_dir/ltmain.sh"
5727ofile="$default_ofile"
5728with_gnu_ld="$lt_cv_prog_gnu_ld"
5729
5730if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5732set dummy ${ac_tool_prefix}ar; ac_word=$2
5733echo "$as_me:$LINENO: checking for $ac_word" >&5
5734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735if test "${ac_cv_prog_AR+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737else
5738 if test -n "$AR"; then
5739 ac_cv_prog_AR="$AR" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_AR="${ac_tool_prefix}ar"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752done
5753done
5754
5755fi
5756fi
5757AR=$ac_cv_prog_AR
5758if test -n "$AR"; then
5759 echo "$as_me:$LINENO: result: $AR" >&5
5760echo "${ECHO_T}$AR" >&6
5761else
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764fi
5765
5766fi
5767if test -z "$ac_cv_prog_AR"; then
5768 ac_ct_AR=$AR
5769 # Extract the first word of "ar", so it can be a program name with args.
5770set dummy ar; ac_word=$2
5771echo "$as_me:$LINENO: checking for $ac_word" >&5
5772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776 if test -n "$ac_ct_AR"; then
5777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_ac_ct_AR="ar"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790done
5791done
5792
5793 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5794fi
5795fi
5796ac_ct_AR=$ac_cv_prog_ac_ct_AR
5797if test -n "$ac_ct_AR"; then
5798 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5799echo "${ECHO_T}$ac_ct_AR" >&6
5800else
5801 echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6
5803fi
5804
5805 AR=$ac_ct_AR
5806else
5807 AR="$ac_cv_prog_AR"
5808fi
5809
John Criswell7a73b802003-06-30 21:59:07 +00005810if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813echo "$as_me:$LINENO: checking for $ac_word" >&5
5814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815if test "${ac_cv_prog_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833done
5834
5835fi
5836fi
5837RANLIB=$ac_cv_prog_RANLIB
5838if test -n "$RANLIB"; then
5839 echo "$as_me:$LINENO: result: $RANLIB" >&5
5840echo "${ECHO_T}$RANLIB" >&6
5841else
5842 echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
5844fi
5845
5846fi
5847if test -z "$ac_cv_prog_RANLIB"; then
5848 ac_ct_RANLIB=$RANLIB
5849 # Extract the first word of "ranlib", so it can be a program name with args.
5850set dummy ranlib; ac_word=$2
5851echo "$as_me:$LINENO: checking for $ac_word" >&5
5852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_ac_ct_RANLIB="ranlib"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870done
5871done
5872
5873 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5874fi
5875fi
5876ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877if test -n "$ac_ct_RANLIB"; then
5878 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879echo "${ECHO_T}$ac_ct_RANLIB" >&6
5880else
5881 echo "$as_me:$LINENO: result: no" >&5
5882echo "${ECHO_T}no" >&6
5883fi
5884
5885 RANLIB=$ac_ct_RANLIB
5886else
5887 RANLIB="$ac_cv_prog_RANLIB"
5888fi
5889
5890if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892set dummy ${ac_tool_prefix}strip; ac_word=$2
5893echo "$as_me:$LINENO: checking for $ac_word" >&5
5894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895if test "${ac_cv_prog_STRIP+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897else
5898 if test -n "$STRIP"; then
5899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913done
5914
5915fi
5916fi
5917STRIP=$ac_cv_prog_STRIP
5918if test -n "$STRIP"; then
5919 echo "$as_me:$LINENO: result: $STRIP" >&5
5920echo "${ECHO_T}$STRIP" >&6
5921else
5922 echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6
5924fi
5925
5926fi
5927if test -z "$ac_cv_prog_STRIP"; then
5928 ac_ct_STRIP=$STRIP
5929 # Extract the first word of "strip", so it can be a program name with args.
5930set dummy strip; ac_word=$2
5931echo "$as_me:$LINENO: checking for $ac_word" >&5
5932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936 if test -n "$ac_ct_STRIP"; then
5937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_ac_ct_STRIP="strip"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950done
5951done
5952
5953 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5954fi
5955fi
5956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5957if test -n "$ac_ct_STRIP"; then
5958 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5959echo "${ECHO_T}$ac_ct_STRIP" >&6
5960else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963fi
5964
5965 STRIP=$ac_ct_STRIP
5966else
5967 STRIP="$ac_cv_prog_STRIP"
5968fi
5969
5970
John Criswell7a73b802003-06-30 21:59:07 +00005971old_CC="$CC"
5972old_CFLAGS="$CFLAGS"
5973
5974# Set sane defaults for various variables
5975test -z "$AR" && AR=ar
5976test -z "$AR_FLAGS" && AR_FLAGS=cru
5977test -z "$AS" && AS=as
5978test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005979test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005980test -z "$DLLTOOL" && DLLTOOL=dlltool
5981test -z "$LD" && LD=ld
5982test -z "$LN_S" && LN_S="ln -s"
5983test -z "$MAGIC_CMD" && MAGIC_CMD=file
5984test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005985test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005986test -z "$OBJDUMP" && OBJDUMP=objdump
5987test -z "$RANLIB" && RANLIB=:
5988test -z "$STRIP" && STRIP=:
5989test -z "$ac_objext" && ac_objext=o
5990
John Criswell7a73b802003-06-30 21:59:07 +00005991# Determine commands to create old-style static archives.
5992old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5993old_postinstall_cmds='chmod 644 $oldlib'
5994old_postuninstall_cmds=
5995
5996if test -n "$RANLIB"; then
5997 case $host_os in
5998 openbsd*)
5999 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6000 ;;
6001 *)
6002 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6003 ;;
6004 esac
6005 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6006fi
6007
John Criswell47fdd832003-07-14 16:52:07 +00006008# Only perform the check for file, if the check method requires it
6009case $deplibs_check_method in
6010file_magic*)
6011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006016else
John Criswell47fdd832003-07-14 16:52:07 +00006017 case $MAGIC_CMD in
6018[\\/*] | ?:[\\/]*)
6019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6020 ;;
6021*)
6022 lt_save_MAGIC_CMD="$MAGIC_CMD"
6023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6025 for ac_dir in $ac_dummy; do
6026 IFS="$lt_save_ifs"
6027 test -z "$ac_dir" && ac_dir=.
6028 if test -f $ac_dir/${ac_tool_prefix}file; then
6029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6030 if test -n "$file_magic_test_file"; then
6031 case $deplibs_check_method in
6032 "file_magic "*)
6033 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6036 $EGREP "$file_magic_regex" > /dev/null; then
6037 :
6038 else
6039 cat <<EOF 1>&2
6040
6041*** Warning: the command libtool uses to detect shared libraries,
6042*** $file_magic_cmd, produces output that libtool cannot recognize.
6043*** The result is that libtool may fail to recognize shared libraries
6044*** as such. This will affect the creation of libtool libraries that
6045*** depend on shared libraries, but programs linked with such libtool
6046*** libraries will work regardless of this problem. Nevertheless, you
6047*** may want to report the problem to your system manager and/or to
6048*** bug-libtool@gnu.org
6049
6050EOF
6051 fi ;;
6052 esac
6053 fi
6054 break
6055 fi
6056 done
6057 IFS="$lt_save_ifs"
6058 MAGIC_CMD="$lt_save_MAGIC_CMD"
6059 ;;
6060esac
John Criswell7a73b802003-06-30 21:59:07 +00006061fi
John Criswell7a73b802003-06-30 21:59:07 +00006062
John Criswell47fdd832003-07-14 16:52:07 +00006063MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064if test -n "$MAGIC_CMD"; then
6065 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066echo "${ECHO_T}$MAGIC_CMD" >&6
6067else
6068 echo "$as_me:$LINENO: result: no" >&5
6069echo "${ECHO_T}no" >&6
6070fi
John Criswell7a73b802003-06-30 21:59:07 +00006071
John Criswell47fdd832003-07-14 16:52:07 +00006072if test -z "$lt_cv_path_MAGIC_CMD"; then
6073 if test -n "$ac_tool_prefix"; then
6074 echo "$as_me:$LINENO: checking for file" >&5
6075echo $ECHO_N "checking for file... $ECHO_C" >&6
6076if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078else
6079 case $MAGIC_CMD in
6080[\\/*] | ?:[\\/]*)
6081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6082 ;;
6083*)
6084 lt_save_MAGIC_CMD="$MAGIC_CMD"
6085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6087 for ac_dir in $ac_dummy; do
6088 IFS="$lt_save_ifs"
6089 test -z "$ac_dir" && ac_dir=.
6090 if test -f $ac_dir/file; then
6091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6092 if test -n "$file_magic_test_file"; then
6093 case $deplibs_check_method in
6094 "file_magic "*)
6095 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6098 $EGREP "$file_magic_regex" > /dev/null; then
6099 :
6100 else
6101 cat <<EOF 1>&2
6102
6103*** Warning: the command libtool uses to detect shared libraries,
6104*** $file_magic_cmd, produces output that libtool cannot recognize.
6105*** The result is that libtool may fail to recognize shared libraries
6106*** as such. This will affect the creation of libtool libraries that
6107*** depend on shared libraries, but programs linked with such libtool
6108*** libraries will work regardless of this problem. Nevertheless, you
6109*** may want to report the problem to your system manager and/or to
6110*** bug-libtool@gnu.org
6111
6112EOF
6113 fi ;;
6114 esac
6115 fi
6116 break
6117 fi
6118 done
6119 IFS="$lt_save_ifs"
6120 MAGIC_CMD="$lt_save_MAGIC_CMD"
6121 ;;
6122esac
6123fi
6124
6125MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126if test -n "$MAGIC_CMD"; then
6127 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128echo "${ECHO_T}$MAGIC_CMD" >&6
6129else
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
6132fi
6133
6134 else
6135 MAGIC_CMD=:
6136 fi
6137fi
6138
6139 fi
6140 ;;
6141esac
6142
6143enable_dlopen=no
6144enable_win32_dll=no
6145
6146# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147if test "${enable_libtool_lock+set}" = set; then
6148 enableval="$enable_libtool_lock"
6149
6150fi;
6151test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6152
John Criswell7a73b802003-06-30 21:59:07 +00006153
6154# Check whether --with-pic or --without-pic was given.
6155if test "${with_pic+set}" = set; then
6156 withval="$with_pic"
6157 pic_mode="$withval"
6158else
6159 pic_mode=default
6160fi;
6161test -z "$pic_mode" && pic_mode=default
6162
John Criswell47fdd832003-07-14 16:52:07 +00006163# Use C for the default configuration in the libtool script
6164tagname=
6165lt_save_CC="$CC"
6166ac_ext=c
6167ac_cpp='$CPP $CPPFLAGS'
6168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
6172
6173# Source file extension for C test sources.
6174ac_ext=c
6175
6176# Object file extension for compiled C test sources.
6177objext=o
6178objext=$objext
6179
6180# Code to be used in simple compile tests
6181lt_simple_compile_test_code="int some_variable = 0;\n"
6182
6183# Code to be used in simple link tests
6184lt_simple_link_test_code='int main(){return(0);}\n'
6185
6186
6187# If no C compiler was specified, use CC.
6188LTCC=${LTCC-"$CC"}
6189
6190# Allow CC to be a program name with arguments.
6191compiler=$CC
6192
6193
6194#
6195# Check for any special shared library compilation flags.
6196#
6197lt_prog_cc_shlib=
6198if test "$GCC" = no; then
6199 case $host_os in
6200 sco3.2v5*)
6201 lt_prog_cc_shlib='-belf'
6202 ;;
6203 esac
6204fi
6205if test -n "$lt_prog_cc_shlib"; then
6206 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6209 else
6210 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212 lt_cv_prog_cc_can_build_shared=no
6213 fi
6214fi
6215
6216
6217#
6218# Check to make sure the static flag actually works.
6219#
6220echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
John Criswell47fdd832003-07-14 16:52:07 +00006225 lt_prog_compiler_static_works=no
6226 save_LDFLAGS="$LDFLAGS"
6227 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6228 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6230 # The compiler can only warn and ignore the option if not recognized
6231 # So say no if there are warnings
6232 if test -s conftest.err; then
6233 # Append any errors to the config.log.
6234 cat conftest.err 1>&5
6235 else
6236 lt_prog_compiler_static_works=yes
6237 fi
6238 fi
6239 $rm conftest*
6240 LDFLAGS="$save_LDFLAGS"
6241
6242fi
6243echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6245
6246if test x"$lt_prog_compiler_static_works" = xyes; then
6247 :
6248else
6249 lt_prog_compiler_static=
6250fi
6251
6252
6253
6254## CAVEAT EMPTOR:
6255## There is no encapsulation within the following macros, do not change
6256## the running order or otherwise move them around unless you know exactly
6257## what you are doing...
6258
6259lt_prog_compiler_no_builtin_flag=
6260
6261if test "$GCC" = yes; then
6262 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6263
6264 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6265echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6266if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 lt_cv_prog_compiler_rtti_exceptions=no
6270 ac_outfile=conftest.$ac_objext
6271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6272 lt_compiler_flag="-fno-rtti -fno-exceptions"
6273 # Insert the option either (1) after the last *FLAGS variable, or
6274 # (2) before a word containing "conftest.", or (3) at the end.
6275 # Note that $ac_compile itself does not contain backslashes and begins
6276 # with a dollar sign (not a hyphen), so the echo should work correctly.
6277 # The option is referenced via a variable to avoid confusing sed.
6278 lt_compile=`echo "$ac_compile" | $SED \
6279 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6281 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +00006282 (eval echo "\"\$as_me:6282: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006283 (eval "$lt_compile" 2>conftest.err)
6284 ac_status=$?
6285 cat conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +00006286 echo "$as_me:6286: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006287 if (exit $ac_status) && test -s "$ac_outfile"; then
6288 # The compiler can only warn and ignore the option if not recognized
6289 # So say no if there are warnings
6290 if test ! -s conftest.err; then
6291 lt_cv_prog_compiler_rtti_exceptions=yes
6292 fi
6293 fi
6294 $rm conftest*
6295
6296fi
6297echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6298echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6299
6300if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6301 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6302else
6303 :
6304fi
6305
6306fi
6307
6308lt_prog_compiler_wl=
6309lt_prog_compiler_pic=
6310lt_prog_compiler_static=
6311
6312echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6313echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006314
6315 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006316 lt_prog_compiler_wl='-Wl,'
6317 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006318
6319 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006320 aix*)
6321 # All AIX code is PIC.
6322 if test "$host_cpu" = ia64; then
6323 # AIX 5 now supports IA64 processor
6324 lt_prog_compiler_static='-Bstatic'
6325 fi
John Criswell7a73b802003-06-30 21:59:07 +00006326 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006327
John Criswell7a73b802003-06-30 21:59:07 +00006328 amigaos*)
6329 # FIXME: we need at least 68020 code to build shared libraries, but
6330 # adding the `-m68020' flag to GCC prevents building anything better,
6331 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006332 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006333 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006334
6335 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006336 # PIC is the default for these OSes.
6337 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006338
6339 mingw* | pw32* | os2*)
6340 # This hack is so that the source file can tell whether it is being
6341 # built for inclusion in a dll (and should export symbols for example).
6342 lt_prog_compiler_pic='-DDLL_EXPORT'
6343 ;;
6344
John Criswell7a73b802003-06-30 21:59:07 +00006345 darwin* | rhapsody*)
6346 # PIC is the default on this platform
6347 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006348 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006349 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006350
6351 msdosdjgpp*)
6352 # Just because we use GCC doesn't mean we suddenly get shared libraries
6353 # on systems that don't support them.
6354 lt_prog_compiler_can_build_shared=no
6355 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006356 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006357
John Criswell7a73b802003-06-30 21:59:07 +00006358 sysv4*MP*)
6359 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006360 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006361 fi
6362 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006363
6364 hpux*)
6365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6366 # not for PA HP-UX.
6367 case "$host_cpu" in
6368 hppa*64*|ia64*)
6369 # +Z the default
6370 ;;
6371 *)
6372 lt_prog_compiler_pic='-fPIC'
6373 ;;
6374 esac
6375 ;;
6376
John Criswell7a73b802003-06-30 21:59:07 +00006377 *)
John Criswell47fdd832003-07-14 16:52:07 +00006378 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006379 ;;
6380 esac
6381 else
John Criswell47fdd832003-07-14 16:52:07 +00006382 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006383 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006384 aix*)
6385 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006386 if test "$host_cpu" = ia64; then
6387 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006388 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006389 else
John Criswell47fdd832003-07-14 16:52:07 +00006390 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006391 fi
6392 ;;
6393
John Criswell47fdd832003-07-14 16:52:07 +00006394 mingw* | pw32* | os2*)
6395 # This hack is so that the source file can tell whether it is being
6396 # built for inclusion in a dll (and should export symbols for example).
6397 lt_prog_compiler_pic='-DDLL_EXPORT'
6398 ;;
6399
John Criswell7a73b802003-06-30 21:59:07 +00006400 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006401 lt_prog_compiler_wl='-Wl,'
6402 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6403 # not for PA HP-UX.
6404 case "$host_cpu" in
6405 hppa*64*|ia64*)
6406 # +Z the default
6407 ;;
6408 *)
6409 lt_prog_compiler_pic='+Z'
6410 ;;
6411 esac
6412 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6413 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006414 ;;
6415
John Criswell47fdd832003-07-14 16:52:07 +00006416 irix5* | irix6* | nonstopux*)
6417 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006418 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006419 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006420 ;;
6421
6422 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006423 lt_prog_compiler_pic='-KPIC'
6424 lt_prog_compiler_static='-Bstatic'
6425 ;;
6426
6427 linux*)
6428 case $CC in
6429 icc|ecc)
6430 lt_prog_compiler_wl='-Wl,'
6431 lt_prog_compiler_pic='-KPIC'
6432 lt_prog_compiler_static='-static'
6433 ;;
6434 ccc)
6435 lt_prog_compiler_wl='-Wl,'
6436 # All Alpha code is PIC.
6437 lt_prog_compiler_static='-non_shared'
6438 ;;
6439 esac
John Criswell7a73b802003-06-30 21:59:07 +00006440 ;;
6441
6442 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006443 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006444 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006445 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006446 ;;
6447
6448 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006449 lt_prog_compiler_pic='-Kpic'
6450 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006451 ;;
6452
6453 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006454 lt_prog_compiler_wl='-Wl,'
6455 lt_prog_compiler_pic='-KPIC'
6456 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006457 ;;
6458
6459 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006460 lt_prog_compiler_wl='-Qoption ld '
6461 lt_prog_compiler_pic='-PIC'
6462 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006463 ;;
6464
6465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006466 lt_prog_compiler_wl='-Wl,'
6467 lt_prog_compiler_pic='-KPIC'
6468 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006469 ;;
6470
6471 sysv4*MP*)
6472 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006473 lt_prog_compiler_pic='-Kconform_pic'
6474 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006475 fi
6476 ;;
6477
John Criswell47fdd832003-07-14 16:52:07 +00006478 uts4*)
6479 lt_prog_compiler_pic='-pic'
6480 lt_prog_compiler_static='-Bstatic'
6481 ;;
6482
John Criswell7a73b802003-06-30 21:59:07 +00006483 *)
John Criswell47fdd832003-07-14 16:52:07 +00006484 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006485 ;;
6486 esac
6487 fi
6488
John Criswell47fdd832003-07-14 16:52:07 +00006489echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6490echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006491
John Criswell47fdd832003-07-14 16:52:07 +00006492#
6493# Check to make sure the PIC flag actually works.
6494#
6495if test -n "$lt_prog_compiler_pic"; then
6496 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6497echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6498if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
John Criswell47fdd832003-07-14 16:52:07 +00006501 lt_prog_compiler_pic_works=no
6502 ac_outfile=conftest.$ac_objext
6503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6504 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6505 # Insert the option either (1) after the last *FLAGS variable, or
6506 # (2) before a word containing "conftest.", or (3) at the end.
6507 # Note that $ac_compile itself does not contain backslashes and begins
6508 # with a dollar sign (not a hyphen), so the echo should work correctly.
6509 # The option is referenced via a variable to avoid confusing sed.
6510 lt_compile=`echo "$ac_compile" | $SED \
6511 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6513 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +00006514 (eval echo "\"\$as_me:6514: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006515 (eval "$lt_compile" 2>conftest.err)
6516 ac_status=$?
6517 cat conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +00006518 echo "$as_me:6518: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006519 if (exit $ac_status) && test -s "$ac_outfile"; then
6520 # The compiler can only warn and ignore the option if not recognized
6521 # So say no if there are warnings
6522 if test ! -s conftest.err; then
6523 lt_prog_compiler_pic_works=yes
6524 fi
6525 fi
6526 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006527
John Criswell47fdd832003-07-14 16:52:07 +00006528fi
6529echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6530echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006531
John Criswell47fdd832003-07-14 16:52:07 +00006532if test x"$lt_prog_compiler_pic_works" = xyes; then
6533 case $lt_prog_compiler_pic in
6534 "" | " "*) ;;
6535 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6536 esac
John Criswell7a73b802003-06-30 21:59:07 +00006537else
John Criswell47fdd832003-07-14 16:52:07 +00006538 lt_prog_compiler_pic=
6539 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006540fi
6541
John Criswell7a73b802003-06-30 21:59:07 +00006542fi
John Criswell47fdd832003-07-14 16:52:07 +00006543case "$host_os" in
6544 # For platforms which do not support PIC, -DPIC is meaningless:
6545 *djgpp*)
6546 lt_prog_compiler_pic=
6547 ;;
6548 *)
6549 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6550 ;;
6551esac
John Criswell7a73b802003-06-30 21:59:07 +00006552
John Criswell7a73b802003-06-30 21:59:07 +00006553echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6554echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006555if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
John Criswell47fdd832003-07-14 16:52:07 +00006558 lt_cv_prog_compiler_c_o=no
6559 $rm -r conftest 2>/dev/null
6560 mkdir conftest
6561 cd conftest
6562 mkdir out
6563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006564
John Criswell47fdd832003-07-14 16:52:07 +00006565 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6566 # that will create temporary files in the current directory regardless of
6567 # the output directory. Thus, making CWD read-only will cause this test
6568 # to fail, enabling locking or at least warning the user not to do parallel
6569 # builds.
6570 chmod -w .
6571
6572 lt_compiler_flag="-o out/conftest2.$ac_objext"
6573 # Insert the option either (1) after the last *FLAGS variable, or
6574 # (2) before a word containing "conftest.", or (3) at the end.
6575 # Note that $ac_compile itself does not contain backslashes and begins
6576 # with a dollar sign (not a hyphen), so the echo should work correctly.
6577 lt_compile=`echo "$ac_compile" | $SED \
6578 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6580 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +00006581 (eval echo "\"\$as_me:6581: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006582 (eval "$lt_compile" 2>out/conftest.err)
6583 ac_status=$?
6584 cat out/conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +00006585 echo "$as_me:6585: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6587 then
6588 # The compiler can only warn and ignore the option if not recognized
6589 # So say no if there are warnings
6590 if test ! -s out/conftest.err; then
6591 lt_cv_prog_compiler_c_o=yes
6592 fi
6593 fi
6594 chmod u+w .
6595 $rm conftest* out/*
6596 rmdir out
6597 cd ..
6598 rmdir conftest
6599 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006600
6601fi
John Criswell47fdd832003-07-14 16:52:07 +00006602echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6603echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006604
John Criswell7a73b802003-06-30 21:59:07 +00006605
John Criswell7a73b802003-06-30 21:59:07 +00006606hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006607if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006608 # do not overwrite the value of need_locks provided by the user
6609 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6610echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6611 hard_links=yes
6612 $rm conftest*
6613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6614 touch conftest.a
6615 ln conftest.a conftest.b 2>&5 || hard_links=no
6616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6617 echo "$as_me:$LINENO: result: $hard_links" >&5
6618echo "${ECHO_T}$hard_links" >&6
6619 if test "$hard_links" = no; then
6620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6621echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6622 need_locks=warn
6623 fi
6624else
6625 need_locks=no
6626fi
John Criswell7a73b802003-06-30 21:59:07 +00006627
John Criswell47fdd832003-07-14 16:52:07 +00006628echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6629echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6630
6631 runpath_var=
6632 allow_undefined_flag=
6633 enable_shared_with_static_runtimes=no
6634 archive_cmds=
6635 archive_expsym_cmds=
6636 old_archive_From_new_cmds=
6637 old_archive_from_expsyms_cmds=
6638 export_dynamic_flag_spec=
6639 whole_archive_flag_spec=
6640 thread_safe_flag_spec=
6641 hardcode_libdir_flag_spec=
6642 hardcode_libdir_flag_spec_ld=
6643 hardcode_libdir_separator=
6644 hardcode_direct=no
6645 hardcode_minus_L=no
6646 hardcode_shlibpath_var=unsupported
6647 link_all_deplibs=unknown
6648 hardcode_automatic=no
6649 module_cmds=
6650 module_expsym_cmds=
6651 always_export_symbols=no
6652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6653 # include_expsyms should be a list of space-separated symbols to be *always*
6654 # included in the symbol list
6655 include_expsyms=
6656 # exclude_expsyms can be an extended regexp of symbols to exclude
6657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6659 # as well as any symbol that contains `d'.
6660 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6662 # platforms (ab)use it in PIC code, but their linkers get confused if
6663 # the symbol is explicitly referenced. Since portable code cannot
6664 # rely on this symbol name, it's probably fine to never include it in
6665 # preloaded symbol tables.
6666 extract_expsyms_cmds=
6667
6668 case $host_os in
6669 cygwin* | mingw* | pw32*)
6670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6671 # When not using gcc, we currently assume that we are using
6672 # Microsoft Visual C++.
6673 if test "$GCC" != yes; then
6674 with_gnu_ld=no
6675 fi
6676 ;;
6677 openbsd*)
6678 with_gnu_ld=no
6679 ;;
6680 esac
6681
6682 ld_shlibs=yes
6683 if test "$with_gnu_ld" = yes; then
6684 # If archive_cmds runs LD, not CC, wlarc should be empty
6685 wlarc='${wl}'
6686
6687 # See if GNU ld supports shared libraries.
6688 case $host_os in
6689 aix3* | aix4* | aix5*)
6690 # On AIX/PPC, the GNU linker is very broken
6691 if test "$host_cpu" != ia64; then
6692 ld_shlibs=no
6693 cat <<EOF 1>&2
6694
6695*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6696*** to be unable to reliably create shared libraries on AIX.
6697*** Therefore, libtool is disabling shared libraries support. If you
6698*** really care for shared libraries, you may want to modify your PATH
6699*** so that a non-GNU linker is found, and then restart.
6700
6701EOF
6702 fi
6703 ;;
6704
6705 amigaos*)
6706 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)'
6707 hardcode_libdir_flag_spec='-L$libdir'
6708 hardcode_minus_L=yes
6709
6710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6711 # that the semantics of dynamic libraries on AmigaOS, at least up
6712 # to version 4, is to share data among multiple programs linked
6713 # with the same dynamic library. Since this doesn't match the
6714 # behavior of shared libraries on other platforms, we can't use
6715 # them.
6716 ld_shlibs=no
6717 ;;
6718
6719 beos*)
6720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6721 allow_undefined_flag=unsupported
6722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6723 # support --undefined. This deserves some investigation. FIXME
6724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6725 else
6726 ld_shlibs=no
6727 fi
6728 ;;
6729
6730 cygwin* | mingw* | pw32*)
6731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6732 # as there is no search path for DLLs.
6733 hardcode_libdir_flag_spec='-L$libdir'
6734 allow_undefined_flag=unsupported
6735 always_export_symbols=no
6736 enable_shared_with_static_runtimes=yes
6737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6738
6739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6741 # If the export-symbols file already is a .def file (1st line
6742 # is EXPORTS), use it as is; otherwise, prepend...
6743 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6744 cp $export_symbols $output_objdir/$soname.def;
6745 else
6746 echo EXPORTS > $output_objdir/$soname.def;
6747 cat $export_symbols >> $output_objdir/$soname.def;
6748 fi~
6749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6750 else
6751 ld_shlibs=no
6752 fi
6753 ;;
6754
6755 netbsd*)
6756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6758 wlarc=
6759 else
6760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6762 fi
6763 ;;
6764
6765 solaris* | sysv5*)
6766 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6767 ld_shlibs=no
6768 cat <<EOF 1>&2
6769
6770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6771*** create shared libraries on Solaris systems. Therefore, libtool
6772*** is disabling shared libraries support. We urge you to upgrade GNU
6773*** binutils to release 2.9.1 or newer. Another option is to modify
6774*** your PATH or compiler configuration so that the native linker is
6775*** used, and then restart.
6776
6777EOF
6778 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781 else
6782 ld_shlibs=no
6783 fi
6784 ;;
6785
6786 sunos4*)
6787 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788 wlarc=
6789 hardcode_direct=yes
6790 hardcode_shlibpath_var=no
6791 ;;
6792
6793 *)
6794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6797 else
6798 ld_shlibs=no
6799 fi
6800 ;;
6801 esac
6802
6803 if test "$ld_shlibs" = yes; then
6804 runpath_var=LD_RUN_PATH
6805 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6806 export_dynamic_flag_spec='${wl}--export-dynamic'
6807 # ancient GNU ld didn't support --whole-archive et. al.
6808 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6809 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6810 else
6811 whole_archive_flag_spec=
6812 fi
6813 fi
6814 else
6815 # PORTME fill in a description of your system's linker (not GNU ld)
6816 case $host_os in
6817 aix3*)
6818 allow_undefined_flag=unsupported
6819 always_export_symbols=yes
6820 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'
6821 # Note: this linker hardcodes the directories in LIBPATH if there
6822 # are no directories specified by -L.
6823 hardcode_minus_L=yes
6824 if test "$GCC" = yes && test -z "$link_static_flag"; then
6825 # Neither direct hardcoding nor static linking is supported with a
6826 # broken collect2.
6827 hardcode_direct=unsupported
6828 fi
6829 ;;
6830
6831 aix4* | aix5*)
6832 if test "$host_cpu" = ia64; then
6833 # On IA64, the linker does run time linking by default, so we don't
6834 # have to do anything special.
6835 aix_use_runtimelinking=no
6836 exp_sym_flag='-Bexport'
6837 no_entry_flag=""
6838 else
6839 # If we're using GNU nm, then we don't want the "-C" option.
6840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6841 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6842 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'
6843 else
6844 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'
6845 fi
6846 aix_use_runtimelinking=no
6847
6848 # Test if we are trying to use run time linking or normal
6849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6850 # need to do runtime linking.
6851 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6852 for ld_flag in $LDFLAGS; do
6853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6854 aix_use_runtimelinking=yes
6855 break
6856 fi
6857 done
6858 esac
6859
6860 exp_sym_flag='-bexport'
6861 no_entry_flag='-bnoentry'
6862 fi
6863
6864 # When large executables or shared objects are built, AIX ld can
6865 # have problems creating the table of contents. If linking a library
6866 # or program results in "error TOC overflow" add -mminimal-toc to
6867 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6868 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6869
6870 archive_cmds=''
6871 hardcode_direct=yes
6872 hardcode_libdir_separator=':'
6873 link_all_deplibs=yes
6874
6875 if test "$GCC" = yes; then
6876 case $host_os in aix4.012|aix4.012.*)
6877 # We only want to do this on AIX 4.2 and lower, the check
6878 # below for broken collect2 doesn't work under 4.3+
6879 collect2name=`${CC} -print-prog-name=collect2`
6880 if test -f "$collect2name" && \
6881 strings "$collect2name" | grep resolve_lib_name >/dev/null
6882 then
6883 # We have reworked collect2
6884 hardcode_direct=yes
6885 else
6886 # We have old collect2
6887 hardcode_direct=unsupported
6888 # It fails to find uninstalled libraries when the uninstalled
6889 # path is not listed in the libpath. Setting hardcode_minus_L
6890 # to unsupported forces relinking
6891 hardcode_minus_L=yes
6892 hardcode_libdir_flag_spec='-L$libdir'
6893 hardcode_libdir_separator=
6894 fi
6895 esac
6896 shared_flag='-shared'
6897 else
6898 # not using gcc
6899 if test "$host_cpu" = ia64; then
6900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6901 # chokes on -Wl,-G. The following line is correct:
6902 shared_flag='-G'
6903 else
6904 if test "$aix_use_runtimelinking" = yes; then
6905 shared_flag='${wl}-G'
6906 else
6907 shared_flag='${wl}-bM:SRE'
6908 fi
6909 fi
6910 fi
6911
6912 # It seems that -bexpall does not export symbols beginning with
6913 # underscore (_), so it is better to generate a list of symbols to export.
6914 always_export_symbols=yes
6915 if test "$aix_use_runtimelinking" = yes; then
6916 # Warning - without using the other runtime loading flags (-brtl),
6917 # -berok will link without error, but may produce a broken library.
6918 allow_undefined_flag='-berok'
6919 # Determine the default libpath from the value encoded in an empty executable.
6920 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006921#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006927
John Criswell7a73b802003-06-30 21:59:07 +00006928int
6929main ()
6930{
John Criswell47fdd832003-07-14 16:52:07 +00006931
John Criswell7a73b802003-06-30 21:59:07 +00006932 ;
6933 return 0;
6934}
6935_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006936rm -f conftest.$ac_objext conftest$ac_exeext
6937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006942 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006948
John Criswell47fdd832003-07-14 16:52:07 +00006949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6950}'`
6951# Check for a 64-bit object if we didn't find anything.
6952if 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; }
6953}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006954else
6955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006956sed 's/^/| /' conftest.$ac_ext >&5
6957
John Criswell7a73b802003-06-30 21:59:07 +00006958fi
John Criswell47fdd832003-07-14 16:52:07 +00006959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006961
John Criswell47fdd832003-07-14 16:52:07 +00006962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6963 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"
6964 else
6965 if test "$host_cpu" = ia64; then
6966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6967 allow_undefined_flag="-z nodefs"
6968 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"
6969 else
6970 # Determine the default libpath from the value encoded in an empty executable.
6971 cat >conftest.$ac_ext <<_ACEOF
6972#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006978
John Criswell47fdd832003-07-14 16:52:07 +00006979int
6980main ()
6981{
John Criswell7a73b802003-06-30 21:59:07 +00006982
John Criswell47fdd832003-07-14 16:52:07 +00006983 ;
6984 return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext conftest$ac_exeext
6988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -s conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006999
John Criswell47fdd832003-07-14 16:52:07 +00007000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7001}'`
7002# Check for a 64-bit object if we didn't find anything.
7003if 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; }
7004}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007005else
John Criswell47fdd832003-07-14 16:52:07 +00007006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007007sed 's/^/| /' conftest.$ac_ext >&5
7008
John Criswell47fdd832003-07-14 16:52:07 +00007009fi
7010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007012
John Criswell47fdd832003-07-14 16:52:07 +00007013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7014 # Warning - without using the other run time loading flags,
7015 # -berok will link without error, but may produce a broken library.
7016 no_undefined_flag=' ${wl}-bernotok'
7017 allow_undefined_flag=' ${wl}-berok'
7018 # -bexpall does not export symbols beginning with underscore (_)
7019 always_export_symbols=yes
7020 # Exported symbols can be pulled into shared objects from archives
7021 whole_archive_flag_spec=' '
7022 archive_cmds_need_lc=yes
7023 # This is similar to how AIX traditionally builds it's shared libraries.
7024 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 +00007025 fi
7026 fi
John Criswell7a73b802003-06-30 21:59:07 +00007027 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007028
7029 amigaos*)
7030 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)'
7031 hardcode_libdir_flag_spec='-L$libdir'
7032 hardcode_minus_L=yes
7033 # see comment about different semantics on the GNU ld section
7034 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007035 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007036
John Criswell47fdd832003-07-14 16:52:07 +00007037 bsdi4*)
7038 export_dynamic_flag_spec=-rdynamic
7039 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007040
John Criswell47fdd832003-07-14 16:52:07 +00007041 cygwin* | mingw* | pw32*)
7042 # When not using gcc, we currently assume that we are using
7043 # Microsoft Visual C++.
7044 # hardcode_libdir_flag_spec is actually meaningless, as there is
7045 # no search path for DLLs.
7046 hardcode_libdir_flag_spec=' '
7047 allow_undefined_flag=unsupported
7048 # Tell ltmain to make .lib files, not .a files.
7049 libext=lib
7050 # Tell ltmain to make .dll files, not .so files.
7051 shrext=".dll"
7052 # FIXME: Setting linknames here is a bad hack.
7053 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7054 # The linker will automatically build a .lib file if we build a DLL.
7055 old_archive_From_new_cmds='true'
7056 # FIXME: Should let the user specify the lib program.
7057 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7058 fix_srcfile_path='`cygpath -w "$srcfile"`'
7059 enable_shared_with_static_runtimes=yes
7060 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007061
John Criswell47fdd832003-07-14 16:52:07 +00007062 darwin* | rhapsody*)
7063 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7064 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007065 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007066 rhapsody* | darwin1.[012])
7067 allow_undefined_flag='-undefined suppress'
7068 ;;
7069 *) # Darwin 1.3 on
7070 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007071 ;;
7072 esac
John Criswell47fdd832003-07-14 16:52:07 +00007073 # FIXME: Relying on posixy $() will cause problems for
7074 # cross-compilation, but unfortunately the echo tests do not
7075 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7076 # `"' quotes if we put them in here... so don't!
7077 lt_int_apple_cc_single_mod=no
7078 output_verbose_link_cmd='echo'
7079 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7080 lt_int_apple_cc_single_mod=yes
7081 fi
7082 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7083 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7084 else
7085 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'
7086 fi
7087 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7088 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7089 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7090 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}'
7091 else
7092 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}'
7093 fi
7094 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}'
7095 hardcode_direct=no
7096 hardcode_automatic=yes
7097 hardcode_shlibpath_var=unsupported
7098 whole_archive_flag_spec='-all_load $convenience'
7099 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007100 fi
John Criswell47fdd832003-07-14 16:52:07 +00007101 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007102
John Criswell47fdd832003-07-14 16:52:07 +00007103 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007105 hardcode_libdir_flag_spec='-L$libdir'
7106 hardcode_shlibpath_var=no
7107 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007108
John Criswell47fdd832003-07-14 16:52:07 +00007109 freebsd1*)
7110 ld_shlibs=no
7111 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007112
John Criswell47fdd832003-07-14 16:52:07 +00007113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7114 # support. Future versions do this automatically, but an explicit c++rt0.o
7115 # does not break anything, and helps significantly (at the cost of a little
7116 # extra space).
7117 freebsd2.2*)
7118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7119 hardcode_libdir_flag_spec='-R$libdir'
7120 hardcode_direct=yes
7121 hardcode_shlibpath_var=no
7122 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007123
John Criswell47fdd832003-07-14 16:52:07 +00007124 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7125 freebsd2*)
7126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7127 hardcode_direct=yes
7128 hardcode_minus_L=yes
7129 hardcode_shlibpath_var=no
7130 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007131
John Criswell47fdd832003-07-14 16:52:07 +00007132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7133 freebsd*)
7134 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7135 hardcode_libdir_flag_spec='-R$libdir'
7136 hardcode_direct=yes
7137 hardcode_shlibpath_var=no
7138 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007139
John Criswell47fdd832003-07-14 16:52:07 +00007140 hpux9*)
7141 if test "$GCC" = yes; then
7142 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'
7143 else
7144 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'
7145 fi
7146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7147 hardcode_libdir_separator=:
7148 hardcode_direct=yes
7149
7150 # hardcode_minus_L: Not really in the search PATH,
7151 # but as the default location of the library.
7152 hardcode_minus_L=yes
7153 export_dynamic_flag_spec='${wl}-E'
7154 ;;
7155
7156 hpux10* | hpux11*)
7157 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7158 case "$host_cpu" in
7159 hppa*64*|ia64*)
7160 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7161 ;;
7162 *)
7163 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7164 ;;
7165 esac
7166 else
7167 case "$host_cpu" in
7168 hppa*64*|ia64*)
7169 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7170 ;;
7171 *)
7172 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7173 ;;
7174 esac
7175 fi
7176 if test "$with_gnu_ld" = no; then
7177 case "$host_cpu" in
7178 hppa*64*)
7179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7180 hardcode_libdir_flag_spec_ld='+b $libdir'
7181 hardcode_libdir_separator=:
7182 hardcode_direct=no
7183 hardcode_shlibpath_var=no
7184 ;;
7185 ia64*)
7186 hardcode_libdir_flag_spec='-L$libdir'
7187 hardcode_direct=no
7188 hardcode_shlibpath_var=no
7189
7190 # hardcode_minus_L: Not really in the search PATH,
7191 # but as the default location of the library.
7192 hardcode_minus_L=yes
7193 ;;
7194 *)
7195 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7196 hardcode_libdir_separator=:
7197 hardcode_direct=yes
7198 export_dynamic_flag_spec='${wl}-E'
7199
7200 # hardcode_minus_L: Not really in the search PATH,
7201 # but as the default location of the library.
7202 hardcode_minus_L=yes
7203 ;;
7204 esac
7205 fi
7206 ;;
7207
7208 irix5* | irix6* | nonstopux*)
7209 if test "$GCC" = yes; then
7210 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'
7211 else
7212 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'
7213 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7214 fi
7215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7216 hardcode_libdir_separator=:
7217 link_all_deplibs=yes
7218 ;;
7219
7220 netbsd*)
7221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7223 else
7224 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7225 fi
7226 hardcode_libdir_flag_spec='-R$libdir'
7227 hardcode_direct=yes
7228 hardcode_shlibpath_var=no
7229 ;;
7230
7231 newsos6)
7232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7233 hardcode_direct=yes
7234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7235 hardcode_libdir_separator=:
7236 hardcode_shlibpath_var=no
7237 ;;
7238
7239 openbsd*)
7240 hardcode_direct=yes
7241 hardcode_shlibpath_var=no
7242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7243 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7245 export_dynamic_flag_spec='${wl}-E'
7246 else
7247 case $host_os in
7248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7250 hardcode_libdir_flag_spec='-R$libdir'
7251 ;;
7252 *)
7253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7255 ;;
7256 esac
7257 fi
7258 ;;
7259
7260 os2*)
7261 hardcode_libdir_flag_spec='-L$libdir'
7262 hardcode_minus_L=yes
7263 allow_undefined_flag=unsupported
7264 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'
7265 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7266 ;;
7267
7268 osf3*)
7269 if test "$GCC" = yes; then
7270 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7271 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'
7272 else
7273 allow_undefined_flag=' -expect_unresolved \*'
7274 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'
7275 fi
7276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 ;;
7279
7280 osf4* | osf5*) # as osf3* with the addition of -msym flag
7281 if test "$GCC" = yes; then
7282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7283 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'
7284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7285 else
7286 allow_undefined_flag=' -expect_unresolved \*'
7287 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'
7288 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7289 $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'
7290
7291 # Both c and cxx compiler support -rpath directly
7292 hardcode_libdir_flag_spec='-rpath $libdir'
7293 fi
7294 hardcode_libdir_separator=:
7295 ;;
7296
7297 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7299 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007300 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007301 runpath_var=LD_RUN_PATH
7302 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007303 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007304
John Criswell47fdd832003-07-14 16:52:07 +00007305 solaris*)
7306 no_undefined_flag=' -z text'
7307 if test "$GCC" = yes; then
7308 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7309 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7310 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7311 else
7312 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7313 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7315 fi
7316 hardcode_libdir_flag_spec='-R$libdir'
7317 hardcode_shlibpath_var=no
7318 case $host_os in
7319 solaris2.[0-5] | solaris2.[0-5].*) ;;
7320 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7321 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7322 esac
7323 link_all_deplibs=yes
7324 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007325
John Criswell47fdd832003-07-14 16:52:07 +00007326 sunos4*)
7327 if test "x$host_vendor" = xsequent; then
7328 # Use $CC to link under sequent, because it throws in some extra .o
7329 # files that make .init and .fini sections work.
7330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7331 else
7332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7333 fi
7334 hardcode_libdir_flag_spec='-L$libdir'
7335 hardcode_direct=yes
7336 hardcode_minus_L=yes
7337 hardcode_shlibpath_var=no
7338 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007339
John Criswell47fdd832003-07-14 16:52:07 +00007340 sysv4)
7341 case $host_vendor in
7342 sni)
7343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7344 hardcode_direct=yes # is this really true???
7345 ;;
7346 siemens)
7347 ## LD is ld it makes a PLAMLIB
7348 ## CC just makes a GrossModule.
7349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7350 reload_cmds='$CC -r -o $output$reload_objs'
7351 hardcode_direct=no
7352 ;;
7353 motorola)
7354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7356 ;;
7357 esac
7358 runpath_var='LD_RUN_PATH'
7359 hardcode_shlibpath_var=no
7360 ;;
7361
7362 sysv4.3*)
7363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364 hardcode_shlibpath_var=no
7365 export_dynamic_flag_spec='-Bexport'
7366 ;;
7367
7368 sysv4*MP*)
7369 if test -d /usr/nec; then
7370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371 hardcode_shlibpath_var=no
7372 runpath_var=LD_RUN_PATH
7373 hardcode_runpath_var=yes
7374 ld_shlibs=yes
7375 fi
7376 ;;
7377
7378 sysv4.2uw2*)
7379 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7380 hardcode_direct=yes
7381 hardcode_minus_L=no
7382 hardcode_shlibpath_var=no
7383 hardcode_runpath_var=yes
7384 runpath_var=LD_RUN_PATH
7385 ;;
7386
7387 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7388 no_undefined_flag='${wl}-z ${wl}text'
7389 if test "$GCC" = yes; then
7390 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7391 else
7392 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7393 fi
7394 runpath_var='LD_RUN_PATH'
7395 hardcode_shlibpath_var=no
7396 ;;
7397
7398 sysv5*)
7399 no_undefined_flag=' -z text'
7400 # $CC -shared without GNU ld will not create a library from C++
7401 # object files and a static libstdc++, better avoid it by now
7402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7405 hardcode_libdir_flag_spec=
7406 hardcode_shlibpath_var=no
7407 runpath_var='LD_RUN_PATH'
7408 ;;
7409
7410 uts4*)
7411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412 hardcode_libdir_flag_spec='-L$libdir'
7413 hardcode_shlibpath_var=no
7414 ;;
7415
7416 *)
7417 ld_shlibs=no
7418 ;;
7419 esac
7420 fi
7421
John Criswell7a73b802003-06-30 21:59:07 +00007422echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7423echo "${ECHO_T}$ld_shlibs" >&6
7424test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007425
John Criswell47fdd832003-07-14 16:52:07 +00007426variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7427if test "$GCC" = yes; then
7428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7429fi
7430
7431#
7432# Do we need to explicitly link libc?
7433#
7434case "x$archive_cmds_need_lc" in
7435x|xyes)
7436 # Assume -lc should be added
7437 archive_cmds_need_lc=yes
7438
7439 if test "$enable_shared" = yes && test "$GCC" = yes; then
7440 case $archive_cmds in
7441 *'~'*)
7442 # FIXME: we may have to deal with multi-command sequences.
7443 ;;
7444 '$CC '*)
7445 # Test whether the compiler implicitly links with -lc since on some
7446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7447 # to ld, don't add -lc before -lgcc.
7448 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7449echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7450 $rm conftest*
7451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7452
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } 2>conftest.err; then
7458 soname=conftest
7459 lib=conftest
7460 libobjs=conftest.$ac_objext
7461 deplibs=
7462 wl=$lt_prog_compiler_wl
7463 compiler_flags=-v
7464 linker_flags=-v
7465 verstring=
7466 output_objdir=.
7467 libname=conftest
7468 lt_save_allow_undefined_flag=$allow_undefined_flag
7469 allow_undefined_flag=
7470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7471 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }
7475 then
7476 archive_cmds_need_lc=no
7477 else
7478 archive_cmds_need_lc=yes
7479 fi
7480 allow_undefined_flag=$lt_save_allow_undefined_flag
7481 else
7482 cat conftest.err 1>&5
7483 fi
7484 $rm conftest*
7485 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7486echo "${ECHO_T}$archive_cmds_need_lc" >&6
7487 ;;
7488 esac
7489 fi
7490 ;;
7491esac
7492
John Criswell7a73b802003-06-30 21:59:07 +00007493echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7494echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7495hardcode_action=
7496if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007497 test -n "$runpath_var " || \
7498 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007499
7500 # We can hardcode non-existant directories.
7501 if test "$hardcode_direct" != no &&
7502 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7503 # have to relink, otherwise we might link with an installed library
7504 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007505 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007506 test "$hardcode_minus_L" != no; then
7507 # Linking always hardcodes the temporary library directory.
7508 hardcode_action=relink
7509 else
7510 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7511 hardcode_action=immediate
7512 fi
7513else
7514 # We cannot hardcode anything, or else we can only hardcode existing
7515 # directories.
7516 hardcode_action=unsupported
7517fi
7518echo "$as_me:$LINENO: result: $hardcode_action" >&5
7519echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007520
John Criswell47fdd832003-07-14 16:52:07 +00007521if test "$hardcode_action" = relink; then
7522 # Fast installation is not supported
7523 enable_fast_install=no
7524elif test "$shlibpath_overrides_runpath" = yes ||
7525 test "$enable_shared" = no; then
7526 # Fast installation is not necessary
7527 enable_fast_install=needless
7528fi
7529
John Criswell7a73b802003-06-30 21:59:07 +00007530striplib=
7531old_striplib=
7532echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7533echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7534if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7535 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7536 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7537 echo "$as_me:$LINENO: result: yes" >&5
7538echo "${ECHO_T}yes" >&6
7539else
John Criswell47fdd832003-07-14 16:52:07 +00007540# FIXME - insert some real tests, host_os isn't really good enough
7541 case $host_os in
7542 darwin*)
7543 if test -n "$STRIP" ; then
7544 striplib="$STRIP -x"
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
7547 else
John Criswell7a73b802003-06-30 21:59:07 +00007548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550fi
John Criswell47fdd832003-07-14 16:52:07 +00007551 ;;
7552 *)
7553 echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555 ;;
7556 esac
7557fi
John Criswell7a73b802003-06-30 21:59:07 +00007558
John Criswell7a73b802003-06-30 21:59:07 +00007559echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7560echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7561library_names_spec=
7562libname_spec='lib$name'
7563soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007564shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007565postinstall_cmds=
7566postuninstall_cmds=
7567finish_cmds=
7568finish_eval=
7569shlibpath_var=
7570shlibpath_overrides_runpath=unknown
7571version_type=none
7572dynamic_linker="$host_os ld.so"
7573sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007574if test "$GCC" = yes; then
7575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7576 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7577 # if the path contains ";" then we assume it to be the separator
7578 # otherwise default to the standard path separator (i.e. ":") - it is
7579 # assumed that no part of a normal pathname contains ";" but that should
7580 # okay in the real world where ";" in dirpaths is itself problematic.
7581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7582 else
7583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7584 fi
7585else
7586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7587fi
7588need_lib_prefix=unknown
7589hardcode_into_libs=no
7590
7591# when you set need_version to no, make sure it does not cause -set_version
7592# flags to be left without arguments
7593need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007594
7595case $host_os in
7596aix3*)
7597 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007599 shlibpath_var=LIBPATH
7600
John Criswell47fdd832003-07-14 16:52:07 +00007601 # AIX 3 has no versioning support, so we append a major version to the name.
7602 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007603 ;;
7604
7605aix4* | aix5*)
7606 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007607 need_lib_prefix=no
7608 need_version=no
7609 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007610 if test "$host_cpu" = ia64; then
7611 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007613 shlibpath_var=LD_LIBRARY_PATH
7614 else
7615 # With GCC up to 2.95.x, collect2 would create an import file
7616 # for dependence libraries. The import file would start with
7617 # the line `#! .'. This would cause the generated library to
7618 # depend on `.', always an invalid library. This was fixed in
7619 # development snapshots of GCC prior to 3.0.
7620 case $host_os in
7621 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7623 echo ' yes '
7624 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7625 :
7626 else
7627 can_build_shared=no
7628 fi
7629 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007630 esac
John Criswell47fdd832003-07-14 16:52:07 +00007631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7632 # soname into executable. Probably we can add versioning support to
7633 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007634 if test "$aix_use_runtimelinking" = yes; then
7635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7636 # instead of lib<name>.a to let people know that these are not
7637 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007639 else
7640 # We preserve .a as extension for shared libraries through AIX4.2
7641 # and later when we are not doing run time linking.
7642 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007643 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007644 fi
7645 shlibpath_var=LIBPATH
7646 fi
7647 ;;
7648
7649amigaos*)
7650 library_names_spec='$libname.ixlibrary $libname.a'
7651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7652 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'
7653 ;;
7654
7655beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007656 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007657 dynamic_linker="$host_os ld.so"
7658 shlibpath_var=LIBRARY_PATH
7659 ;;
7660
7661bsdi4*)
7662 version_type=linux
7663 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7667 shlibpath_var=LD_LIBRARY_PATH
7668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007670 # the default ld.so.conf also contains /usr/contrib/lib and
7671 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7672 # libtool to hard-code these into programs
7673 ;;
7674
7675cygwin* | mingw* | pw32*)
7676 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007677 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007678 need_version=no
7679 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007680
John Criswell7a73b802003-06-30 21:59:07 +00007681 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007682 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007683 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7685 postinstall_cmds='base_file=`basename \${file}`~
7686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007687 dldir=$destdir/`dirname \$dlpath`~
7688 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007689 $install_prog $dir/$dlname \$dldir/$dlname'
7690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007691 dlpath=$dir/\$dldll~
7692 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007693 shlibpath_overrides_runpath=yes
7694
7695 case $host_os in
7696 cygwin*)
7697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7699 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7700 ;;
7701 mingw*)
7702 # MinGW DLLs use traditional 'lib' prefix
7703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7706 # It is most probably a Windows format PATH printed by
7707 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7708 # path with ; separators, and with drive letters. We can handle the
7709 # drive letters (cygwin fileutils understands them), so leave them,
7710 # especially as we might pass files found there to a mingw objdump,
7711 # which wouldn't understand a cygwinified path. Ahh.
7712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7713 else
7714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7715 fi
7716 ;;
7717 pw32*)
7718 # pw32 DLLs use 'pw' prefix rather than 'lib'
7719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7720 ;;
7721 esac
John Criswell7a73b802003-06-30 21:59:07 +00007722 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007723
John Criswell7a73b802003-06-30 21:59:07 +00007724 *)
John Criswell47fdd832003-07-14 16:52:07 +00007725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007726 ;;
7727 esac
7728 dynamic_linker='Win32 ld.exe'
7729 # FIXME: first we should search . and the directory the executable is in
7730 shlibpath_var=PATH
7731 ;;
7732
7733darwin* | rhapsody*)
7734 dynamic_linker="$host_os dyld"
7735 version_type=darwin
7736 need_lib_prefix=no
7737 need_version=no
7738 # FIXME: Relying on posixy $() will cause problems for
7739 # cross-compilation, but unfortunately the echo tests do not
7740 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7742 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007743 shlibpath_overrides_runpath=yes
7744 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007745 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7747 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7748 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"`
7749 fi
7750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7751 ;;
7752
7753dgux*)
7754 version_type=linux
7755 need_lib_prefix=no
7756 need_version=no
7757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7758 soname_spec='${libname}${release}${shared_ext}$major'
7759 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007760 ;;
7761
7762freebsd1*)
7763 dynamic_linker=no
7764 ;;
7765
7766freebsd*)
7767 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7768 version_type=freebsd-$objformat
7769 case $version_type in
7770 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007772 need_version=no
7773 need_lib_prefix=no
7774 ;;
7775 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007777 need_version=yes
7778 ;;
7779 esac
7780 shlibpath_var=LD_LIBRARY_PATH
7781 case $host_os in
7782 freebsd2*)
7783 shlibpath_overrides_runpath=yes
7784 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007785 freebsd3.01* | freebsdelf3.01*)
7786 shlibpath_overrides_runpath=yes
7787 hardcode_into_libs=yes
7788 ;;
7789 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007790 shlibpath_overrides_runpath=no
7791 hardcode_into_libs=yes
7792 ;;
7793 esac
7794 ;;
7795
7796gnu*)
7797 version_type=linux
7798 need_lib_prefix=no
7799 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7801 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007802 shlibpath_var=LD_LIBRARY_PATH
7803 hardcode_into_libs=yes
7804 ;;
7805
7806hpux9* | hpux10* | hpux11*)
7807 # Give a soname corresponding to the major version so that dld.sl refuses to
7808 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007809 version_type=sunos
7810 need_lib_prefix=no
7811 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007812 case "$host_cpu" in
7813 ia64*)
7814 shrext='.so'
7815 hardcode_into_libs=yes
7816 dynamic_linker="$host_os dld.so"
7817 shlibpath_var=LD_LIBRARY_PATH
7818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820 soname_spec='${libname}${release}${shared_ext}$major'
7821 if test "X$HPUX_IA64_MODE" = X32; then
7822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7823 else
7824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7825 fi
7826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7827 ;;
7828 hppa*64*)
7829 shrext='.sl'
7830 hardcode_into_libs=yes
7831 dynamic_linker="$host_os dld.sl"
7832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7838 ;;
7839 *)
7840 shrext='.sl'
7841 dynamic_linker="$host_os dld.sl"
7842 shlibpath_var=SHLIB_PATH
7843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845 soname_spec='${libname}${release}${shared_ext}$major'
7846 ;;
7847 esac
John Criswell7a73b802003-06-30 21:59:07 +00007848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7849 postinstall_cmds='chmod 555 $lib'
7850 ;;
7851
John Criswell47fdd832003-07-14 16:52:07 +00007852irix5* | irix6* | nonstopux*)
7853 case $host_os in
7854 nonstopux*) version_type=nonstopux ;;
7855 *)
7856 if test "$lt_cv_prog_gnu_ld" = yes; then
7857 version_type=linux
7858 else
7859 version_type=irix
7860 fi ;;
7861 esac
John Criswell7a73b802003-06-30 21:59:07 +00007862 need_lib_prefix=no
7863 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007864 soname_spec='${libname}${release}${shared_ext}$major'
7865 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 +00007866 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007867 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007868 libsuff= shlibsuff=
7869 ;;
7870 *)
7871 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7873 libsuff= shlibsuff= libmagic=32-bit;;
7874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7875 libsuff=32 shlibsuff=N32 libmagic=N32;;
7876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007878 *) libsuff= shlibsuff= libmagic=never-match;;
7879 esac
7880 ;;
7881 esac
7882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7883 shlibpath_overrides_runpath=no
7884 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7885 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007886 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007887 ;;
7888
7889# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007890linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007891 dynamic_linker=no
7892 ;;
7893
7894# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007895linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007896 version_type=linux
7897 need_lib_prefix=no
7898 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7902 shlibpath_var=LD_LIBRARY_PATH
7903 shlibpath_overrides_runpath=no
7904 # This implies no fast_install, which is unacceptable.
7905 # Some rework will be needed to allow for fast_install
7906 # before this can be enabled.
7907 hardcode_into_libs=yes
7908
7909 # We used to test for /lib/ld.so.1 and disable shared libraries on
7910 # powerpc, because MkLinux only supported shared libraries with the
7911 # GNU dynamic linker. Since this was broken with cross compilers,
7912 # most powerpc-linux boxes support dynamic linking these days and
7913 # people can always --disable-shared, the test was removed, and we
7914 # assume the GNU/Linux dynamic linker is in use.
7915 dynamic_linker='GNU/Linux ld.so'
7916 ;;
7917
7918netbsd*)
7919 version_type=sunos
7920 need_lib_prefix=no
7921 need_version=no
7922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7925 dynamic_linker='NetBSD (a.out) ld.so'
7926 else
John Criswell47fdd832003-07-14 16:52:07 +00007927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7928 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007929 dynamic_linker='NetBSD ld.elf_so'
7930 fi
7931 shlibpath_var=LD_LIBRARY_PATH
7932 shlibpath_overrides_runpath=yes
7933 hardcode_into_libs=yes
7934 ;;
7935
7936newsos6)
7937 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939 shlibpath_var=LD_LIBRARY_PATH
7940 shlibpath_overrides_runpath=yes
7941 ;;
7942
7943nto-qnx)
7944 version_type=linux
7945 need_lib_prefix=no
7946 need_version=no
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007949 shlibpath_var=LD_LIBRARY_PATH
7950 shlibpath_overrides_runpath=yes
7951 ;;
7952
7953openbsd*)
7954 version_type=sunos
7955 need_lib_prefix=no
7956 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7959 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007960 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 +00007961 case $host_os in
7962 openbsd2.[89] | openbsd2.[89].*)
7963 shlibpath_overrides_runpath=no
7964 ;;
7965 *)
7966 shlibpath_overrides_runpath=yes
7967 ;;
7968 esac
John Criswell7a73b802003-06-30 21:59:07 +00007969 else
7970 shlibpath_overrides_runpath=yes
7971 fi
John Criswell7a73b802003-06-30 21:59:07 +00007972 ;;
7973
7974os2*)
7975 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007976 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007977 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007978 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007979 dynamic_linker='OS/2 ld.exe'
7980 shlibpath_var=LIBPATH
7981 ;;
7982
7983osf3* | osf4* | osf5*)
7984 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007985 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007986 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007987 soname_spec='${libname}${release}${shared_ext}$major'
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007989 shlibpath_var=LD_LIBRARY_PATH
7990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7992 ;;
7993
7994sco3.2v5*)
7995 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007996 soname_spec='${libname}${release}${shared_ext}$major'
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007998 shlibpath_var=LD_LIBRARY_PATH
7999 ;;
8000
8001solaris*)
8002 version_type=linux
8003 need_lib_prefix=no
8004 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8006 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008007 shlibpath_var=LD_LIBRARY_PATH
8008 shlibpath_overrides_runpath=yes
8009 hardcode_into_libs=yes
8010 # ldd complains unless libraries are executable
8011 postinstall_cmds='chmod +x $lib'
8012 ;;
8013
8014sunos4*)
8015 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8018 shlibpath_var=LD_LIBRARY_PATH
8019 shlibpath_overrides_runpath=yes
8020 if test "$with_gnu_ld" = yes; then
8021 need_lib_prefix=no
8022 fi
8023 need_version=yes
8024 ;;
8025
8026sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8027 version_type=linux
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 case $host_vendor in
8032 sni)
8033 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008034 need_lib_prefix=no
8035 export_dynamic_flag_spec='${wl}-Blargedynsym'
8036 runpath_var=LD_RUN_PATH
8037 ;;
8038 siemens)
8039 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008040 ;;
8041 motorola)
8042 need_lib_prefix=no
8043 need_version=no
8044 shlibpath_overrides_runpath=no
8045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8046 ;;
8047 esac
8048 ;;
8049
John Criswell7a73b802003-06-30 21:59:07 +00008050sysv4*MP*)
8051 if test -d /usr/nec ;then
8052 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8054 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008055 shlibpath_var=LD_LIBRARY_PATH
8056 fi
8057 ;;
8058
John Criswell47fdd832003-07-14 16:52:07 +00008059uts4*)
8060 version_type=linux
8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062 soname_spec='${libname}${release}${shared_ext}$major'
8063 shlibpath_var=LD_LIBRARY_PATH
8064 ;;
8065
John Criswell7a73b802003-06-30 21:59:07 +00008066*)
8067 dynamic_linker=no
8068 ;;
8069esac
8070echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8071echo "${ECHO_T}$dynamic_linker" >&6
8072test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008073
8074if test "x$enable_dlopen" != xyes; then
8075 enable_dlopen=unknown
8076 enable_dlopen_self=unknown
8077 enable_dlopen_self_static=unknown
8078else
8079 lt_cv_dlopen=no
8080 lt_cv_dlopen_libs=
8081
8082 case $host_os in
8083 beos*)
8084 lt_cv_dlopen="load_add_on"
8085 lt_cv_dlopen_libs=
8086 lt_cv_dlopen_self=yes
8087 ;;
8088
John Criswell47fdd832003-07-14 16:52:07 +00008089 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008090 lt_cv_dlopen="LoadLibrary"
8091 lt_cv_dlopen_libs=
8092 ;;
8093
John Criswell47fdd832003-07-14 16:52:07 +00008094 cygwin*)
8095 lt_cv_dlopen="dlopen"
8096 lt_cv_dlopen_libs=
8097 ;;
8098
8099 darwin*)
8100 # if libdl is installed we need to link against it
8101 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8102echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8103if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 ac_check_lib_save_LIBS=$LIBS
8107LIBS="-ldl $LIBS"
8108cat >conftest.$ac_ext <<_ACEOF
8109#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008110/* confdefs.h. */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008115
8116/* Override any gcc2 internal prototype to avoid an error. */
8117#ifdef __cplusplus
8118extern "C"
8119#endif
8120/* We use char because int might match the return type of a gcc2
8121 builtin and then its argument prototype would still apply. */
8122char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008123int
8124main ()
8125{
8126dlopen ();
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131rm -f conftest.$ac_objext conftest$ac_exeext
8132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -s conftest$ac_exeext'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; }; then
8143 ac_cv_lib_dl_dlopen=yes
8144else
8145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008146sed 's/^/| /' conftest.$ac_ext >&5
8147
John Criswell47fdd832003-07-14 16:52:07 +00008148ac_cv_lib_dl_dlopen=no
8149fi
8150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8151LIBS=$ac_check_lib_save_LIBS
8152fi
8153echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8154echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8155if test $ac_cv_lib_dl_dlopen = yes; then
8156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8157else
8158
8159 lt_cv_dlopen="dyld"
8160 lt_cv_dlopen_libs=
8161 lt_cv_dlopen_self=yes
8162
8163fi
8164
8165 ;;
8166
John Criswell7a73b802003-06-30 21:59:07 +00008167 *)
8168 echo "$as_me:$LINENO: checking for shl_load" >&5
8169echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8170if test "${ac_cv_func_shl_load+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172else
8173 cat >conftest.$ac_ext <<_ACEOF
8174#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008175/* confdefs.h. */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008180/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008181 which can conflict with char shl_load (); below.
8182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183 <limits.h> exists even on freestanding compilers. */
8184#ifdef __STDC__
8185# include <limits.h>
8186#else
8187# include <assert.h>
8188#endif
John Criswell7a73b802003-06-30 21:59:07 +00008189/* Override any gcc2 internal prototype to avoid an error. */
8190#ifdef __cplusplus
8191extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008192{
John Criswell7a73b802003-06-30 21:59:07 +00008193#endif
8194/* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8196char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008197/* The GNU C library defines this for functions which it implements
8198 to always fail with ENOSYS. Some functions are actually named
8199 something starting with __ and the normal name is an alias. */
8200#if defined (__stub_shl_load) || defined (__stub___shl_load)
8201choke me
8202#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008203char (*f) () = shl_load;
8204#endif
8205#ifdef __cplusplus
8206}
John Criswell7a73b802003-06-30 21:59:07 +00008207#endif
8208
John Criswell0c38eaf2003-09-10 15:17:25 +00008209int
8210main ()
8211{
8212return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008213 ;
8214 return 0;
8215}
8216_ACEOF
8217rm -f conftest.$ac_objext conftest$ac_exeext
8218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219 (eval $ac_link) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_func_shl_load=yes
8230else
8231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008232sed 's/^/| /' conftest.$ac_ext >&5
8233
John Criswell7a73b802003-06-30 21:59:07 +00008234ac_cv_func_shl_load=no
8235fi
8236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8237fi
8238echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8239echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8240if test $ac_cv_func_shl_load = yes; then
8241 lt_cv_dlopen="shl_load"
8242else
8243 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8244echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8245if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248 ac_check_lib_save_LIBS=$LIBS
8249LIBS="-ldld $LIBS"
8250cat >conftest.$ac_ext <<_ACEOF
8251#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008252/* confdefs.h. */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008257
8258/* Override any gcc2 internal prototype to avoid an error. */
8259#ifdef __cplusplus
8260extern "C"
8261#endif
8262/* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8264char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008265int
8266main ()
8267{
8268shl_load ();
8269 ;
8270 return 0;
8271}
8272_ACEOF
8273rm -f conftest.$ac_objext conftest$ac_exeext
8274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8275 (eval $ac_link) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_lib_dld_shl_load=yes
8286else
8287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008288sed 's/^/| /' conftest.$ac_ext >&5
8289
John Criswell7a73b802003-06-30 21:59:07 +00008290ac_cv_lib_dld_shl_load=no
8291fi
8292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8293LIBS=$ac_check_lib_save_LIBS
8294fi
8295echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8296echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8297if test $ac_cv_lib_dld_shl_load = yes; then
8298 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8299else
8300 echo "$as_me:$LINENO: checking for dlopen" >&5
8301echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8302if test "${ac_cv_func_dlopen+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305 cat >conftest.$ac_ext <<_ACEOF
8306#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008307/* confdefs.h. */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008312/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008313 which can conflict with char dlopen (); below.
8314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8315 <limits.h> exists even on freestanding compilers. */
8316#ifdef __STDC__
8317# include <limits.h>
8318#else
8319# include <assert.h>
8320#endif
John Criswell7a73b802003-06-30 21:59:07 +00008321/* Override any gcc2 internal prototype to avoid an error. */
8322#ifdef __cplusplus
8323extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008324{
John Criswell7a73b802003-06-30 21:59:07 +00008325#endif
8326/* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8328char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008329/* The GNU C library defines this for functions which it implements
8330 to always fail with ENOSYS. Some functions are actually named
8331 something starting with __ and the normal name is an alias. */
8332#if defined (__stub_dlopen) || defined (__stub___dlopen)
8333choke me
8334#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008335char (*f) () = dlopen;
8336#endif
8337#ifdef __cplusplus
8338}
John Criswell7a73b802003-06-30 21:59:07 +00008339#endif
8340
John Criswell0c38eaf2003-09-10 15:17:25 +00008341int
8342main ()
8343{
8344return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008345 ;
8346 return 0;
8347}
8348_ACEOF
8349rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8351 (eval $ac_link) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -s conftest$ac_exeext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_cv_func_dlopen=yes
8362else
8363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008364sed 's/^/| /' conftest.$ac_ext >&5
8365
John Criswell7a73b802003-06-30 21:59:07 +00008366ac_cv_func_dlopen=no
8367fi
8368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8369fi
8370echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8371echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8372if test $ac_cv_func_dlopen = yes; then
8373 lt_cv_dlopen="dlopen"
8374else
8375 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8376echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8377if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380 ac_check_lib_save_LIBS=$LIBS
8381LIBS="-ldl $LIBS"
8382cat >conftest.$ac_ext <<_ACEOF
8383#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008384/* confdefs.h. */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008389
8390/* Override any gcc2 internal prototype to avoid an error. */
8391#ifdef __cplusplus
8392extern "C"
8393#endif
8394/* We use char because int might match the return type of a gcc2
8395 builtin and then its argument prototype would still apply. */
8396char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008397int
8398main ()
8399{
8400dlopen ();
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext conftest$ac_exeext
8406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -s conftest$ac_exeext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_lib_dl_dlopen=yes
8418else
8419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008420sed 's/^/| /' conftest.$ac_ext >&5
8421
John Criswell7a73b802003-06-30 21:59:07 +00008422ac_cv_lib_dl_dlopen=no
8423fi
8424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8425LIBS=$ac_check_lib_save_LIBS
8426fi
8427echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8428echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8429if test $ac_cv_lib_dl_dlopen = yes; then
8430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8431else
8432 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8433echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8434if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437 ac_check_lib_save_LIBS=$LIBS
8438LIBS="-lsvld $LIBS"
8439cat >conftest.$ac_ext <<_ACEOF
8440#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008446
8447/* Override any gcc2 internal prototype to avoid an error. */
8448#ifdef __cplusplus
8449extern "C"
8450#endif
8451/* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008454int
8455main ()
8456{
8457dlopen ();
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext conftest$ac_exeext
8463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_lib_svld_dlopen=yes
8475else
8476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008477sed 's/^/| /' conftest.$ac_ext >&5
8478
John Criswell7a73b802003-06-30 21:59:07 +00008479ac_cv_lib_svld_dlopen=no
8480fi
8481rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8482LIBS=$ac_check_lib_save_LIBS
8483fi
8484echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8485echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8486if test $ac_cv_lib_svld_dlopen = yes; then
8487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8488else
8489 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8490echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8491if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493else
8494 ac_check_lib_save_LIBS=$LIBS
8495LIBS="-ldld $LIBS"
8496cat >conftest.$ac_ext <<_ACEOF
8497#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008503
8504/* Override any gcc2 internal prototype to avoid an error. */
8505#ifdef __cplusplus
8506extern "C"
8507#endif
8508/* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8510char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008511int
8512main ()
8513{
8514dld_link ();
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519rm -f conftest.$ac_objext conftest$ac_exeext
8520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -s conftest$ac_exeext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_cv_lib_dld_dld_link=yes
8532else
8533 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008534sed 's/^/| /' conftest.$ac_ext >&5
8535
John Criswell7a73b802003-06-30 21:59:07 +00008536ac_cv_lib_dld_dld_link=no
8537fi
8538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8539LIBS=$ac_check_lib_save_LIBS
8540fi
8541echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8542echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8543if test $ac_cv_lib_dld_dld_link = yes; then
8544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8545fi
8546
8547
8548fi
8549
8550
8551fi
8552
8553
8554fi
8555
8556
8557fi
8558
8559
8560fi
8561
8562 ;;
8563 esac
8564
8565 if test "x$lt_cv_dlopen" != xno; then
8566 enable_dlopen=yes
8567 else
8568 enable_dlopen=no
8569 fi
8570
8571 case $lt_cv_dlopen in
8572 dlopen)
8573 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008575
8576 save_LDFLAGS="$LDFLAGS"
8577 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8578
8579 save_LIBS="$LIBS"
8580 LIBS="$lt_cv_dlopen_libs $LIBS"
8581
8582 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8583echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8584if test "${lt_cv_dlopen_self+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586else
8587 if test "$cross_compiling" = yes; then :
8588 lt_cv_dlopen_self=cross
8589else
John Criswell47fdd832003-07-14 16:52:07 +00008590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008591 lt_status=$lt_dlunknown
8592 cat > conftest.$ac_ext <<EOF
John Criswell559a6c12003-09-30 16:31:48 +00008593#line 8593 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008594#include "confdefs.h"
8595
8596#if HAVE_DLFCN_H
8597#include <dlfcn.h>
8598#endif
8599
8600#include <stdio.h>
8601
8602#ifdef RTLD_GLOBAL
8603# define LT_DLGLOBAL RTLD_GLOBAL
8604#else
8605# ifdef DL_GLOBAL
8606# define LT_DLGLOBAL DL_GLOBAL
8607# else
8608# define LT_DLGLOBAL 0
8609# endif
8610#endif
8611
8612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8613 find out it does not work in some platform. */
8614#ifndef LT_DLLAZY_OR_NOW
8615# ifdef RTLD_LAZY
8616# define LT_DLLAZY_OR_NOW RTLD_LAZY
8617# else
8618# ifdef DL_LAZY
8619# define LT_DLLAZY_OR_NOW DL_LAZY
8620# else
8621# ifdef RTLD_NOW
8622# define LT_DLLAZY_OR_NOW RTLD_NOW
8623# else
8624# ifdef DL_NOW
8625# define LT_DLLAZY_OR_NOW DL_NOW
8626# else
8627# define LT_DLLAZY_OR_NOW 0
8628# endif
8629# endif
8630# endif
8631# endif
8632#endif
8633
8634#ifdef __cplusplus
8635extern "C" void exit (int);
8636#endif
8637
8638void fnord() { int i=42;}
8639int main ()
8640{
8641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8642 int status = $lt_dlunknown;
8643
8644 if (self)
8645 {
8646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8648 /* dlclose (self); */
8649 }
8650
8651 exit (status);
8652}
8653EOF
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8659 (./conftest; exit; ) 2>/dev/null
8660 lt_status=$?
8661 case x$lt_status in
8662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8664 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8665 esac
8666 else :
8667 # compilation failed
8668 lt_cv_dlopen_self=no
8669 fi
8670fi
8671rm -fr conftest*
8672
8673
8674fi
8675echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8676echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8677
8678 if test "x$lt_cv_dlopen_self" = xyes; then
8679 LDFLAGS="$LDFLAGS $link_static_flag"
8680 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8681echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8682if test "${lt_cv_dlopen_self_static+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685 if test "$cross_compiling" = yes; then :
8686 lt_cv_dlopen_self_static=cross
8687else
John Criswell47fdd832003-07-14 16:52:07 +00008688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008689 lt_status=$lt_dlunknown
8690 cat > conftest.$ac_ext <<EOF
John Criswell559a6c12003-09-30 16:31:48 +00008691#line 8691 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008692#include "confdefs.h"
8693
8694#if HAVE_DLFCN_H
8695#include <dlfcn.h>
8696#endif
8697
8698#include <stdio.h>
8699
8700#ifdef RTLD_GLOBAL
8701# define LT_DLGLOBAL RTLD_GLOBAL
8702#else
8703# ifdef DL_GLOBAL
8704# define LT_DLGLOBAL DL_GLOBAL
8705# else
8706# define LT_DLGLOBAL 0
8707# endif
8708#endif
8709
8710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8711 find out it does not work in some platform. */
8712#ifndef LT_DLLAZY_OR_NOW
8713# ifdef RTLD_LAZY
8714# define LT_DLLAZY_OR_NOW RTLD_LAZY
8715# else
8716# ifdef DL_LAZY
8717# define LT_DLLAZY_OR_NOW DL_LAZY
8718# else
8719# ifdef RTLD_NOW
8720# define LT_DLLAZY_OR_NOW RTLD_NOW
8721# else
8722# ifdef DL_NOW
8723# define LT_DLLAZY_OR_NOW DL_NOW
8724# else
8725# define LT_DLLAZY_OR_NOW 0
8726# endif
8727# endif
8728# endif
8729# endif
8730#endif
8731
8732#ifdef __cplusplus
8733extern "C" void exit (int);
8734#endif
8735
8736void fnord() { int i=42;}
8737int main ()
8738{
8739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8740 int status = $lt_dlunknown;
8741
8742 if (self)
8743 {
8744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8746 /* dlclose (self); */
8747 }
8748
8749 exit (status);
8750}
8751EOF
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8757 (./conftest; exit; ) 2>/dev/null
8758 lt_status=$?
8759 case x$lt_status in
8760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8762 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8763 esac
8764 else :
8765 # compilation failed
8766 lt_cv_dlopen_self_static=no
8767 fi
8768fi
8769rm -fr conftest*
8770
8771
8772fi
8773echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8774echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8775 fi
8776
8777 CPPFLAGS="$save_CPPFLAGS"
8778 LDFLAGS="$save_LDFLAGS"
8779 LIBS="$save_LIBS"
8780 ;;
8781 esac
8782
8783 case $lt_cv_dlopen_self in
8784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8785 *) enable_dlopen_self=unknown ;;
8786 esac
8787
8788 case $lt_cv_dlopen_self_static in
8789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8790 *) enable_dlopen_self_static=unknown ;;
8791 esac
8792fi
8793
8794
John Criswell47fdd832003-07-14 16:52:07 +00008795# Report which librarie types wil actually be built
8796echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8797echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8798echo "$as_me:$LINENO: result: $can_build_shared" >&5
8799echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008800
John Criswell47fdd832003-07-14 16:52:07 +00008801echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8802echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8803test "$can_build_shared" = "no" && enable_shared=no
8804
8805# On AIX, shared libraries and static libraries use the same namespace, and
8806# are all built from PIC.
8807case "$host_os" in
8808aix3*)
8809 test "$enable_shared" = yes && enable_static=no
8810 if test -n "$RANLIB"; then
8811 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8812 postinstall_cmds='$RANLIB $lib'
8813 fi
8814 ;;
8815
8816aix4*)
8817 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8818 test "$enable_shared" = yes && enable_static=no
8819 fi
8820 ;;
8821 darwin* | rhapsody*)
8822 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8823 archive_cmds_need_lc=no
8824 case "$host_os" in
8825 rhapsody* | darwin1.[012])
8826 allow_undefined_flag='-undefined suppress'
8827 ;;
8828 *) # Darwin 1.3 on
8829 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8830 ;;
8831 esac
8832 # FIXME: Relying on posixy $() will cause problems for
8833 # cross-compilation, but unfortunately the echo tests do not
8834 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8835 # `"' quotes if we put them in here... so don't!
8836 output_verbose_link_cmd='echo'
8837 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8838 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8839 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8840 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}'
8841 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}'
8842 hardcode_direct=no
8843 hardcode_automatic=yes
8844 hardcode_shlibpath_var=unsupported
8845 whole_archive_flag_spec='-all_load $convenience'
8846 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008847 fi
John Criswell7a73b802003-06-30 21:59:07 +00008848 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008849esac
8850echo "$as_me:$LINENO: result: $enable_shared" >&5
8851echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008852
John Criswell47fdd832003-07-14 16:52:07 +00008853echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8854echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8855# Make sure either enable_shared or enable_static is yes.
8856test "$enable_shared" = yes || enable_static=yes
8857echo "$as_me:$LINENO: result: $enable_static" >&5
8858echo "${ECHO_T}$enable_static" >&6
8859
8860# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008861# libtool distribution, otherwise you forgot to ship ltmain.sh
8862# with your package, and you will get complaints that there are
8863# no rules to generate ltmain.sh.
8864if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008865 # See if we are running on zsh, and set the options which allow our commands through
8866 # without removal of \ escapes.
8867 if test -n "${ZSH_VERSION+set}" ; then
8868 setopt NO_GLOB_SUBST
8869 fi
John Criswell7a73b802003-06-30 21:59:07 +00008870 # Now quote all the things that may contain metacharacters while being
8871 # careful not to overquote the AC_SUBSTed values. We take copies of the
8872 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008873 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8874 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8875 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8876 deplibs_check_method reload_flag reload_cmds need_locks \
8877 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8878 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008879 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008880 old_postinstall_cmds old_postuninstall_cmds \
8881 compiler \
8882 CC \
8883 LD \
8884 lt_prog_compiler_wl \
8885 lt_prog_compiler_pic \
8886 lt_prog_compiler_static \
8887 lt_prog_compiler_no_builtin_flag \
8888 export_dynamic_flag_spec \
8889 thread_safe_flag_spec \
8890 whole_archive_flag_spec \
8891 enable_shared_with_static_runtimes \
8892 old_archive_cmds \
8893 old_archive_from_new_cmds \
8894 predep_objects \
8895 postdep_objects \
8896 predeps \
8897 postdeps \
8898 compiler_lib_search_path \
8899 archive_cmds \
8900 archive_expsym_cmds \
8901 postinstall_cmds \
8902 postuninstall_cmds \
8903 old_archive_from_expsyms_cmds \
8904 allow_undefined_flag \
8905 no_undefined_flag \
8906 export_symbols_cmds \
8907 hardcode_libdir_flag_spec \
8908 hardcode_libdir_flag_spec_ld \
8909 hardcode_libdir_separator \
8910 hardcode_automatic \
8911 module_cmds \
8912 module_expsym_cmds \
8913 lt_cv_prog_compiler_c_o \
8914 exclude_expsyms \
8915 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008916
8917 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008918 old_archive_cmds | \
8919 old_archive_from_new_cmds | \
8920 archive_cmds | \
8921 archive_expsym_cmds | \
8922 module_cmds | \
8923 module_expsym_cmds | \
8924 old_archive_from_expsyms_cmds | \
8925 export_symbols_cmds | \
8926 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008927 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008928 old_postinstall_cmds | old_postuninstall_cmds | \
8929 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008930 # Double-quote double-evaled strings.
8931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8932 ;;
8933 *)
8934 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8935 ;;
8936 esac
8937 done
8938
John Criswell47fdd832003-07-14 16:52:07 +00008939 case $lt_echo in
8940 *'\$0 --fallback-echo"')
8941 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8942 ;;
8943 esac
8944
8945cfgfile="${ofile}T"
8946 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8947 $rm -f "$cfgfile"
8948 { echo "$as_me:$LINENO: creating $ofile" >&5
8949echo "$as_me: creating $ofile" >&6;}
8950
8951 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008952#! $SHELL
8953
John Criswell47fdd832003-07-14 16:52:07 +00008954# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008955# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8956# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8957#
John Criswell47fdd832003-07-14 16:52:07 +00008958# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8959# Free Software Foundation, Inc.
8960#
8961# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008962# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8963#
8964# This program is free software; you can redistribute it and/or modify
8965# it under the terms of the GNU General Public License as published by
8966# the Free Software Foundation; either version 2 of the License, or
8967# (at your option) any later version.
8968#
8969# This program is distributed in the hope that it will be useful, but
8970# WITHOUT ANY WARRANTY; without even the implied warranty of
8971# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8972# General Public License for more details.
8973#
8974# You should have received a copy of the GNU General Public License
8975# along with this program; if not, write to the Free Software
8976# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8977#
8978# As a special exception to the GNU General Public License, if you
8979# distribute this file as part of a program that contains a
8980# configuration script generated by Autoconf, you may include it under
8981# the same distribution terms that you use for the rest of that program.
8982
John Criswell47fdd832003-07-14 16:52:07 +00008983# A sed program that does not truncate output.
8984SED=$lt_SED
8985
John Criswell7a73b802003-06-30 21:59:07 +00008986# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008987Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008988
8989# The HP-UX ksh and POSIX shell print the target directory to stdout
8990# if CDPATH is set.
8991if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8992
John Criswell47fdd832003-07-14 16:52:07 +00008993# The names of the tagged configurations supported by this script.
8994available_tags=
8995
John Criswell7a73b802003-06-30 21:59:07 +00008996# ### BEGIN LIBTOOL CONFIG
8997
8998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8999
9000# Shell to use when invoking shell scripts.
9001SHELL=$lt_SHELL
9002
9003# Whether or not to build shared libraries.
9004build_libtool_libs=$enable_shared
9005
9006# Whether or not to build static libraries.
9007build_old_libs=$enable_static
9008
9009# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009010build_libtool_need_lc=$archive_cmds_need_lc
9011
9012# Whether or not to disallow shared libs when runtime libs are static
9013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009014
9015# Whether or not to optimize for fast installation.
9016fast_install=$enable_fast_install
9017
9018# The host system.
9019host_alias=$host_alias
9020host=$host
9021
9022# An echo program that does not interpret backslashes.
9023echo=$lt_echo
9024
9025# The archiver.
9026AR=$lt_AR
9027AR_FLAGS=$lt_AR_FLAGS
9028
John Criswell47fdd832003-07-14 16:52:07 +00009029# A C compiler.
9030LTCC=$lt_LTCC
9031
9032# A language-specific compiler.
9033CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009034
9035# Is the compiler the GNU C compiler?
9036with_gcc=$GCC
9037
John Criswell47fdd832003-07-14 16:52:07 +00009038# An ERE matcher.
9039EGREP=$lt_EGREP
9040
John Criswell7a73b802003-06-30 21:59:07 +00009041# The linker used to build libraries.
9042LD=$lt_LD
9043
9044# Whether we need hard or soft links.
9045LN_S=$lt_LN_S
9046
9047# A BSD-compatible nm program.
9048NM=$lt_NM
9049
9050# A symbol stripping program
9051STRIP=$STRIP
9052
9053# Used to examine libraries when file_magic_cmd begins "file"
9054MAGIC_CMD=$MAGIC_CMD
9055
9056# Used on cygwin: DLL creation program.
9057DLLTOOL="$DLLTOOL"
9058
9059# Used on cygwin: object dumper.
9060OBJDUMP="$OBJDUMP"
9061
9062# Used on cygwin: assembler.
9063AS="$AS"
9064
9065# The name of the directory that contains temporary libtool files.
9066objdir=$objdir
9067
9068# How to create reloadable object files.
9069reload_flag=$lt_reload_flag
9070reload_cmds=$lt_reload_cmds
9071
9072# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009073wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009074
9075# Object file suffix (normally "o").
9076objext="$ac_objext"
9077
9078# Old archive suffix (normally "a").
9079libext="$libext"
9080
John Criswell47fdd832003-07-14 16:52:07 +00009081# Shared library suffix (normally ".so").
9082shrext='$shrext'
9083
John Criswell7a73b802003-06-30 21:59:07 +00009084# Executable file suffix (normally "").
9085exeext="$exeext"
9086
9087# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009088pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009089pic_mode=$pic_mode
9090
John Criswell47fdd832003-07-14 16:52:07 +00009091# What is the maximum length of a command?
9092max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009093
John Criswell47fdd832003-07-14 16:52:07 +00009094# Does compiler simultaneously support -c and -o options?
9095compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009096
9097# Must we lock files when doing compilation ?
9098need_locks=$lt_need_locks
9099
9100# Do we need the lib prefix for modules?
9101need_lib_prefix=$need_lib_prefix
9102
9103# Do we need a version for libraries?
9104need_version=$need_version
9105
9106# Whether dlopen is supported.
9107dlopen_support=$enable_dlopen
9108
9109# Whether dlopen of programs is supported.
9110dlopen_self=$enable_dlopen_self
9111
9112# Whether dlopen of statically linked programs is supported.
9113dlopen_self_static=$enable_dlopen_self_static
9114
9115# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009116link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009117
9118# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009119no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009120
9121# Compiler flag to allow reflexive dlopens.
9122export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9123
9124# Compiler flag to generate shared objects directly from archives.
9125whole_archive_flag_spec=$lt_whole_archive_flag_spec
9126
9127# Compiler flag to generate thread-safe objects.
9128thread_safe_flag_spec=$lt_thread_safe_flag_spec
9129
9130# Library versioning type.
9131version_type=$version_type
9132
9133# Format of library name prefix.
9134libname_spec=$lt_libname_spec
9135
9136# List of archive names. First name is the real one, the rest are links.
9137# The last name is the one that the linker finds with -lNAME.
9138library_names_spec=$lt_library_names_spec
9139
9140# The coded name of the library, if different from the real name.
9141soname_spec=$lt_soname_spec
9142
9143# Commands used to build and install an old-style archive.
9144RANLIB=$lt_RANLIB
9145old_archive_cmds=$lt_old_archive_cmds
9146old_postinstall_cmds=$lt_old_postinstall_cmds
9147old_postuninstall_cmds=$lt_old_postuninstall_cmds
9148
9149# Create an old-style archive from a shared archive.
9150old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9151
9152# Create a temporary old-style archive to link instead of a shared archive.
9153old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9154
9155# Commands used to build and install a shared archive.
9156archive_cmds=$lt_archive_cmds
9157archive_expsym_cmds=$lt_archive_expsym_cmds
9158postinstall_cmds=$lt_postinstall_cmds
9159postuninstall_cmds=$lt_postuninstall_cmds
9160
John Criswell47fdd832003-07-14 16:52:07 +00009161# Commands used to build a loadable module (assumed same as above if empty)
9162module_cmds=$lt_module_cmds
9163module_expsym_cmds=$lt_module_expsym_cmds
9164
John Criswell7a73b802003-06-30 21:59:07 +00009165# Commands to strip libraries.
9166old_striplib=$lt_old_striplib
9167striplib=$lt_striplib
9168
John Criswell47fdd832003-07-14 16:52:07 +00009169# Dependencies to place before the objects being linked to create a
9170# shared library.
9171predep_objects=$lt_predep_objects
9172
9173# Dependencies to place after the objects being linked to create a
9174# shared library.
9175postdep_objects=$lt_postdep_objects
9176
9177# Dependencies to place before the objects being linked to create a
9178# shared library.
9179predeps=$lt_predeps
9180
9181# Dependencies to place after the objects being linked to create a
9182# shared library.
9183postdeps=$lt_postdeps
9184
9185# The library search path used internally by the compiler when linking
9186# a shared library.
9187compiler_lib_search_path=$lt_compiler_lib_search_path
9188
John Criswell7a73b802003-06-30 21:59:07 +00009189# Method to check whether dependent libraries are shared objects.
9190deplibs_check_method=$lt_deplibs_check_method
9191
9192# Command to use when deplibs_check_method == file_magic.
9193file_magic_cmd=$lt_file_magic_cmd
9194
9195# Flag that allows shared libraries with undefined symbols to be built.
9196allow_undefined_flag=$lt_allow_undefined_flag
9197
9198# Flag that forces no undefined symbols.
9199no_undefined_flag=$lt_no_undefined_flag
9200
9201# Commands used to finish a libtool library installation in a directory.
9202finish_cmds=$lt_finish_cmds
9203
9204# Same as above, but a single script fragment to be evaled but not shown.
9205finish_eval=$lt_finish_eval
9206
9207# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009208global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009209
9210# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009211global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009212
9213# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009214global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009215
9216# This is the shared library runtime path variable.
9217runpath_var=$runpath_var
9218
9219# This is the shared library path variable.
9220shlibpath_var=$shlibpath_var
9221
9222# Is shlibpath searched before the hard-coded library search path?
9223shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9224
9225# How to hardcode a shared library path into an executable.
9226hardcode_action=$hardcode_action
9227
9228# Whether we should hardcode library paths into libraries.
9229hardcode_into_libs=$hardcode_into_libs
9230
9231# Flag to hardcode \$libdir into a binary during linking.
9232# This must work even if \$libdir does not exist.
9233hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9234
John Criswell47fdd832003-07-14 16:52:07 +00009235# If ld is used when linking, flag to hardcode \$libdir into
9236# a binary during linking. This must work even if \$libdir does
9237# not exist.
9238hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9239
John Criswell7a73b802003-06-30 21:59:07 +00009240# Whether we need a single -rpath flag with a separated argument.
9241hardcode_libdir_separator=$lt_hardcode_libdir_separator
9242
John Criswell47fdd832003-07-14 16:52:07 +00009243# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009244# resulting binary.
9245hardcode_direct=$hardcode_direct
9246
9247# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9248# resulting binary.
9249hardcode_minus_L=$hardcode_minus_L
9250
9251# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9252# the resulting binary.
9253hardcode_shlibpath_var=$hardcode_shlibpath_var
9254
John Criswell47fdd832003-07-14 16:52:07 +00009255# Set to yes if building a shared library automatically hardcodes DIR into the library
9256# and all subsequent libraries and executables linked against it.
9257hardcode_automatic=$hardcode_automatic
9258
John Criswell7a73b802003-06-30 21:59:07 +00009259# Variables whose values should be saved in libtool wrapper scripts and
9260# restored at relink time.
9261variables_saved_for_relink="$variables_saved_for_relink"
9262
9263# Whether libtool must link a program against all its dependency libraries.
9264link_all_deplibs=$link_all_deplibs
9265
9266# Compile-time system search path for libraries
9267sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9268
9269# Run-time system search path for libraries
9270sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9271
9272# Fix the shell variable \$srcfile for the compiler.
9273fix_srcfile_path="$fix_srcfile_path"
9274
9275# Set to yes if exported symbols are required.
9276always_export_symbols=$always_export_symbols
9277
9278# The commands to list exported symbols.
9279export_symbols_cmds=$lt_export_symbols_cmds
9280
9281# The commands to extract the exported symbol list from a shared archive.
9282extract_expsyms_cmds=$lt_extract_expsyms_cmds
9283
9284# Symbols that should not be listed in the preloaded symbols.
9285exclude_expsyms=$lt_exclude_expsyms
9286
9287# Symbols that must always be exported.
9288include_expsyms=$lt_include_expsyms
9289
9290# ### END LIBTOOL CONFIG
9291
9292__EOF__
9293
John Criswell47fdd832003-07-14 16:52:07 +00009294
John Criswell7a73b802003-06-30 21:59:07 +00009295 case $host_os in
9296 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009297 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009298
9299# AIX sometimes has problems with the GCC collect2 program. For some
9300# reason, if we set the COLLECT_NAMES environment variable, the problems
9301# vanish in a puff of smoke.
9302if test "X${COLLECT_NAMES+set}" != Xset; then
9303 COLLECT_NAMES=
9304 export COLLECT_NAMES
9305fi
9306EOF
9307 ;;
9308 esac
9309
John Criswell7a73b802003-06-30 21:59:07 +00009310 # We use sed instead of cat because bash on DJGPP gets confused if
9311 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9312 # text mode, it properly converts lines to CR/LF. This bash problem
9313 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009314 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009315
John Criswell47fdd832003-07-14 16:52:07 +00009316 mv -f "$cfgfile" "$ofile" || \
9317 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009318 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009319
9320else
9321 # If there is no Makefile yet, we rely on a make rule to execute
9322 # `config.status --recheck' to rerun these tests and create the
9323 # libtool script then.
9324 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009325fi
John Criswell7a73b802003-06-30 21:59:07 +00009326
9327
John Criswell47fdd832003-07-14 16:52:07 +00009328ac_ext=c
9329ac_cpp='$CPP $CPPFLAGS'
9330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9332ac_compiler_gnu=$ac_cv_c_compiler_gnu
9333
9334CC="$lt_save_CC"
9335
9336
9337# Check whether --with-tags or --without-tags was given.
9338if test "${with_tags+set}" = set; then
9339 withval="$with_tags"
9340 tagnames="$withval"
9341fi;
9342
9343if test -f "$ltmain" && test -n "$tagnames"; then
9344 if test ! -f "${ofile}"; then
9345 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9346echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9347 fi
9348
9349 if test -z "$LTCC"; then
9350 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9351 if test -z "$LTCC"; then
9352 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9353echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9354 else
9355 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9356echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9357 fi
9358 fi
9359
9360 # Extract list of available tagged configurations in $ofile.
9361 # Note that this assumes the entire list is on one line.
9362 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9363
9364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9365 for tagname in $tagnames; do
9366 IFS="$lt_save_ifs"
9367 # Check whether tagname contains only valid characters
9368 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9369 "") ;;
9370 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9371echo "$as_me: error: invalid tag name: $tagname" >&2;}
9372 { (exit 1); exit 1; }; }
9373 ;;
9374 esac
9375
9376 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9377 then
9378 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9379echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9380 { (exit 1); exit 1; }; }
9381 fi
9382
9383 # Update the list of available tags.
9384 if test -n "$tagname"; then
9385 echo appending configuration tag \"$tagname\" to $ofile
9386
9387 case $tagname in
9388 CXX)
9389 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9390 ac_ext=cc
9391ac_cpp='$CXXCPP $CPPFLAGS'
9392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9395
9396
9397
9398
9399archive_cmds_need_lc_CXX=no
9400allow_undefined_flag_CXX=
9401always_export_symbols_CXX=no
9402archive_expsym_cmds_CXX=
9403export_dynamic_flag_spec_CXX=
9404hardcode_direct_CXX=no
9405hardcode_libdir_flag_spec_CXX=
9406hardcode_libdir_flag_spec_ld_CXX=
9407hardcode_libdir_separator_CXX=
9408hardcode_minus_L_CXX=no
9409hardcode_automatic_CXX=no
9410module_cmds_CXX=
9411module_expsym_cmds_CXX=
9412link_all_deplibs_CXX=unknown
9413old_archive_cmds_CXX=$old_archive_cmds
9414no_undefined_flag_CXX=
9415whole_archive_flag_spec_CXX=
9416enable_shared_with_static_runtimes_CXX=no
9417
9418# Dependencies to place before and after the object being linked:
9419predep_objects_CXX=
9420postdep_objects_CXX=
9421predeps_CXX=
9422postdeps_CXX=
9423compiler_lib_search_path_CXX=
9424
9425# Source file extension for C++ test sources.
9426ac_ext=cc
9427
9428# Object file extension for compiled C++ test sources.
9429objext=o
9430objext_CXX=$objext
9431
9432# Code to be used in simple compile tests
9433lt_simple_compile_test_code="int some_variable = 0;\n"
9434
9435# Code to be used in simple link tests
9436lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9437
9438# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9439
9440# If no C compiler was specified, use CC.
9441LTCC=${LTCC-"$CC"}
9442
9443# Allow CC to be a program name with arguments.
9444compiler=$CC
9445
9446
9447# Allow CC to be a program name with arguments.
9448lt_save_CC=$CC
9449lt_save_LD=$LD
9450lt_save_GCC=$GCC
9451GCC=$GXX
9452lt_save_with_gnu_ld=$with_gnu_ld
9453lt_save_path_LD=$lt_cv_path_LD
9454if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9455 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9456else
9457 unset lt_cv_prog_gnu_ld
9458fi
9459if test -n "${lt_cv_path_LDCXX+set}"; then
9460 lt_cv_path_LD=$lt_cv_path_LDCXX
9461else
9462 unset lt_cv_path_LD
9463fi
9464test -z "${LDCXX+set}" || LD=$LDCXX
9465CC=${CXX-"c++"}
9466compiler=$CC
9467compiler_CXX=$CC
9468cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9469
9470# We don't want -fno-exception wen compiling C++ code, so set the
9471# no_builtin_flag separately
9472if test "$GXX" = yes; then
9473 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9474else
9475 lt_prog_compiler_no_builtin_flag_CXX=
9476fi
9477
9478if test "$GXX" = yes; then
9479 # Set up default GNU C++ configuration
9480
9481
9482# Check whether --with-gnu-ld or --without-gnu-ld was given.
9483if test "${with_gnu_ld+set}" = set; then
9484 withval="$with_gnu_ld"
9485 test "$withval" = no || with_gnu_ld=yes
9486else
9487 with_gnu_ld=no
9488fi;
9489ac_prog=ld
9490if test "$GCC" = yes; then
9491 # Check if gcc -print-prog-name=ld gives a path.
9492 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9493echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9494 case $host in
9495 *-*-mingw*)
9496 # gcc leaves a trailing carriage return which upsets mingw
9497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9498 *)
9499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9500 esac
9501 case $ac_prog in
9502 # Accept absolute paths.
9503 [\\/]* | ?:[\\/]*)
9504 re_direlt='/[^/][^/]*/\.\./'
9505 # Canonicalize the path of ld
9506 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9507 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9508 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9509 done
9510 test -z "$LD" && LD="$ac_prog"
9511 ;;
9512 "")
9513 # If it fails, then pretend we aren't using GCC.
9514 ac_prog=ld
9515 ;;
9516 *)
9517 # If it is relative, then search for the first ld in PATH.
9518 with_gnu_ld=unknown
9519 ;;
9520 esac
9521elif test "$with_gnu_ld" = yes; then
9522 echo "$as_me:$LINENO: checking for GNU ld" >&5
9523echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9524else
9525 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9526echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9527fi
9528if test "${lt_cv_path_LD+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530else
9531 if test -z "$LD"; then
9532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9533 for ac_dir in $PATH; do
9534 IFS="$lt_save_ifs"
9535 test -z "$ac_dir" && ac_dir=.
9536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9537 lt_cv_path_LD="$ac_dir/$ac_prog"
9538 # Check to see if the program is GNU ld. I'd rather use --version,
9539 # but apparently some GNU ld's only accept -v.
9540 # Break only if it was the GNU/non-GNU ld that we prefer.
9541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9542 *GNU* | *'with BFD'*)
9543 test "$with_gnu_ld" != no && break
9544 ;;
9545 *)
9546 test "$with_gnu_ld" != yes && break
9547 ;;
9548 esac
9549 fi
9550 done
9551 IFS="$lt_save_ifs"
9552else
9553 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9554fi
9555fi
9556
9557LD="$lt_cv_path_LD"
9558if test -n "$LD"; then
9559 echo "$as_me:$LINENO: result: $LD" >&5
9560echo "${ECHO_T}$LD" >&6
9561else
9562 echo "$as_me:$LINENO: result: no" >&5
9563echo "${ECHO_T}no" >&6
9564fi
9565test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9566echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9567 { (exit 1); exit 1; }; }
9568echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9569echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9570if test "${lt_cv_prog_gnu_ld+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572else
9573 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9574case `"$LD" -v 2>&1 </dev/null` in
9575*GNU* | *'with BFD'*)
9576 lt_cv_prog_gnu_ld=yes
9577 ;;
9578*)
9579 lt_cv_prog_gnu_ld=no
9580 ;;
9581esac
9582fi
9583echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9584echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9585with_gnu_ld=$lt_cv_prog_gnu_ld
9586
9587
9588
9589 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9590 # archiving commands below assume that GNU ld is being used.
9591 if test "$with_gnu_ld" = yes; then
9592 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9593 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'
9594
9595 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9596 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9597
9598 # If archive_cmds runs LD, not CC, wlarc should be empty
9599 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9600 # investigate it a little bit more. (MM)
9601 wlarc='${wl}'
9602
9603 # ancient GNU ld didn't support --whole-archive et. al.
9604 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9605 grep 'no-whole-archive' > /dev/null; then
9606 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9607 else
9608 whole_archive_flag_spec_CXX=
9609 fi
9610 else
9611 with_gnu_ld=no
9612 wlarc=
9613
9614 # A generic and very simple default shared library creation
9615 # command for GNU C++ for the case where it uses the native
9616 # linker, instead of GNU ld. If possible, this setting should
9617 # overridden to take advantage of the native linker features on
9618 # the platform it is being used on.
9619 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9620 fi
9621
9622 # Commands to make compiler produce verbose output that lists
9623 # what "hidden" libraries, object files and flags are used when
9624 # linking a shared library.
9625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9626
9627else
9628 GXX=no
9629 with_gnu_ld=no
9630 wlarc=
9631fi
9632
9633# PORTME: fill in a description of your system's C++ link characteristics
9634echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9635echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9636ld_shlibs_CXX=yes
9637case $host_os in
9638 aix3*)
9639 # FIXME: insert proper C++ library support
9640 ld_shlibs_CXX=no
9641 ;;
9642 aix4* | aix5*)
9643 if test "$host_cpu" = ia64; then
9644 # On IA64, the linker does run time linking by default, so we don't
9645 # have to do anything special.
9646 aix_use_runtimelinking=no
9647 exp_sym_flag='-Bexport'
9648 no_entry_flag=""
9649 else
9650 aix_use_runtimelinking=no
9651
9652 # Test if we are trying to use run time linking or normal
9653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9654 # need to do runtime linking.
9655 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9656 for ld_flag in $LDFLAGS; do
9657 case $ld_flag in
9658 *-brtl*)
9659 aix_use_runtimelinking=yes
9660 break
9661 ;;
9662 esac
9663 done
9664 esac
9665
9666 exp_sym_flag='-bexport'
9667 no_entry_flag='-bnoentry'
9668 fi
9669
9670 # When large executables or shared objects are built, AIX ld can
9671 # have problems creating the table of contents. If linking a library
9672 # or program results in "error TOC overflow" add -mminimal-toc to
9673 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9674 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9675
9676 archive_cmds_CXX=''
9677 hardcode_direct_CXX=yes
9678 hardcode_libdir_separator_CXX=':'
9679 link_all_deplibs_CXX=yes
9680
9681 if test "$GXX" = yes; then
9682 case $host_os in aix4.012|aix4.012.*)
9683 # We only want to do this on AIX 4.2 and lower, the check
9684 # below for broken collect2 doesn't work under 4.3+
9685 collect2name=`${CC} -print-prog-name=collect2`
9686 if test -f "$collect2name" && \
9687 strings "$collect2name" | grep resolve_lib_name >/dev/null
9688 then
9689 # We have reworked collect2
9690 hardcode_direct_CXX=yes
9691 else
9692 # We have old collect2
9693 hardcode_direct_CXX=unsupported
9694 # It fails to find uninstalled libraries when the uninstalled
9695 # path is not listed in the libpath. Setting hardcode_minus_L
9696 # to unsupported forces relinking
9697 hardcode_minus_L_CXX=yes
9698 hardcode_libdir_flag_spec_CXX='-L$libdir'
9699 hardcode_libdir_separator_CXX=
9700 fi
9701 esac
9702 shared_flag='-shared'
9703 else
9704 # not using gcc
9705 if test "$host_cpu" = ia64; then
9706 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9707 # chokes on -Wl,-G. The following line is correct:
9708 shared_flag='-G'
9709 else
9710 if test "$aix_use_runtimelinking" = yes; then
9711 shared_flag='${wl}-G'
9712 else
9713 shared_flag='${wl}-bM:SRE'
9714 fi
9715 fi
9716 fi
9717
9718 # It seems that -bexpall does not export symbols beginning with
9719 # underscore (_), so it is better to generate a list of symbols to export.
9720 always_export_symbols_CXX=yes
9721 if test "$aix_use_runtimelinking" = yes; then
9722 # Warning - without using the other runtime loading flags (-brtl),
9723 # -berok will link without error, but may produce a broken library.
9724 allow_undefined_flag_CXX='-berok'
9725 # Determine the default libpath from the value encoded in an empty executable.
9726 cat >conftest.$ac_ext <<_ACEOF
9727#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009733
John Criswell47fdd832003-07-14 16:52:07 +00009734int
9735main ()
9736{
9737
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754
9755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9756}'`
9757# Check for a 64-bit object if we didn't find anything.
9758if 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; }
9759}'`; fi
9760else
9761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009762sed 's/^/| /' conftest.$ac_ext >&5
9763
John Criswell47fdd832003-07-14 16:52:07 +00009764fi
9765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9767
9768 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9769
9770 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"
9771 else
9772 if test "$host_cpu" = ia64; then
9773 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9774 allow_undefined_flag_CXX="-z nodefs"
9775 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"
9776 else
9777 # Determine the default libpath from the value encoded in an empty executable.
9778 cat >conftest.$ac_ext <<_ACEOF
9779#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009785
John Criswell47fdd832003-07-14 16:52:07 +00009786int
9787main ()
9788{
9789
9790 ;
9791 return 0;
9792}
9793_ACEOF
9794rm -f conftest.$ac_objext conftest$ac_exeext
9795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796 (eval $ac_link) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806
9807aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9808}'`
9809# Check for a 64-bit object if we didn't find anything.
9810if 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; }
9811}'`; fi
9812else
9813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009814sed 's/^/| /' conftest.$ac_ext >&5
9815
John Criswell47fdd832003-07-14 16:52:07 +00009816fi
9817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9819
9820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9821 # Warning - without using the other run time loading flags,
9822 # -berok will link without error, but may produce a broken library.
9823 no_undefined_flag_CXX=' ${wl}-bernotok'
9824 allow_undefined_flag_CXX=' ${wl}-berok'
9825 # -bexpall does not export symbols beginning with underscore (_)
9826 always_export_symbols_CXX=yes
9827 # Exported symbols can be pulled into shared objects from archives
9828 whole_archive_flag_spec_CXX=' '
9829 archive_cmds_need_lc_CXX=yes
9830 # This is similar to how AIX traditionally builds it's shared libraries.
9831 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'
9832 fi
9833 fi
9834 ;;
9835 chorus*)
9836 case $cc_basename in
9837 *)
9838 # FIXME: insert proper C++ library support
9839 ld_shlibs_CXX=no
9840 ;;
9841 esac
9842 ;;
9843
9844 cygwin* | mingw* | pw32*)
9845 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9846 # as there is no search path for DLLs.
9847 hardcode_libdir_flag_spec_CXX='-L$libdir'
9848 allow_undefined_flag_CXX=unsupported
9849 always_export_symbols_CXX=no
9850 enable_shared_with_static_runtimes_CXX=yes
9851
9852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9853 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'
9854 # If the export-symbols file already is a .def file (1st line
9855 # is EXPORTS), use it as is; otherwise, prepend...
9856 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857 cp $export_symbols $output_objdir/$soname.def;
9858 else
9859 echo EXPORTS > $output_objdir/$soname.def;
9860 cat $export_symbols >> $output_objdir/$soname.def;
9861 fi~
9862 $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'
9863 else
9864 ld_shlibs_CXX=no
9865 fi
9866 ;;
9867
9868 darwin* | rhapsody*)
9869 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9870 archive_cmds_need_lc_CXX=no
9871 case "$host_os" in
9872 rhapsody* | darwin1.[012])
9873 allow_undefined_flag_CXX='-undefined suppress'
9874 ;;
9875 *) # Darwin 1.3 on
9876 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9877 ;;
9878 esac
9879 lt_int_apple_cc_single_mod=no
9880 output_verbose_link_cmd='echo'
9881 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9882 lt_int_apple_cc_single_mod=yes
9883 fi
9884 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9885 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9886 else
9887 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'
9888 fi
9889 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9890
9891 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9892 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9893 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}'
9894 else
9895 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}'
9896 fi
9897 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}'
9898 hardcode_direct_CXX=no
9899 hardcode_automatic_CXX=yes
9900 hardcode_shlibpath_var_CXX=unsupported
9901 whole_archive_flag_spec_CXX='-all_load $convenience'
9902 link_all_deplibs_CXX=yes
9903 fi
9904 ;;
9905
9906 dgux*)
9907 case $cc_basename in
9908 ec++)
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 ghcx)
9913 # Green Hills C++ Compiler
9914 # FIXME: insert proper C++ library support
9915 ld_shlibs_CXX=no
9916 ;;
9917 *)
9918 # FIXME: insert proper C++ library support
9919 ld_shlibs_CXX=no
9920 ;;
9921 esac
9922 ;;
9923 freebsd12*)
9924 # C++ shared libraries reported to be fairly broken before switch to ELF
9925 ld_shlibs_CXX=no
9926 ;;
9927 freebsd-elf*)
9928 archive_cmds_need_lc_CXX=no
9929 ;;
9930 freebsd*)
9931 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9932 # conventions
9933 ld_shlibs_CXX=yes
9934 ;;
9935 gnu*)
9936 ;;
9937 hpux9*)
9938 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_separator_CXX=:
9940 export_dynamic_flag_spec_CXX='${wl}-E'
9941 hardcode_direct_CXX=yes
9942 hardcode_minus_L_CXX=yes # Not in the search PATH,
9943 # but as the default
9944 # location of the library.
9945
9946 case $cc_basename in
9947 CC)
9948 # FIXME: insert proper C++ library support
9949 ld_shlibs_CXX=no
9950 ;;
9951 aCC)
9952 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'
9953 # Commands to make compiler produce verbose output that lists
9954 # what "hidden" libraries, object files and flags are used when
9955 # linking a shared library.
9956 #
9957 # There doesn't appear to be a way to prevent this compiler from
9958 # explicitly linking system object files so we need to strip them
9959 # from the output so that they don't get included in the library
9960 # dependencies.
9961 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'
9962 ;;
9963 *)
9964 if test "$GXX" = yes; then
9965 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'
9966 else
9967 # FIXME: insert proper C++ library support
9968 ld_shlibs_CXX=no
9969 fi
9970 ;;
9971 esac
9972 ;;
9973 hpux10*|hpux11*)
9974 if test $with_gnu_ld = no; then
9975 case "$host_cpu" in
9976 hppa*64*)
9977 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9978 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9979 hardcode_libdir_separator_CXX=:
9980 ;;
9981 ia64*)
9982 hardcode_libdir_flag_spec_CXX='-L$libdir'
9983 ;;
9984 *)
9985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9986 hardcode_libdir_separator_CXX=:
9987 export_dynamic_flag_spec_CXX='${wl}-E'
9988 ;;
9989 esac
9990 fi
9991 case "$host_cpu" in
9992 hppa*64*)
9993 hardcode_direct_CXX=no
9994 hardcode_shlibpath_var_CXX=no
9995 ;;
9996 ia64*)
9997 hardcode_direct_CXX=no
9998 hardcode_shlibpath_var_CXX=no
9999 hardcode_minus_L_CXX=yes # Not in the search PATH,
10000 # but as the default
10001 # location of the library.
10002 ;;
10003 *)
10004 hardcode_direct_CXX=yes
10005 hardcode_minus_L_CXX=yes # Not in the search PATH,
10006 # but as the default
10007 # location of the library.
10008 ;;
10009 esac
10010
10011 case $cc_basename in
10012 CC)
10013 # FIXME: insert proper C++ library support
10014 ld_shlibs_CXX=no
10015 ;;
10016 aCC)
10017 case "$host_cpu" in
10018 hppa*64*|ia64*)
10019 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10020 ;;
10021 *)
10022 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10023 ;;
10024 esac
10025 # Commands to make compiler produce verbose output that lists
10026 # what "hidden" libraries, object files and flags are used when
10027 # linking a shared library.
10028 #
10029 # There doesn't appear to be a way to prevent this compiler from
10030 # explicitly linking system object files so we need to strip them
10031 # from the output so that they don't get included in the library
10032 # dependencies.
10033 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'
10034 ;;
10035 *)
10036 if test "$GXX" = yes; then
10037 if test $with_gnu_ld = no; then
10038 case "$host_cpu" in
10039 ia64*|hppa*64*)
10040 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10041 ;;
10042 *)
10043 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'
10044 ;;
10045 esac
10046 fi
10047 else
10048 # FIXME: insert proper C++ library support
10049 ld_shlibs_CXX=no
10050 fi
10051 ;;
10052 esac
10053 ;;
10054 irix5* | irix6*)
10055 case $cc_basename in
10056 CC)
10057 # SGI C++
10058 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'
10059
10060 # Archives containing C++ object files must be created using
10061 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10062 # necessary to make sure instantiated templates are included
10063 # in the archive.
10064 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10065 ;;
10066 *)
10067 if test "$GXX" = yes; then
10068 if test "$with_gnu_ld" = no; then
10069 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'
10070 else
10071 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'
10072 fi
10073 fi
10074 link_all_deplibs_CXX=yes
10075 ;;
10076 esac
10077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10078 hardcode_libdir_separator_CXX=:
10079 ;;
10080 linux*)
10081 case $cc_basename in
10082 KCC)
10083 # Kuck and Associates, Inc. (KAI) C++ Compiler
10084
10085 # KCC will only create a shared library if the output file
10086 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10087 # to its proper name (with version) after linking.
10088 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'
10089 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'
10090 # Commands to make compiler produce verbose output that lists
10091 # what "hidden" libraries, object files and flags are used when
10092 # linking a shared library.
10093 #
10094 # There doesn't appear to be a way to prevent this compiler from
10095 # explicitly linking system object files so we need to strip them
10096 # from the output so that they don't get included in the library
10097 # dependencies.
10098 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'
10099
10100 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10101 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10102
10103 # Archives containing C++ object files must be created using
10104 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10105 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10106 ;;
10107 icpc)
10108 # Intel C++
10109 with_gnu_ld=yes
10110 archive_cmds_need_lc_CXX=no
10111 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112 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'
10113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10115 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10116 ;;
10117 cxx)
10118 # Compaq C++
10119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120 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'
10121
10122 runpath_var=LD_RUN_PATH
10123 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10124 hardcode_libdir_separator_CXX=:
10125
10126 # Commands to make compiler produce verbose output that lists
10127 # what "hidden" libraries, object files and flags are used when
10128 # linking a shared library.
10129 #
10130 # There doesn't appear to be a way to prevent this compiler from
10131 # explicitly linking system object files so we need to strip them
10132 # from the output so that they don't get included in the library
10133 # dependencies.
10134 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'
10135 ;;
10136 esac
10137 ;;
10138 lynxos*)
10139 # FIXME: insert proper C++ library support
10140 ld_shlibs_CXX=no
10141 ;;
10142 m88k*)
10143 # FIXME: insert proper C++ library support
10144 ld_shlibs_CXX=no
10145 ;;
10146 mvs*)
10147 case $cc_basename in
10148 cxx)
10149 # FIXME: insert proper C++ library support
10150 ld_shlibs_CXX=no
10151 ;;
10152 *)
10153 # FIXME: insert proper C++ library support
10154 ld_shlibs_CXX=no
10155 ;;
10156 esac
10157 ;;
10158 netbsd*)
10159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10160 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10161 wlarc=
10162 hardcode_libdir_flag_spec_CXX='-R$libdir'
10163 hardcode_direct_CXX=yes
10164 hardcode_shlibpath_var_CXX=no
10165 fi
10166 # Workaround some broken pre-1.5 toolchains
10167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10168 ;;
10169 osf3*)
10170 case $cc_basename in
10171 KCC)
10172 # Kuck and Associates, Inc. (KAI) C++ Compiler
10173
10174 # KCC will only create a shared library if the output file
10175 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10176 # to its proper name (with version) after linking.
10177 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'
10178
10179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10180 hardcode_libdir_separator_CXX=:
10181
10182 # Archives containing C++ object files must be created using
10183 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10184 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10185
10186 ;;
10187 RCC)
10188 # Rational C++ 2.4.1
10189 # FIXME: insert proper C++ library support
10190 ld_shlibs_CXX=no
10191 ;;
10192 cxx)
10193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10194 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'
10195
10196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator_CXX=:
10198
10199 # Commands to make compiler produce verbose output that lists
10200 # what "hidden" libraries, object files and flags are used when
10201 # linking a shared library.
10202 #
10203 # There doesn't appear to be a way to prevent this compiler from
10204 # explicitly linking system object files so we need to strip them
10205 # from the output so that they don't get included in the library
10206 # dependencies.
10207 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'
10208 ;;
10209 *)
10210 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10211 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10212 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'
10213
10214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10215 hardcode_libdir_separator_CXX=:
10216
10217 # Commands to make compiler produce verbose output that lists
10218 # what "hidden" libraries, object files and flags are used when
10219 # linking a shared library.
10220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10221
10222 else
10223 # FIXME: insert proper C++ library support
10224 ld_shlibs_CXX=no
10225 fi
10226 ;;
10227 esac
10228 ;;
10229 osf4* | osf5*)
10230 case $cc_basename in
10231 KCC)
10232 # Kuck and Associates, Inc. (KAI) C++ Compiler
10233
10234 # KCC will only create a shared library if the output file
10235 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10236 # to its proper name (with version) after linking.
10237 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'
10238
10239 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10240 hardcode_libdir_separator_CXX=:
10241
10242 # Archives containing C++ object files must be created using
10243 # the KAI C++ compiler.
10244 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10245 ;;
10246 RCC)
10247 # Rational C++ 2.4.1
10248 # FIXME: insert proper C++ library support
10249 ld_shlibs_CXX=no
10250 ;;
10251 cxx)
10252 allow_undefined_flag_CXX=' -expect_unresolved \*'
10253 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'
10254 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10255 echo "-hidden">> $lib.exp~
10256 $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~
10257 $rm $lib.exp'
10258
10259 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10260 hardcode_libdir_separator_CXX=:
10261
10262 # Commands to make compiler produce verbose output that lists
10263 # what "hidden" libraries, object files and flags are used when
10264 # linking a shared library.
10265 #
10266 # There doesn't appear to be a way to prevent this compiler from
10267 # explicitly linking system object files so we need to strip them
10268 # from the output so that they don't get included in the library
10269 # dependencies.
10270 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'
10271 ;;
10272 *)
10273 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10274 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10275 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'
10276
10277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10278 hardcode_libdir_separator_CXX=:
10279
10280 # Commands to make compiler produce verbose output that lists
10281 # what "hidden" libraries, object files and flags are used when
10282 # linking a shared library.
10283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10284
10285 else
10286 # FIXME: insert proper C++ library support
10287 ld_shlibs_CXX=no
10288 fi
10289 ;;
10290 esac
10291 ;;
10292 psos*)
10293 # FIXME: insert proper C++ library support
10294 ld_shlibs_CXX=no
10295 ;;
10296 sco*)
10297 archive_cmds_need_lc_CXX=no
10298 case $cc_basename in
10299 CC)
10300 # FIXME: insert proper C++ library support
10301 ld_shlibs_CXX=no
10302 ;;
10303 *)
10304 # FIXME: insert proper C++ library support
10305 ld_shlibs_CXX=no
10306 ;;
10307 esac
10308 ;;
10309 sunos4*)
10310 case $cc_basename in
10311 CC)
10312 # Sun C++ 4.x
10313 # FIXME: insert proper C++ library support
10314 ld_shlibs_CXX=no
10315 ;;
10316 lcc)
10317 # Lucid
10318 # FIXME: insert proper C++ library support
10319 ld_shlibs_CXX=no
10320 ;;
10321 *)
10322 # FIXME: insert proper C++ library support
10323 ld_shlibs_CXX=no
10324 ;;
10325 esac
10326 ;;
10327 solaris*)
10328 case $cc_basename in
10329 CC)
10330 # Sun C++ 4.2, 5.x and Centerline C++
10331 no_undefined_flag_CXX=' -zdefs'
10332 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10333 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10334 $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'
10335
10336 hardcode_libdir_flag_spec_CXX='-R$libdir'
10337 hardcode_shlibpath_var_CXX=no
10338 case $host_os in
10339 solaris2.0-5 | solaris2.0-5.*) ;;
10340 *)
10341 # The C++ compiler is used as linker so we must use $wl
10342 # flag to pass the commands to the underlying system
10343 # linker.
10344 # Supported since Solaris 2.6 (maybe 2.5.1?)
10345 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10346 ;;
10347 esac
10348 link_all_deplibs_CXX=yes
10349
10350 # Commands to make compiler produce verbose output that lists
10351 # what "hidden" libraries, object files and flags are used when
10352 # linking a shared library.
10353 #
10354 # There doesn't appear to be a way to prevent this compiler from
10355 # explicitly linking system object files so we need to strip them
10356 # from the output so that they don't get included in the library
10357 # dependencies.
10358 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'
10359
10360 # Archives containing C++ object files must be created using
10361 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10362 # necessary to make sure instantiated templates are included
10363 # in the archive.
10364 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10365 ;;
10366 gcx)
10367 # Green Hills C++ Compiler
10368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10369
10370 # The C++ compiler must be used to create the archive.
10371 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10372 ;;
10373 *)
10374 # GNU C++ compiler with Solaris linker
10375 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10376 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10377 if $CC --version | grep -v '^2\.7' > /dev/null; then
10378 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10381
10382 # Commands to make compiler produce verbose output that lists
10383 # what "hidden" libraries, object files and flags are used when
10384 # linking a shared library.
10385 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10386 else
10387 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10388 # platform.
10389 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10390 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10392
10393 # Commands to make compiler produce verbose output that lists
10394 # what "hidden" libraries, object files and flags are used when
10395 # linking a shared library.
10396 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10397 fi
10398
10399 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10400 fi
10401 ;;
10402 esac
10403 ;;
10404 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10405 archive_cmds_need_lc_CXX=no
10406 ;;
10407 tandem*)
10408 case $cc_basename in
10409 NCC)
10410 # NonStop-UX NCC 3.20
10411 # FIXME: insert proper C++ library support
10412 ld_shlibs_CXX=no
10413 ;;
10414 *)
10415 # FIXME: insert proper C++ library support
10416 ld_shlibs_CXX=no
10417 ;;
10418 esac
10419 ;;
10420 vxworks*)
10421 # FIXME: insert proper C++ library support
10422 ld_shlibs_CXX=no
10423 ;;
10424 *)
10425 # FIXME: insert proper C++ library support
10426 ld_shlibs_CXX=no
10427 ;;
10428esac
10429echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10430echo "${ECHO_T}$ld_shlibs_CXX" >&6
10431test "$ld_shlibs_CXX" = no && can_build_shared=no
10432
10433GCC_CXX="$GXX"
10434LD_CXX="$LD"
10435
10436## CAVEAT EMPTOR:
10437## There is no encapsulation within the following macros, do not change
10438## the running order or otherwise move them around unless you know exactly
10439## what you are doing...
10440
10441cat > conftest.$ac_ext <<EOF
10442class Foo
10443{
10444public:
10445 Foo (void) { a = 0; }
10446private:
10447 int a;
10448};
10449EOF
10450
10451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; then
10456 # Parse the compiler output and extract the necessary
10457 # objects, libraries and library flags.
10458
10459 # Sentinel used to keep track of whether or not we are before
10460 # the conftest object file.
10461 pre_test_object_deps_done=no
10462
10463 # The `*' in the case matches for architectures that use `case' in
10464 # $output_verbose_cmd can trigger glob expansion during the loop
10465 # eval without this substitution.
10466 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10467
10468 for p in `eval $output_verbose_link_cmd`; do
10469 case $p in
10470
10471 -L* | -R* | -l*)
10472 # Some compilers place space between "-{L,R}" and the path.
10473 # Remove the space.
10474 if test $p = "-L" \
10475 || test $p = "-R"; then
10476 prev=$p
10477 continue
10478 else
10479 prev=
10480 fi
10481
10482 if test "$pre_test_object_deps_done" = no; then
10483 case $p in
10484 -L* | -R*)
10485 # Internal compiler library paths should come after those
10486 # provided the user. The postdeps already come after the
10487 # user supplied libs so there is no need to process them.
10488 if test -z "$compiler_lib_search_path_CXX"; then
10489 compiler_lib_search_path_CXX="${prev}${p}"
10490 else
10491 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10492 fi
10493 ;;
10494 # The "-l" case would never come before the object being
10495 # linked, so don't bother handling this case.
10496 esac
10497 else
10498 if test -z "$postdeps_CXX"; then
10499 postdeps_CXX="${prev}${p}"
10500 else
10501 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10502 fi
10503 fi
10504 ;;
10505
10506 *.$objext)
10507 # This assumes that the test object file only shows up
10508 # once in the compiler output.
10509 if test "$p" = "conftest.$objext"; then
10510 pre_test_object_deps_done=yes
10511 continue
10512 fi
10513
10514 if test "$pre_test_object_deps_done" = no; then
10515 if test -z "$predep_objects_CXX"; then
10516 predep_objects_CXX="$p"
10517 else
10518 predep_objects_CXX="$predep_objects_CXX $p"
10519 fi
10520 else
10521 if test -z "$postdep_objects_CXX"; then
10522 postdep_objects_CXX="$p"
10523 else
10524 postdep_objects_CXX="$postdep_objects_CXX $p"
10525 fi
10526 fi
10527 ;;
10528
10529 *) ;; # Ignore the rest.
10530
10531 esac
10532 done
10533
10534 # Clean up.
10535 rm -f a.out a.exe
10536else
10537 echo "libtool.m4: error: problem compiling CXX test program"
10538fi
10539
10540$rm -f confest.$objext
10541
10542case " $postdeps_CXX " in
10543*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10544esac
10545
10546lt_prog_compiler_wl_CXX=
10547lt_prog_compiler_pic_CXX=
10548lt_prog_compiler_static_CXX=
10549
10550echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10551echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10552
10553 # C++ specific cases for pic, static, wl, etc.
10554 if test "$GXX" = yes; then
10555 lt_prog_compiler_wl_CXX='-Wl,'
10556 lt_prog_compiler_static_CXX='-static'
10557
10558 case $host_os in
10559 aix*)
10560 # All AIX code is PIC.
10561 if test "$host_cpu" = ia64; then
10562 # AIX 5 now supports IA64 processor
10563 lt_prog_compiler_static_CXX='-Bstatic'
10564 fi
10565 ;;
10566 amigaos*)
10567 # FIXME: we need at least 68020 code to build shared libraries, but
10568 # adding the `-m68020' flag to GCC prevents building anything better,
10569 # like `-m68040'.
10570 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10571 ;;
10572 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10573 # PIC is the default for these OSes.
10574 ;;
10575 mingw* | os2* | pw32*)
10576 # This hack is so that the source file can tell whether it is being
10577 # built for inclusion in a dll (and should export symbols for example).
10578 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10579 ;;
10580 darwin* | rhapsody*)
10581 # PIC is the default on this platform
10582 # Common symbols not allowed in MH_DYLIB files
10583 lt_prog_compiler_pic_CXX='-fno-common'
10584 ;;
10585 *djgpp*)
10586 # DJGPP does not support shared libraries at all
10587 lt_prog_compiler_pic_CXX=
10588 ;;
10589 sysv4*MP*)
10590 if test -d /usr/nec; then
10591 lt_prog_compiler_pic_CXX=-Kconform_pic
10592 fi
10593 ;;
10594 hpux*)
10595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10596 # not for PA HP-UX.
10597 case "$host_cpu" in
10598 hppa*64*|ia64*)
10599 ;;
10600 *)
10601 lt_prog_compiler_pic_CXX='-fPIC'
10602 ;;
10603 esac
10604 ;;
10605 *)
10606 lt_prog_compiler_pic_CXX='-fPIC'
10607 ;;
10608 esac
10609 else
10610 case $host_os in
10611 aix4* | aix5*)
10612 # All AIX code is PIC.
10613 if test "$host_cpu" = ia64; then
10614 # AIX 5 now supports IA64 processor
10615 lt_prog_compiler_static_CXX='-Bstatic'
10616 else
10617 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10618 fi
10619 ;;
10620 chorus*)
10621 case $cc_basename in
10622 cxch68)
10623 # Green Hills C++ Compiler
10624 # _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"
10625 ;;
10626 esac
10627 ;;
10628 dgux*)
10629 case $cc_basename in
10630 ec++)
10631 lt_prog_compiler_pic_CXX='-KPIC'
10632 ;;
10633 ghcx)
10634 # Green Hills C++ Compiler
10635 lt_prog_compiler_pic_CXX='-pic'
10636 ;;
10637 *)
10638 ;;
10639 esac
10640 ;;
10641 freebsd*)
10642 # FreeBSD uses GNU C++
10643 ;;
10644 hpux9* | hpux10* | hpux11*)
10645 case $cc_basename in
10646 CC)
10647 lt_prog_compiler_wl_CXX='-Wl,'
10648 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10649 if test "$host_cpu" != ia64; then
10650 lt_prog_compiler_pic_CXX='+Z'
10651 fi
10652 ;;
10653 aCC)
10654 lt_prog_compiler_wl_CXX='-Wl,'
10655 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10656 case "$host_cpu" in
10657 hppa*64*|ia64*)
10658 # +Z the default
10659 ;;
10660 *)
10661 lt_prog_compiler_pic_CXX='+Z'
10662 ;;
10663 esac
10664 ;;
10665 *)
10666 ;;
10667 esac
10668 ;;
10669 irix5* | irix6* | nonstopux*)
10670 case $cc_basename in
10671 CC)
10672 lt_prog_compiler_wl_CXX='-Wl,'
10673 lt_prog_compiler_static_CXX='-non_shared'
10674 # CC pic flag -KPIC is the default.
10675 ;;
10676 *)
10677 ;;
10678 esac
10679 ;;
10680 linux*)
10681 case $cc_basename in
10682 KCC)
10683 # KAI C++ Compiler
10684 lt_prog_compiler_wl_CXX='--backend -Wl,'
10685 lt_prog_compiler_pic_CXX='-fPIC'
10686 ;;
10687 icpc)
10688 # Intel C++
10689 lt_prog_compiler_wl_CXX='-Wl,'
10690 lt_prog_compiler_pic_CXX='-KPIC'
10691 lt_prog_compiler_static_CXX='-static'
10692 ;;
10693 cxx)
10694 # Compaq C++
10695 # Make sure the PIC flag is empty. It appears that all Alpha
10696 # Linux and Compaq Tru64 Unix objects are PIC.
10697 lt_prog_compiler_pic_CXX=
10698 lt_prog_compiler_static_CXX='-non_shared'
10699 ;;
10700 *)
10701 ;;
10702 esac
10703 ;;
10704 lynxos*)
10705 ;;
10706 m88k*)
10707 ;;
10708 mvs*)
10709 case $cc_basename in
10710 cxx)
10711 lt_prog_compiler_pic_CXX='-W c,exportall'
10712 ;;
10713 *)
10714 ;;
10715 esac
10716 ;;
10717 netbsd*)
10718 ;;
10719 osf3* | osf4* | osf5*)
10720 case $cc_basename in
10721 KCC)
10722 lt_prog_compiler_wl_CXX='--backend -Wl,'
10723 ;;
10724 RCC)
10725 # Rational C++ 2.4.1
10726 lt_prog_compiler_pic_CXX='-pic'
10727 ;;
10728 cxx)
10729 # Digital/Compaq C++
10730 lt_prog_compiler_wl_CXX='-Wl,'
10731 # Make sure the PIC flag is empty. It appears that all Alpha
10732 # Linux and Compaq Tru64 Unix objects are PIC.
10733 lt_prog_compiler_pic_CXX=
10734 lt_prog_compiler_static_CXX='-non_shared'
10735 ;;
10736 *)
10737 ;;
10738 esac
10739 ;;
10740 psos*)
10741 ;;
10742 sco*)
10743 case $cc_basename in
10744 CC)
10745 lt_prog_compiler_pic_CXX='-fPIC'
10746 ;;
10747 *)
10748 ;;
10749 esac
10750 ;;
10751 solaris*)
10752 case $cc_basename in
10753 CC)
10754 # Sun C++ 4.2, 5.x and Centerline C++
10755 lt_prog_compiler_pic_CXX='-KPIC'
10756 lt_prog_compiler_static_CXX='-Bstatic'
10757 lt_prog_compiler_wl_CXX='-Qoption ld '
10758 ;;
10759 gcx)
10760 # Green Hills C++ Compiler
10761 lt_prog_compiler_pic_CXX='-PIC'
10762 ;;
10763 *)
10764 ;;
10765 esac
10766 ;;
10767 sunos4*)
10768 case $cc_basename in
10769 CC)
10770 # Sun C++ 4.x
10771 lt_prog_compiler_pic_CXX='-pic'
10772 lt_prog_compiler_static_CXX='-Bstatic'
10773 ;;
10774 lcc)
10775 # Lucid
10776 lt_prog_compiler_pic_CXX='-pic'
10777 ;;
10778 *)
10779 ;;
10780 esac
10781 ;;
10782 tandem*)
10783 case $cc_basename in
10784 NCC)
10785 # NonStop-UX NCC 3.20
10786 lt_prog_compiler_pic_CXX='-KPIC'
10787 ;;
10788 *)
10789 ;;
10790 esac
10791 ;;
10792 unixware*)
10793 ;;
10794 vxworks*)
10795 ;;
10796 *)
10797 lt_prog_compiler_can_build_shared_CXX=no
10798 ;;
10799 esac
10800 fi
10801
10802echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10803echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10804
10805#
10806# Check to make sure the PIC flag actually works.
10807#
10808if test -n "$lt_prog_compiler_pic_CXX"; then
10809 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10810echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10811if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813else
10814 lt_prog_compiler_pic_works_CXX=no
10815 ac_outfile=conftest.$ac_objext
10816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10817 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10818 # Insert the option either (1) after the last *FLAGS variable, or
10819 # (2) before a word containing "conftest.", or (3) at the end.
10820 # Note that $ac_compile itself does not contain backslashes and begins
10821 # with a dollar sign (not a hyphen), so the echo should work correctly.
10822 # The option is referenced via a variable to avoid confusing sed.
10823 lt_compile=`echo "$ac_compile" | $SED \
10824 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10826 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +000010827 (eval echo "\"\$as_me:10827: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010828 (eval "$lt_compile" 2>conftest.err)
10829 ac_status=$?
10830 cat conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +000010831 echo "$as_me:10831: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010832 if (exit $ac_status) && test -s "$ac_outfile"; then
10833 # The compiler can only warn and ignore the option if not recognized
10834 # So say no if there are warnings
10835 if test ! -s conftest.err; then
10836 lt_prog_compiler_pic_works_CXX=yes
10837 fi
10838 fi
10839 $rm conftest*
10840
10841fi
10842echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10843echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10844
10845if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10846 case $lt_prog_compiler_pic_CXX in
10847 "" | " "*) ;;
10848 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10849 esac
10850else
10851 lt_prog_compiler_pic_CXX=
10852 lt_prog_compiler_can_build_shared_CXX=no
10853fi
10854
10855fi
10856case "$host_os" in
10857 # For platforms which do not support PIC, -DPIC is meaningless:
10858 *djgpp*)
10859 lt_prog_compiler_pic_CXX=
10860 ;;
10861 *)
10862 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10863 ;;
10864esac
10865
10866echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10867echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10868if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 lt_cv_prog_compiler_c_o_CXX=no
10872 $rm -r conftest 2>/dev/null
10873 mkdir conftest
10874 cd conftest
10875 mkdir out
10876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10877
10878 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10879 # that will create temporary files in the current directory regardless of
10880 # the output directory. Thus, making CWD read-only will cause this test
10881 # to fail, enabling locking or at least warning the user not to do parallel
10882 # builds.
10883 chmod -w .
10884
10885 lt_compiler_flag="-o out/conftest2.$ac_objext"
10886 # Insert the option either (1) after the last *FLAGS variable, or
10887 # (2) before a word containing "conftest.", or (3) at the end.
10888 # Note that $ac_compile itself does not contain backslashes and begins
10889 # with a dollar sign (not a hyphen), so the echo should work correctly.
10890 lt_compile=`echo "$ac_compile" | $SED \
10891 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10893 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +000010894 (eval echo "\"\$as_me:10894: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010895 (eval "$lt_compile" 2>out/conftest.err)
10896 ac_status=$?
10897 cat out/conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +000010898 echo "$as_me:10898: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10900 then
10901 # The compiler can only warn and ignore the option if not recognized
10902 # So say no if there are warnings
10903 if test ! -s out/conftest.err; then
10904 lt_cv_prog_compiler_c_o_CXX=yes
10905 fi
10906 fi
10907 chmod u+w .
10908 $rm conftest* out/*
10909 rmdir out
10910 cd ..
10911 rmdir conftest
10912 $rm conftest*
10913
10914fi
10915echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10916echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10917
10918
10919hard_links="nottested"
10920if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10921 # do not overwrite the value of need_locks provided by the user
10922 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10923echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10924 hard_links=yes
10925 $rm conftest*
10926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10927 touch conftest.a
10928 ln conftest.a conftest.b 2>&5 || hard_links=no
10929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10930 echo "$as_me:$LINENO: result: $hard_links" >&5
10931echo "${ECHO_T}$hard_links" >&6
10932 if test "$hard_links" = no; then
10933 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10934echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10935 need_locks=warn
10936 fi
10937else
10938 need_locks=no
10939fi
10940
10941echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10942echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10943
10944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945 case $host_os in
10946 aix4* | aix5*)
10947 # If we're using GNU nm, then we don't want the "-C" option.
10948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10950 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'
10951 else
10952 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'
10953 fi
10954 ;;
10955 pw32*)
10956 export_symbols_cmds_CXX="$ltdll_cmds"
10957 ;;
10958 cygwin* | mingw*)
10959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10960 ;;
10961 *)
10962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10963 ;;
10964 esac
10965
10966echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10967echo "${ECHO_T}$ld_shlibs_CXX" >&6
10968test "$ld_shlibs_CXX" = no && can_build_shared=no
10969
10970variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10971if test "$GCC" = yes; then
10972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10973fi
10974
10975#
10976# Do we need to explicitly link libc?
10977#
10978case "x$archive_cmds_need_lc_CXX" in
10979x|xyes)
10980 # Assume -lc should be added
10981 archive_cmds_need_lc_CXX=yes
10982
10983 if test "$enable_shared" = yes && test "$GCC" = yes; then
10984 case $archive_cmds_CXX in
10985 *'~'*)
10986 # FIXME: we may have to deal with multi-command sequences.
10987 ;;
10988 '$CC '*)
10989 # Test whether the compiler implicitly links with -lc since on some
10990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10991 # to ld, don't add -lc before -lgcc.
10992 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10993echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10994 $rm conftest*
10995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10996
10997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998 (eval $ac_compile) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } 2>conftest.err; then
11002 soname=conftest
11003 lib=conftest
11004 libobjs=conftest.$ac_objext
11005 deplibs=
11006 wl=$lt_prog_compiler_wl_CXX
11007 compiler_flags=-v
11008 linker_flags=-v
11009 verstring=
11010 output_objdir=.
11011 libname=conftest
11012 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11013 allow_undefined_flag_CXX=
11014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11015 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }
11019 then
11020 archive_cmds_need_lc_CXX=no
11021 else
11022 archive_cmds_need_lc_CXX=yes
11023 fi
11024 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11025 else
11026 cat conftest.err 1>&5
11027 fi
11028 $rm conftest*
11029 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11030echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11031 ;;
11032 esac
11033 fi
11034 ;;
11035esac
11036
11037echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11038echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11039hardcode_action_CXX=
11040if test -n "$hardcode_libdir_flag_spec_CXX" || \
11041 test -n "$runpath_var CXX" || \
11042 test "X$hardcode_automatic_CXX"="Xyes" ; then
11043
11044 # We can hardcode non-existant directories.
11045 if test "$hardcode_direct_CXX" != no &&
11046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11047 # have to relink, otherwise we might link with an installed library
11048 # when we should be linking with a yet-to-be-installed one
11049 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11050 test "$hardcode_minus_L_CXX" != no; then
11051 # Linking always hardcodes the temporary library directory.
11052 hardcode_action_CXX=relink
11053 else
11054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11055 hardcode_action_CXX=immediate
11056 fi
11057else
11058 # We cannot hardcode anything, or else we can only hardcode existing
11059 # directories.
11060 hardcode_action_CXX=unsupported
11061fi
11062echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11063echo "${ECHO_T}$hardcode_action_CXX" >&6
11064
11065if test "$hardcode_action_CXX" = relink; then
11066 # Fast installation is not supported
11067 enable_fast_install=no
11068elif test "$shlibpath_overrides_runpath" = yes ||
11069 test "$enable_shared" = no; then
11070 # Fast installation is not necessary
11071 enable_fast_install=needless
11072fi
11073
11074striplib=
11075old_striplib=
11076echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11077echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11078if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11079 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11080 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11081 echo "$as_me:$LINENO: result: yes" >&5
11082echo "${ECHO_T}yes" >&6
11083else
11084# FIXME - insert some real tests, host_os isn't really good enough
11085 case $host_os in
11086 darwin*)
11087 if test -n "$STRIP" ; then
11088 striplib="$STRIP -x"
11089 echo "$as_me:$LINENO: result: yes" >&5
11090echo "${ECHO_T}yes" >&6
11091 else
11092 echo "$as_me:$LINENO: result: no" >&5
11093echo "${ECHO_T}no" >&6
11094fi
11095 ;;
11096 *)
11097 echo "$as_me:$LINENO: result: no" >&5
11098echo "${ECHO_T}no" >&6
11099 ;;
11100 esac
11101fi
11102
11103echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11104echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11105library_names_spec=
11106libname_spec='lib$name'
11107soname_spec=
11108shrext=".so"
11109postinstall_cmds=
11110postuninstall_cmds=
11111finish_cmds=
11112finish_eval=
11113shlibpath_var=
11114shlibpath_overrides_runpath=unknown
11115version_type=none
11116dynamic_linker="$host_os ld.so"
11117sys_lib_dlsearch_path_spec="/lib /usr/lib"
11118if test "$GCC" = yes; then
11119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11120 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11121 # if the path contains ";" then we assume it to be the separator
11122 # otherwise default to the standard path separator (i.e. ":") - it is
11123 # assumed that no part of a normal pathname contains ";" but that should
11124 # okay in the real world where ";" in dirpaths is itself problematic.
11125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11126 else
11127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11128 fi
11129else
11130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11131fi
11132need_lib_prefix=unknown
11133hardcode_into_libs=no
11134
11135# when you set need_version to no, make sure it does not cause -set_version
11136# flags to be left without arguments
11137need_version=unknown
11138
11139case $host_os in
11140aix3*)
11141 version_type=linux
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11143 shlibpath_var=LIBPATH
11144
11145 # AIX 3 has no versioning support, so we append a major version to the name.
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 ;;
11148
11149aix4* | aix5*)
11150 version_type=linux
11151 need_lib_prefix=no
11152 need_version=no
11153 hardcode_into_libs=yes
11154 if test "$host_cpu" = ia64; then
11155 # AIX 5 supports IA64
11156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 else
11159 # With GCC up to 2.95.x, collect2 would create an import file
11160 # for dependence libraries. The import file would start with
11161 # the line `#! .'. This would cause the generated library to
11162 # depend on `.', always an invalid library. This was fixed in
11163 # development snapshots of GCC prior to 3.0.
11164 case $host_os in
11165 aix4 | aix4.[01] | aix4.[01].*)
11166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11167 echo ' yes '
11168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11169 :
11170 else
11171 can_build_shared=no
11172 fi
11173 ;;
11174 esac
11175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11176 # soname into executable. Probably we can add versioning support to
11177 # collect2, so additional links can be useful in future.
11178 if test "$aix_use_runtimelinking" = yes; then
11179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11180 # instead of lib<name>.a to let people know that these are not
11181 # typical AIX shared libraries.
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 else
11184 # We preserve .a as extension for shared libraries through AIX4.2
11185 # and later when we are not doing run time linking.
11186 library_names_spec='${libname}${release}.a $libname.a'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 fi
11189 shlibpath_var=LIBPATH
11190 fi
11191 ;;
11192
11193amigaos*)
11194 library_names_spec='$libname.ixlibrary $libname.a'
11195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196 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'
11197 ;;
11198
11199beos*)
11200 library_names_spec='${libname}${shared_ext}'
11201 dynamic_linker="$host_os ld.so"
11202 shlibpath_var=LIBRARY_PATH
11203 ;;
11204
11205bsdi4*)
11206 version_type=linux
11207 need_version=no
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11214 # the default ld.so.conf also contains /usr/contrib/lib and
11215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11216 # libtool to hard-code these into programs
11217 ;;
11218
11219cygwin* | mingw* | pw32*)
11220 version_type=windows
11221 shrext=".dll"
11222 need_version=no
11223 need_lib_prefix=no
11224
11225 case $GCC,$host_os in
11226 yes,cygwin* | yes,mingw* | yes,pw32*)
11227 library_names_spec='$libname.dll.a'
11228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11229 postinstall_cmds='base_file=`basename \${file}`~
11230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11231 dldir=$destdir/`dirname \$dlpath`~
11232 test -d \$dldir || mkdir -p \$dldir~
11233 $install_prog $dir/$dlname \$dldir/$dlname'
11234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235 dlpath=$dir/\$dldll~
11236 $rm \$dlpath'
11237 shlibpath_overrides_runpath=yes
11238
11239 case $host_os in
11240 cygwin*)
11241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11244 ;;
11245 mingw*)
11246 # MinGW DLLs use traditional 'lib' prefix
11247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11248 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11249 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11250 # It is most probably a Windows format PATH printed by
11251 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11252 # path with ; separators, and with drive letters. We can handle the
11253 # drive letters (cygwin fileutils understands them), so leave them,
11254 # especially as we might pass files found there to a mingw objdump,
11255 # which wouldn't understand a cygwinified path. Ahh.
11256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11257 else
11258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11259 fi
11260 ;;
11261 pw32*)
11262 # pw32 DLLs use 'pw' prefix rather than 'lib'
11263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11264 ;;
11265 esac
11266 ;;
11267
11268 *)
11269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11270 ;;
11271 esac
11272 dynamic_linker='Win32 ld.exe'
11273 # FIXME: first we should search . and the directory the executable is in
11274 shlibpath_var=PATH
11275 ;;
11276
11277darwin* | rhapsody*)
11278 dynamic_linker="$host_os dyld"
11279 version_type=darwin
11280 need_lib_prefix=no
11281 need_version=no
11282 # FIXME: Relying on posixy $() will cause problems for
11283 # cross-compilation, but unfortunately the echo tests do not
11284 # yet detect zsh echo's removal of \ escapes.
11285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11286 soname_spec='${libname}${release}${major}$shared_ext'
11287 shlibpath_overrides_runpath=yes
11288 shlibpath_var=DYLD_LIBRARY_PATH
11289 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11290 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11291 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11292 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"`
11293 fi
11294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11295 ;;
11296
11297dgux*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 ;;
11305
11306freebsd1*)
11307 dynamic_linker=no
11308 ;;
11309
11310freebsd*)
11311 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11312 version_type=freebsd-$objformat
11313 case $version_type in
11314 freebsd-elf*)
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11316 need_version=no
11317 need_lib_prefix=no
11318 ;;
11319 freebsd-*)
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11321 need_version=yes
11322 ;;
11323 esac
11324 shlibpath_var=LD_LIBRARY_PATH
11325 case $host_os in
11326 freebsd2*)
11327 shlibpath_overrides_runpath=yes
11328 ;;
11329 freebsd3.01* | freebsdelf3.01*)
11330 shlibpath_overrides_runpath=yes
11331 hardcode_into_libs=yes
11332 ;;
11333 *) # from 3.2 on
11334 shlibpath_overrides_runpath=no
11335 hardcode_into_libs=yes
11336 ;;
11337 esac
11338 ;;
11339
11340gnu*)
11341 version_type=linux
11342 need_lib_prefix=no
11343 need_version=no
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 hardcode_into_libs=yes
11348 ;;
11349
11350hpux9* | hpux10* | hpux11*)
11351 # Give a soname corresponding to the major version so that dld.sl refuses to
11352 # link against other versions.
11353 version_type=sunos
11354 need_lib_prefix=no
11355 need_version=no
11356 case "$host_cpu" in
11357 ia64*)
11358 shrext='.so'
11359 hardcode_into_libs=yes
11360 dynamic_linker="$host_os dld.so"
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 if test "X$HPUX_IA64_MODE" = X32; then
11366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11367 else
11368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11369 fi
11370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371 ;;
11372 hppa*64*)
11373 shrext='.sl'
11374 hardcode_into_libs=yes
11375 dynamic_linker="$host_os dld.sl"
11376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11382 ;;
11383 *)
11384 shrext='.sl'
11385 dynamic_linker="$host_os dld.sl"
11386 shlibpath_var=SHLIB_PATH
11387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 ;;
11391 esac
11392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11393 postinstall_cmds='chmod 555 $lib'
11394 ;;
11395
11396irix5* | irix6* | nonstopux*)
11397 case $host_os in
11398 nonstopux*) version_type=nonstopux ;;
11399 *)
11400 if test "$lt_cv_prog_gnu_ld" = yes; then
11401 version_type=linux
11402 else
11403 version_type=irix
11404 fi ;;
11405 esac
11406 need_lib_prefix=no
11407 need_version=no
11408 soname_spec='${libname}${release}${shared_ext}$major'
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11410 case $host_os in
11411 irix5* | nonstopux*)
11412 libsuff= shlibsuff=
11413 ;;
11414 *)
11415 case $LD in # libtool.m4 will add one of these switches to LD
11416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11417 libsuff= shlibsuff= libmagic=32-bit;;
11418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11419 libsuff=32 shlibsuff=N32 libmagic=N32;;
11420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11422 *) libsuff= shlibsuff= libmagic=never-match;;
11423 esac
11424 ;;
11425 esac
11426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11427 shlibpath_overrides_runpath=no
11428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11430 hardcode_into_libs=yes
11431 ;;
11432
11433# No shared lib support for Linux oldld, aout, or coff.
11434linux*oldld* | linux*aout* | linux*coff*)
11435 dynamic_linker=no
11436 ;;
11437
11438# This must be Linux ELF.
11439linux*)
11440 version_type=linux
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=no
11448 # This implies no fast_install, which is unacceptable.
11449 # Some rework will be needed to allow for fast_install
11450 # before this can be enabled.
11451 hardcode_into_libs=yes
11452
11453 # We used to test for /lib/ld.so.1 and disable shared libraries on
11454 # powerpc, because MkLinux only supported shared libraries with the
11455 # GNU dynamic linker. Since this was broken with cross compilers,
11456 # most powerpc-linux boxes support dynamic linking these days and
11457 # people can always --disable-shared, the test was removed, and we
11458 # assume the GNU/Linux dynamic linker is in use.
11459 dynamic_linker='GNU/Linux ld.so'
11460 ;;
11461
11462netbsd*)
11463 version_type=sunos
11464 need_lib_prefix=no
11465 need_version=no
11466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469 dynamic_linker='NetBSD (a.out) ld.so'
11470 else
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 dynamic_linker='NetBSD ld.elf_so'
11474 fi
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11478 ;;
11479
11480newsos6)
11481 version_type=linux
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=yes
11485 ;;
11486
11487nto-qnx)
11488 version_type=linux
11489 need_lib_prefix=no
11490 need_version=no
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath=yes
11495 ;;
11496
11497openbsd*)
11498 version_type=sunos
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11505 case $host_os in
11506 openbsd2.[89] | openbsd2.[89].*)
11507 shlibpath_overrides_runpath=no
11508 ;;
11509 *)
11510 shlibpath_overrides_runpath=yes
11511 ;;
11512 esac
11513 else
11514 shlibpath_overrides_runpath=yes
11515 fi
11516 ;;
11517
11518os2*)
11519 libname_spec='$name'
11520 shrext=".dll"
11521 need_lib_prefix=no
11522 library_names_spec='$libname${shared_ext} $libname.a'
11523 dynamic_linker='OS/2 ld.exe'
11524 shlibpath_var=LIBPATH
11525 ;;
11526
11527osf3* | osf4* | osf5*)
11528 version_type=osf
11529 need_lib_prefix=no
11530 need_version=no
11531 soname_spec='${libname}${release}${shared_ext}$major'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11536 ;;
11537
11538sco3.2v5*)
11539 version_type=osf
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 ;;
11544
11545solaris*)
11546 version_type=linux
11547 need_lib_prefix=no
11548 need_version=no
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 hardcode_into_libs=yes
11554 # ldd complains unless libraries are executable
11555 postinstall_cmds='chmod +x $lib'
11556 ;;
11557
11558sunos4*)
11559 version_type=sunos
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=yes
11564 if test "$with_gnu_ld" = yes; then
11565 need_lib_prefix=no
11566 fi
11567 need_version=yes
11568 ;;
11569
11570sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11571 version_type=linux
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 case $host_vendor in
11576 sni)
11577 shlibpath_overrides_runpath=no
11578 need_lib_prefix=no
11579 export_dynamic_flag_spec='${wl}-Blargedynsym'
11580 runpath_var=LD_RUN_PATH
11581 ;;
11582 siemens)
11583 need_lib_prefix=no
11584 ;;
11585 motorola)
11586 need_lib_prefix=no
11587 need_version=no
11588 shlibpath_overrides_runpath=no
11589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11590 ;;
11591 esac
11592 ;;
11593
11594sysv4*MP*)
11595 if test -d /usr/nec ;then
11596 version_type=linux
11597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11598 soname_spec='$libname${shared_ext}.$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 fi
11601 ;;
11602
11603uts4*)
11604 version_type=linux
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 ;;
11609
11610*)
11611 dynamic_linker=no
11612 ;;
11613esac
11614echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11615echo "${ECHO_T}$dynamic_linker" >&6
11616test "$dynamic_linker" = no && can_build_shared=no
11617
11618if test "x$enable_dlopen" != xyes; then
11619 enable_dlopen=unknown
11620 enable_dlopen_self=unknown
11621 enable_dlopen_self_static=unknown
11622else
11623 lt_cv_dlopen=no
11624 lt_cv_dlopen_libs=
11625
11626 case $host_os in
11627 beos*)
11628 lt_cv_dlopen="load_add_on"
11629 lt_cv_dlopen_libs=
11630 lt_cv_dlopen_self=yes
11631 ;;
11632
11633 mingw* | pw32*)
11634 lt_cv_dlopen="LoadLibrary"
11635 lt_cv_dlopen_libs=
11636 ;;
11637
11638 cygwin*)
11639 lt_cv_dlopen="dlopen"
11640 lt_cv_dlopen_libs=
11641 ;;
11642
11643 darwin*)
11644 # if libdl is installed we need to link against it
11645 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11646echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11647if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650 ac_check_lib_save_LIBS=$LIBS
11651LIBS="-ldl $LIBS"
11652cat >conftest.$ac_ext <<_ACEOF
11653#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011659
11660/* Override any gcc2 internal prototype to avoid an error. */
11661#ifdef __cplusplus
11662extern "C"
11663#endif
11664/* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011667int
11668main ()
11669{
11670dlopen ();
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext conftest$ac_exeext
11676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_lib_dl_dlopen=yes
11688else
11689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011690sed 's/^/| /' conftest.$ac_ext >&5
11691
John Criswell47fdd832003-07-14 16:52:07 +000011692ac_cv_lib_dl_dlopen=no
11693fi
11694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695LIBS=$ac_check_lib_save_LIBS
11696fi
11697echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11698echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11699if test $ac_cv_lib_dl_dlopen = yes; then
11700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11701else
11702
11703 lt_cv_dlopen="dyld"
11704 lt_cv_dlopen_libs=
11705 lt_cv_dlopen_self=yes
11706
11707fi
11708
11709 ;;
11710
11711 *)
11712 echo "$as_me:$LINENO: checking for shl_load" >&5
11713echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11714if test "${ac_cv_func_shl_load+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 cat >conftest.$ac_ext <<_ACEOF
11718#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011724/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011725 which can conflict with char shl_load (); below.
11726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11727 <limits.h> exists even on freestanding compilers. */
11728#ifdef __STDC__
11729# include <limits.h>
11730#else
11731# include <assert.h>
11732#endif
John Criswell47fdd832003-07-14 16:52:07 +000011733/* Override any gcc2 internal prototype to avoid an error. */
11734#ifdef __cplusplus
11735extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011736{
John Criswell47fdd832003-07-14 16:52:07 +000011737#endif
11738/* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011741/* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744#if defined (__stub_shl_load) || defined (__stub___shl_load)
11745choke me
11746#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011747char (*f) () = shl_load;
11748#endif
11749#ifdef __cplusplus
11750}
John Criswell47fdd832003-07-14 16:52:07 +000011751#endif
11752
John Criswell0c38eaf2003-09-10 15:17:25 +000011753int
11754main ()
11755{
11756return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011757 ;
11758 return 0;
11759}
11760_ACEOF
11761rm -f conftest.$ac_objext conftest$ac_exeext
11762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763 (eval $ac_link) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -s conftest$ac_exeext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_cv_func_shl_load=yes
11774else
11775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011776sed 's/^/| /' conftest.$ac_ext >&5
11777
John Criswell47fdd832003-07-14 16:52:07 +000011778ac_cv_func_shl_load=no
11779fi
11780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11781fi
11782echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11783echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11784if test $ac_cv_func_shl_load = yes; then
11785 lt_cv_dlopen="shl_load"
11786else
11787 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 ac_check_lib_save_LIBS=$LIBS
11793LIBS="-ldld $LIBS"
11794cat >conftest.$ac_ext <<_ACEOF
11795#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011801
11802/* Override any gcc2 internal prototype to avoid an error. */
11803#ifdef __cplusplus
11804extern "C"
11805#endif
11806/* We use char because int might match the return type of a gcc2
11807 builtin and then its argument prototype would still apply. */
11808char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011809int
11810main ()
11811{
11812shl_load ();
11813 ;
11814 return 0;
11815}
11816_ACEOF
11817rm -f conftest.$ac_objext conftest$ac_exeext
11818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819 (eval $ac_link) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -s conftest$ac_exeext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 ac_cv_lib_dld_shl_load=yes
11830else
11831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011832sed 's/^/| /' conftest.$ac_ext >&5
11833
John Criswell47fdd832003-07-14 16:52:07 +000011834ac_cv_lib_dld_shl_load=no
11835fi
11836rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11837LIBS=$ac_check_lib_save_LIBS
11838fi
11839echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11840echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11841if test $ac_cv_lib_dld_shl_load = yes; then
11842 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11843else
11844 echo "$as_me:$LINENO: checking for dlopen" >&5
11845echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11846if test "${ac_cv_func_dlopen+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
11849 cat >conftest.$ac_ext <<_ACEOF
11850#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011856/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011857 which can conflict with char dlopen (); below.
11858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11859 <limits.h> exists even on freestanding compilers. */
11860#ifdef __STDC__
11861# include <limits.h>
11862#else
11863# include <assert.h>
11864#endif
John Criswell47fdd832003-07-14 16:52:07 +000011865/* Override any gcc2 internal prototype to avoid an error. */
11866#ifdef __cplusplus
11867extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011868{
John Criswell47fdd832003-07-14 16:52:07 +000011869#endif
11870/* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11872char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011873/* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876#if defined (__stub_dlopen) || defined (__stub___dlopen)
11877choke me
11878#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011879char (*f) () = dlopen;
11880#endif
11881#ifdef __cplusplus
11882}
John Criswell47fdd832003-07-14 16:52:07 +000011883#endif
11884
John Criswell0c38eaf2003-09-10 15:17:25 +000011885int
11886main ()
11887{
11888return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011889 ;
11890 return 0;
11891}
11892_ACEOF
11893rm -f conftest.$ac_objext conftest$ac_exeext
11894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895 (eval $ac_link) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_func_dlopen=yes
11906else
11907 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011908sed 's/^/| /' conftest.$ac_ext >&5
11909
John Criswell47fdd832003-07-14 16:52:07 +000011910ac_cv_func_dlopen=no
11911fi
11912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11913fi
11914echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11915echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11916if test $ac_cv_func_dlopen = yes; then
11917 lt_cv_dlopen="dlopen"
11918else
11919 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11920echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11921if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924 ac_check_lib_save_LIBS=$LIBS
11925LIBS="-ldl $LIBS"
11926cat >conftest.$ac_ext <<_ACEOF
11927#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011928/* confdefs.h. */
11929_ACEOF
11930cat confdefs.h >>conftest.$ac_ext
11931cat >>conftest.$ac_ext <<_ACEOF
11932/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011933
11934/* Override any gcc2 internal prototype to avoid an error. */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938/* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011941int
11942main ()
11943{
11944dlopen ();
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext conftest$ac_exeext
11950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest$ac_exeext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_lib_dl_dlopen=yes
11962else
11963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011964sed 's/^/| /' conftest.$ac_ext >&5
11965
John Criswell47fdd832003-07-14 16:52:07 +000011966ac_cv_lib_dl_dlopen=no
11967fi
11968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11969LIBS=$ac_check_lib_save_LIBS
11970fi
11971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11972echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11973if test $ac_cv_lib_dl_dlopen = yes; then
11974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11975else
11976 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11977echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11978if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980else
11981 ac_check_lib_save_LIBS=$LIBS
11982LIBS="-lsvld $LIBS"
11983cat >conftest.$ac_ext <<_ACEOF
11984#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011990
11991/* Override any gcc2 internal prototype to avoid an error. */
11992#ifdef __cplusplus
11993extern "C"
11994#endif
11995/* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11997char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011998int
11999main ()
12000{
12001dlopen ();
12002 ;
12003 return 0;
12004}
12005_ACEOF
12006rm -f conftest.$ac_objext conftest$ac_exeext
12007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 ac_cv_lib_svld_dlopen=yes
12019else
12020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012021sed 's/^/| /' conftest.$ac_ext >&5
12022
John Criswell47fdd832003-07-14 16:52:07 +000012023ac_cv_lib_svld_dlopen=no
12024fi
12025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12026LIBS=$ac_check_lib_save_LIBS
12027fi
12028echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12029echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12030if test $ac_cv_lib_svld_dlopen = yes; then
12031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12032else
12033 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12034echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12035if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038 ac_check_lib_save_LIBS=$LIBS
12039LIBS="-ldld $LIBS"
12040cat >conftest.$ac_ext <<_ACEOF
12041#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012047
12048/* Override any gcc2 internal prototype to avoid an error. */
12049#ifdef __cplusplus
12050extern "C"
12051#endif
12052/* We use char because int might match the return type of a gcc2
12053 builtin and then its argument prototype would still apply. */
12054char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012055int
12056main ()
12057{
12058dld_link ();
12059 ;
12060 return 0;
12061}
12062_ACEOF
12063rm -f conftest.$ac_objext conftest$ac_exeext
12064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065 (eval $ac_link) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -s conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_lib_dld_dld_link=yes
12076else
12077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012078sed 's/^/| /' conftest.$ac_ext >&5
12079
John Criswell47fdd832003-07-14 16:52:07 +000012080ac_cv_lib_dld_dld_link=no
12081fi
12082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12083LIBS=$ac_check_lib_save_LIBS
12084fi
12085echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12086echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12087if test $ac_cv_lib_dld_dld_link = yes; then
12088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12089fi
12090
12091
12092fi
12093
12094
12095fi
12096
12097
12098fi
12099
12100
12101fi
12102
12103
12104fi
12105
12106 ;;
12107 esac
12108
12109 if test "x$lt_cv_dlopen" != xno; then
12110 enable_dlopen=yes
12111 else
12112 enable_dlopen=no
12113 fi
12114
12115 case $lt_cv_dlopen in
12116 dlopen)
12117 save_CPPFLAGS="$CPPFLAGS"
12118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12119
12120 save_LDFLAGS="$LDFLAGS"
12121 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12122
12123 save_LIBS="$LIBS"
12124 LIBS="$lt_cv_dlopen_libs $LIBS"
12125
12126 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12127echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12128if test "${lt_cv_dlopen_self+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130else
12131 if test "$cross_compiling" = yes; then :
12132 lt_cv_dlopen_self=cross
12133else
12134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135 lt_status=$lt_dlunknown
12136 cat > conftest.$ac_ext <<EOF
John Criswell559a6c12003-09-30 16:31:48 +000012137#line 12137 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012138#include "confdefs.h"
12139
12140#if HAVE_DLFCN_H
12141#include <dlfcn.h>
12142#endif
12143
12144#include <stdio.h>
12145
12146#ifdef RTLD_GLOBAL
12147# define LT_DLGLOBAL RTLD_GLOBAL
12148#else
12149# ifdef DL_GLOBAL
12150# define LT_DLGLOBAL DL_GLOBAL
12151# else
12152# define LT_DLGLOBAL 0
12153# endif
12154#endif
12155
12156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157 find out it does not work in some platform. */
12158#ifndef LT_DLLAZY_OR_NOW
12159# ifdef RTLD_LAZY
12160# define LT_DLLAZY_OR_NOW RTLD_LAZY
12161# else
12162# ifdef DL_LAZY
12163# define LT_DLLAZY_OR_NOW DL_LAZY
12164# else
12165# ifdef RTLD_NOW
12166# define LT_DLLAZY_OR_NOW RTLD_NOW
12167# else
12168# ifdef DL_NOW
12169# define LT_DLLAZY_OR_NOW DL_NOW
12170# else
12171# define LT_DLLAZY_OR_NOW 0
12172# endif
12173# endif
12174# endif
12175# endif
12176#endif
12177
12178#ifdef __cplusplus
12179extern "C" void exit (int);
12180#endif
12181
12182void fnord() { int i=42;}
12183int main ()
12184{
12185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12186 int status = $lt_dlunknown;
12187
12188 if (self)
12189 {
12190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12192 /* dlclose (self); */
12193 }
12194
12195 exit (status);
12196}
12197EOF
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12203 (./conftest; exit; ) 2>/dev/null
12204 lt_status=$?
12205 case x$lt_status in
12206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12208 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12209 esac
12210 else :
12211 # compilation failed
12212 lt_cv_dlopen_self=no
12213 fi
12214fi
12215rm -fr conftest*
12216
12217
12218fi
12219echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12220echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12221
12222 if test "x$lt_cv_dlopen_self" = xyes; then
12223 LDFLAGS="$LDFLAGS $link_static_flag"
12224 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12225echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12226if test "${lt_cv_dlopen_self_static+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 if test "$cross_compiling" = yes; then :
12230 lt_cv_dlopen_self_static=cross
12231else
12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233 lt_status=$lt_dlunknown
12234 cat > conftest.$ac_ext <<EOF
John Criswell559a6c12003-09-30 16:31:48 +000012235#line 12235 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012236#include "confdefs.h"
12237
12238#if HAVE_DLFCN_H
12239#include <dlfcn.h>
12240#endif
12241
12242#include <stdio.h>
12243
12244#ifdef RTLD_GLOBAL
12245# define LT_DLGLOBAL RTLD_GLOBAL
12246#else
12247# ifdef DL_GLOBAL
12248# define LT_DLGLOBAL DL_GLOBAL
12249# else
12250# define LT_DLGLOBAL 0
12251# endif
12252#endif
12253
12254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255 find out it does not work in some platform. */
12256#ifndef LT_DLLAZY_OR_NOW
12257# ifdef RTLD_LAZY
12258# define LT_DLLAZY_OR_NOW RTLD_LAZY
12259# else
12260# ifdef DL_LAZY
12261# define LT_DLLAZY_OR_NOW DL_LAZY
12262# else
12263# ifdef RTLD_NOW
12264# define LT_DLLAZY_OR_NOW RTLD_NOW
12265# else
12266# ifdef DL_NOW
12267# define LT_DLLAZY_OR_NOW DL_NOW
12268# else
12269# define LT_DLLAZY_OR_NOW 0
12270# endif
12271# endif
12272# endif
12273# endif
12274#endif
12275
12276#ifdef __cplusplus
12277extern "C" void exit (int);
12278#endif
12279
12280void fnord() { int i=42;}
12281int main ()
12282{
12283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284 int status = $lt_dlunknown;
12285
12286 if (self)
12287 {
12288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12290 /* dlclose (self); */
12291 }
12292
12293 exit (status);
12294}
12295EOF
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12301 (./conftest; exit; ) 2>/dev/null
12302 lt_status=$?
12303 case x$lt_status in
12304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12306 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12307 esac
12308 else :
12309 # compilation failed
12310 lt_cv_dlopen_self_static=no
12311 fi
12312fi
12313rm -fr conftest*
12314
12315
12316fi
12317echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12318echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12319 fi
12320
12321 CPPFLAGS="$save_CPPFLAGS"
12322 LDFLAGS="$save_LDFLAGS"
12323 LIBS="$save_LIBS"
12324 ;;
12325 esac
12326
12327 case $lt_cv_dlopen_self in
12328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12329 *) enable_dlopen_self=unknown ;;
12330 esac
12331
12332 case $lt_cv_dlopen_self_static in
12333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12334 *) enable_dlopen_self_static=unknown ;;
12335 esac
12336fi
12337
12338
12339# The else clause should only fire when bootstrapping the
12340# libtool distribution, otherwise you forgot to ship ltmain.sh
12341# with your package, and you will get complaints that there are
12342# no rules to generate ltmain.sh.
12343if test -f "$ltmain"; then
12344 # See if we are running on zsh, and set the options which allow our commands through
12345 # without removal of \ escapes.
12346 if test -n "${ZSH_VERSION+set}" ; then
12347 setopt NO_GLOB_SUBST
12348 fi
12349 # Now quote all the things that may contain metacharacters while being
12350 # careful not to overquote the AC_SUBSTed values. We take copies of the
12351 # variables and quote the copies for generation of the libtool script.
12352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12353 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12354 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12355 deplibs_check_method reload_flag reload_cmds need_locks \
12356 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12357 lt_cv_sys_global_symbol_to_c_name_address \
12358 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12359 old_postinstall_cmds old_postuninstall_cmds \
12360 compiler_CXX \
12361 CC_CXX \
12362 LD_CXX \
12363 lt_prog_compiler_wl_CXX \
12364 lt_prog_compiler_pic_CXX \
12365 lt_prog_compiler_static_CXX \
12366 lt_prog_compiler_no_builtin_flag_CXX \
12367 export_dynamic_flag_spec_CXX \
12368 thread_safe_flag_spec_CXX \
12369 whole_archive_flag_spec_CXX \
12370 enable_shared_with_static_runtimes_CXX \
12371 old_archive_cmds_CXX \
12372 old_archive_from_new_cmds_CXX \
12373 predep_objects_CXX \
12374 postdep_objects_CXX \
12375 predeps_CXX \
12376 postdeps_CXX \
12377 compiler_lib_search_path_CXX \
12378 archive_cmds_CXX \
12379 archive_expsym_cmds_CXX \
12380 postinstall_cmds_CXX \
12381 postuninstall_cmds_CXX \
12382 old_archive_from_expsyms_cmds_CXX \
12383 allow_undefined_flag_CXX \
12384 no_undefined_flag_CXX \
12385 export_symbols_cmds_CXX \
12386 hardcode_libdir_flag_spec_CXX \
12387 hardcode_libdir_flag_spec_ld_CXX \
12388 hardcode_libdir_separator_CXX \
12389 hardcode_automatic_CXX \
12390 module_cmds_CXX \
12391 module_expsym_cmds_CXX \
12392 lt_cv_prog_compiler_c_o_CXX \
12393 exclude_expsyms_CXX \
12394 include_expsyms_CXX; do
12395
12396 case $var in
12397 old_archive_cmds_CXX | \
12398 old_archive_from_new_cmds_CXX | \
12399 archive_cmds_CXX | \
12400 archive_expsym_cmds_CXX | \
12401 module_cmds_CXX | \
12402 module_expsym_cmds_CXX | \
12403 old_archive_from_expsyms_cmds_CXX | \
12404 export_symbols_cmds_CXX | \
12405 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12406 postinstall_cmds | postuninstall_cmds | \
12407 old_postinstall_cmds | old_postuninstall_cmds | \
12408 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12409 # Double-quote double-evaled strings.
12410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12411 ;;
12412 *)
12413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12414 ;;
12415 esac
12416 done
12417
12418 case $lt_echo in
12419 *'\$0 --fallback-echo"')
12420 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12421 ;;
12422 esac
12423
12424cfgfile="$ofile"
12425
12426 cat <<__EOF__ >> "$cfgfile"
12427# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12428
12429# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12430
12431# Shell to use when invoking shell scripts.
12432SHELL=$lt_SHELL
12433
12434# Whether or not to build shared libraries.
12435build_libtool_libs=$enable_shared
12436
12437# Whether or not to build static libraries.
12438build_old_libs=$enable_static
12439
12440# Whether or not to add -lc for building shared libraries.
12441build_libtool_need_lc=$archive_cmds_need_lc_CXX
12442
12443# Whether or not to disallow shared libs when runtime libs are static
12444allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12445
12446# Whether or not to optimize for fast installation.
12447fast_install=$enable_fast_install
12448
12449# The host system.
12450host_alias=$host_alias
12451host=$host
12452
12453# An echo program that does not interpret backslashes.
12454echo=$lt_echo
12455
12456# The archiver.
12457AR=$lt_AR
12458AR_FLAGS=$lt_AR_FLAGS
12459
12460# A C compiler.
12461LTCC=$lt_LTCC
12462
12463# A language-specific compiler.
12464CC=$lt_compiler_CXX
12465
12466# Is the compiler the GNU C compiler?
12467with_gcc=$GCC_CXX
12468
12469# An ERE matcher.
12470EGREP=$lt_EGREP
12471
12472# The linker used to build libraries.
12473LD=$lt_LD_CXX
12474
12475# Whether we need hard or soft links.
12476LN_S=$lt_LN_S
12477
12478# A BSD-compatible nm program.
12479NM=$lt_NM
12480
12481# A symbol stripping program
12482STRIP=$STRIP
12483
12484# Used to examine libraries when file_magic_cmd begins "file"
12485MAGIC_CMD=$MAGIC_CMD
12486
12487# Used on cygwin: DLL creation program.
12488DLLTOOL="$DLLTOOL"
12489
12490# Used on cygwin: object dumper.
12491OBJDUMP="$OBJDUMP"
12492
12493# Used on cygwin: assembler.
12494AS="$AS"
12495
12496# The name of the directory that contains temporary libtool files.
12497objdir=$objdir
12498
12499# How to create reloadable object files.
12500reload_flag=$lt_reload_flag
12501reload_cmds=$lt_reload_cmds
12502
12503# How to pass a linker flag through the compiler.
12504wl=$lt_lt_prog_compiler_wl_CXX
12505
12506# Object file suffix (normally "o").
12507objext="$ac_objext"
12508
12509# Old archive suffix (normally "a").
12510libext="$libext"
12511
12512# Shared library suffix (normally ".so").
12513shrext='$shrext'
12514
12515# Executable file suffix (normally "").
12516exeext="$exeext"
12517
12518# Additional compiler flags for building library objects.
12519pic_flag=$lt_lt_prog_compiler_pic_CXX
12520pic_mode=$pic_mode
12521
12522# What is the maximum length of a command?
12523max_cmd_len=$lt_cv_sys_max_cmd_len
12524
12525# Does compiler simultaneously support -c and -o options?
12526compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12527
12528# Must we lock files when doing compilation ?
12529need_locks=$lt_need_locks
12530
12531# Do we need the lib prefix for modules?
12532need_lib_prefix=$need_lib_prefix
12533
12534# Do we need a version for libraries?
12535need_version=$need_version
12536
12537# Whether dlopen is supported.
12538dlopen_support=$enable_dlopen
12539
12540# Whether dlopen of programs is supported.
12541dlopen_self=$enable_dlopen_self
12542
12543# Whether dlopen of statically linked programs is supported.
12544dlopen_self_static=$enable_dlopen_self_static
12545
12546# Compiler flag to prevent dynamic linking.
12547link_static_flag=$lt_lt_prog_compiler_static_CXX
12548
12549# Compiler flag to turn off builtin functions.
12550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12551
12552# Compiler flag to allow reflexive dlopens.
12553export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12554
12555# Compiler flag to generate shared objects directly from archives.
12556whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12557
12558# Compiler flag to generate thread-safe objects.
12559thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12560
12561# Library versioning type.
12562version_type=$version_type
12563
12564# Format of library name prefix.
12565libname_spec=$lt_libname_spec
12566
12567# List of archive names. First name is the real one, the rest are links.
12568# The last name is the one that the linker finds with -lNAME.
12569library_names_spec=$lt_library_names_spec
12570
12571# The coded name of the library, if different from the real name.
12572soname_spec=$lt_soname_spec
12573
12574# Commands used to build and install an old-style archive.
12575RANLIB=$lt_RANLIB
12576old_archive_cmds=$lt_old_archive_cmds_CXX
12577old_postinstall_cmds=$lt_old_postinstall_cmds
12578old_postuninstall_cmds=$lt_old_postuninstall_cmds
12579
12580# Create an old-style archive from a shared archive.
12581old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12582
12583# Create a temporary old-style archive to link instead of a shared archive.
12584old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12585
12586# Commands used to build and install a shared archive.
12587archive_cmds=$lt_archive_cmds_CXX
12588archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12589postinstall_cmds=$lt_postinstall_cmds
12590postuninstall_cmds=$lt_postuninstall_cmds
12591
12592# Commands used to build a loadable module (assumed same as above if empty)
12593module_cmds=$lt_module_cmds_CXX
12594module_expsym_cmds=$lt_module_expsym_cmds_CXX
12595
12596# Commands to strip libraries.
12597old_striplib=$lt_old_striplib
12598striplib=$lt_striplib
12599
12600# Dependencies to place before the objects being linked to create a
12601# shared library.
12602predep_objects=$lt_predep_objects_CXX
12603
12604# Dependencies to place after the objects being linked to create a
12605# shared library.
12606postdep_objects=$lt_postdep_objects_CXX
12607
12608# Dependencies to place before the objects being linked to create a
12609# shared library.
12610predeps=$lt_predeps_CXX
12611
12612# Dependencies to place after the objects being linked to create a
12613# shared library.
12614postdeps=$lt_postdeps_CXX
12615
12616# The library search path used internally by the compiler when linking
12617# a shared library.
12618compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12619
12620# Method to check whether dependent libraries are shared objects.
12621deplibs_check_method=$lt_deplibs_check_method
12622
12623# Command to use when deplibs_check_method == file_magic.
12624file_magic_cmd=$lt_file_magic_cmd
12625
12626# Flag that allows shared libraries with undefined symbols to be built.
12627allow_undefined_flag=$lt_allow_undefined_flag_CXX
12628
12629# Flag that forces no undefined symbols.
12630no_undefined_flag=$lt_no_undefined_flag_CXX
12631
12632# Commands used to finish a libtool library installation in a directory.
12633finish_cmds=$lt_finish_cmds
12634
12635# Same as above, but a single script fragment to be evaled but not shown.
12636finish_eval=$lt_finish_eval
12637
12638# Take the output of nm and produce a listing of raw symbols and C names.
12639global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12640
12641# Transform the output of nm in a proper C declaration
12642global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12643
12644# Transform the output of nm in a C name address pair
12645global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12646
12647# This is the shared library runtime path variable.
12648runpath_var=$runpath_var
12649
12650# This is the shared library path variable.
12651shlibpath_var=$shlibpath_var
12652
12653# Is shlibpath searched before the hard-coded library search path?
12654shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12655
12656# How to hardcode a shared library path into an executable.
12657hardcode_action=$hardcode_action_CXX
12658
12659# Whether we should hardcode library paths into libraries.
12660hardcode_into_libs=$hardcode_into_libs
12661
12662# Flag to hardcode \$libdir into a binary during linking.
12663# This must work even if \$libdir does not exist.
12664hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12665
12666# If ld is used when linking, flag to hardcode \$libdir into
12667# a binary during linking. This must work even if \$libdir does
12668# not exist.
12669hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12670
12671# Whether we need a single -rpath flag with a separated argument.
12672hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12673
12674# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12675# resulting binary.
12676hardcode_direct=$hardcode_direct_CXX
12677
12678# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12679# resulting binary.
12680hardcode_minus_L=$hardcode_minus_L_CXX
12681
12682# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12683# the resulting binary.
12684hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12685
12686# Set to yes if building a shared library automatically hardcodes DIR into the library
12687# and all subsequent libraries and executables linked against it.
12688hardcode_automatic=$hardcode_automatic_CXX
12689
12690# Variables whose values should be saved in libtool wrapper scripts and
12691# restored at relink time.
12692variables_saved_for_relink="$variables_saved_for_relink"
12693
12694# Whether libtool must link a program against all its dependency libraries.
12695link_all_deplibs=$link_all_deplibs_CXX
12696
12697# Compile-time system search path for libraries
12698sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12699
12700# Run-time system search path for libraries
12701sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12702
12703# Fix the shell variable \$srcfile for the compiler.
12704fix_srcfile_path="$fix_srcfile_path_CXX"
12705
12706# Set to yes if exported symbols are required.
12707always_export_symbols=$always_export_symbols_CXX
12708
12709# The commands to list exported symbols.
12710export_symbols_cmds=$lt_export_symbols_cmds_CXX
12711
12712# The commands to extract the exported symbol list from a shared archive.
12713extract_expsyms_cmds=$lt_extract_expsyms_cmds
12714
12715# Symbols that should not be listed in the preloaded symbols.
12716exclude_expsyms=$lt_exclude_expsyms_CXX
12717
12718# Symbols that must always be exported.
12719include_expsyms=$lt_include_expsyms_CXX
12720
12721# ### END LIBTOOL TAG CONFIG: $tagname
12722
12723__EOF__
12724
12725
12726else
12727 # If there is no Makefile yet, we rely on a make rule to execute
12728 # `config.status --recheck' to rerun these tests and create the
12729 # libtool script then.
12730 test -f Makefile && make "$ltmain"
12731fi
12732
12733
12734ac_ext=c
12735ac_cpp='$CPP $CPPFLAGS'
12736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739
12740CC=$lt_save_CC
12741LDCXX=$LD
12742LD=$lt_save_LD
12743GCC=$lt_save_GCC
12744with_gnu_ldcxx=$with_gnu_ld
12745with_gnu_ld=$lt_save_with_gnu_ld
12746lt_cv_path_LDCXX=$lt_cv_path_LD
12747lt_cv_path_LD=$lt_save_path_LD
12748lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12749lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12750
12751 else
12752 tagname=""
12753 fi
12754 ;;
12755
12756 F77)
12757 if test -n "$F77" && test "X$F77" != "Xno"; then
12758
12759ac_ext=f
12760ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12761ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12763
12764
12765archive_cmds_need_lc_F77=no
12766allow_undefined_flag_F77=
12767always_export_symbols_F77=no
12768archive_expsym_cmds_F77=
12769export_dynamic_flag_spec_F77=
12770hardcode_direct_F77=no
12771hardcode_libdir_flag_spec_F77=
12772hardcode_libdir_flag_spec_ld_F77=
12773hardcode_libdir_separator_F77=
12774hardcode_minus_L_F77=no
12775hardcode_automatic_F77=no
12776module_cmds_F77=
12777module_expsym_cmds_F77=
12778link_all_deplibs_F77=unknown
12779old_archive_cmds_F77=$old_archive_cmds
12780no_undefined_flag_F77=
12781whole_archive_flag_spec_F77=
12782enable_shared_with_static_runtimes_F77=no
12783
12784# Source file extension for f77 test sources.
12785ac_ext=f
12786
12787# Object file extension for compiled f77 test sources.
12788objext=o
12789objext_F77=$objext
12790
12791# Code to be used in simple compile tests
12792lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12793
12794# Code to be used in simple link tests
12795lt_simple_link_test_code=" program t\n end\n"
12796
12797# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12798
12799# If no C compiler was specified, use CC.
12800LTCC=${LTCC-"$CC"}
12801
12802# Allow CC to be a program name with arguments.
12803compiler=$CC
12804
12805
12806# Allow CC to be a program name with arguments.
12807lt_save_CC="$CC"
12808CC=${F77-"f77"}
12809compiler=$CC
12810compiler_F77=$CC
12811cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12812
12813echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12814echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12815echo "$as_me:$LINENO: result: $can_build_shared" >&5
12816echo "${ECHO_T}$can_build_shared" >&6
12817
12818echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12819echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12820test "$can_build_shared" = "no" && enable_shared=no
12821
12822# On AIX, shared libraries and static libraries use the same namespace, and
12823# are all built from PIC.
12824case "$host_os" in
12825aix3*)
12826 test "$enable_shared" = yes && enable_static=no
12827 if test -n "$RANLIB"; then
12828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12829 postinstall_cmds='$RANLIB $lib'
12830 fi
12831 ;;
12832aix4*)
12833 test "$enable_shared" = yes && enable_static=no
12834 ;;
12835esac
12836echo "$as_me:$LINENO: result: $enable_shared" >&5
12837echo "${ECHO_T}$enable_shared" >&6
12838
12839echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12840echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12841# Make sure either enable_shared or enable_static is yes.
12842test "$enable_shared" = yes || enable_static=yes
12843echo "$as_me:$LINENO: result: $enable_static" >&5
12844echo "${ECHO_T}$enable_static" >&6
12845
12846test "$ld_shlibs_F77" = no && can_build_shared=no
12847
12848GCC_F77="$G77"
12849LD_F77="$LD"
12850
12851lt_prog_compiler_wl_F77=
12852lt_prog_compiler_pic_F77=
12853lt_prog_compiler_static_F77=
12854
12855echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12856echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12857
12858 if test "$GCC" = yes; then
12859 lt_prog_compiler_wl_F77='-Wl,'
12860 lt_prog_compiler_static_F77='-static'
12861
12862 case $host_os in
12863 aix*)
12864 # All AIX code is PIC.
12865 if test "$host_cpu" = ia64; then
12866 # AIX 5 now supports IA64 processor
12867 lt_prog_compiler_static_F77='-Bstatic'
12868 fi
12869 ;;
12870
12871 amigaos*)
12872 # FIXME: we need at least 68020 code to build shared libraries, but
12873 # adding the `-m68020' flag to GCC prevents building anything better,
12874 # like `-m68040'.
12875 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12876 ;;
12877
12878 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12879 # PIC is the default for these OSes.
12880 ;;
12881
12882 mingw* | pw32* | os2*)
12883 # This hack is so that the source file can tell whether it is being
12884 # built for inclusion in a dll (and should export symbols for example).
12885 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12886 ;;
12887
12888 darwin* | rhapsody*)
12889 # PIC is the default on this platform
12890 # Common symbols not allowed in MH_DYLIB files
12891 lt_prog_compiler_pic_F77='-fno-common'
12892 ;;
12893
12894 msdosdjgpp*)
12895 # Just because we use GCC doesn't mean we suddenly get shared libraries
12896 # on systems that don't support them.
12897 lt_prog_compiler_can_build_shared_F77=no
12898 enable_shared=no
12899 ;;
12900
12901 sysv4*MP*)
12902 if test -d /usr/nec; then
12903 lt_prog_compiler_pic_F77=-Kconform_pic
12904 fi
12905 ;;
12906
12907 hpux*)
12908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12909 # not for PA HP-UX.
12910 case "$host_cpu" in
12911 hppa*64*|ia64*)
12912 # +Z the default
12913 ;;
12914 *)
12915 lt_prog_compiler_pic_F77='-fPIC'
12916 ;;
12917 esac
12918 ;;
12919
12920 *)
12921 lt_prog_compiler_pic_F77='-fPIC'
12922 ;;
12923 esac
12924 else
12925 # PORTME Check for flag to pass linker flags through the system compiler.
12926 case $host_os in
12927 aix*)
12928 lt_prog_compiler_wl_F77='-Wl,'
12929 if test "$host_cpu" = ia64; then
12930 # AIX 5 now supports IA64 processor
12931 lt_prog_compiler_static_F77='-Bstatic'
12932 else
12933 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12934 fi
12935 ;;
12936
12937 mingw* | pw32* | os2*)
12938 # This hack is so that the source file can tell whether it is being
12939 # built for inclusion in a dll (and should export symbols for example).
12940 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12941 ;;
12942
12943 hpux9* | hpux10* | hpux11*)
12944 lt_prog_compiler_wl_F77='-Wl,'
12945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12946 # not for PA HP-UX.
12947 case "$host_cpu" in
12948 hppa*64*|ia64*)
12949 # +Z the default
12950 ;;
12951 *)
12952 lt_prog_compiler_pic_F77='+Z'
12953 ;;
12954 esac
12955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12956 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12957 ;;
12958
12959 irix5* | irix6* | nonstopux*)
12960 lt_prog_compiler_wl_F77='-Wl,'
12961 # PIC (with -KPIC) is the default.
12962 lt_prog_compiler_static_F77='-non_shared'
12963 ;;
12964
12965 newsos6)
12966 lt_prog_compiler_pic_F77='-KPIC'
12967 lt_prog_compiler_static_F77='-Bstatic'
12968 ;;
12969
12970 linux*)
12971 case $CC in
12972 icc|ecc)
12973 lt_prog_compiler_wl_F77='-Wl,'
12974 lt_prog_compiler_pic_F77='-KPIC'
12975 lt_prog_compiler_static_F77='-static'
12976 ;;
12977 ccc)
12978 lt_prog_compiler_wl_F77='-Wl,'
12979 # All Alpha code is PIC.
12980 lt_prog_compiler_static_F77='-non_shared'
12981 ;;
12982 esac
12983 ;;
12984
12985 osf3* | osf4* | osf5*)
12986 lt_prog_compiler_wl_F77='-Wl,'
12987 # All OSF/1 code is PIC.
12988 lt_prog_compiler_static_F77='-non_shared'
12989 ;;
12990
12991 sco3.2v5*)
12992 lt_prog_compiler_pic_F77='-Kpic'
12993 lt_prog_compiler_static_F77='-dn'
12994 ;;
12995
12996 solaris*)
12997 lt_prog_compiler_wl_F77='-Wl,'
12998 lt_prog_compiler_pic_F77='-KPIC'
12999 lt_prog_compiler_static_F77='-Bstatic'
13000 ;;
13001
13002 sunos4*)
13003 lt_prog_compiler_wl_F77='-Qoption ld '
13004 lt_prog_compiler_pic_F77='-PIC'
13005 lt_prog_compiler_static_F77='-Bstatic'
13006 ;;
13007
13008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13009 lt_prog_compiler_wl_F77='-Wl,'
13010 lt_prog_compiler_pic_F77='-KPIC'
13011 lt_prog_compiler_static_F77='-Bstatic'
13012 ;;
13013
13014 sysv4*MP*)
13015 if test -d /usr/nec ;then
13016 lt_prog_compiler_pic_F77='-Kconform_pic'
13017 lt_prog_compiler_static_F77='-Bstatic'
13018 fi
13019 ;;
13020
13021 uts4*)
13022 lt_prog_compiler_pic_F77='-pic'
13023 lt_prog_compiler_static_F77='-Bstatic'
13024 ;;
13025
13026 *)
13027 lt_prog_compiler_can_build_shared_F77=no
13028 ;;
13029 esac
13030 fi
13031
13032echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13033echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13034
13035#
13036# Check to make sure the PIC flag actually works.
13037#
13038if test -n "$lt_prog_compiler_pic_F77"; then
13039 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13040echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13041if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043else
13044 lt_prog_compiler_pic_works_F77=no
13045 ac_outfile=conftest.$ac_objext
13046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13047 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13048 # Insert the option either (1) after the last *FLAGS variable, or
13049 # (2) before a word containing "conftest.", or (3) at the end.
13050 # Note that $ac_compile itself does not contain backslashes and begins
13051 # with a dollar sign (not a hyphen), so the echo should work correctly.
13052 # The option is referenced via a variable to avoid confusing sed.
13053 lt_compile=`echo "$ac_compile" | $SED \
13054 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13056 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +000013057 (eval echo "\"\$as_me:13057: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013058 (eval "$lt_compile" 2>conftest.err)
13059 ac_status=$?
13060 cat conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +000013061 echo "$as_me:13061: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013062 if (exit $ac_status) && test -s "$ac_outfile"; then
13063 # The compiler can only warn and ignore the option if not recognized
13064 # So say no if there are warnings
13065 if test ! -s conftest.err; then
13066 lt_prog_compiler_pic_works_F77=yes
13067 fi
13068 fi
13069 $rm conftest*
13070
13071fi
13072echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13073echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13074
13075if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13076 case $lt_prog_compiler_pic_F77 in
13077 "" | " "*) ;;
13078 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13079 esac
13080else
13081 lt_prog_compiler_pic_F77=
13082 lt_prog_compiler_can_build_shared_F77=no
13083fi
13084
13085fi
13086case "$host_os" in
13087 # For platforms which do not support PIC, -DPIC is meaningless:
13088 *djgpp*)
13089 lt_prog_compiler_pic_F77=
13090 ;;
13091 *)
13092 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13093 ;;
13094esac
13095
13096echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13097echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13098if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100else
13101 lt_cv_prog_compiler_c_o_F77=no
13102 $rm -r conftest 2>/dev/null
13103 mkdir conftest
13104 cd conftest
13105 mkdir out
13106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13107
13108 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13109 # that will create temporary files in the current directory regardless of
13110 # the output directory. Thus, making CWD read-only will cause this test
13111 # to fail, enabling locking or at least warning the user not to do parallel
13112 # builds.
13113 chmod -w .
13114
13115 lt_compiler_flag="-o out/conftest2.$ac_objext"
13116 # Insert the option either (1) after the last *FLAGS variable, or
13117 # (2) before a word containing "conftest.", or (3) at the end.
13118 # Note that $ac_compile itself does not contain backslashes and begins
13119 # with a dollar sign (not a hyphen), so the echo should work correctly.
13120 lt_compile=`echo "$ac_compile" | $SED \
13121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13123 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +000013124 (eval echo "\"\$as_me:13124: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013125 (eval "$lt_compile" 2>out/conftest.err)
13126 ac_status=$?
13127 cat out/conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +000013128 echo "$as_me:13128: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13130 then
13131 # The compiler can only warn and ignore the option if not recognized
13132 # So say no if there are warnings
13133 if test ! -s out/conftest.err; then
13134 lt_cv_prog_compiler_c_o_F77=yes
13135 fi
13136 fi
13137 chmod u+w .
13138 $rm conftest* out/*
13139 rmdir out
13140 cd ..
13141 rmdir conftest
13142 $rm conftest*
13143
13144fi
13145echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13146echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13147
13148
13149hard_links="nottested"
13150if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13151 # do not overwrite the value of need_locks provided by the user
13152 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13153echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13154 hard_links=yes
13155 $rm conftest*
13156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13157 touch conftest.a
13158 ln conftest.a conftest.b 2>&5 || hard_links=no
13159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13160 echo "$as_me:$LINENO: result: $hard_links" >&5
13161echo "${ECHO_T}$hard_links" >&6
13162 if test "$hard_links" = no; then
13163 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13164echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13165 need_locks=warn
13166 fi
13167else
13168 need_locks=no
13169fi
13170
13171echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13172echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13173
13174 runpath_var=
13175 allow_undefined_flag_F77=
13176 enable_shared_with_static_runtimes_F77=no
13177 archive_cmds_F77=
13178 archive_expsym_cmds_F77=
13179 old_archive_From_new_cmds_F77=
13180 old_archive_from_expsyms_cmds_F77=
13181 export_dynamic_flag_spec_F77=
13182 whole_archive_flag_spec_F77=
13183 thread_safe_flag_spec_F77=
13184 hardcode_libdir_flag_spec_F77=
13185 hardcode_libdir_flag_spec_ld_F77=
13186 hardcode_libdir_separator_F77=
13187 hardcode_direct_F77=no
13188 hardcode_minus_L_F77=no
13189 hardcode_shlibpath_var_F77=unsupported
13190 link_all_deplibs_F77=unknown
13191 hardcode_automatic_F77=no
13192 module_cmds_F77=
13193 module_expsym_cmds_F77=
13194 always_export_symbols_F77=no
13195 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13196 # include_expsyms should be a list of space-separated symbols to be *always*
13197 # included in the symbol list
13198 include_expsyms_F77=
13199 # exclude_expsyms can be an extended regexp of symbols to exclude
13200 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13202 # as well as any symbol that contains `d'.
13203 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13205 # platforms (ab)use it in PIC code, but their linkers get confused if
13206 # the symbol is explicitly referenced. Since portable code cannot
13207 # rely on this symbol name, it's probably fine to never include it in
13208 # preloaded symbol tables.
13209 extract_expsyms_cmds=
13210
13211 case $host_os in
13212 cygwin* | mingw* | pw32*)
13213 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13214 # When not using gcc, we currently assume that we are using
13215 # Microsoft Visual C++.
13216 if test "$GCC" != yes; then
13217 with_gnu_ld=no
13218 fi
13219 ;;
13220 openbsd*)
13221 with_gnu_ld=no
13222 ;;
13223 esac
13224
13225 ld_shlibs_F77=yes
13226 if test "$with_gnu_ld" = yes; then
13227 # If archive_cmds runs LD, not CC, wlarc should be empty
13228 wlarc='${wl}'
13229
13230 # See if GNU ld supports shared libraries.
13231 case $host_os in
13232 aix3* | aix4* | aix5*)
13233 # On AIX/PPC, the GNU linker is very broken
13234 if test "$host_cpu" != ia64; then
13235 ld_shlibs_F77=no
13236 cat <<EOF 1>&2
13237
13238*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13239*** to be unable to reliably create shared libraries on AIX.
13240*** Therefore, libtool is disabling shared libraries support. If you
13241*** really care for shared libraries, you may want to modify your PATH
13242*** so that a non-GNU linker is found, and then restart.
13243
13244EOF
13245 fi
13246 ;;
13247
13248 amigaos*)
13249 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)'
13250 hardcode_libdir_flag_spec_F77='-L$libdir'
13251 hardcode_minus_L_F77=yes
13252
13253 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13254 # that the semantics of dynamic libraries on AmigaOS, at least up
13255 # to version 4, is to share data among multiple programs linked
13256 # with the same dynamic library. Since this doesn't match the
13257 # behavior of shared libraries on other platforms, we can't use
13258 # them.
13259 ld_shlibs_F77=no
13260 ;;
13261
13262 beos*)
13263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13264 allow_undefined_flag_F77=unsupported
13265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13266 # support --undefined. This deserves some investigation. FIXME
13267 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268 else
13269 ld_shlibs_F77=no
13270 fi
13271 ;;
13272
13273 cygwin* | mingw* | pw32*)
13274 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13275 # as there is no search path for DLLs.
13276 hardcode_libdir_flag_spec_F77='-L$libdir'
13277 allow_undefined_flag_F77=unsupported
13278 always_export_symbols_F77=no
13279 enable_shared_with_static_runtimes_F77=yes
13280 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13281
13282 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13284 # If the export-symbols file already is a .def file (1st line
13285 # is EXPORTS), use it as is; otherwise, prepend...
13286 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13287 cp $export_symbols $output_objdir/$soname.def;
13288 else
13289 echo EXPORTS > $output_objdir/$soname.def;
13290 cat $export_symbols >> $output_objdir/$soname.def;
13291 fi~
13292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13293 else
13294 ld_shlibs=no
13295 fi
13296 ;;
13297
13298 netbsd*)
13299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13300 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13301 wlarc=
13302 else
13303 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13305 fi
13306 ;;
13307
13308 solaris* | sysv5*)
13309 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13310 ld_shlibs_F77=no
13311 cat <<EOF 1>&2
13312
13313*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13314*** create shared libraries on Solaris systems. Therefore, libtool
13315*** is disabling shared libraries support. We urge you to upgrade GNU
13316*** binutils to release 2.9.1 or newer. Another option is to modify
13317*** your PATH or compiler configuration so that the native linker is
13318*** used, and then restart.
13319
13320EOF
13321 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13322 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13323 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13324 else
13325 ld_shlibs_F77=no
13326 fi
13327 ;;
13328
13329 sunos4*)
13330 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13331 wlarc=
13332 hardcode_direct_F77=yes
13333 hardcode_shlibpath_var_F77=no
13334 ;;
13335
13336 *)
13337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13338 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13339 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13340 else
13341 ld_shlibs_F77=no
13342 fi
13343 ;;
13344 esac
13345
13346 if test "$ld_shlibs_F77" = yes; then
13347 runpath_var=LD_RUN_PATH
13348 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13349 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13350 # ancient GNU ld didn't support --whole-archive et. al.
13351 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13352 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13353 else
13354 whole_archive_flag_spec_F77=
13355 fi
13356 fi
13357 else
13358 # PORTME fill in a description of your system's linker (not GNU ld)
13359 case $host_os in
13360 aix3*)
13361 allow_undefined_flag_F77=unsupported
13362 always_export_symbols_F77=yes
13363 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'
13364 # Note: this linker hardcodes the directories in LIBPATH if there
13365 # are no directories specified by -L.
13366 hardcode_minus_L_F77=yes
13367 if test "$GCC" = yes && test -z "$link_static_flag"; then
13368 # Neither direct hardcoding nor static linking is supported with a
13369 # broken collect2.
13370 hardcode_direct_F77=unsupported
13371 fi
13372 ;;
13373
13374 aix4* | aix5*)
13375 if test "$host_cpu" = ia64; then
13376 # On IA64, the linker does run time linking by default, so we don't
13377 # have to do anything special.
13378 aix_use_runtimelinking=no
13379 exp_sym_flag='-Bexport'
13380 no_entry_flag=""
13381 else
13382 # If we're using GNU nm, then we don't want the "-C" option.
13383 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13384 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13385 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'
13386 else
13387 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'
13388 fi
13389 aix_use_runtimelinking=no
13390
13391 # Test if we are trying to use run time linking or normal
13392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13393 # need to do runtime linking.
13394 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13395 for ld_flag in $LDFLAGS; do
13396 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13397 aix_use_runtimelinking=yes
13398 break
13399 fi
13400 done
13401 esac
13402
13403 exp_sym_flag='-bexport'
13404 no_entry_flag='-bnoentry'
13405 fi
13406
13407 # When large executables or shared objects are built, AIX ld can
13408 # have problems creating the table of contents. If linking a library
13409 # or program results in "error TOC overflow" add -mminimal-toc to
13410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13412
13413 archive_cmds_F77=''
13414 hardcode_direct_F77=yes
13415 hardcode_libdir_separator_F77=':'
13416 link_all_deplibs_F77=yes
13417
13418 if test "$GCC" = yes; then
13419 case $host_os in aix4.012|aix4.012.*)
13420 # We only want to do this on AIX 4.2 and lower, the check
13421 # below for broken collect2 doesn't work under 4.3+
13422 collect2name=`${CC} -print-prog-name=collect2`
13423 if test -f "$collect2name" && \
13424 strings "$collect2name" | grep resolve_lib_name >/dev/null
13425 then
13426 # We have reworked collect2
13427 hardcode_direct_F77=yes
13428 else
13429 # We have old collect2
13430 hardcode_direct_F77=unsupported
13431 # It fails to find uninstalled libraries when the uninstalled
13432 # path is not listed in the libpath. Setting hardcode_minus_L
13433 # to unsupported forces relinking
13434 hardcode_minus_L_F77=yes
13435 hardcode_libdir_flag_spec_F77='-L$libdir'
13436 hardcode_libdir_separator_F77=
13437 fi
13438 esac
13439 shared_flag='-shared'
13440 else
13441 # not using gcc
13442 if test "$host_cpu" = ia64; then
13443 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13444 # chokes on -Wl,-G. The following line is correct:
13445 shared_flag='-G'
13446 else
13447 if test "$aix_use_runtimelinking" = yes; then
13448 shared_flag='${wl}-G'
13449 else
13450 shared_flag='${wl}-bM:SRE'
13451 fi
13452 fi
13453 fi
13454
13455 # It seems that -bexpall does not export symbols beginning with
13456 # underscore (_), so it is better to generate a list of symbols to export.
13457 always_export_symbols_F77=yes
13458 if test "$aix_use_runtimelinking" = yes; then
13459 # Warning - without using the other runtime loading flags (-brtl),
13460 # -berok will link without error, but may produce a broken library.
13461 allow_undefined_flag_F77='-berok'
13462 # Determine the default libpath from the value encoded in an empty executable.
13463 cat >conftest.$ac_ext <<_ACEOF
13464 program main
13465
13466 end
13467_ACEOF
13468rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470 (eval $ac_link) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -s conftest$ac_exeext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480
13481aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13482}'`
13483# Check for a 64-bit object if we didn't find anything.
13484if 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; }
13485}'`; fi
13486else
13487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013488sed 's/^/| /' conftest.$ac_ext >&5
13489
John Criswell47fdd832003-07-14 16:52:07 +000013490fi
13491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13493
13494 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13495 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"
13496 else
13497 if test "$host_cpu" = ia64; then
13498 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13499 allow_undefined_flag_F77="-z nodefs"
13500 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"
13501 else
13502 # Determine the default libpath from the value encoded in an empty executable.
13503 cat >conftest.$ac_ext <<_ACEOF
13504 program main
13505
13506 end
13507_ACEOF
13508rm -f conftest.$ac_objext conftest$ac_exeext
13509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -s conftest$ac_exeext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520
13521aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13522}'`
13523# Check for a 64-bit object if we didn't find anything.
13524if 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; }
13525}'`; fi
13526else
13527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013528sed 's/^/| /' conftest.$ac_ext >&5
13529
John Criswell47fdd832003-07-14 16:52:07 +000013530fi
13531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13533
13534 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13535 # Warning - without using the other run time loading flags,
13536 # -berok will link without error, but may produce a broken library.
13537 no_undefined_flag_F77=' ${wl}-bernotok'
13538 allow_undefined_flag_F77=' ${wl}-berok'
13539 # -bexpall does not export symbols beginning with underscore (_)
13540 always_export_symbols_F77=yes
13541 # Exported symbols can be pulled into shared objects from archives
13542 whole_archive_flag_spec_F77=' '
13543 archive_cmds_need_lc_F77=yes
13544 # This is similar to how AIX traditionally builds it's shared libraries.
13545 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'
13546 fi
13547 fi
13548 ;;
13549
13550 amigaos*)
13551 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)'
13552 hardcode_libdir_flag_spec_F77='-L$libdir'
13553 hardcode_minus_L_F77=yes
13554 # see comment about different semantics on the GNU ld section
13555 ld_shlibs_F77=no
13556 ;;
13557
13558 bsdi4*)
13559 export_dynamic_flag_spec_F77=-rdynamic
13560 ;;
13561
13562 cygwin* | mingw* | pw32*)
13563 # When not using gcc, we currently assume that we are using
13564 # Microsoft Visual C++.
13565 # hardcode_libdir_flag_spec is actually meaningless, as there is
13566 # no search path for DLLs.
13567 hardcode_libdir_flag_spec_F77=' '
13568 allow_undefined_flag_F77=unsupported
13569 # Tell ltmain to make .lib files, not .a files.
13570 libext=lib
13571 # Tell ltmain to make .dll files, not .so files.
13572 shrext=".dll"
13573 # FIXME: Setting linknames here is a bad hack.
13574 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13575 # The linker will automatically build a .lib file if we build a DLL.
13576 old_archive_From_new_cmds_F77='true'
13577 # FIXME: Should let the user specify the lib program.
13578 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13579 fix_srcfile_path='`cygpath -w "$srcfile"`'
13580 enable_shared_with_static_runtimes_F77=yes
13581 ;;
13582
13583 darwin* | rhapsody*)
13584 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13585 archive_cmds_need_lc_F77=no
13586 case "$host_os" in
13587 rhapsody* | darwin1.[012])
13588 allow_undefined_flag_F77='-undefined suppress'
13589 ;;
13590 *) # Darwin 1.3 on
13591 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13592 ;;
13593 esac
13594 # FIXME: Relying on posixy $() will cause problems for
13595 # cross-compilation, but unfortunately the echo tests do not
13596 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13597 # `"' quotes if we put them in here... so don't!
13598 lt_int_apple_cc_single_mod=no
13599 output_verbose_link_cmd='echo'
13600 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13601 lt_int_apple_cc_single_mod=yes
13602 fi
13603 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13604 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13605 else
13606 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'
13607 fi
13608 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13609 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13610 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13611 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}'
13612 else
13613 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}'
13614 fi
13615 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}'
13616 hardcode_direct_F77=no
13617 hardcode_automatic_F77=yes
13618 hardcode_shlibpath_var_F77=unsupported
13619 whole_archive_flag_spec_F77='-all_load $convenience'
13620 link_all_deplibs_F77=yes
13621 fi
13622 ;;
13623
13624 dgux*)
13625 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13626 hardcode_libdir_flag_spec_F77='-L$libdir'
13627 hardcode_shlibpath_var_F77=no
13628 ;;
13629
13630 freebsd1*)
13631 ld_shlibs_F77=no
13632 ;;
13633
13634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13635 # support. Future versions do this automatically, but an explicit c++rt0.o
13636 # does not break anything, and helps significantly (at the cost of a little
13637 # extra space).
13638 freebsd2.2*)
13639 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13640 hardcode_libdir_flag_spec_F77='-R$libdir'
13641 hardcode_direct_F77=yes
13642 hardcode_shlibpath_var_F77=no
13643 ;;
13644
13645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13646 freebsd2*)
13647 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13648 hardcode_direct_F77=yes
13649 hardcode_minus_L_F77=yes
13650 hardcode_shlibpath_var_F77=no
13651 ;;
13652
13653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13654 freebsd*)
13655 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13656 hardcode_libdir_flag_spec_F77='-R$libdir'
13657 hardcode_direct_F77=yes
13658 hardcode_shlibpath_var_F77=no
13659 ;;
13660
13661 hpux9*)
13662 if test "$GCC" = yes; then
13663 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'
13664 else
13665 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'
13666 fi
13667 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13668 hardcode_libdir_separator_F77=:
13669 hardcode_direct_F77=yes
13670
13671 # hardcode_minus_L: Not really in the search PATH,
13672 # but as the default location of the library.
13673 hardcode_minus_L_F77=yes
13674 export_dynamic_flag_spec_F77='${wl}-E'
13675 ;;
13676
13677 hpux10* | hpux11*)
13678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13679 case "$host_cpu" in
13680 hppa*64*|ia64*)
13681 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 ;;
13683 *)
13684 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13685 ;;
13686 esac
13687 else
13688 case "$host_cpu" in
13689 hppa*64*|ia64*)
13690 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13691 ;;
13692 *)
13693 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13694 ;;
13695 esac
13696 fi
13697 if test "$with_gnu_ld" = no; then
13698 case "$host_cpu" in
13699 hppa*64*)
13700 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13701 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13702 hardcode_libdir_separator_F77=:
13703 hardcode_direct_F77=no
13704 hardcode_shlibpath_var_F77=no
13705 ;;
13706 ia64*)
13707 hardcode_libdir_flag_spec_F77='-L$libdir'
13708 hardcode_direct_F77=no
13709 hardcode_shlibpath_var_F77=no
13710
13711 # hardcode_minus_L: Not really in the search PATH,
13712 # but as the default location of the library.
13713 hardcode_minus_L_F77=yes
13714 ;;
13715 *)
13716 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13717 hardcode_libdir_separator_F77=:
13718 hardcode_direct_F77=yes
13719 export_dynamic_flag_spec_F77='${wl}-E'
13720
13721 # hardcode_minus_L: Not really in the search PATH,
13722 # but as the default location of the library.
13723 hardcode_minus_L_F77=yes
13724 ;;
13725 esac
13726 fi
13727 ;;
13728
13729 irix5* | irix6* | nonstopux*)
13730 if test "$GCC" = yes; then
13731 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'
13732 else
13733 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'
13734 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13735 fi
13736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13737 hardcode_libdir_separator_F77=:
13738 link_all_deplibs_F77=yes
13739 ;;
13740
13741 netbsd*)
13742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13743 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13744 else
13745 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13746 fi
13747 hardcode_libdir_flag_spec_F77='-R$libdir'
13748 hardcode_direct_F77=yes
13749 hardcode_shlibpath_var_F77=no
13750 ;;
13751
13752 newsos6)
13753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13754 hardcode_direct_F77=yes
13755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13756 hardcode_libdir_separator_F77=:
13757 hardcode_shlibpath_var_F77=no
13758 ;;
13759
13760 openbsd*)
13761 hardcode_direct_F77=yes
13762 hardcode_shlibpath_var_F77=no
13763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13764 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13765 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13766 export_dynamic_flag_spec_F77='${wl}-E'
13767 else
13768 case $host_os in
13769 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13770 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_libdir_flag_spec_F77='-R$libdir'
13772 ;;
13773 *)
13774 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13775 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13776 ;;
13777 esac
13778 fi
13779 ;;
13780
13781 os2*)
13782 hardcode_libdir_flag_spec_F77='-L$libdir'
13783 hardcode_minus_L_F77=yes
13784 allow_undefined_flag_F77=unsupported
13785 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'
13786 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13787 ;;
13788
13789 osf3*)
13790 if test "$GCC" = yes; then
13791 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13792 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'
13793 else
13794 allow_undefined_flag_F77=' -expect_unresolved \*'
13795 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'
13796 fi
13797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13798 hardcode_libdir_separator_F77=:
13799 ;;
13800
13801 osf4* | osf5*) # as osf3* with the addition of -msym flag
13802 if test "$GCC" = yes; then
13803 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13804 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'
13805 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13806 else
13807 allow_undefined_flag_F77=' -expect_unresolved \*'
13808 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'
13809 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~
13810 $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'
13811
13812 # Both c and cxx compiler support -rpath directly
13813 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13814 fi
13815 hardcode_libdir_separator_F77=:
13816 ;;
13817
13818 sco3.2v5*)
13819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13820 hardcode_shlibpath_var_F77=no
13821 export_dynamic_flag_spec_F77='${wl}-Bexport'
13822 runpath_var=LD_RUN_PATH
13823 hardcode_runpath_var=yes
13824 ;;
13825
13826 solaris*)
13827 no_undefined_flag_F77=' -z text'
13828 if test "$GCC" = yes; then
13829 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13831 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13832 else
13833 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13834 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13836 fi
13837 hardcode_libdir_flag_spec_F77='-R$libdir'
13838 hardcode_shlibpath_var_F77=no
13839 case $host_os in
13840 solaris2.[0-5] | solaris2.[0-5].*) ;;
13841 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13842 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13843 esac
13844 link_all_deplibs_F77=yes
13845 ;;
13846
13847 sunos4*)
13848 if test "x$host_vendor" = xsequent; then
13849 # Use $CC to link under sequent, because it throws in some extra .o
13850 # files that make .init and .fini sections work.
13851 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13852 else
13853 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13854 fi
13855 hardcode_libdir_flag_spec_F77='-L$libdir'
13856 hardcode_direct_F77=yes
13857 hardcode_minus_L_F77=yes
13858 hardcode_shlibpath_var_F77=no
13859 ;;
13860
13861 sysv4)
13862 case $host_vendor in
13863 sni)
13864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13865 hardcode_direct_F77=yes # is this really true???
13866 ;;
13867 siemens)
13868 ## LD is ld it makes a PLAMLIB
13869 ## CC just makes a GrossModule.
13870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13871 reload_cmds_F77='$CC -r -o $output$reload_objs'
13872 hardcode_direct_F77=no
13873 ;;
13874 motorola)
13875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13877 ;;
13878 esac
13879 runpath_var='LD_RUN_PATH'
13880 hardcode_shlibpath_var_F77=no
13881 ;;
13882
13883 sysv4.3*)
13884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13885 hardcode_shlibpath_var_F77=no
13886 export_dynamic_flag_spec_F77='-Bexport'
13887 ;;
13888
13889 sysv4*MP*)
13890 if test -d /usr/nec; then
13891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892 hardcode_shlibpath_var_F77=no
13893 runpath_var=LD_RUN_PATH
13894 hardcode_runpath_var=yes
13895 ld_shlibs_F77=yes
13896 fi
13897 ;;
13898
13899 sysv4.2uw2*)
13900 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13901 hardcode_direct_F77=yes
13902 hardcode_minus_L_F77=no
13903 hardcode_shlibpath_var_F77=no
13904 hardcode_runpath_var=yes
13905 runpath_var=LD_RUN_PATH
13906 ;;
13907
13908 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13909 no_undefined_flag_F77='${wl}-z ${wl}text'
13910 if test "$GCC" = yes; then
13911 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 else
13913 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13914 fi
13915 runpath_var='LD_RUN_PATH'
13916 hardcode_shlibpath_var_F77=no
13917 ;;
13918
13919 sysv5*)
13920 no_undefined_flag_F77=' -z text'
13921 # $CC -shared without GNU ld will not create a library from C++
13922 # object files and a static libstdc++, better avoid it by now
13923 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13924 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13926 hardcode_libdir_flag_spec_F77=
13927 hardcode_shlibpath_var_F77=no
13928 runpath_var='LD_RUN_PATH'
13929 ;;
13930
13931 uts4*)
13932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13933 hardcode_libdir_flag_spec_F77='-L$libdir'
13934 hardcode_shlibpath_var_F77=no
13935 ;;
13936
13937 *)
13938 ld_shlibs_F77=no
13939 ;;
13940 esac
13941 fi
13942
13943echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13944echo "${ECHO_T}$ld_shlibs_F77" >&6
13945test "$ld_shlibs_F77" = no && can_build_shared=no
13946
13947variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13948if test "$GCC" = yes; then
13949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13950fi
13951
13952#
13953# Do we need to explicitly link libc?
13954#
13955case "x$archive_cmds_need_lc_F77" in
13956x|xyes)
13957 # Assume -lc should be added
13958 archive_cmds_need_lc_F77=yes
13959
13960 if test "$enable_shared" = yes && test "$GCC" = yes; then
13961 case $archive_cmds_F77 in
13962 *'~'*)
13963 # FIXME: we may have to deal with multi-command sequences.
13964 ;;
13965 '$CC '*)
13966 # Test whether the compiler implicitly links with -lc since on some
13967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13968 # to ld, don't add -lc before -lgcc.
13969 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13970echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13971 $rm conftest*
13972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13973
13974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975 (eval $ac_compile) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } 2>conftest.err; then
13979 soname=conftest
13980 lib=conftest
13981 libobjs=conftest.$ac_objext
13982 deplibs=
13983 wl=$lt_prog_compiler_wl_F77
13984 compiler_flags=-v
13985 linker_flags=-v
13986 verstring=
13987 output_objdir=.
13988 libname=conftest
13989 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13990 allow_undefined_flag_F77=
13991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13992 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }
13996 then
13997 archive_cmds_need_lc_F77=no
13998 else
13999 archive_cmds_need_lc_F77=yes
14000 fi
14001 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14002 else
14003 cat conftest.err 1>&5
14004 fi
14005 $rm conftest*
14006 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14007echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14008 ;;
14009 esac
14010 fi
14011 ;;
14012esac
14013
14014echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14015echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14016hardcode_action_F77=
14017if test -n "$hardcode_libdir_flag_spec_F77" || \
14018 test -n "$runpath_var F77" || \
14019 test "X$hardcode_automatic_F77"="Xyes" ; then
14020
14021 # We can hardcode non-existant directories.
14022 if test "$hardcode_direct_F77" != no &&
14023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14024 # have to relink, otherwise we might link with an installed library
14025 # when we should be linking with a yet-to-be-installed one
14026 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14027 test "$hardcode_minus_L_F77" != no; then
14028 # Linking always hardcodes the temporary library directory.
14029 hardcode_action_F77=relink
14030 else
14031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14032 hardcode_action_F77=immediate
14033 fi
14034else
14035 # We cannot hardcode anything, or else we can only hardcode existing
14036 # directories.
14037 hardcode_action_F77=unsupported
14038fi
14039echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14040echo "${ECHO_T}$hardcode_action_F77" >&6
14041
14042if test "$hardcode_action_F77" = relink; then
14043 # Fast installation is not supported
14044 enable_fast_install=no
14045elif test "$shlibpath_overrides_runpath" = yes ||
14046 test "$enable_shared" = no; then
14047 # Fast installation is not necessary
14048 enable_fast_install=needless
14049fi
14050
14051striplib=
14052old_striplib=
14053echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14054echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14055if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14056 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14057 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14058 echo "$as_me:$LINENO: result: yes" >&5
14059echo "${ECHO_T}yes" >&6
14060else
14061# FIXME - insert some real tests, host_os isn't really good enough
14062 case $host_os in
14063 darwin*)
14064 if test -n "$STRIP" ; then
14065 striplib="$STRIP -x"
14066 echo "$as_me:$LINENO: result: yes" >&5
14067echo "${ECHO_T}yes" >&6
14068 else
14069 echo "$as_me:$LINENO: result: no" >&5
14070echo "${ECHO_T}no" >&6
14071fi
14072 ;;
14073 *)
14074 echo "$as_me:$LINENO: result: no" >&5
14075echo "${ECHO_T}no" >&6
14076 ;;
14077 esac
14078fi
14079
14080echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14081echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14082library_names_spec=
14083libname_spec='lib$name'
14084soname_spec=
14085shrext=".so"
14086postinstall_cmds=
14087postuninstall_cmds=
14088finish_cmds=
14089finish_eval=
14090shlibpath_var=
14091shlibpath_overrides_runpath=unknown
14092version_type=none
14093dynamic_linker="$host_os ld.so"
14094sys_lib_dlsearch_path_spec="/lib /usr/lib"
14095if test "$GCC" = yes; then
14096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14097 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14098 # if the path contains ";" then we assume it to be the separator
14099 # otherwise default to the standard path separator (i.e. ":") - it is
14100 # assumed that no part of a normal pathname contains ";" but that should
14101 # okay in the real world where ";" in dirpaths is itself problematic.
14102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14103 else
14104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14105 fi
14106else
14107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14108fi
14109need_lib_prefix=unknown
14110hardcode_into_libs=no
14111
14112# when you set need_version to no, make sure it does not cause -set_version
14113# flags to be left without arguments
14114need_version=unknown
14115
14116case $host_os in
14117aix3*)
14118 version_type=linux
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14120 shlibpath_var=LIBPATH
14121
14122 # AIX 3 has no versioning support, so we append a major version to the name.
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 ;;
14125
14126aix4* | aix5*)
14127 version_type=linux
14128 need_lib_prefix=no
14129 need_version=no
14130 hardcode_into_libs=yes
14131 if test "$host_cpu" = ia64; then
14132 # AIX 5 supports IA64
14133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 else
14136 # With GCC up to 2.95.x, collect2 would create an import file
14137 # for dependence libraries. The import file would start with
14138 # the line `#! .'. This would cause the generated library to
14139 # depend on `.', always an invalid library. This was fixed in
14140 # development snapshots of GCC prior to 3.0.
14141 case $host_os in
14142 aix4 | aix4.[01] | aix4.[01].*)
14143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14144 echo ' yes '
14145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14146 :
14147 else
14148 can_build_shared=no
14149 fi
14150 ;;
14151 esac
14152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14153 # soname into executable. Probably we can add versioning support to
14154 # collect2, so additional links can be useful in future.
14155 if test "$aix_use_runtimelinking" = yes; then
14156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14157 # instead of lib<name>.a to let people know that these are not
14158 # typical AIX shared libraries.
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 else
14161 # We preserve .a as extension for shared libraries through AIX4.2
14162 # and later when we are not doing run time linking.
14163 library_names_spec='${libname}${release}.a $libname.a'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 fi
14166 shlibpath_var=LIBPATH
14167 fi
14168 ;;
14169
14170amigaos*)
14171 library_names_spec='$libname.ixlibrary $libname.a'
14172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14173 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'
14174 ;;
14175
14176beos*)
14177 library_names_spec='${libname}${shared_ext}'
14178 dynamic_linker="$host_os ld.so"
14179 shlibpath_var=LIBRARY_PATH
14180 ;;
14181
14182bsdi4*)
14183 version_type=linux
14184 need_version=no
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14191 # the default ld.so.conf also contains /usr/contrib/lib and
14192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14193 # libtool to hard-code these into programs
14194 ;;
14195
14196cygwin* | mingw* | pw32*)
14197 version_type=windows
14198 shrext=".dll"
14199 need_version=no
14200 need_lib_prefix=no
14201
14202 case $GCC,$host_os in
14203 yes,cygwin* | yes,mingw* | yes,pw32*)
14204 library_names_spec='$libname.dll.a'
14205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14206 postinstall_cmds='base_file=`basename \${file}`~
14207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14208 dldir=$destdir/`dirname \$dlpath`~
14209 test -d \$dldir || mkdir -p \$dldir~
14210 $install_prog $dir/$dlname \$dldir/$dlname'
14211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14212 dlpath=$dir/\$dldll~
14213 $rm \$dlpath'
14214 shlibpath_overrides_runpath=yes
14215
14216 case $host_os in
14217 cygwin*)
14218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14220 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14221 ;;
14222 mingw*)
14223 # MinGW DLLs use traditional 'lib' prefix
14224 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14225 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14226 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14227 # It is most probably a Windows format PATH printed by
14228 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14229 # path with ; separators, and with drive letters. We can handle the
14230 # drive letters (cygwin fileutils understands them), so leave them,
14231 # especially as we might pass files found there to a mingw objdump,
14232 # which wouldn't understand a cygwinified path. Ahh.
14233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14234 else
14235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14236 fi
14237 ;;
14238 pw32*)
14239 # pw32 DLLs use 'pw' prefix rather than 'lib'
14240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14241 ;;
14242 esac
14243 ;;
14244
14245 *)
14246 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14247 ;;
14248 esac
14249 dynamic_linker='Win32 ld.exe'
14250 # FIXME: first we should search . and the directory the executable is in
14251 shlibpath_var=PATH
14252 ;;
14253
14254darwin* | rhapsody*)
14255 dynamic_linker="$host_os dyld"
14256 version_type=darwin
14257 need_lib_prefix=no
14258 need_version=no
14259 # FIXME: Relying on posixy $() will cause problems for
14260 # cross-compilation, but unfortunately the echo tests do not
14261 # yet detect zsh echo's removal of \ escapes.
14262 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14263 soname_spec='${libname}${release}${major}$shared_ext'
14264 shlibpath_overrides_runpath=yes
14265 shlibpath_var=DYLD_LIBRARY_PATH
14266 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14267 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14268 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14269 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"`
14270 fi
14271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14272 ;;
14273
14274dgux*)
14275 version_type=linux
14276 need_lib_prefix=no
14277 need_version=no
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14279 soname_spec='${libname}${release}${shared_ext}$major'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 ;;
14282
14283freebsd1*)
14284 dynamic_linker=no
14285 ;;
14286
14287freebsd*)
14288 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14289 version_type=freebsd-$objformat
14290 case $version_type in
14291 freebsd-elf*)
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14293 need_version=no
14294 need_lib_prefix=no
14295 ;;
14296 freebsd-*)
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14298 need_version=yes
14299 ;;
14300 esac
14301 shlibpath_var=LD_LIBRARY_PATH
14302 case $host_os in
14303 freebsd2*)
14304 shlibpath_overrides_runpath=yes
14305 ;;
14306 freebsd3.01* | freebsdelf3.01*)
14307 shlibpath_overrides_runpath=yes
14308 hardcode_into_libs=yes
14309 ;;
14310 *) # from 3.2 on
14311 shlibpath_overrides_runpath=no
14312 hardcode_into_libs=yes
14313 ;;
14314 esac
14315 ;;
14316
14317gnu*)
14318 version_type=linux
14319 need_lib_prefix=no
14320 need_version=no
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 shlibpath_var=LD_LIBRARY_PATH
14324 hardcode_into_libs=yes
14325 ;;
14326
14327hpux9* | hpux10* | hpux11*)
14328 # Give a soname corresponding to the major version so that dld.sl refuses to
14329 # link against other versions.
14330 version_type=sunos
14331 need_lib_prefix=no
14332 need_version=no
14333 case "$host_cpu" in
14334 ia64*)
14335 shrext='.so'
14336 hardcode_into_libs=yes
14337 dynamic_linker="$host_os dld.so"
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 if test "X$HPUX_IA64_MODE" = X32; then
14343 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14344 else
14345 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14346 fi
14347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14348 ;;
14349 hppa*64*)
14350 shrext='.sl'
14351 hardcode_into_libs=yes
14352 dynamic_linker="$host_os dld.sl"
14353 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14359 ;;
14360 *)
14361 shrext='.sl'
14362 dynamic_linker="$host_os dld.sl"
14363 shlibpath_var=SHLIB_PATH
14364 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 ;;
14368 esac
14369 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14370 postinstall_cmds='chmod 555 $lib'
14371 ;;
14372
14373irix5* | irix6* | nonstopux*)
14374 case $host_os in
14375 nonstopux*) version_type=nonstopux ;;
14376 *)
14377 if test "$lt_cv_prog_gnu_ld" = yes; then
14378 version_type=linux
14379 else
14380 version_type=irix
14381 fi ;;
14382 esac
14383 need_lib_prefix=no
14384 need_version=no
14385 soname_spec='${libname}${release}${shared_ext}$major'
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14387 case $host_os in
14388 irix5* | nonstopux*)
14389 libsuff= shlibsuff=
14390 ;;
14391 *)
14392 case $LD in # libtool.m4 will add one of these switches to LD
14393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14394 libsuff= shlibsuff= libmagic=32-bit;;
14395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14396 libsuff=32 shlibsuff=N32 libmagic=N32;;
14397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14399 *) libsuff= shlibsuff= libmagic=never-match;;
14400 esac
14401 ;;
14402 esac
14403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14404 shlibpath_overrides_runpath=no
14405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14407 hardcode_into_libs=yes
14408 ;;
14409
14410# No shared lib support for Linux oldld, aout, or coff.
14411linux*oldld* | linux*aout* | linux*coff*)
14412 dynamic_linker=no
14413 ;;
14414
14415# This must be Linux ELF.
14416linux*)
14417 version_type=linux
14418 need_lib_prefix=no
14419 need_version=no
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14423 shlibpath_var=LD_LIBRARY_PATH
14424 shlibpath_overrides_runpath=no
14425 # This implies no fast_install, which is unacceptable.
14426 # Some rework will be needed to allow for fast_install
14427 # before this can be enabled.
14428 hardcode_into_libs=yes
14429
14430 # We used to test for /lib/ld.so.1 and disable shared libraries on
14431 # powerpc, because MkLinux only supported shared libraries with the
14432 # GNU dynamic linker. Since this was broken with cross compilers,
14433 # most powerpc-linux boxes support dynamic linking these days and
14434 # people can always --disable-shared, the test was removed, and we
14435 # assume the GNU/Linux dynamic linker is in use.
14436 dynamic_linker='GNU/Linux ld.so'
14437 ;;
14438
14439netbsd*)
14440 version_type=sunos
14441 need_lib_prefix=no
14442 need_version=no
14443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14446 dynamic_linker='NetBSD (a.out) ld.so'
14447 else
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 dynamic_linker='NetBSD ld.elf_so'
14451 fi
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=yes
14454 hardcode_into_libs=yes
14455 ;;
14456
14457newsos6)
14458 version_type=linux
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath=yes
14462 ;;
14463
14464nto-qnx)
14465 version_type=linux
14466 need_lib_prefix=no
14467 need_version=no
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 shlibpath_var=LD_LIBRARY_PATH
14471 shlibpath_overrides_runpath=yes
14472 ;;
14473
14474openbsd*)
14475 version_type=sunos
14476 need_lib_prefix=no
14477 need_version=no
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14482 case $host_os in
14483 openbsd2.[89] | openbsd2.[89].*)
14484 shlibpath_overrides_runpath=no
14485 ;;
14486 *)
14487 shlibpath_overrides_runpath=yes
14488 ;;
14489 esac
14490 else
14491 shlibpath_overrides_runpath=yes
14492 fi
14493 ;;
14494
14495os2*)
14496 libname_spec='$name'
14497 shrext=".dll"
14498 need_lib_prefix=no
14499 library_names_spec='$libname${shared_ext} $libname.a'
14500 dynamic_linker='OS/2 ld.exe'
14501 shlibpath_var=LIBPATH
14502 ;;
14503
14504osf3* | osf4* | osf5*)
14505 version_type=osf
14506 need_lib_prefix=no
14507 need_version=no
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14513 ;;
14514
14515sco3.2v5*)
14516 version_type=osf
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 ;;
14521
14522solaris*)
14523 version_type=linux
14524 need_lib_prefix=no
14525 need_version=no
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes
14530 hardcode_into_libs=yes
14531 # ldd complains unless libraries are executable
14532 postinstall_cmds='chmod +x $lib'
14533 ;;
14534
14535sunos4*)
14536 version_type=sunos
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14541 if test "$with_gnu_ld" = yes; then
14542 need_lib_prefix=no
14543 fi
14544 need_version=yes
14545 ;;
14546
14547sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14548 version_type=linux
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 case $host_vendor in
14553 sni)
14554 shlibpath_overrides_runpath=no
14555 need_lib_prefix=no
14556 export_dynamic_flag_spec='${wl}-Blargedynsym'
14557 runpath_var=LD_RUN_PATH
14558 ;;
14559 siemens)
14560 need_lib_prefix=no
14561 ;;
14562 motorola)
14563 need_lib_prefix=no
14564 need_version=no
14565 shlibpath_overrides_runpath=no
14566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14567 ;;
14568 esac
14569 ;;
14570
14571sysv4*MP*)
14572 if test -d /usr/nec ;then
14573 version_type=linux
14574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14575 soname_spec='$libname${shared_ext}.$major'
14576 shlibpath_var=LD_LIBRARY_PATH
14577 fi
14578 ;;
14579
14580uts4*)
14581 version_type=linux
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 ;;
14586
14587*)
14588 dynamic_linker=no
14589 ;;
14590esac
14591echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14592echo "${ECHO_T}$dynamic_linker" >&6
14593test "$dynamic_linker" = no && can_build_shared=no
14594
14595
14596# The else clause should only fire when bootstrapping the
14597# libtool distribution, otherwise you forgot to ship ltmain.sh
14598# with your package, and you will get complaints that there are
14599# no rules to generate ltmain.sh.
14600if test -f "$ltmain"; then
14601 # See if we are running on zsh, and set the options which allow our commands through
14602 # without removal of \ escapes.
14603 if test -n "${ZSH_VERSION+set}" ; then
14604 setopt NO_GLOB_SUBST
14605 fi
14606 # Now quote all the things that may contain metacharacters while being
14607 # careful not to overquote the AC_SUBSTed values. We take copies of the
14608 # variables and quote the copies for generation of the libtool script.
14609 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14610 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14611 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14612 deplibs_check_method reload_flag reload_cmds need_locks \
14613 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14614 lt_cv_sys_global_symbol_to_c_name_address \
14615 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14616 old_postinstall_cmds old_postuninstall_cmds \
14617 compiler_F77 \
14618 CC_F77 \
14619 LD_F77 \
14620 lt_prog_compiler_wl_F77 \
14621 lt_prog_compiler_pic_F77 \
14622 lt_prog_compiler_static_F77 \
14623 lt_prog_compiler_no_builtin_flag_F77 \
14624 export_dynamic_flag_spec_F77 \
14625 thread_safe_flag_spec_F77 \
14626 whole_archive_flag_spec_F77 \
14627 enable_shared_with_static_runtimes_F77 \
14628 old_archive_cmds_F77 \
14629 old_archive_from_new_cmds_F77 \
14630 predep_objects_F77 \
14631 postdep_objects_F77 \
14632 predeps_F77 \
14633 postdeps_F77 \
14634 compiler_lib_search_path_F77 \
14635 archive_cmds_F77 \
14636 archive_expsym_cmds_F77 \
14637 postinstall_cmds_F77 \
14638 postuninstall_cmds_F77 \
14639 old_archive_from_expsyms_cmds_F77 \
14640 allow_undefined_flag_F77 \
14641 no_undefined_flag_F77 \
14642 export_symbols_cmds_F77 \
14643 hardcode_libdir_flag_spec_F77 \
14644 hardcode_libdir_flag_spec_ld_F77 \
14645 hardcode_libdir_separator_F77 \
14646 hardcode_automatic_F77 \
14647 module_cmds_F77 \
14648 module_expsym_cmds_F77 \
14649 lt_cv_prog_compiler_c_o_F77 \
14650 exclude_expsyms_F77 \
14651 include_expsyms_F77; do
14652
14653 case $var in
14654 old_archive_cmds_F77 | \
14655 old_archive_from_new_cmds_F77 | \
14656 archive_cmds_F77 | \
14657 archive_expsym_cmds_F77 | \
14658 module_cmds_F77 | \
14659 module_expsym_cmds_F77 | \
14660 old_archive_from_expsyms_cmds_F77 | \
14661 export_symbols_cmds_F77 | \
14662 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14663 postinstall_cmds | postuninstall_cmds | \
14664 old_postinstall_cmds | old_postuninstall_cmds | \
14665 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14666 # Double-quote double-evaled strings.
14667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14668 ;;
14669 *)
14670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14671 ;;
14672 esac
14673 done
14674
14675 case $lt_echo in
14676 *'\$0 --fallback-echo"')
14677 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14678 ;;
14679 esac
14680
14681cfgfile="$ofile"
14682
14683 cat <<__EOF__ >> "$cfgfile"
14684# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14685
14686# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14687
14688# Shell to use when invoking shell scripts.
14689SHELL=$lt_SHELL
14690
14691# Whether or not to build shared libraries.
14692build_libtool_libs=$enable_shared
14693
14694# Whether or not to build static libraries.
14695build_old_libs=$enable_static
14696
14697# Whether or not to add -lc for building shared libraries.
14698build_libtool_need_lc=$archive_cmds_need_lc_F77
14699
14700# Whether or not to disallow shared libs when runtime libs are static
14701allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14702
14703# Whether or not to optimize for fast installation.
14704fast_install=$enable_fast_install
14705
14706# The host system.
14707host_alias=$host_alias
14708host=$host
14709
14710# An echo program that does not interpret backslashes.
14711echo=$lt_echo
14712
14713# The archiver.
14714AR=$lt_AR
14715AR_FLAGS=$lt_AR_FLAGS
14716
14717# A C compiler.
14718LTCC=$lt_LTCC
14719
14720# A language-specific compiler.
14721CC=$lt_compiler_F77
14722
14723# Is the compiler the GNU C compiler?
14724with_gcc=$GCC_F77
14725
14726# An ERE matcher.
14727EGREP=$lt_EGREP
14728
14729# The linker used to build libraries.
14730LD=$lt_LD_F77
14731
14732# Whether we need hard or soft links.
14733LN_S=$lt_LN_S
14734
14735# A BSD-compatible nm program.
14736NM=$lt_NM
14737
14738# A symbol stripping program
14739STRIP=$STRIP
14740
14741# Used to examine libraries when file_magic_cmd begins "file"
14742MAGIC_CMD=$MAGIC_CMD
14743
14744# Used on cygwin: DLL creation program.
14745DLLTOOL="$DLLTOOL"
14746
14747# Used on cygwin: object dumper.
14748OBJDUMP="$OBJDUMP"
14749
14750# Used on cygwin: assembler.
14751AS="$AS"
14752
14753# The name of the directory that contains temporary libtool files.
14754objdir=$objdir
14755
14756# How to create reloadable object files.
14757reload_flag=$lt_reload_flag
14758reload_cmds=$lt_reload_cmds
14759
14760# How to pass a linker flag through the compiler.
14761wl=$lt_lt_prog_compiler_wl_F77
14762
14763# Object file suffix (normally "o").
14764objext="$ac_objext"
14765
14766# Old archive suffix (normally "a").
14767libext="$libext"
14768
14769# Shared library suffix (normally ".so").
14770shrext='$shrext'
14771
14772# Executable file suffix (normally "").
14773exeext="$exeext"
14774
14775# Additional compiler flags for building library objects.
14776pic_flag=$lt_lt_prog_compiler_pic_F77
14777pic_mode=$pic_mode
14778
14779# What is the maximum length of a command?
14780max_cmd_len=$lt_cv_sys_max_cmd_len
14781
14782# Does compiler simultaneously support -c and -o options?
14783compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14784
14785# Must we lock files when doing compilation ?
14786need_locks=$lt_need_locks
14787
14788# Do we need the lib prefix for modules?
14789need_lib_prefix=$need_lib_prefix
14790
14791# Do we need a version for libraries?
14792need_version=$need_version
14793
14794# Whether dlopen is supported.
14795dlopen_support=$enable_dlopen
14796
14797# Whether dlopen of programs is supported.
14798dlopen_self=$enable_dlopen_self
14799
14800# Whether dlopen of statically linked programs is supported.
14801dlopen_self_static=$enable_dlopen_self_static
14802
14803# Compiler flag to prevent dynamic linking.
14804link_static_flag=$lt_lt_prog_compiler_static_F77
14805
14806# Compiler flag to turn off builtin functions.
14807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14808
14809# Compiler flag to allow reflexive dlopens.
14810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14811
14812# Compiler flag to generate shared objects directly from archives.
14813whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14814
14815# Compiler flag to generate thread-safe objects.
14816thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14817
14818# Library versioning type.
14819version_type=$version_type
14820
14821# Format of library name prefix.
14822libname_spec=$lt_libname_spec
14823
14824# List of archive names. First name is the real one, the rest are links.
14825# The last name is the one that the linker finds with -lNAME.
14826library_names_spec=$lt_library_names_spec
14827
14828# The coded name of the library, if different from the real name.
14829soname_spec=$lt_soname_spec
14830
14831# Commands used to build and install an old-style archive.
14832RANLIB=$lt_RANLIB
14833old_archive_cmds=$lt_old_archive_cmds_F77
14834old_postinstall_cmds=$lt_old_postinstall_cmds
14835old_postuninstall_cmds=$lt_old_postuninstall_cmds
14836
14837# Create an old-style archive from a shared archive.
14838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14839
14840# Create a temporary old-style archive to link instead of a shared archive.
14841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14842
14843# Commands used to build and install a shared archive.
14844archive_cmds=$lt_archive_cmds_F77
14845archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14846postinstall_cmds=$lt_postinstall_cmds
14847postuninstall_cmds=$lt_postuninstall_cmds
14848
14849# Commands used to build a loadable module (assumed same as above if empty)
14850module_cmds=$lt_module_cmds_F77
14851module_expsym_cmds=$lt_module_expsym_cmds_F77
14852
14853# Commands to strip libraries.
14854old_striplib=$lt_old_striplib
14855striplib=$lt_striplib
14856
14857# Dependencies to place before the objects being linked to create a
14858# shared library.
14859predep_objects=$lt_predep_objects_F77
14860
14861# Dependencies to place after the objects being linked to create a
14862# shared library.
14863postdep_objects=$lt_postdep_objects_F77
14864
14865# Dependencies to place before the objects being linked to create a
14866# shared library.
14867predeps=$lt_predeps_F77
14868
14869# Dependencies to place after the objects being linked to create a
14870# shared library.
14871postdeps=$lt_postdeps_F77
14872
14873# The library search path used internally by the compiler when linking
14874# a shared library.
14875compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14876
14877# Method to check whether dependent libraries are shared objects.
14878deplibs_check_method=$lt_deplibs_check_method
14879
14880# Command to use when deplibs_check_method == file_magic.
14881file_magic_cmd=$lt_file_magic_cmd
14882
14883# Flag that allows shared libraries with undefined symbols to be built.
14884allow_undefined_flag=$lt_allow_undefined_flag_F77
14885
14886# Flag that forces no undefined symbols.
14887no_undefined_flag=$lt_no_undefined_flag_F77
14888
14889# Commands used to finish a libtool library installation in a directory.
14890finish_cmds=$lt_finish_cmds
14891
14892# Same as above, but a single script fragment to be evaled but not shown.
14893finish_eval=$lt_finish_eval
14894
14895# Take the output of nm and produce a listing of raw symbols and C names.
14896global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14897
14898# Transform the output of nm in a proper C declaration
14899global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14900
14901# Transform the output of nm in a C name address pair
14902global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14903
14904# This is the shared library runtime path variable.
14905runpath_var=$runpath_var
14906
14907# This is the shared library path variable.
14908shlibpath_var=$shlibpath_var
14909
14910# Is shlibpath searched before the hard-coded library search path?
14911shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14912
14913# How to hardcode a shared library path into an executable.
14914hardcode_action=$hardcode_action_F77
14915
14916# Whether we should hardcode library paths into libraries.
14917hardcode_into_libs=$hardcode_into_libs
14918
14919# Flag to hardcode \$libdir into a binary during linking.
14920# This must work even if \$libdir does not exist.
14921hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14922
14923# If ld is used when linking, flag to hardcode \$libdir into
14924# a binary during linking. This must work even if \$libdir does
14925# not exist.
14926hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14927
14928# Whether we need a single -rpath flag with a separated argument.
14929hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14930
14931# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14932# resulting binary.
14933hardcode_direct=$hardcode_direct_F77
14934
14935# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14936# resulting binary.
14937hardcode_minus_L=$hardcode_minus_L_F77
14938
14939# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14940# the resulting binary.
14941hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14942
14943# Set to yes if building a shared library automatically hardcodes DIR into the library
14944# and all subsequent libraries and executables linked against it.
14945hardcode_automatic=$hardcode_automatic_F77
14946
14947# Variables whose values should be saved in libtool wrapper scripts and
14948# restored at relink time.
14949variables_saved_for_relink="$variables_saved_for_relink"
14950
14951# Whether libtool must link a program against all its dependency libraries.
14952link_all_deplibs=$link_all_deplibs_F77
14953
14954# Compile-time system search path for libraries
14955sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14956
14957# Run-time system search path for libraries
14958sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14959
14960# Fix the shell variable \$srcfile for the compiler.
14961fix_srcfile_path="$fix_srcfile_path_F77"
14962
14963# Set to yes if exported symbols are required.
14964always_export_symbols=$always_export_symbols_F77
14965
14966# The commands to list exported symbols.
14967export_symbols_cmds=$lt_export_symbols_cmds_F77
14968
14969# The commands to extract the exported symbol list from a shared archive.
14970extract_expsyms_cmds=$lt_extract_expsyms_cmds
14971
14972# Symbols that should not be listed in the preloaded symbols.
14973exclude_expsyms=$lt_exclude_expsyms_F77
14974
14975# Symbols that must always be exported.
14976include_expsyms=$lt_include_expsyms_F77
14977
14978# ### END LIBTOOL TAG CONFIG: $tagname
14979
14980__EOF__
14981
14982
14983else
14984 # If there is no Makefile yet, we rely on a make rule to execute
14985 # `config.status --recheck' to rerun these tests and create the
14986 # libtool script then.
14987 test -f Makefile && make "$ltmain"
14988fi
14989
14990
14991ac_ext=c
14992ac_cpp='$CPP $CPPFLAGS'
14993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995ac_compiler_gnu=$ac_cv_c_compiler_gnu
14996
14997CC="$lt_save_CC"
14998
14999 else
15000 tagname=""
15001 fi
15002 ;;
15003
15004 GCJ)
15005 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15006
15007
15008
15009# Source file extension for Java test sources.
15010ac_ext=java
15011
15012# Object file extension for compiled Java test sources.
15013objext=o
15014objext_GCJ=$objext
15015
15016# Code to be used in simple compile tests
15017lt_simple_compile_test_code="class foo {}\n"
15018
15019# Code to be used in simple link tests
15020lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15021
15022# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15023
15024# If no C compiler was specified, use CC.
15025LTCC=${LTCC-"$CC"}
15026
15027# Allow CC to be a program name with arguments.
15028compiler=$CC
15029
15030
15031# Allow CC to be a program name with arguments.
15032lt_save_CC="$CC"
15033CC=${GCJ-"gcj"}
15034compiler=$CC
15035compiler_GCJ=$CC
15036
15037# GCJ did not exist at the time GCC didn't implicitly link libc in.
15038archive_cmds_need_lc_GCJ=no
15039
15040## CAVEAT EMPTOR:
15041## There is no encapsulation within the following macros, do not change
15042## the running order or otherwise move them around unless you know exactly
15043## what you are doing...
15044
15045lt_prog_compiler_no_builtin_flag_GCJ=
15046
15047if test "$GCC" = yes; then
15048 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15049
15050 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15051echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15052if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054else
15055 lt_cv_prog_compiler_rtti_exceptions=no
15056 ac_outfile=conftest.$ac_objext
15057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15058 lt_compiler_flag="-fno-rtti -fno-exceptions"
15059 # Insert the option either (1) after the last *FLAGS variable, or
15060 # (2) before a word containing "conftest.", or (3) at the end.
15061 # Note that $ac_compile itself does not contain backslashes and begins
15062 # with a dollar sign (not a hyphen), so the echo should work correctly.
15063 # The option is referenced via a variable to avoid confusing sed.
15064 lt_compile=`echo "$ac_compile" | $SED \
15065 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15067 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +000015068 (eval echo "\"\$as_me:15068: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015069 (eval "$lt_compile" 2>conftest.err)
15070 ac_status=$?
15071 cat conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +000015072 echo "$as_me:15072: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015073 if (exit $ac_status) && test -s "$ac_outfile"; then
15074 # The compiler can only warn and ignore the option if not recognized
15075 # So say no if there are warnings
15076 if test ! -s conftest.err; then
15077 lt_cv_prog_compiler_rtti_exceptions=yes
15078 fi
15079 fi
15080 $rm conftest*
15081
15082fi
15083echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15084echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15085
15086if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15087 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15088else
15089 :
15090fi
15091
15092fi
15093
15094lt_prog_compiler_wl_GCJ=
15095lt_prog_compiler_pic_GCJ=
15096lt_prog_compiler_static_GCJ=
15097
15098echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15099echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15100
15101 if test "$GCC" = yes; then
15102 lt_prog_compiler_wl_GCJ='-Wl,'
15103 lt_prog_compiler_static_GCJ='-static'
15104
15105 case $host_os in
15106 aix*)
15107 # All AIX code is PIC.
15108 if test "$host_cpu" = ia64; then
15109 # AIX 5 now supports IA64 processor
15110 lt_prog_compiler_static_GCJ='-Bstatic'
15111 fi
15112 ;;
15113
15114 amigaos*)
15115 # FIXME: we need at least 68020 code to build shared libraries, but
15116 # adding the `-m68020' flag to GCC prevents building anything better,
15117 # like `-m68040'.
15118 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15119 ;;
15120
15121 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15122 # PIC is the default for these OSes.
15123 ;;
15124
15125 mingw* | pw32* | os2*)
15126 # This hack is so that the source file can tell whether it is being
15127 # built for inclusion in a dll (and should export symbols for example).
15128 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15129 ;;
15130
15131 darwin* | rhapsody*)
15132 # PIC is the default on this platform
15133 # Common symbols not allowed in MH_DYLIB files
15134 lt_prog_compiler_pic_GCJ='-fno-common'
15135 ;;
15136
15137 msdosdjgpp*)
15138 # Just because we use GCC doesn't mean we suddenly get shared libraries
15139 # on systems that don't support them.
15140 lt_prog_compiler_can_build_shared_GCJ=no
15141 enable_shared=no
15142 ;;
15143
15144 sysv4*MP*)
15145 if test -d /usr/nec; then
15146 lt_prog_compiler_pic_GCJ=-Kconform_pic
15147 fi
15148 ;;
15149
15150 hpux*)
15151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15152 # not for PA HP-UX.
15153 case "$host_cpu" in
15154 hppa*64*|ia64*)
15155 # +Z the default
15156 ;;
15157 *)
15158 lt_prog_compiler_pic_GCJ='-fPIC'
15159 ;;
15160 esac
15161 ;;
15162
15163 *)
15164 lt_prog_compiler_pic_GCJ='-fPIC'
15165 ;;
15166 esac
15167 else
15168 # PORTME Check for flag to pass linker flags through the system compiler.
15169 case $host_os in
15170 aix*)
15171 lt_prog_compiler_wl_GCJ='-Wl,'
15172 if test "$host_cpu" = ia64; then
15173 # AIX 5 now supports IA64 processor
15174 lt_prog_compiler_static_GCJ='-Bstatic'
15175 else
15176 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15177 fi
15178 ;;
15179
15180 mingw* | pw32* | os2*)
15181 # This hack is so that the source file can tell whether it is being
15182 # built for inclusion in a dll (and should export symbols for example).
15183 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15184 ;;
15185
15186 hpux9* | hpux10* | hpux11*)
15187 lt_prog_compiler_wl_GCJ='-Wl,'
15188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15189 # not for PA HP-UX.
15190 case "$host_cpu" in
15191 hppa*64*|ia64*)
15192 # +Z the default
15193 ;;
15194 *)
15195 lt_prog_compiler_pic_GCJ='+Z'
15196 ;;
15197 esac
15198 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15199 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15200 ;;
15201
15202 irix5* | irix6* | nonstopux*)
15203 lt_prog_compiler_wl_GCJ='-Wl,'
15204 # PIC (with -KPIC) is the default.
15205 lt_prog_compiler_static_GCJ='-non_shared'
15206 ;;
15207
15208 newsos6)
15209 lt_prog_compiler_pic_GCJ='-KPIC'
15210 lt_prog_compiler_static_GCJ='-Bstatic'
15211 ;;
15212
15213 linux*)
15214 case $CC in
15215 icc|ecc)
15216 lt_prog_compiler_wl_GCJ='-Wl,'
15217 lt_prog_compiler_pic_GCJ='-KPIC'
15218 lt_prog_compiler_static_GCJ='-static'
15219 ;;
15220 ccc)
15221 lt_prog_compiler_wl_GCJ='-Wl,'
15222 # All Alpha code is PIC.
15223 lt_prog_compiler_static_GCJ='-non_shared'
15224 ;;
15225 esac
15226 ;;
15227
15228 osf3* | osf4* | osf5*)
15229 lt_prog_compiler_wl_GCJ='-Wl,'
15230 # All OSF/1 code is PIC.
15231 lt_prog_compiler_static_GCJ='-non_shared'
15232 ;;
15233
15234 sco3.2v5*)
15235 lt_prog_compiler_pic_GCJ='-Kpic'
15236 lt_prog_compiler_static_GCJ='-dn'
15237 ;;
15238
15239 solaris*)
15240 lt_prog_compiler_wl_GCJ='-Wl,'
15241 lt_prog_compiler_pic_GCJ='-KPIC'
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15243 ;;
15244
15245 sunos4*)
15246 lt_prog_compiler_wl_GCJ='-Qoption ld '
15247 lt_prog_compiler_pic_GCJ='-PIC'
15248 lt_prog_compiler_static_GCJ='-Bstatic'
15249 ;;
15250
15251 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15252 lt_prog_compiler_wl_GCJ='-Wl,'
15253 lt_prog_compiler_pic_GCJ='-KPIC'
15254 lt_prog_compiler_static_GCJ='-Bstatic'
15255 ;;
15256
15257 sysv4*MP*)
15258 if test -d /usr/nec ;then
15259 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15260 lt_prog_compiler_static_GCJ='-Bstatic'
15261 fi
15262 ;;
15263
15264 uts4*)
15265 lt_prog_compiler_pic_GCJ='-pic'
15266 lt_prog_compiler_static_GCJ='-Bstatic'
15267 ;;
15268
15269 *)
15270 lt_prog_compiler_can_build_shared_GCJ=no
15271 ;;
15272 esac
15273 fi
15274
15275echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15276echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15277
15278#
15279# Check to make sure the PIC flag actually works.
15280#
15281if test -n "$lt_prog_compiler_pic_GCJ"; then
15282 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15283echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15284if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286else
15287 lt_prog_compiler_pic_works_GCJ=no
15288 ac_outfile=conftest.$ac_objext
15289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15290 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15291 # Insert the option either (1) after the last *FLAGS variable, or
15292 # (2) before a word containing "conftest.", or (3) at the end.
15293 # Note that $ac_compile itself does not contain backslashes and begins
15294 # with a dollar sign (not a hyphen), so the echo should work correctly.
15295 # The option is referenced via a variable to avoid confusing sed.
15296 lt_compile=`echo "$ac_compile" | $SED \
15297 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15299 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +000015300 (eval echo "\"\$as_me:15300: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015301 (eval "$lt_compile" 2>conftest.err)
15302 ac_status=$?
15303 cat conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +000015304 echo "$as_me:15304: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015305 if (exit $ac_status) && test -s "$ac_outfile"; then
15306 # The compiler can only warn and ignore the option if not recognized
15307 # So say no if there are warnings
15308 if test ! -s conftest.err; then
15309 lt_prog_compiler_pic_works_GCJ=yes
15310 fi
15311 fi
15312 $rm conftest*
15313
15314fi
15315echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15316echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15317
15318if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15319 case $lt_prog_compiler_pic_GCJ in
15320 "" | " "*) ;;
15321 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15322 esac
15323else
15324 lt_prog_compiler_pic_GCJ=
15325 lt_prog_compiler_can_build_shared_GCJ=no
15326fi
15327
15328fi
15329case "$host_os" in
15330 # For platforms which do not support PIC, -DPIC is meaningless:
15331 *djgpp*)
15332 lt_prog_compiler_pic_GCJ=
15333 ;;
15334 *)
15335 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15336 ;;
15337esac
15338
15339echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15340echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15341if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343else
15344 lt_cv_prog_compiler_c_o_GCJ=no
15345 $rm -r conftest 2>/dev/null
15346 mkdir conftest
15347 cd conftest
15348 mkdir out
15349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15350
15351 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15352 # that will create temporary files in the current directory regardless of
15353 # the output directory. Thus, making CWD read-only will cause this test
15354 # to fail, enabling locking or at least warning the user not to do parallel
15355 # builds.
15356 chmod -w .
15357
15358 lt_compiler_flag="-o out/conftest2.$ac_objext"
15359 # Insert the option either (1) after the last *FLAGS variable, or
15360 # (2) before a word containing "conftest.", or (3) at the end.
15361 # Note that $ac_compile itself does not contain backslashes and begins
15362 # with a dollar sign (not a hyphen), so the echo should work correctly.
15363 lt_compile=`echo "$ac_compile" | $SED \
15364 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15366 -e 's:$: $lt_compiler_flag:'`
John Criswell559a6c12003-09-30 16:31:48 +000015367 (eval echo "\"\$as_me:15367: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015368 (eval "$lt_compile" 2>out/conftest.err)
15369 ac_status=$?
15370 cat out/conftest.err >&5
John Criswell559a6c12003-09-30 16:31:48 +000015371 echo "$as_me:15371: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15373 then
15374 # The compiler can only warn and ignore the option if not recognized
15375 # So say no if there are warnings
15376 if test ! -s out/conftest.err; then
15377 lt_cv_prog_compiler_c_o_GCJ=yes
15378 fi
15379 fi
15380 chmod u+w .
15381 $rm conftest* out/*
15382 rmdir out
15383 cd ..
15384 rmdir conftest
15385 $rm conftest*
15386
15387fi
15388echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15389echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15390
15391
15392hard_links="nottested"
15393if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15394 # do not overwrite the value of need_locks provided by the user
15395 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15396echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15397 hard_links=yes
15398 $rm conftest*
15399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400 touch conftest.a
15401 ln conftest.a conftest.b 2>&5 || hard_links=no
15402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403 echo "$as_me:$LINENO: result: $hard_links" >&5
15404echo "${ECHO_T}$hard_links" >&6
15405 if test "$hard_links" = no; then
15406 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15407echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15408 need_locks=warn
15409 fi
15410else
15411 need_locks=no
15412fi
15413
15414echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15415echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15416
15417 runpath_var=
15418 allow_undefined_flag_GCJ=
15419 enable_shared_with_static_runtimes_GCJ=no
15420 archive_cmds_GCJ=
15421 archive_expsym_cmds_GCJ=
15422 old_archive_From_new_cmds_GCJ=
15423 old_archive_from_expsyms_cmds_GCJ=
15424 export_dynamic_flag_spec_GCJ=
15425 whole_archive_flag_spec_GCJ=
15426 thread_safe_flag_spec_GCJ=
15427 hardcode_libdir_flag_spec_GCJ=
15428 hardcode_libdir_flag_spec_ld_GCJ=
15429 hardcode_libdir_separator_GCJ=
15430 hardcode_direct_GCJ=no
15431 hardcode_minus_L_GCJ=no
15432 hardcode_shlibpath_var_GCJ=unsupported
15433 link_all_deplibs_GCJ=unknown
15434 hardcode_automatic_GCJ=no
15435 module_cmds_GCJ=
15436 module_expsym_cmds_GCJ=
15437 always_export_symbols_GCJ=no
15438 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439 # include_expsyms should be a list of space-separated symbols to be *always*
15440 # included in the symbol list
15441 include_expsyms_GCJ=
15442 # exclude_expsyms can be an extended regexp of symbols to exclude
15443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15445 # as well as any symbol that contains `d'.
15446 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448 # platforms (ab)use it in PIC code, but their linkers get confused if
15449 # the symbol is explicitly referenced. Since portable code cannot
15450 # rely on this symbol name, it's probably fine to never include it in
15451 # preloaded symbol tables.
15452 extract_expsyms_cmds=
15453
15454 case $host_os in
15455 cygwin* | mingw* | pw32*)
15456 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15457 # When not using gcc, we currently assume that we are using
15458 # Microsoft Visual C++.
15459 if test "$GCC" != yes; then
15460 with_gnu_ld=no
15461 fi
15462 ;;
15463 openbsd*)
15464 with_gnu_ld=no
15465 ;;
15466 esac
15467
15468 ld_shlibs_GCJ=yes
15469 if test "$with_gnu_ld" = yes; then
15470 # If archive_cmds runs LD, not CC, wlarc should be empty
15471 wlarc='${wl}'
15472
15473 # See if GNU ld supports shared libraries.
15474 case $host_os in
15475 aix3* | aix4* | aix5*)
15476 # On AIX/PPC, the GNU linker is very broken
15477 if test "$host_cpu" != ia64; then
15478 ld_shlibs_GCJ=no
15479 cat <<EOF 1>&2
15480
15481*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15482*** to be unable to reliably create shared libraries on AIX.
15483*** Therefore, libtool is disabling shared libraries support. If you
15484*** really care for shared libraries, you may want to modify your PATH
15485*** so that a non-GNU linker is found, and then restart.
15486
15487EOF
15488 fi
15489 ;;
15490
15491 amigaos*)
15492 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)'
15493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15494 hardcode_minus_L_GCJ=yes
15495
15496 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15497 # that the semantics of dynamic libraries on AmigaOS, at least up
15498 # to version 4, is to share data among multiple programs linked
15499 # with the same dynamic library. Since this doesn't match the
15500 # behavior of shared libraries on other platforms, we can't use
15501 # them.
15502 ld_shlibs_GCJ=no
15503 ;;
15504
15505 beos*)
15506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15507 allow_undefined_flag_GCJ=unsupported
15508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15509 # support --undefined. This deserves some investigation. FIXME
15510 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 else
15512 ld_shlibs_GCJ=no
15513 fi
15514 ;;
15515
15516 cygwin* | mingw* | pw32*)
15517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15518 # as there is no search path for DLLs.
15519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15520 allow_undefined_flag_GCJ=unsupported
15521 always_export_symbols_GCJ=no
15522 enable_shared_with_static_runtimes_GCJ=yes
15523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15524
15525 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15527 # If the export-symbols file already is a .def file (1st line
15528 # is EXPORTS), use it as is; otherwise, prepend...
15529 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15530 cp $export_symbols $output_objdir/$soname.def;
15531 else
15532 echo EXPORTS > $output_objdir/$soname.def;
15533 cat $export_symbols >> $output_objdir/$soname.def;
15534 fi~
15535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15536 else
15537 ld_shlibs=no
15538 fi
15539 ;;
15540
15541 netbsd*)
15542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15543 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15544 wlarc=
15545 else
15546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548 fi
15549 ;;
15550
15551 solaris* | sysv5*)
15552 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15553 ld_shlibs_GCJ=no
15554 cat <<EOF 1>&2
15555
15556*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15557*** create shared libraries on Solaris systems. Therefore, libtool
15558*** is disabling shared libraries support. We urge you to upgrade GNU
15559*** binutils to release 2.9.1 or newer. Another option is to modify
15560*** your PATH or compiler configuration so that the native linker is
15561*** used, and then restart.
15562
15563EOF
15564 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15567 else
15568 ld_shlibs_GCJ=no
15569 fi
15570 ;;
15571
15572 sunos4*)
15573 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574 wlarc=
15575 hardcode_direct_GCJ=yes
15576 hardcode_shlibpath_var_GCJ=no
15577 ;;
15578
15579 *)
15580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15582 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15583 else
15584 ld_shlibs_GCJ=no
15585 fi
15586 ;;
15587 esac
15588
15589 if test "$ld_shlibs_GCJ" = yes; then
15590 runpath_var=LD_RUN_PATH
15591 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15592 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15593 # ancient GNU ld didn't support --whole-archive et. al.
15594 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15595 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15596 else
15597 whole_archive_flag_spec_GCJ=
15598 fi
15599 fi
15600 else
15601 # PORTME fill in a description of your system's linker (not GNU ld)
15602 case $host_os in
15603 aix3*)
15604 allow_undefined_flag_GCJ=unsupported
15605 always_export_symbols_GCJ=yes
15606 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'
15607 # Note: this linker hardcodes the directories in LIBPATH if there
15608 # are no directories specified by -L.
15609 hardcode_minus_L_GCJ=yes
15610 if test "$GCC" = yes && test -z "$link_static_flag"; then
15611 # Neither direct hardcoding nor static linking is supported with a
15612 # broken collect2.
15613 hardcode_direct_GCJ=unsupported
15614 fi
15615 ;;
15616
15617 aix4* | aix5*)
15618 if test "$host_cpu" = ia64; then
15619 # On IA64, the linker does run time linking by default, so we don't
15620 # have to do anything special.
15621 aix_use_runtimelinking=no
15622 exp_sym_flag='-Bexport'
15623 no_entry_flag=""
15624 else
15625 # If we're using GNU nm, then we don't want the "-C" option.
15626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15627 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15628 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'
15629 else
15630 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'
15631 fi
15632 aix_use_runtimelinking=no
15633
15634 # Test if we are trying to use run time linking or normal
15635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15636 # need to do runtime linking.
15637 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15638 for ld_flag in $LDFLAGS; do
15639 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15640 aix_use_runtimelinking=yes
15641 break
15642 fi
15643 done
15644 esac
15645
15646 exp_sym_flag='-bexport'
15647 no_entry_flag='-bnoentry'
15648 fi
15649
15650 # When large executables or shared objects are built, AIX ld can
15651 # have problems creating the table of contents. If linking a library
15652 # or program results in "error TOC overflow" add -mminimal-toc to
15653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15655
15656 archive_cmds_GCJ=''
15657 hardcode_direct_GCJ=yes
15658 hardcode_libdir_separator_GCJ=':'
15659 link_all_deplibs_GCJ=yes
15660
15661 if test "$GCC" = yes; then
15662 case $host_os in aix4.012|aix4.012.*)
15663 # We only want to do this on AIX 4.2 and lower, the check
15664 # below for broken collect2 doesn't work under 4.3+
15665 collect2name=`${CC} -print-prog-name=collect2`
15666 if test -f "$collect2name" && \
15667 strings "$collect2name" | grep resolve_lib_name >/dev/null
15668 then
15669 # We have reworked collect2
15670 hardcode_direct_GCJ=yes
15671 else
15672 # We have old collect2
15673 hardcode_direct_GCJ=unsupported
15674 # It fails to find uninstalled libraries when the uninstalled
15675 # path is not listed in the libpath. Setting hardcode_minus_L
15676 # to unsupported forces relinking
15677 hardcode_minus_L_GCJ=yes
15678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15679 hardcode_libdir_separator_GCJ=
15680 fi
15681 esac
15682 shared_flag='-shared'
15683 else
15684 # not using gcc
15685 if test "$host_cpu" = ia64; then
15686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15687 # chokes on -Wl,-G. The following line is correct:
15688 shared_flag='-G'
15689 else
15690 if test "$aix_use_runtimelinking" = yes; then
15691 shared_flag='${wl}-G'
15692 else
15693 shared_flag='${wl}-bM:SRE'
15694 fi
15695 fi
15696 fi
15697
15698 # It seems that -bexpall does not export symbols beginning with
15699 # underscore (_), so it is better to generate a list of symbols to export.
15700 always_export_symbols_GCJ=yes
15701 if test "$aix_use_runtimelinking" = yes; then
15702 # Warning - without using the other runtime loading flags (-brtl),
15703 # -berok will link without error, but may produce a broken library.
15704 allow_undefined_flag_GCJ='-berok'
15705 # Determine the default libpath from the value encoded in an empty executable.
15706 cat >conftest.$ac_ext <<_ACEOF
15707#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015708/* confdefs.h. */
15709_ACEOF
15710cat confdefs.h >>conftest.$ac_ext
15711cat >>conftest.$ac_ext <<_ACEOF
15712/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015713
John Criswell47fdd832003-07-14 16:52:07 +000015714int
15715main ()
15716{
15717
15718 ;
15719 return 0;
15720}
15721_ACEOF
15722rm -f conftest.$ac_objext conftest$ac_exeext
15723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15724 (eval $ac_link) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -s conftest$ac_exeext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734
15735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15736}'`
15737# Check for a 64-bit object if we didn't find anything.
15738if 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; }
15739}'`; fi
15740else
15741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015742sed 's/^/| /' conftest.$ac_ext >&5
15743
John Criswell47fdd832003-07-14 16:52:07 +000015744fi
15745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15747
15748 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15749 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"
15750 else
15751 if test "$host_cpu" = ia64; then
15752 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15753 allow_undefined_flag_GCJ="-z nodefs"
15754 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"
15755 else
15756 # Determine the default libpath from the value encoded in an empty executable.
15757 cat >conftest.$ac_ext <<_ACEOF
15758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015764
John Criswell47fdd832003-07-14 16:52:07 +000015765int
15766main ()
15767{
15768
15769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext conftest$ac_exeext
15774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15775 (eval $ac_link) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -s conftest$ac_exeext'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15785
15786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15787}'`
15788# Check for a 64-bit object if we didn't find anything.
15789if 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; }
15790}'`; fi
15791else
15792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015793sed 's/^/| /' conftest.$ac_ext >&5
15794
John Criswell47fdd832003-07-14 16:52:07 +000015795fi
15796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15798
15799 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15800 # Warning - without using the other run time loading flags,
15801 # -berok will link without error, but may produce a broken library.
15802 no_undefined_flag_GCJ=' ${wl}-bernotok'
15803 allow_undefined_flag_GCJ=' ${wl}-berok'
15804 # -bexpall does not export symbols beginning with underscore (_)
15805 always_export_symbols_GCJ=yes
15806 # Exported symbols can be pulled into shared objects from archives
15807 whole_archive_flag_spec_GCJ=' '
15808 archive_cmds_need_lc_GCJ=yes
15809 # This is similar to how AIX traditionally builds it's shared libraries.
15810 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'
15811 fi
15812 fi
15813 ;;
15814
15815 amigaos*)
15816 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)'
15817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15818 hardcode_minus_L_GCJ=yes
15819 # see comment about different semantics on the GNU ld section
15820 ld_shlibs_GCJ=no
15821 ;;
15822
15823 bsdi4*)
15824 export_dynamic_flag_spec_GCJ=-rdynamic
15825 ;;
15826
15827 cygwin* | mingw* | pw32*)
15828 # When not using gcc, we currently assume that we are using
15829 # Microsoft Visual C++.
15830 # hardcode_libdir_flag_spec is actually meaningless, as there is
15831 # no search path for DLLs.
15832 hardcode_libdir_flag_spec_GCJ=' '
15833 allow_undefined_flag_GCJ=unsupported
15834 # Tell ltmain to make .lib files, not .a files.
15835 libext=lib
15836 # Tell ltmain to make .dll files, not .so files.
15837 shrext=".dll"
15838 # FIXME: Setting linknames here is a bad hack.
15839 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15840 # The linker will automatically build a .lib file if we build a DLL.
15841 old_archive_From_new_cmds_GCJ='true'
15842 # FIXME: Should let the user specify the lib program.
15843 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15844 fix_srcfile_path='`cygpath -w "$srcfile"`'
15845 enable_shared_with_static_runtimes_GCJ=yes
15846 ;;
15847
15848 darwin* | rhapsody*)
15849 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15850 archive_cmds_need_lc_GCJ=no
15851 case "$host_os" in
15852 rhapsody* | darwin1.[012])
15853 allow_undefined_flag_GCJ='-undefined suppress'
15854 ;;
15855 *) # Darwin 1.3 on
15856 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15857 ;;
15858 esac
15859 # FIXME: Relying on posixy $() will cause problems for
15860 # cross-compilation, but unfortunately the echo tests do not
15861 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15862 # `"' quotes if we put them in here... so don't!
15863 lt_int_apple_cc_single_mod=no
15864 output_verbose_link_cmd='echo'
15865 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15866 lt_int_apple_cc_single_mod=yes
15867 fi
15868 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15869 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15870 else
15871 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'
15872 fi
15873 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15874 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15875 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15876 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}'
15877 else
15878 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}'
15879 fi
15880 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}'
15881 hardcode_direct_GCJ=no
15882 hardcode_automatic_GCJ=yes
15883 hardcode_shlibpath_var_GCJ=unsupported
15884 whole_archive_flag_spec_GCJ='-all_load $convenience'
15885 link_all_deplibs_GCJ=yes
15886 fi
15887 ;;
15888
15889 dgux*)
15890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15892 hardcode_shlibpath_var_GCJ=no
15893 ;;
15894
15895 freebsd1*)
15896 ld_shlibs_GCJ=no
15897 ;;
15898
15899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15900 # support. Future versions do this automatically, but an explicit c++rt0.o
15901 # does not break anything, and helps significantly (at the cost of a little
15902 # extra space).
15903 freebsd2.2*)
15904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15906 hardcode_direct_GCJ=yes
15907 hardcode_shlibpath_var_GCJ=no
15908 ;;
15909
15910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15911 freebsd2*)
15912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15913 hardcode_direct_GCJ=yes
15914 hardcode_minus_L_GCJ=yes
15915 hardcode_shlibpath_var_GCJ=no
15916 ;;
15917
15918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15919 freebsd*)
15920 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15921 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15922 hardcode_direct_GCJ=yes
15923 hardcode_shlibpath_var_GCJ=no
15924 ;;
15925
15926 hpux9*)
15927 if test "$GCC" = yes; then
15928 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'
15929 else
15930 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'
15931 fi
15932 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15933 hardcode_libdir_separator_GCJ=:
15934 hardcode_direct_GCJ=yes
15935
15936 # hardcode_minus_L: Not really in the search PATH,
15937 # but as the default location of the library.
15938 hardcode_minus_L_GCJ=yes
15939 export_dynamic_flag_spec_GCJ='${wl}-E'
15940 ;;
15941
15942 hpux10* | hpux11*)
15943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15944 case "$host_cpu" in
15945 hppa*64*|ia64*)
15946 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15947 ;;
15948 *)
15949 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15950 ;;
15951 esac
15952 else
15953 case "$host_cpu" in
15954 hppa*64*|ia64*)
15955 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15956 ;;
15957 *)
15958 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15959 ;;
15960 esac
15961 fi
15962 if test "$with_gnu_ld" = no; then
15963 case "$host_cpu" in
15964 hppa*64*)
15965 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15966 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15967 hardcode_libdir_separator_GCJ=:
15968 hardcode_direct_GCJ=no
15969 hardcode_shlibpath_var_GCJ=no
15970 ;;
15971 ia64*)
15972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15973 hardcode_direct_GCJ=no
15974 hardcode_shlibpath_var_GCJ=no
15975
15976 # hardcode_minus_L: Not really in the search PATH,
15977 # but as the default location of the library.
15978 hardcode_minus_L_GCJ=yes
15979 ;;
15980 *)
15981 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15982 hardcode_libdir_separator_GCJ=:
15983 hardcode_direct_GCJ=yes
15984 export_dynamic_flag_spec_GCJ='${wl}-E'
15985
15986 # hardcode_minus_L: Not really in the search PATH,
15987 # but as the default location of the library.
15988 hardcode_minus_L_GCJ=yes
15989 ;;
15990 esac
15991 fi
15992 ;;
15993
15994 irix5* | irix6* | nonstopux*)
15995 if test "$GCC" = yes; then
15996 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'
15997 else
15998 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'
15999 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16000 fi
16001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16002 hardcode_libdir_separator_GCJ=:
16003 link_all_deplibs_GCJ=yes
16004 ;;
16005
16006 netbsd*)
16007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16008 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16009 else
16010 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16011 fi
16012 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16013 hardcode_direct_GCJ=yes
16014 hardcode_shlibpath_var_GCJ=no
16015 ;;
16016
16017 newsos6)
16018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_direct_GCJ=yes
16020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16021 hardcode_libdir_separator_GCJ=:
16022 hardcode_shlibpath_var_GCJ=no
16023 ;;
16024
16025 openbsd*)
16026 hardcode_direct_GCJ=yes
16027 hardcode_shlibpath_var_GCJ=no
16028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16029 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16031 export_dynamic_flag_spec_GCJ='${wl}-E'
16032 else
16033 case $host_os in
16034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16035 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16036 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16037 ;;
16038 *)
16039 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16041 ;;
16042 esac
16043 fi
16044 ;;
16045
16046 os2*)
16047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048 hardcode_minus_L_GCJ=yes
16049 allow_undefined_flag_GCJ=unsupported
16050 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'
16051 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16052 ;;
16053
16054 osf3*)
16055 if test "$GCC" = yes; then
16056 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16057 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'
16058 else
16059 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16060 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'
16061 fi
16062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16063 hardcode_libdir_separator_GCJ=:
16064 ;;
16065
16066 osf4* | osf5*) # as osf3* with the addition of -msym flag
16067 if test "$GCC" = yes; then
16068 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16069 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'
16070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16071 else
16072 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16073 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'
16074 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~
16075 $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'
16076
16077 # Both c and cxx compiler support -rpath directly
16078 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16079 fi
16080 hardcode_libdir_separator_GCJ=:
16081 ;;
16082
16083 sco3.2v5*)
16084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085 hardcode_shlibpath_var_GCJ=no
16086 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16087 runpath_var=LD_RUN_PATH
16088 hardcode_runpath_var=yes
16089 ;;
16090
16091 solaris*)
16092 no_undefined_flag_GCJ=' -z text'
16093 if test "$GCC" = yes; then
16094 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16095 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16097 else
16098 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16101 fi
16102 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16103 hardcode_shlibpath_var_GCJ=no
16104 case $host_os in
16105 solaris2.[0-5] | solaris2.[0-5].*) ;;
16106 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16107 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16108 esac
16109 link_all_deplibs_GCJ=yes
16110 ;;
16111
16112 sunos4*)
16113 if test "x$host_vendor" = xsequent; then
16114 # Use $CC to link under sequent, because it throws in some extra .o
16115 # files that make .init and .fini sections work.
16116 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16117 else
16118 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16119 fi
16120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16121 hardcode_direct_GCJ=yes
16122 hardcode_minus_L_GCJ=yes
16123 hardcode_shlibpath_var_GCJ=no
16124 ;;
16125
16126 sysv4)
16127 case $host_vendor in
16128 sni)
16129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 hardcode_direct_GCJ=yes # is this really true???
16131 ;;
16132 siemens)
16133 ## LD is ld it makes a PLAMLIB
16134 ## CC just makes a GrossModule.
16135 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16136 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16137 hardcode_direct_GCJ=no
16138 ;;
16139 motorola)
16140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16142 ;;
16143 esac
16144 runpath_var='LD_RUN_PATH'
16145 hardcode_shlibpath_var_GCJ=no
16146 ;;
16147
16148 sysv4.3*)
16149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150 hardcode_shlibpath_var_GCJ=no
16151 export_dynamic_flag_spec_GCJ='-Bexport'
16152 ;;
16153
16154 sysv4*MP*)
16155 if test -d /usr/nec; then
16156 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16157 hardcode_shlibpath_var_GCJ=no
16158 runpath_var=LD_RUN_PATH
16159 hardcode_runpath_var=yes
16160 ld_shlibs_GCJ=yes
16161 fi
16162 ;;
16163
16164 sysv4.2uw2*)
16165 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166 hardcode_direct_GCJ=yes
16167 hardcode_minus_L_GCJ=no
16168 hardcode_shlibpath_var_GCJ=no
16169 hardcode_runpath_var=yes
16170 runpath_var=LD_RUN_PATH
16171 ;;
16172
16173 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16174 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16175 if test "$GCC" = yes; then
16176 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 else
16178 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16179 fi
16180 runpath_var='LD_RUN_PATH'
16181 hardcode_shlibpath_var_GCJ=no
16182 ;;
16183
16184 sysv5*)
16185 no_undefined_flag_GCJ=' -z text'
16186 # $CC -shared without GNU ld will not create a library from C++
16187 # object files and a static libstdc++, better avoid it by now
16188 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16190 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16191 hardcode_libdir_flag_spec_GCJ=
16192 hardcode_shlibpath_var_GCJ=no
16193 runpath_var='LD_RUN_PATH'
16194 ;;
16195
16196 uts4*)
16197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16198 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16199 hardcode_shlibpath_var_GCJ=no
16200 ;;
16201
16202 *)
16203 ld_shlibs_GCJ=no
16204 ;;
16205 esac
16206 fi
16207
16208echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16209echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16210test "$ld_shlibs_GCJ" = no && can_build_shared=no
16211
16212variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16213if test "$GCC" = yes; then
16214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16215fi
16216
16217#
16218# Do we need to explicitly link libc?
16219#
16220case "x$archive_cmds_need_lc_GCJ" in
16221x|xyes)
16222 # Assume -lc should be added
16223 archive_cmds_need_lc_GCJ=yes
16224
16225 if test "$enable_shared" = yes && test "$GCC" = yes; then
16226 case $archive_cmds_GCJ in
16227 *'~'*)
16228 # FIXME: we may have to deal with multi-command sequences.
16229 ;;
16230 '$CC '*)
16231 # Test whether the compiler implicitly links with -lc since on some
16232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16233 # to ld, don't add -lc before -lgcc.
16234 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16235echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16236 $rm conftest*
16237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16238
16239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240 (eval $ac_compile) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } 2>conftest.err; then
16244 soname=conftest
16245 lib=conftest
16246 libobjs=conftest.$ac_objext
16247 deplibs=
16248 wl=$lt_prog_compiler_wl_GCJ
16249 compiler_flags=-v
16250 linker_flags=-v
16251 verstring=
16252 output_objdir=.
16253 libname=conftest
16254 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16255 allow_undefined_flag_GCJ=
16256 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16257 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }
16261 then
16262 archive_cmds_need_lc_GCJ=no
16263 else
16264 archive_cmds_need_lc_GCJ=yes
16265 fi
16266 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16267 else
16268 cat conftest.err 1>&5
16269 fi
16270 $rm conftest*
16271 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16272echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16273 ;;
16274 esac
16275 fi
16276 ;;
16277esac
16278
16279echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16280echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16281hardcode_action_GCJ=
16282if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16283 test -n "$runpath_var GCJ" || \
16284 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16285
16286 # We can hardcode non-existant directories.
16287 if test "$hardcode_direct_GCJ" != no &&
16288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16289 # have to relink, otherwise we might link with an installed library
16290 # when we should be linking with a yet-to-be-installed one
16291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16292 test "$hardcode_minus_L_GCJ" != no; then
16293 # Linking always hardcodes the temporary library directory.
16294 hardcode_action_GCJ=relink
16295 else
16296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16297 hardcode_action_GCJ=immediate
16298 fi
16299else
16300 # We cannot hardcode anything, or else we can only hardcode existing
16301 # directories.
16302 hardcode_action_GCJ=unsupported
16303fi
16304echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16305echo "${ECHO_T}$hardcode_action_GCJ" >&6
16306
16307if test "$hardcode_action_GCJ" = relink; then
16308 # Fast installation is not supported
16309 enable_fast_install=no
16310elif test "$shlibpath_overrides_runpath" = yes ||
16311 test "$enable_shared" = no; then
16312 # Fast installation is not necessary
16313 enable_fast_install=needless
16314fi
16315
16316striplib=
16317old_striplib=
16318echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16319echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16320if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16323 echo "$as_me:$LINENO: result: yes" >&5
16324echo "${ECHO_T}yes" >&6
16325else
16326# FIXME - insert some real tests, host_os isn't really good enough
16327 case $host_os in
16328 darwin*)
16329 if test -n "$STRIP" ; then
16330 striplib="$STRIP -x"
16331 echo "$as_me:$LINENO: result: yes" >&5
16332echo "${ECHO_T}yes" >&6
16333 else
16334 echo "$as_me:$LINENO: result: no" >&5
16335echo "${ECHO_T}no" >&6
16336fi
16337 ;;
16338 *)
16339 echo "$as_me:$LINENO: result: no" >&5
16340echo "${ECHO_T}no" >&6
16341 ;;
16342 esac
16343fi
16344
16345echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16346echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16347library_names_spec=
16348libname_spec='lib$name'
16349soname_spec=
16350shrext=".so"
16351postinstall_cmds=
16352postuninstall_cmds=
16353finish_cmds=
16354finish_eval=
16355shlibpath_var=
16356shlibpath_overrides_runpath=unknown
16357version_type=none
16358dynamic_linker="$host_os ld.so"
16359sys_lib_dlsearch_path_spec="/lib /usr/lib"
16360if test "$GCC" = yes; then
16361 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16362 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16363 # if the path contains ";" then we assume it to be the separator
16364 # otherwise default to the standard path separator (i.e. ":") - it is
16365 # assumed that no part of a normal pathname contains ";" but that should
16366 # okay in the real world where ";" in dirpaths is itself problematic.
16367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16368 else
16369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16370 fi
16371else
16372 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16373fi
16374need_lib_prefix=unknown
16375hardcode_into_libs=no
16376
16377# when you set need_version to no, make sure it does not cause -set_version
16378# flags to be left without arguments
16379need_version=unknown
16380
16381case $host_os in
16382aix3*)
16383 version_type=linux
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16385 shlibpath_var=LIBPATH
16386
16387 # AIX 3 has no versioning support, so we append a major version to the name.
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 ;;
16390
16391aix4* | aix5*)
16392 version_type=linux
16393 need_lib_prefix=no
16394 need_version=no
16395 hardcode_into_libs=yes
16396 if test "$host_cpu" = ia64; then
16397 # AIX 5 supports IA64
16398 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 else
16401 # With GCC up to 2.95.x, collect2 would create an import file
16402 # for dependence libraries. The import file would start with
16403 # the line `#! .'. This would cause the generated library to
16404 # depend on `.', always an invalid library. This was fixed in
16405 # development snapshots of GCC prior to 3.0.
16406 case $host_os in
16407 aix4 | aix4.[01] | aix4.[01].*)
16408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16409 echo ' yes '
16410 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16411 :
16412 else
16413 can_build_shared=no
16414 fi
16415 ;;
16416 esac
16417 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16418 # soname into executable. Probably we can add versioning support to
16419 # collect2, so additional links can be useful in future.
16420 if test "$aix_use_runtimelinking" = yes; then
16421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16422 # instead of lib<name>.a to let people know that these are not
16423 # typical AIX shared libraries.
16424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 else
16426 # We preserve .a as extension for shared libraries through AIX4.2
16427 # and later when we are not doing run time linking.
16428 library_names_spec='${libname}${release}.a $libname.a'
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 fi
16431 shlibpath_var=LIBPATH
16432 fi
16433 ;;
16434
16435amigaos*)
16436 library_names_spec='$libname.ixlibrary $libname.a'
16437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16438 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'
16439 ;;
16440
16441beos*)
16442 library_names_spec='${libname}${shared_ext}'
16443 dynamic_linker="$host_os ld.so"
16444 shlibpath_var=LIBRARY_PATH
16445 ;;
16446
16447bsdi4*)
16448 version_type=linux
16449 need_version=no
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16453 shlibpath_var=LD_LIBRARY_PATH
16454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16456 # the default ld.so.conf also contains /usr/contrib/lib and
16457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16458 # libtool to hard-code these into programs
16459 ;;
16460
16461cygwin* | mingw* | pw32*)
16462 version_type=windows
16463 shrext=".dll"
16464 need_version=no
16465 need_lib_prefix=no
16466
16467 case $GCC,$host_os in
16468 yes,cygwin* | yes,mingw* | yes,pw32*)
16469 library_names_spec='$libname.dll.a'
16470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16471 postinstall_cmds='base_file=`basename \${file}`~
16472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16473 dldir=$destdir/`dirname \$dlpath`~
16474 test -d \$dldir || mkdir -p \$dldir~
16475 $install_prog $dir/$dlname \$dldir/$dlname'
16476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16477 dlpath=$dir/\$dldll~
16478 $rm \$dlpath'
16479 shlibpath_overrides_runpath=yes
16480
16481 case $host_os in
16482 cygwin*)
16483 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16484 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16485 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16486 ;;
16487 mingw*)
16488 # MinGW DLLs use traditional 'lib' prefix
16489 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16491 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16492 # It is most probably a Windows format PATH printed by
16493 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16494 # path with ; separators, and with drive letters. We can handle the
16495 # drive letters (cygwin fileutils understands them), so leave them,
16496 # especially as we might pass files found there to a mingw objdump,
16497 # which wouldn't understand a cygwinified path. Ahh.
16498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16499 else
16500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16501 fi
16502 ;;
16503 pw32*)
16504 # pw32 DLLs use 'pw' prefix rather than 'lib'
16505 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16506 ;;
16507 esac
16508 ;;
16509
16510 *)
16511 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16512 ;;
16513 esac
16514 dynamic_linker='Win32 ld.exe'
16515 # FIXME: first we should search . and the directory the executable is in
16516 shlibpath_var=PATH
16517 ;;
16518
16519darwin* | rhapsody*)
16520 dynamic_linker="$host_os dyld"
16521 version_type=darwin
16522 need_lib_prefix=no
16523 need_version=no
16524 # FIXME: Relying on posixy $() will cause problems for
16525 # cross-compilation, but unfortunately the echo tests do not
16526 # yet detect zsh echo's removal of \ escapes.
16527 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16528 soname_spec='${libname}${release}${major}$shared_ext'
16529 shlibpath_overrides_runpath=yes
16530 shlibpath_var=DYLD_LIBRARY_PATH
16531 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16532 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16533 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16534 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"`
16535 fi
16536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16537 ;;
16538
16539dgux*)
16540 version_type=linux
16541 need_lib_prefix=no
16542 need_version=no
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16544 soname_spec='${libname}${release}${shared_ext}$major'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 ;;
16547
16548freebsd1*)
16549 dynamic_linker=no
16550 ;;
16551
16552freebsd*)
16553 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16554 version_type=freebsd-$objformat
16555 case $version_type in
16556 freebsd-elf*)
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16558 need_version=no
16559 need_lib_prefix=no
16560 ;;
16561 freebsd-*)
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16563 need_version=yes
16564 ;;
16565 esac
16566 shlibpath_var=LD_LIBRARY_PATH
16567 case $host_os in
16568 freebsd2*)
16569 shlibpath_overrides_runpath=yes
16570 ;;
16571 freebsd3.01* | freebsdelf3.01*)
16572 shlibpath_overrides_runpath=yes
16573 hardcode_into_libs=yes
16574 ;;
16575 *) # from 3.2 on
16576 shlibpath_overrides_runpath=no
16577 hardcode_into_libs=yes
16578 ;;
16579 esac
16580 ;;
16581
16582gnu*)
16583 version_type=linux
16584 need_lib_prefix=no
16585 need_version=no
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 shlibpath_var=LD_LIBRARY_PATH
16589 hardcode_into_libs=yes
16590 ;;
16591
16592hpux9* | hpux10* | hpux11*)
16593 # Give a soname corresponding to the major version so that dld.sl refuses to
16594 # link against other versions.
16595 version_type=sunos
16596 need_lib_prefix=no
16597 need_version=no
16598 case "$host_cpu" in
16599 ia64*)
16600 shrext='.so'
16601 hardcode_into_libs=yes
16602 dynamic_linker="$host_os dld.so"
16603 shlibpath_var=LD_LIBRARY_PATH
16604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 if test "X$HPUX_IA64_MODE" = X32; then
16608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16609 else
16610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16611 fi
16612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16613 ;;
16614 hppa*64*)
16615 shrext='.sl'
16616 hardcode_into_libs=yes
16617 dynamic_linker="$host_os dld.sl"
16618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16621 soname_spec='${libname}${release}${shared_ext}$major'
16622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624 ;;
16625 *)
16626 shrext='.sl'
16627 dynamic_linker="$host_os dld.sl"
16628 shlibpath_var=SHLIB_PATH
16629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631 soname_spec='${libname}${release}${shared_ext}$major'
16632 ;;
16633 esac
16634 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16635 postinstall_cmds='chmod 555 $lib'
16636 ;;
16637
16638irix5* | irix6* | nonstopux*)
16639 case $host_os in
16640 nonstopux*) version_type=nonstopux ;;
16641 *)
16642 if test "$lt_cv_prog_gnu_ld" = yes; then
16643 version_type=linux
16644 else
16645 version_type=irix
16646 fi ;;
16647 esac
16648 need_lib_prefix=no
16649 need_version=no
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16652 case $host_os in
16653 irix5* | nonstopux*)
16654 libsuff= shlibsuff=
16655 ;;
16656 *)
16657 case $LD in # libtool.m4 will add one of these switches to LD
16658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16659 libsuff= shlibsuff= libmagic=32-bit;;
16660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16661 libsuff=32 shlibsuff=N32 libmagic=N32;;
16662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16664 *) libsuff= shlibsuff= libmagic=never-match;;
16665 esac
16666 ;;
16667 esac
16668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16669 shlibpath_overrides_runpath=no
16670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16672 hardcode_into_libs=yes
16673 ;;
16674
16675# No shared lib support for Linux oldld, aout, or coff.
16676linux*oldld* | linux*aout* | linux*coff*)
16677 dynamic_linker=no
16678 ;;
16679
16680# This must be Linux ELF.
16681linux*)
16682 version_type=linux
16683 need_lib_prefix=no
16684 need_version=no
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16688 shlibpath_var=LD_LIBRARY_PATH
16689 shlibpath_overrides_runpath=no
16690 # This implies no fast_install, which is unacceptable.
16691 # Some rework will be needed to allow for fast_install
16692 # before this can be enabled.
16693 hardcode_into_libs=yes
16694
16695 # We used to test for /lib/ld.so.1 and disable shared libraries on
16696 # powerpc, because MkLinux only supported shared libraries with the
16697 # GNU dynamic linker. Since this was broken with cross compilers,
16698 # most powerpc-linux boxes support dynamic linking these days and
16699 # people can always --disable-shared, the test was removed, and we
16700 # assume the GNU/Linux dynamic linker is in use.
16701 dynamic_linker='GNU/Linux ld.so'
16702 ;;
16703
16704netbsd*)
16705 version_type=sunos
16706 need_lib_prefix=no
16707 need_version=no
16708 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16711 dynamic_linker='NetBSD (a.out) ld.so'
16712 else
16713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16714 soname_spec='${libname}${release}${shared_ext}$major'
16715 dynamic_linker='NetBSD ld.elf_so'
16716 fi
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 hardcode_into_libs=yes
16720 ;;
16721
16722newsos6)
16723 version_type=linux
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725 shlibpath_var=LD_LIBRARY_PATH
16726 shlibpath_overrides_runpath=yes
16727 ;;
16728
16729nto-qnx)
16730 version_type=linux
16731 need_lib_prefix=no
16732 need_version=no
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 shlibpath_var=LD_LIBRARY_PATH
16736 shlibpath_overrides_runpath=yes
16737 ;;
16738
16739openbsd*)
16740 version_type=sunos
16741 need_lib_prefix=no
16742 need_version=no
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16747 case $host_os in
16748 openbsd2.[89] | openbsd2.[89].*)
16749 shlibpath_overrides_runpath=no
16750 ;;
16751 *)
16752 shlibpath_overrides_runpath=yes
16753 ;;
16754 esac
16755 else
16756 shlibpath_overrides_runpath=yes
16757 fi
16758 ;;
16759
16760os2*)
16761 libname_spec='$name'
16762 shrext=".dll"
16763 need_lib_prefix=no
16764 library_names_spec='$libname${shared_ext} $libname.a'
16765 dynamic_linker='OS/2 ld.exe'
16766 shlibpath_var=LIBPATH
16767 ;;
16768
16769osf3* | osf4* | osf5*)
16770 version_type=osf
16771 need_lib_prefix=no
16772 need_version=no
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16777 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16778 ;;
16779
16780sco3.2v5*)
16781 version_type=osf
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 ;;
16786
16787solaris*)
16788 version_type=linux
16789 need_lib_prefix=no
16790 need_version=no
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792 soname_spec='${libname}${release}${shared_ext}$major'
16793 shlibpath_var=LD_LIBRARY_PATH
16794 shlibpath_overrides_runpath=yes
16795 hardcode_into_libs=yes
16796 # ldd complains unless libraries are executable
16797 postinstall_cmds='chmod +x $lib'
16798 ;;
16799
16800sunos4*)
16801 version_type=sunos
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16806 if test "$with_gnu_ld" = yes; then
16807 need_lib_prefix=no
16808 fi
16809 need_version=yes
16810 ;;
16811
16812sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16813 version_type=linux
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 case $host_vendor in
16818 sni)
16819 shlibpath_overrides_runpath=no
16820 need_lib_prefix=no
16821 export_dynamic_flag_spec='${wl}-Blargedynsym'
16822 runpath_var=LD_RUN_PATH
16823 ;;
16824 siemens)
16825 need_lib_prefix=no
16826 ;;
16827 motorola)
16828 need_lib_prefix=no
16829 need_version=no
16830 shlibpath_overrides_runpath=no
16831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16832 ;;
16833 esac
16834 ;;
16835
16836sysv4*MP*)
16837 if test -d /usr/nec ;then
16838 version_type=linux
16839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16840 soname_spec='$libname${shared_ext}.$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 fi
16843 ;;
16844
16845uts4*)
16846 version_type=linux
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 ;;
16851
16852*)
16853 dynamic_linker=no
16854 ;;
16855esac
16856echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16857echo "${ECHO_T}$dynamic_linker" >&6
16858test "$dynamic_linker" = no && can_build_shared=no
16859
16860if test "x$enable_dlopen" != xyes; then
16861 enable_dlopen=unknown
16862 enable_dlopen_self=unknown
16863 enable_dlopen_self_static=unknown
16864else
16865 lt_cv_dlopen=no
16866 lt_cv_dlopen_libs=
16867
16868 case $host_os in
16869 beos*)
16870 lt_cv_dlopen="load_add_on"
16871 lt_cv_dlopen_libs=
16872 lt_cv_dlopen_self=yes
16873 ;;
16874
16875 mingw* | pw32*)
16876 lt_cv_dlopen="LoadLibrary"
16877 lt_cv_dlopen_libs=
16878 ;;
16879
16880 cygwin*)
16881 lt_cv_dlopen="dlopen"
16882 lt_cv_dlopen_libs=
16883 ;;
16884
16885 darwin*)
16886 # if libdl is installed we need to link against it
16887 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16888echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16889if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16891else
16892 ac_check_lib_save_LIBS=$LIBS
16893LIBS="-ldl $LIBS"
16894cat >conftest.$ac_ext <<_ACEOF
16895#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016901
16902/* Override any gcc2 internal prototype to avoid an error. */
16903#ifdef __cplusplus
16904extern "C"
16905#endif
16906/* We use char because int might match the return type of a gcc2
16907 builtin and then its argument prototype would still apply. */
16908char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016909int
16910main ()
16911{
16912dlopen ();
16913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext conftest$ac_exeext
16918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16919 (eval $ac_link) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -s conftest$ac_exeext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_lib_dl_dlopen=yes
16930else
16931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016932sed 's/^/| /' conftest.$ac_ext >&5
16933
John Criswell47fdd832003-07-14 16:52:07 +000016934ac_cv_lib_dl_dlopen=no
16935fi
16936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16937LIBS=$ac_check_lib_save_LIBS
16938fi
16939echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16940echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16941if test $ac_cv_lib_dl_dlopen = yes; then
16942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16943else
16944
16945 lt_cv_dlopen="dyld"
16946 lt_cv_dlopen_libs=
16947 lt_cv_dlopen_self=yes
16948
16949fi
16950
16951 ;;
16952
16953 *)
16954 echo "$as_me:$LINENO: checking for shl_load" >&5
16955echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16956if test "${ac_cv_func_shl_load+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958else
16959 cat >conftest.$ac_ext <<_ACEOF
16960#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016966/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016967 which can conflict with char shl_load (); below.
16968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16969 <limits.h> exists even on freestanding compilers. */
16970#ifdef __STDC__
16971# include <limits.h>
16972#else
16973# include <assert.h>
16974#endif
John Criswell47fdd832003-07-14 16:52:07 +000016975/* Override any gcc2 internal prototype to avoid an error. */
16976#ifdef __cplusplus
16977extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016978{
John Criswell47fdd832003-07-14 16:52:07 +000016979#endif
16980/* We use char because int might match the return type of a gcc2
16981 builtin and then its argument prototype would still apply. */
16982char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016983/* The GNU C library defines this for functions which it implements
16984 to always fail with ENOSYS. Some functions are actually named
16985 something starting with __ and the normal name is an alias. */
16986#if defined (__stub_shl_load) || defined (__stub___shl_load)
16987choke me
16988#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016989char (*f) () = shl_load;
16990#endif
16991#ifdef __cplusplus
16992}
John Criswell47fdd832003-07-14 16:52:07 +000016993#endif
16994
John Criswell0c38eaf2003-09-10 15:17:25 +000016995int
16996main ()
16997{
16998return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016999 ;
17000 return 0;
17001}
17002_ACEOF
17003rm -f conftest.$ac_objext conftest$ac_exeext
17004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17005 (eval $ac_link) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } &&
17009 { ac_try='test -s conftest$ac_exeext'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_cv_func_shl_load=yes
17016else
17017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017018sed 's/^/| /' conftest.$ac_ext >&5
17019
John Criswell47fdd832003-07-14 16:52:07 +000017020ac_cv_func_shl_load=no
17021fi
17022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17023fi
17024echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17025echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17026if test $ac_cv_func_shl_load = yes; then
17027 lt_cv_dlopen="shl_load"
17028else
17029 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17030echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17031if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 ac_check_lib_save_LIBS=$LIBS
17035LIBS="-ldld $LIBS"
17036cat >conftest.$ac_ext <<_ACEOF
17037#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017038/* confdefs.h. */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017043
17044/* Override any gcc2 internal prototype to avoid an error. */
17045#ifdef __cplusplus
17046extern "C"
17047#endif
17048/* We use char because int might match the return type of a gcc2
17049 builtin and then its argument prototype would still apply. */
17050char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017051int
17052main ()
17053{
17054shl_load ();
17055 ;
17056 return 0;
17057}
17058_ACEOF
17059rm -f conftest.$ac_objext conftest$ac_exeext
17060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061 (eval $ac_link) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_lib_dld_shl_load=yes
17072else
17073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017074sed 's/^/| /' conftest.$ac_ext >&5
17075
John Criswell47fdd832003-07-14 16:52:07 +000017076ac_cv_lib_dld_shl_load=no
17077fi
17078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17079LIBS=$ac_check_lib_save_LIBS
17080fi
17081echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17082echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17083if test $ac_cv_lib_dld_shl_load = yes; then
17084 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17085else
17086 echo "$as_me:$LINENO: checking for dlopen" >&5
17087echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17088if test "${ac_cv_func_dlopen+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090else
17091 cat >conftest.$ac_ext <<_ACEOF
17092#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017093/* confdefs.h. */
17094_ACEOF
17095cat confdefs.h >>conftest.$ac_ext
17096cat >>conftest.$ac_ext <<_ACEOF
17097/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017098/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017099 which can conflict with char dlopen (); below.
17100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101 <limits.h> exists even on freestanding compilers. */
17102#ifdef __STDC__
17103# include <limits.h>
17104#else
17105# include <assert.h>
17106#endif
John Criswell47fdd832003-07-14 16:52:07 +000017107/* Override any gcc2 internal prototype to avoid an error. */
17108#ifdef __cplusplus
17109extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017110{
John Criswell47fdd832003-07-14 16:52:07 +000017111#endif
17112/* We use char because int might match the return type of a gcc2
17113 builtin and then its argument prototype would still apply. */
17114char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017115/* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118#if defined (__stub_dlopen) || defined (__stub___dlopen)
17119choke me
17120#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017121char (*f) () = dlopen;
17122#endif
17123#ifdef __cplusplus
17124}
John Criswell47fdd832003-07-14 16:52:07 +000017125#endif
17126
John Criswell0c38eaf2003-09-10 15:17:25 +000017127int
17128main ()
17129{
17130return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext conftest$ac_exeext
17136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -s conftest$ac_exeext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_func_dlopen=yes
17148else
17149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017150sed 's/^/| /' conftest.$ac_ext >&5
17151
John Criswell47fdd832003-07-14 16:52:07 +000017152ac_cv_func_dlopen=no
17153fi
17154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17155fi
17156echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17157echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17158if test $ac_cv_func_dlopen = yes; then
17159 lt_cv_dlopen="dlopen"
17160else
17161 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17162echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17163if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17165else
17166 ac_check_lib_save_LIBS=$LIBS
17167LIBS="-ldl $LIBS"
17168cat >conftest.$ac_ext <<_ACEOF
17169#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017175
17176/* Override any gcc2 internal prototype to avoid an error. */
17177#ifdef __cplusplus
17178extern "C"
17179#endif
17180/* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17182char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017183int
17184main ()
17185{
17186dlopen ();
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext conftest$ac_exeext
17192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_cv_lib_dl_dlopen=yes
17204else
17205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017206sed 's/^/| /' conftest.$ac_ext >&5
17207
John Criswell47fdd832003-07-14 16:52:07 +000017208ac_cv_lib_dl_dlopen=no
17209fi
17210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17211LIBS=$ac_check_lib_save_LIBS
17212fi
17213echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17214echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17215if test $ac_cv_lib_dl_dlopen = yes; then
17216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17217else
17218 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17219echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17220if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222else
17223 ac_check_lib_save_LIBS=$LIBS
17224LIBS="-lsvld $LIBS"
17225cat >conftest.$ac_ext <<_ACEOF
17226#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017232
17233/* Override any gcc2 internal prototype to avoid an error. */
17234#ifdef __cplusplus
17235extern "C"
17236#endif
17237/* We use char because int might match the return type of a gcc2
17238 builtin and then its argument prototype would still apply. */
17239char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017240int
17241main ()
17242{
17243dlopen ();
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext conftest$ac_exeext
17249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17250 (eval $ac_link) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 ac_cv_lib_svld_dlopen=yes
17261else
17262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017263sed 's/^/| /' conftest.$ac_ext >&5
17264
John Criswell47fdd832003-07-14 16:52:07 +000017265ac_cv_lib_svld_dlopen=no
17266fi
17267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17268LIBS=$ac_check_lib_save_LIBS
17269fi
17270echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17271echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17272if test $ac_cv_lib_svld_dlopen = yes; then
17273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17274else
17275 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17276echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17277if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17279else
17280 ac_check_lib_save_LIBS=$LIBS
17281LIBS="-ldld $LIBS"
17282cat >conftest.$ac_ext <<_ACEOF
17283#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017284/* confdefs.h. */
17285_ACEOF
17286cat confdefs.h >>conftest.$ac_ext
17287cat >>conftest.$ac_ext <<_ACEOF
17288/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017289
17290/* Override any gcc2 internal prototype to avoid an error. */
17291#ifdef __cplusplus
17292extern "C"
17293#endif
17294/* We use char because int might match the return type of a gcc2
17295 builtin and then its argument prototype would still apply. */
17296char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017297int
17298main ()
17299{
17300dld_link ();
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305rm -f conftest.$ac_objext conftest$ac_exeext
17306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17307 (eval $ac_link) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_lib_dld_dld_link=yes
17318else
17319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017320sed 's/^/| /' conftest.$ac_ext >&5
17321
John Criswell47fdd832003-07-14 16:52:07 +000017322ac_cv_lib_dld_dld_link=no
17323fi
17324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17325LIBS=$ac_check_lib_save_LIBS
17326fi
17327echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17328echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17329if test $ac_cv_lib_dld_dld_link = yes; then
17330 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17331fi
17332
17333
17334fi
17335
17336
17337fi
17338
17339
17340fi
17341
17342
17343fi
17344
17345
17346fi
17347
17348 ;;
17349 esac
17350
17351 if test "x$lt_cv_dlopen" != xno; then
17352 enable_dlopen=yes
17353 else
17354 enable_dlopen=no
17355 fi
17356
17357 case $lt_cv_dlopen in
17358 dlopen)
17359 save_CPPFLAGS="$CPPFLAGS"
17360 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17361
17362 save_LDFLAGS="$LDFLAGS"
17363 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17364
17365 save_LIBS="$LIBS"
17366 LIBS="$lt_cv_dlopen_libs $LIBS"
17367
17368 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17369echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17370if test "${lt_cv_dlopen_self+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372else
17373 if test "$cross_compiling" = yes; then :
17374 lt_cv_dlopen_self=cross
17375else
17376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17377 lt_status=$lt_dlunknown
17378 cat > conftest.$ac_ext <<EOF
John Criswell559a6c12003-09-30 16:31:48 +000017379#line 17379 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017380#include "confdefs.h"
17381
17382#if HAVE_DLFCN_H
17383#include <dlfcn.h>
17384#endif
17385
17386#include <stdio.h>
17387
17388#ifdef RTLD_GLOBAL
17389# define LT_DLGLOBAL RTLD_GLOBAL
17390#else
17391# ifdef DL_GLOBAL
17392# define LT_DLGLOBAL DL_GLOBAL
17393# else
17394# define LT_DLGLOBAL 0
17395# endif
17396#endif
17397
17398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17399 find out it does not work in some platform. */
17400#ifndef LT_DLLAZY_OR_NOW
17401# ifdef RTLD_LAZY
17402# define LT_DLLAZY_OR_NOW RTLD_LAZY
17403# else
17404# ifdef DL_LAZY
17405# define LT_DLLAZY_OR_NOW DL_LAZY
17406# else
17407# ifdef RTLD_NOW
17408# define LT_DLLAZY_OR_NOW RTLD_NOW
17409# else
17410# ifdef DL_NOW
17411# define LT_DLLAZY_OR_NOW DL_NOW
17412# else
17413# define LT_DLLAZY_OR_NOW 0
17414# endif
17415# endif
17416# endif
17417# endif
17418#endif
17419
17420#ifdef __cplusplus
17421extern "C" void exit (int);
17422#endif
17423
17424void fnord() { int i=42;}
17425int main ()
17426{
17427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17428 int status = $lt_dlunknown;
17429
17430 if (self)
17431 {
17432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17433 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17434 /* dlclose (self); */
17435 }
17436
17437 exit (status);
17438}
17439EOF
17440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17441 (eval $ac_link) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17445 (./conftest; exit; ) 2>/dev/null
17446 lt_status=$?
17447 case x$lt_status in
17448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17450 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17451 esac
17452 else :
17453 # compilation failed
17454 lt_cv_dlopen_self=no
17455 fi
17456fi
17457rm -fr conftest*
17458
17459
17460fi
17461echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17462echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17463
17464 if test "x$lt_cv_dlopen_self" = xyes; then
17465 LDFLAGS="$LDFLAGS $link_static_flag"
17466 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17467echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17468if test "${lt_cv_dlopen_self_static+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17470else
17471 if test "$cross_compiling" = yes; then :
17472 lt_cv_dlopen_self_static=cross
17473else
17474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17475 lt_status=$lt_dlunknown
17476 cat > conftest.$ac_ext <<EOF
John Criswell559a6c12003-09-30 16:31:48 +000017477#line 17477 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017478#include "confdefs.h"
17479
17480#if HAVE_DLFCN_H
17481#include <dlfcn.h>
17482#endif
17483
17484#include <stdio.h>
17485
17486#ifdef RTLD_GLOBAL
17487# define LT_DLGLOBAL RTLD_GLOBAL
17488#else
17489# ifdef DL_GLOBAL
17490# define LT_DLGLOBAL DL_GLOBAL
17491# else
17492# define LT_DLGLOBAL 0
17493# endif
17494#endif
17495
17496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17497 find out it does not work in some platform. */
17498#ifndef LT_DLLAZY_OR_NOW
17499# ifdef RTLD_LAZY
17500# define LT_DLLAZY_OR_NOW RTLD_LAZY
17501# else
17502# ifdef DL_LAZY
17503# define LT_DLLAZY_OR_NOW DL_LAZY
17504# else
17505# ifdef RTLD_NOW
17506# define LT_DLLAZY_OR_NOW RTLD_NOW
17507# else
17508# ifdef DL_NOW
17509# define LT_DLLAZY_OR_NOW DL_NOW
17510# else
17511# define LT_DLLAZY_OR_NOW 0
17512# endif
17513# endif
17514# endif
17515# endif
17516#endif
17517
17518#ifdef __cplusplus
17519extern "C" void exit (int);
17520#endif
17521
17522void fnord() { int i=42;}
17523int main ()
17524{
17525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17526 int status = $lt_dlunknown;
17527
17528 if (self)
17529 {
17530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17532 /* dlclose (self); */
17533 }
17534
17535 exit (status);
17536}
17537EOF
17538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17539 (eval $ac_link) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17543 (./conftest; exit; ) 2>/dev/null
17544 lt_status=$?
17545 case x$lt_status in
17546 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17547 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17548 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17549 esac
17550 else :
17551 # compilation failed
17552 lt_cv_dlopen_self_static=no
17553 fi
17554fi
17555rm -fr conftest*
17556
17557
17558fi
17559echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17560echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17561 fi
17562
17563 CPPFLAGS="$save_CPPFLAGS"
17564 LDFLAGS="$save_LDFLAGS"
17565 LIBS="$save_LIBS"
17566 ;;
17567 esac
17568
17569 case $lt_cv_dlopen_self in
17570 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17571 *) enable_dlopen_self=unknown ;;
17572 esac
17573
17574 case $lt_cv_dlopen_self_static in
17575 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17576 *) enable_dlopen_self_static=unknown ;;
17577 esac
17578fi
17579
17580
17581# The else clause should only fire when bootstrapping the
17582# libtool distribution, otherwise you forgot to ship ltmain.sh
17583# with your package, and you will get complaints that there are
17584# no rules to generate ltmain.sh.
17585if test -f "$ltmain"; then
17586 # See if we are running on zsh, and set the options which allow our commands through
17587 # without removal of \ escapes.
17588 if test -n "${ZSH_VERSION+set}" ; then
17589 setopt NO_GLOB_SUBST
17590 fi
17591 # Now quote all the things that may contain metacharacters while being
17592 # careful not to overquote the AC_SUBSTed values. We take copies of the
17593 # variables and quote the copies for generation of the libtool script.
17594 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17597 deplibs_check_method reload_flag reload_cmds need_locks \
17598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17599 lt_cv_sys_global_symbol_to_c_name_address \
17600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17601 old_postinstall_cmds old_postuninstall_cmds \
17602 compiler_GCJ \
17603 CC_GCJ \
17604 LD_GCJ \
17605 lt_prog_compiler_wl_GCJ \
17606 lt_prog_compiler_pic_GCJ \
17607 lt_prog_compiler_static_GCJ \
17608 lt_prog_compiler_no_builtin_flag_GCJ \
17609 export_dynamic_flag_spec_GCJ \
17610 thread_safe_flag_spec_GCJ \
17611 whole_archive_flag_spec_GCJ \
17612 enable_shared_with_static_runtimes_GCJ \
17613 old_archive_cmds_GCJ \
17614 old_archive_from_new_cmds_GCJ \
17615 predep_objects_GCJ \
17616 postdep_objects_GCJ \
17617 predeps_GCJ \
17618 postdeps_GCJ \
17619 compiler_lib_search_path_GCJ \
17620 archive_cmds_GCJ \
17621 archive_expsym_cmds_GCJ \
17622 postinstall_cmds_GCJ \
17623 postuninstall_cmds_GCJ \
17624 old_archive_from_expsyms_cmds_GCJ \
17625 allow_undefined_flag_GCJ \
17626 no_undefined_flag_GCJ \
17627 export_symbols_cmds_GCJ \
17628 hardcode_libdir_flag_spec_GCJ \
17629 hardcode_libdir_flag_spec_ld_GCJ \
17630 hardcode_libdir_separator_GCJ \
17631 hardcode_automatic_GCJ \
17632 module_cmds_GCJ \
17633 module_expsym_cmds_GCJ \
17634 lt_cv_prog_compiler_c_o_GCJ \
17635 exclude_expsyms_GCJ \
17636 include_expsyms_GCJ; do
17637
17638 case $var in
17639 old_archive_cmds_GCJ | \
17640 old_archive_from_new_cmds_GCJ | \
17641 archive_cmds_GCJ | \
17642 archive_expsym_cmds_GCJ | \
17643 module_cmds_GCJ | \
17644 module_expsym_cmds_GCJ | \
17645 old_archive_from_expsyms_cmds_GCJ | \
17646 export_symbols_cmds_GCJ | \
17647 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17648 postinstall_cmds | postuninstall_cmds | \
17649 old_postinstall_cmds | old_postuninstall_cmds | \
17650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17651 # Double-quote double-evaled strings.
17652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17653 ;;
17654 *)
17655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17656 ;;
17657 esac
17658 done
17659
17660 case $lt_echo in
17661 *'\$0 --fallback-echo"')
17662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17663 ;;
17664 esac
17665
17666cfgfile="$ofile"
17667
17668 cat <<__EOF__ >> "$cfgfile"
17669# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17670
17671# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17672
17673# Shell to use when invoking shell scripts.
17674SHELL=$lt_SHELL
17675
17676# Whether or not to build shared libraries.
17677build_libtool_libs=$enable_shared
17678
17679# Whether or not to build static libraries.
17680build_old_libs=$enable_static
17681
17682# Whether or not to add -lc for building shared libraries.
17683build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17684
17685# Whether or not to disallow shared libs when runtime libs are static
17686allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17687
17688# Whether or not to optimize for fast installation.
17689fast_install=$enable_fast_install
17690
17691# The host system.
17692host_alias=$host_alias
17693host=$host
17694
17695# An echo program that does not interpret backslashes.
17696echo=$lt_echo
17697
17698# The archiver.
17699AR=$lt_AR
17700AR_FLAGS=$lt_AR_FLAGS
17701
17702# A C compiler.
17703LTCC=$lt_LTCC
17704
17705# A language-specific compiler.
17706CC=$lt_compiler_GCJ
17707
17708# Is the compiler the GNU C compiler?
17709with_gcc=$GCC_GCJ
17710
17711# An ERE matcher.
17712EGREP=$lt_EGREP
17713
17714# The linker used to build libraries.
17715LD=$lt_LD_GCJ
17716
17717# Whether we need hard or soft links.
17718LN_S=$lt_LN_S
17719
17720# A BSD-compatible nm program.
17721NM=$lt_NM
17722
17723# A symbol stripping program
17724STRIP=$STRIP
17725
17726# Used to examine libraries when file_magic_cmd begins "file"
17727MAGIC_CMD=$MAGIC_CMD
17728
17729# Used on cygwin: DLL creation program.
17730DLLTOOL="$DLLTOOL"
17731
17732# Used on cygwin: object dumper.
17733OBJDUMP="$OBJDUMP"
17734
17735# Used on cygwin: assembler.
17736AS="$AS"
17737
17738# The name of the directory that contains temporary libtool files.
17739objdir=$objdir
17740
17741# How to create reloadable object files.
17742reload_flag=$lt_reload_flag
17743reload_cmds=$lt_reload_cmds
17744
17745# How to pass a linker flag through the compiler.
17746wl=$lt_lt_prog_compiler_wl_GCJ
17747
17748# Object file suffix (normally "o").
17749objext="$ac_objext"
17750
17751# Old archive suffix (normally "a").
17752libext="$libext"
17753
17754# Shared library suffix (normally ".so").
17755shrext='$shrext'
17756
17757# Executable file suffix (normally "").
17758exeext="$exeext"
17759
17760# Additional compiler flags for building library objects.
17761pic_flag=$lt_lt_prog_compiler_pic_GCJ
17762pic_mode=$pic_mode
17763
17764# What is the maximum length of a command?
17765max_cmd_len=$lt_cv_sys_max_cmd_len
17766
17767# Does compiler simultaneously support -c and -o options?
17768compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17769
17770# Must we lock files when doing compilation ?
17771need_locks=$lt_need_locks
17772
17773# Do we need the lib prefix for modules?
17774need_lib_prefix=$need_lib_prefix
17775
17776# Do we need a version for libraries?
17777need_version=$need_version
17778
17779# Whether dlopen is supported.
17780dlopen_support=$enable_dlopen
17781
17782# Whether dlopen of programs is supported.
17783dlopen_self=$enable_dlopen_self
17784
17785# Whether dlopen of statically linked programs is supported.
17786dlopen_self_static=$enable_dlopen_self_static
17787
17788# Compiler flag to prevent dynamic linking.
17789link_static_flag=$lt_lt_prog_compiler_static_GCJ
17790
17791# Compiler flag to turn off builtin functions.
17792no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17793
17794# Compiler flag to allow reflexive dlopens.
17795export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17796
17797# Compiler flag to generate shared objects directly from archives.
17798whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17799
17800# Compiler flag to generate thread-safe objects.
17801thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17802
17803# Library versioning type.
17804version_type=$version_type
17805
17806# Format of library name prefix.
17807libname_spec=$lt_libname_spec
17808
17809# List of archive names. First name is the real one, the rest are links.
17810# The last name is the one that the linker finds with -lNAME.
17811library_names_spec=$lt_library_names_spec
17812
17813# The coded name of the library, if different from the real name.
17814soname_spec=$lt_soname_spec
17815
17816# Commands used to build and install an old-style archive.
17817RANLIB=$lt_RANLIB
17818old_archive_cmds=$lt_old_archive_cmds_GCJ
17819old_postinstall_cmds=$lt_old_postinstall_cmds
17820old_postuninstall_cmds=$lt_old_postuninstall_cmds
17821
17822# Create an old-style archive from a shared archive.
17823old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17824
17825# Create a temporary old-style archive to link instead of a shared archive.
17826old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17827
17828# Commands used to build and install a shared archive.
17829archive_cmds=$lt_archive_cmds_GCJ
17830archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17831postinstall_cmds=$lt_postinstall_cmds
17832postuninstall_cmds=$lt_postuninstall_cmds
17833
17834# Commands used to build a loadable module (assumed same as above if empty)
17835module_cmds=$lt_module_cmds_GCJ
17836module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17837
17838# Commands to strip libraries.
17839old_striplib=$lt_old_striplib
17840striplib=$lt_striplib
17841
17842# Dependencies to place before the objects being linked to create a
17843# shared library.
17844predep_objects=$lt_predep_objects_GCJ
17845
17846# Dependencies to place after the objects being linked to create a
17847# shared library.
17848postdep_objects=$lt_postdep_objects_GCJ
17849
17850# Dependencies to place before the objects being linked to create a
17851# shared library.
17852predeps=$lt_predeps_GCJ
17853
17854# Dependencies to place after the objects being linked to create a
17855# shared library.
17856postdeps=$lt_postdeps_GCJ
17857
17858# The library search path used internally by the compiler when linking
17859# a shared library.
17860compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17861
17862# Method to check whether dependent libraries are shared objects.
17863deplibs_check_method=$lt_deplibs_check_method
17864
17865# Command to use when deplibs_check_method == file_magic.
17866file_magic_cmd=$lt_file_magic_cmd
17867
17868# Flag that allows shared libraries with undefined symbols to be built.
17869allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17870
17871# Flag that forces no undefined symbols.
17872no_undefined_flag=$lt_no_undefined_flag_GCJ
17873
17874# Commands used to finish a libtool library installation in a directory.
17875finish_cmds=$lt_finish_cmds
17876
17877# Same as above, but a single script fragment to be evaled but not shown.
17878finish_eval=$lt_finish_eval
17879
17880# Take the output of nm and produce a listing of raw symbols and C names.
17881global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17882
17883# Transform the output of nm in a proper C declaration
17884global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17885
17886# Transform the output of nm in a C name address pair
17887global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17888
17889# This is the shared library runtime path variable.
17890runpath_var=$runpath_var
17891
17892# This is the shared library path variable.
17893shlibpath_var=$shlibpath_var
17894
17895# Is shlibpath searched before the hard-coded library search path?
17896shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17897
17898# How to hardcode a shared library path into an executable.
17899hardcode_action=$hardcode_action_GCJ
17900
17901# Whether we should hardcode library paths into libraries.
17902hardcode_into_libs=$hardcode_into_libs
17903
17904# Flag to hardcode \$libdir into a binary during linking.
17905# This must work even if \$libdir does not exist.
17906hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17907
17908# If ld is used when linking, flag to hardcode \$libdir into
17909# a binary during linking. This must work even if \$libdir does
17910# not exist.
17911hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17912
17913# Whether we need a single -rpath flag with a separated argument.
17914hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17915
17916# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17917# resulting binary.
17918hardcode_direct=$hardcode_direct_GCJ
17919
17920# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17921# resulting binary.
17922hardcode_minus_L=$hardcode_minus_L_GCJ
17923
17924# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17925# the resulting binary.
17926hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17927
17928# Set to yes if building a shared library automatically hardcodes DIR into the library
17929# and all subsequent libraries and executables linked against it.
17930hardcode_automatic=$hardcode_automatic_GCJ
17931
17932# Variables whose values should be saved in libtool wrapper scripts and
17933# restored at relink time.
17934variables_saved_for_relink="$variables_saved_for_relink"
17935
17936# Whether libtool must link a program against all its dependency libraries.
17937link_all_deplibs=$link_all_deplibs_GCJ
17938
17939# Compile-time system search path for libraries
17940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17941
17942# Run-time system search path for libraries
17943sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17944
17945# Fix the shell variable \$srcfile for the compiler.
17946fix_srcfile_path="$fix_srcfile_path_GCJ"
17947
17948# Set to yes if exported symbols are required.
17949always_export_symbols=$always_export_symbols_GCJ
17950
17951# The commands to list exported symbols.
17952export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17953
17954# The commands to extract the exported symbol list from a shared archive.
17955extract_expsyms_cmds=$lt_extract_expsyms_cmds
17956
17957# Symbols that should not be listed in the preloaded symbols.
17958exclude_expsyms=$lt_exclude_expsyms_GCJ
17959
17960# Symbols that must always be exported.
17961include_expsyms=$lt_include_expsyms_GCJ
17962
17963# ### END LIBTOOL TAG CONFIG: $tagname
17964
17965__EOF__
17966
17967
17968else
17969 # If there is no Makefile yet, we rely on a make rule to execute
17970 # `config.status --recheck' to rerun these tests and create the
17971 # libtool script then.
17972 test -f Makefile && make "$ltmain"
17973fi
17974
17975
17976ac_ext=c
17977ac_cpp='$CPP $CPPFLAGS'
17978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980ac_compiler_gnu=$ac_cv_c_compiler_gnu
17981
17982CC="$lt_save_CC"
17983
17984 else
17985 tagname=""
17986 fi
17987 ;;
17988
17989 RC)
17990
17991
17992
17993# Source file extension for RC test sources.
17994ac_ext=rc
17995
17996# Object file extension for compiled RC test sources.
17997objext=o
17998objext_RC=$objext
17999
18000# Code to be used in simple compile tests
18001lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18002
18003# Code to be used in simple link tests
18004lt_simple_link_test_code="$lt_simple_compile_test_code"
18005
18006# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18007
18008# If no C compiler was specified, use CC.
18009LTCC=${LTCC-"$CC"}
18010
18011# Allow CC to be a program name with arguments.
18012compiler=$CC
18013
18014
18015# Allow CC to be a program name with arguments.
18016lt_save_CC="$CC"
18017CC=${RC-"windres"}
18018compiler=$CC
18019compiler_RC=$CC
18020lt_cv_prog_compiler_c_o_RC=yes
18021
18022# The else clause should only fire when bootstrapping the
18023# libtool distribution, otherwise you forgot to ship ltmain.sh
18024# with your package, and you will get complaints that there are
18025# no rules to generate ltmain.sh.
18026if test -f "$ltmain"; then
18027 # See if we are running on zsh, and set the options which allow our commands through
18028 # without removal of \ escapes.
18029 if test -n "${ZSH_VERSION+set}" ; then
18030 setopt NO_GLOB_SUBST
18031 fi
18032 # Now quote all the things that may contain metacharacters while being
18033 # careful not to overquote the AC_SUBSTed values. We take copies of the
18034 # variables and quote the copies for generation of the libtool script.
18035 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18038 deplibs_check_method reload_flag reload_cmds need_locks \
18039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18040 lt_cv_sys_global_symbol_to_c_name_address \
18041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18042 old_postinstall_cmds old_postuninstall_cmds \
18043 compiler_RC \
18044 CC_RC \
18045 LD_RC \
18046 lt_prog_compiler_wl_RC \
18047 lt_prog_compiler_pic_RC \
18048 lt_prog_compiler_static_RC \
18049 lt_prog_compiler_no_builtin_flag_RC \
18050 export_dynamic_flag_spec_RC \
18051 thread_safe_flag_spec_RC \
18052 whole_archive_flag_spec_RC \
18053 enable_shared_with_static_runtimes_RC \
18054 old_archive_cmds_RC \
18055 old_archive_from_new_cmds_RC \
18056 predep_objects_RC \
18057 postdep_objects_RC \
18058 predeps_RC \
18059 postdeps_RC \
18060 compiler_lib_search_path_RC \
18061 archive_cmds_RC \
18062 archive_expsym_cmds_RC \
18063 postinstall_cmds_RC \
18064 postuninstall_cmds_RC \
18065 old_archive_from_expsyms_cmds_RC \
18066 allow_undefined_flag_RC \
18067 no_undefined_flag_RC \
18068 export_symbols_cmds_RC \
18069 hardcode_libdir_flag_spec_RC \
18070 hardcode_libdir_flag_spec_ld_RC \
18071 hardcode_libdir_separator_RC \
18072 hardcode_automatic_RC \
18073 module_cmds_RC \
18074 module_expsym_cmds_RC \
18075 lt_cv_prog_compiler_c_o_RC \
18076 exclude_expsyms_RC \
18077 include_expsyms_RC; do
18078
18079 case $var in
18080 old_archive_cmds_RC | \
18081 old_archive_from_new_cmds_RC | \
18082 archive_cmds_RC | \
18083 archive_expsym_cmds_RC | \
18084 module_cmds_RC | \
18085 module_expsym_cmds_RC | \
18086 old_archive_from_expsyms_cmds_RC | \
18087 export_symbols_cmds_RC | \
18088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18089 postinstall_cmds | postuninstall_cmds | \
18090 old_postinstall_cmds | old_postuninstall_cmds | \
18091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18092 # Double-quote double-evaled strings.
18093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18094 ;;
18095 *)
18096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18097 ;;
18098 esac
18099 done
18100
18101 case $lt_echo in
18102 *'\$0 --fallback-echo"')
18103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18104 ;;
18105 esac
18106
18107cfgfile="$ofile"
18108
18109 cat <<__EOF__ >> "$cfgfile"
18110# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18111
18112# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18113
18114# Shell to use when invoking shell scripts.
18115SHELL=$lt_SHELL
18116
18117# Whether or not to build shared libraries.
18118build_libtool_libs=$enable_shared
18119
18120# Whether or not to build static libraries.
18121build_old_libs=$enable_static
18122
18123# Whether or not to add -lc for building shared libraries.
18124build_libtool_need_lc=$archive_cmds_need_lc_RC
18125
18126# Whether or not to disallow shared libs when runtime libs are static
18127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18128
18129# Whether or not to optimize for fast installation.
18130fast_install=$enable_fast_install
18131
18132# The host system.
18133host_alias=$host_alias
18134host=$host
18135
18136# An echo program that does not interpret backslashes.
18137echo=$lt_echo
18138
18139# The archiver.
18140AR=$lt_AR
18141AR_FLAGS=$lt_AR_FLAGS
18142
18143# A C compiler.
18144LTCC=$lt_LTCC
18145
18146# A language-specific compiler.
18147CC=$lt_compiler_RC
18148
18149# Is the compiler the GNU C compiler?
18150with_gcc=$GCC_RC
18151
18152# An ERE matcher.
18153EGREP=$lt_EGREP
18154
18155# The linker used to build libraries.
18156LD=$lt_LD_RC
18157
18158# Whether we need hard or soft links.
18159LN_S=$lt_LN_S
18160
18161# A BSD-compatible nm program.
18162NM=$lt_NM
18163
18164# A symbol stripping program
18165STRIP=$STRIP
18166
18167# Used to examine libraries when file_magic_cmd begins "file"
18168MAGIC_CMD=$MAGIC_CMD
18169
18170# Used on cygwin: DLL creation program.
18171DLLTOOL="$DLLTOOL"
18172
18173# Used on cygwin: object dumper.
18174OBJDUMP="$OBJDUMP"
18175
18176# Used on cygwin: assembler.
18177AS="$AS"
18178
18179# The name of the directory that contains temporary libtool files.
18180objdir=$objdir
18181
18182# How to create reloadable object files.
18183reload_flag=$lt_reload_flag
18184reload_cmds=$lt_reload_cmds
18185
18186# How to pass a linker flag through the compiler.
18187wl=$lt_lt_prog_compiler_wl_RC
18188
18189# Object file suffix (normally "o").
18190objext="$ac_objext"
18191
18192# Old archive suffix (normally "a").
18193libext="$libext"
18194
18195# Shared library suffix (normally ".so").
18196shrext='$shrext'
18197
18198# Executable file suffix (normally "").
18199exeext="$exeext"
18200
18201# Additional compiler flags for building library objects.
18202pic_flag=$lt_lt_prog_compiler_pic_RC
18203pic_mode=$pic_mode
18204
18205# What is the maximum length of a command?
18206max_cmd_len=$lt_cv_sys_max_cmd_len
18207
18208# Does compiler simultaneously support -c and -o options?
18209compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18210
18211# Must we lock files when doing compilation ?
18212need_locks=$lt_need_locks
18213
18214# Do we need the lib prefix for modules?
18215need_lib_prefix=$need_lib_prefix
18216
18217# Do we need a version for libraries?
18218need_version=$need_version
18219
18220# Whether dlopen is supported.
18221dlopen_support=$enable_dlopen
18222
18223# Whether dlopen of programs is supported.
18224dlopen_self=$enable_dlopen_self
18225
18226# Whether dlopen of statically linked programs is supported.
18227dlopen_self_static=$enable_dlopen_self_static
18228
18229# Compiler flag to prevent dynamic linking.
18230link_static_flag=$lt_lt_prog_compiler_static_RC
18231
18232# Compiler flag to turn off builtin functions.
18233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18234
18235# Compiler flag to allow reflexive dlopens.
18236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18237
18238# Compiler flag to generate shared objects directly from archives.
18239whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18240
18241# Compiler flag to generate thread-safe objects.
18242thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18243
18244# Library versioning type.
18245version_type=$version_type
18246
18247# Format of library name prefix.
18248libname_spec=$lt_libname_spec
18249
18250# List of archive names. First name is the real one, the rest are links.
18251# The last name is the one that the linker finds with -lNAME.
18252library_names_spec=$lt_library_names_spec
18253
18254# The coded name of the library, if different from the real name.
18255soname_spec=$lt_soname_spec
18256
18257# Commands used to build and install an old-style archive.
18258RANLIB=$lt_RANLIB
18259old_archive_cmds=$lt_old_archive_cmds_RC
18260old_postinstall_cmds=$lt_old_postinstall_cmds
18261old_postuninstall_cmds=$lt_old_postuninstall_cmds
18262
18263# Create an old-style archive from a shared archive.
18264old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18265
18266# Create a temporary old-style archive to link instead of a shared archive.
18267old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18268
18269# Commands used to build and install a shared archive.
18270archive_cmds=$lt_archive_cmds_RC
18271archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18272postinstall_cmds=$lt_postinstall_cmds
18273postuninstall_cmds=$lt_postuninstall_cmds
18274
18275# Commands used to build a loadable module (assumed same as above if empty)
18276module_cmds=$lt_module_cmds_RC
18277module_expsym_cmds=$lt_module_expsym_cmds_RC
18278
18279# Commands to strip libraries.
18280old_striplib=$lt_old_striplib
18281striplib=$lt_striplib
18282
18283# Dependencies to place before the objects being linked to create a
18284# shared library.
18285predep_objects=$lt_predep_objects_RC
18286
18287# Dependencies to place after the objects being linked to create a
18288# shared library.
18289postdep_objects=$lt_postdep_objects_RC
18290
18291# Dependencies to place before the objects being linked to create a
18292# shared library.
18293predeps=$lt_predeps_RC
18294
18295# Dependencies to place after the objects being linked to create a
18296# shared library.
18297postdeps=$lt_postdeps_RC
18298
18299# The library search path used internally by the compiler when linking
18300# a shared library.
18301compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18302
18303# Method to check whether dependent libraries are shared objects.
18304deplibs_check_method=$lt_deplibs_check_method
18305
18306# Command to use when deplibs_check_method == file_magic.
18307file_magic_cmd=$lt_file_magic_cmd
18308
18309# Flag that allows shared libraries with undefined symbols to be built.
18310allow_undefined_flag=$lt_allow_undefined_flag_RC
18311
18312# Flag that forces no undefined symbols.
18313no_undefined_flag=$lt_no_undefined_flag_RC
18314
18315# Commands used to finish a libtool library installation in a directory.
18316finish_cmds=$lt_finish_cmds
18317
18318# Same as above, but a single script fragment to be evaled but not shown.
18319finish_eval=$lt_finish_eval
18320
18321# Take the output of nm and produce a listing of raw symbols and C names.
18322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18323
18324# Transform the output of nm in a proper C declaration
18325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18326
18327# Transform the output of nm in a C name address pair
18328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18329
18330# This is the shared library runtime path variable.
18331runpath_var=$runpath_var
18332
18333# This is the shared library path variable.
18334shlibpath_var=$shlibpath_var
18335
18336# Is shlibpath searched before the hard-coded library search path?
18337shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18338
18339# How to hardcode a shared library path into an executable.
18340hardcode_action=$hardcode_action_RC
18341
18342# Whether we should hardcode library paths into libraries.
18343hardcode_into_libs=$hardcode_into_libs
18344
18345# Flag to hardcode \$libdir into a binary during linking.
18346# This must work even if \$libdir does not exist.
18347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18348
18349# If ld is used when linking, flag to hardcode \$libdir into
18350# a binary during linking. This must work even if \$libdir does
18351# not exist.
18352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18353
18354# Whether we need a single -rpath flag with a separated argument.
18355hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18356
18357# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18358# resulting binary.
18359hardcode_direct=$hardcode_direct_RC
18360
18361# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18362# resulting binary.
18363hardcode_minus_L=$hardcode_minus_L_RC
18364
18365# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18366# the resulting binary.
18367hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18368
18369# Set to yes if building a shared library automatically hardcodes DIR into the library
18370# and all subsequent libraries and executables linked against it.
18371hardcode_automatic=$hardcode_automatic_RC
18372
18373# Variables whose values should be saved in libtool wrapper scripts and
18374# restored at relink time.
18375variables_saved_for_relink="$variables_saved_for_relink"
18376
18377# Whether libtool must link a program against all its dependency libraries.
18378link_all_deplibs=$link_all_deplibs_RC
18379
18380# Compile-time system search path for libraries
18381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18382
18383# Run-time system search path for libraries
18384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18385
18386# Fix the shell variable \$srcfile for the compiler.
18387fix_srcfile_path="$fix_srcfile_path_RC"
18388
18389# Set to yes if exported symbols are required.
18390always_export_symbols=$always_export_symbols_RC
18391
18392# The commands to list exported symbols.
18393export_symbols_cmds=$lt_export_symbols_cmds_RC
18394
18395# The commands to extract the exported symbol list from a shared archive.
18396extract_expsyms_cmds=$lt_extract_expsyms_cmds
18397
18398# Symbols that should not be listed in the preloaded symbols.
18399exclude_expsyms=$lt_exclude_expsyms_RC
18400
18401# Symbols that must always be exported.
18402include_expsyms=$lt_include_expsyms_RC
18403
18404# ### END LIBTOOL TAG CONFIG: $tagname
18405
18406__EOF__
18407
18408
18409else
18410 # If there is no Makefile yet, we rely on a make rule to execute
18411 # `config.status --recheck' to rerun these tests and create the
18412 # libtool script then.
18413 test -f Makefile && make "$ltmain"
18414fi
18415
18416
18417ac_ext=c
18418ac_cpp='$CPP $CPPFLAGS'
18419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421ac_compiler_gnu=$ac_cv_c_compiler_gnu
18422
18423CC="$lt_save_CC"
18424
18425 ;;
18426
18427 *)
18428 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18429echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18430 { (exit 1); exit 1; }; }
18431 ;;
18432 esac
18433
18434 # Append the new tag name to the list of available tags.
18435 if test -n "$tagname" ; then
18436 available_tags="$available_tags $tagname"
18437 fi
18438 fi
18439 done
18440 IFS="$lt_save_ifs"
18441
18442 # Now substitute the updated list of available tags.
18443 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18444 mv "${ofile}T" "$ofile"
18445 chmod +x "$ofile"
18446 else
18447 rm -f "${ofile}T"
18448 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18449echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18450 { (exit 1); exit 1; }; }
18451 fi
18452fi
John Criswell7a73b802003-06-30 21:59:07 +000018453
18454
18455
18456# This can be used to rebuild libtool when needed
18457LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18458
18459# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018460LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018461
18462# Prevent multiple expansion
18463
18464
18465
John Criswell47fdd832003-07-14 16:52:07 +000018466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
John Criswellde00db22003-08-25 16:49:54 +000018484# Extract the first word of "pwd", so it can be a program name with args.
18485set dummy pwd; ac_word=$2
18486echo "$as_me:$LINENO: checking for $ac_word" >&5
18487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18488if test "${ac_cv_path_RPWD+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490else
18491 case $RPWD in
18492 [\\/]* | ?:[\\/]*)
18493 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18494 ;;
18495 *)
18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497for as_dir in $PATH
18498do
18499 IFS=$as_save_IFS
18500 test -z "$as_dir" && as_dir=.
18501 for ac_exec_ext in '' $ac_executable_extensions; do
18502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18503 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505 break 2
18506 fi
18507done
18508done
18509
John Criswell39827c82003-09-23 15:28:52 +000018510 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018511 ;;
18512esac
18513fi
18514RPWD=$ac_cv_path_RPWD
18515
18516if test -n "$RPWD"; then
18517 echo "$as_me:$LINENO: result: $RPWD" >&5
18518echo "${ECHO_T}$RPWD" >&6
18519else
18520 echo "$as_me:$LINENO: result: no" >&5
18521echo "${ECHO_T}no" >&6
18522fi
18523
John Criswell39827c82003-09-23 15:28:52 +000018524if test ${RPWD} = "false"
18525then
18526 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18527echo "$as_me: error: pwd required but not found" >&2;}
18528 { (exit 1); exit 1; }; }
18529fi
18530
John Criswell7a73b802003-06-30 21:59:07 +000018531# Extract the first word of "ar", so it can be a program name with args.
18532set dummy ar; ac_word=$2
18533echo "$as_me:$LINENO: checking for $ac_word" >&5
18534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18535if test "${ac_cv_path_AR+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538 case $AR in
18539 [\\/]* | ?:[\\/]*)
18540 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18541 ;;
18542 *)
18543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18544for as_dir in $PATH
18545do
18546 IFS=$as_save_IFS
18547 test -z "$as_dir" && as_dir=.
18548 for ac_exec_ext in '' $ac_executable_extensions; do
18549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18550 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18552 break 2
18553 fi
18554done
18555done
18556
John Criswell39827c82003-09-23 15:28:52 +000018557 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018558 ;;
18559esac
18560fi
18561AR=$ac_cv_path_AR
18562
18563if test -n "$AR"; then
18564 echo "$as_me:$LINENO: result: $AR" >&5
18565echo "${ECHO_T}$AR" >&6
18566else
18567 echo "$as_me:$LINENO: result: no" >&5
18568echo "${ECHO_T}no" >&6
18569fi
18570
John Criswell39827c82003-09-23 15:28:52 +000018571if test ${AR} = "false"
18572then
18573 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18574echo "$as_me: error: ar required but not found" >&2;}
18575 { (exit 1); exit 1; }; }
18576fi
18577
John Criswell7a73b802003-06-30 21:59:07 +000018578# Extract the first word of "sed", so it can be a program name with args.
18579set dummy sed; ac_word=$2
18580echo "$as_me:$LINENO: checking for $ac_word" >&5
18581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18582if test "${ac_cv_path_SED+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584else
18585 case $SED in
18586 [\\/]* | ?:[\\/]*)
18587 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18588 ;;
18589 *)
18590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18591for as_dir in $PATH
18592do
18593 IFS=$as_save_IFS
18594 test -z "$as_dir" && as_dir=.
18595 for ac_exec_ext in '' $ac_executable_extensions; do
18596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18597 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18599 break 2
18600 fi
18601done
18602done
18603
John Criswell39827c82003-09-23 15:28:52 +000018604 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018605 ;;
18606esac
18607fi
18608SED=$ac_cv_path_SED
18609
18610if test -n "$SED"; then
18611 echo "$as_me:$LINENO: result: $SED" >&5
18612echo "${ECHO_T}$SED" >&6
18613else
18614 echo "$as_me:$LINENO: result: no" >&5
18615echo "${ECHO_T}no" >&6
18616fi
18617
John Criswell39827c82003-09-23 15:28:52 +000018618if test ${SED} = "false"
18619then
18620 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18621echo "$as_me: error: sed required but not found" >&2;}
18622 { (exit 1); exit 1; }; }
18623fi
18624
John Criswell7a73b802003-06-30 21:59:07 +000018625# Extract the first word of "rm", so it can be a program name with args.
18626set dummy rm; ac_word=$2
18627echo "$as_me:$LINENO: checking for $ac_word" >&5
18628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18629if test "${ac_cv_path_RM+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631else
18632 case $RM in
18633 [\\/]* | ?:[\\/]*)
18634 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18635 ;;
18636 *)
18637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18638for as_dir in $PATH
18639do
18640 IFS=$as_save_IFS
18641 test -z "$as_dir" && as_dir=.
18642 for ac_exec_ext in '' $ac_executable_extensions; do
18643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18644 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18646 break 2
18647 fi
18648done
18649done
18650
John Criswell39827c82003-09-23 15:28:52 +000018651 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018652 ;;
18653esac
18654fi
18655RM=$ac_cv_path_RM
18656
18657if test -n "$RM"; then
18658 echo "$as_me:$LINENO: result: $RM" >&5
18659echo "${ECHO_T}$RM" >&6
18660else
18661 echo "$as_me:$LINENO: result: no" >&5
18662echo "${ECHO_T}no" >&6
18663fi
18664
John Criswell39827c82003-09-23 15:28:52 +000018665if test ${RM} = "false"
18666then
18667 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18668echo "$as_me: error: rm required but not found" >&2;}
18669 { (exit 1); exit 1; }; }
18670fi
18671
John Criswell7a73b802003-06-30 21:59:07 +000018672# Extract the first word of "echo", so it can be a program name with args.
18673set dummy echo; ac_word=$2
18674echo "$as_me:$LINENO: checking for $ac_word" >&5
18675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676if test "${ac_cv_path_ECHO+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679 case $ECHO in
18680 [\\/]* | ?:[\\/]*)
18681 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18682 ;;
18683 *)
18684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685for as_dir in $PATH
18686do
18687 IFS=$as_save_IFS
18688 test -z "$as_dir" && as_dir=.
18689 for ac_exec_ext in '' $ac_executable_extensions; do
18690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693 break 2
18694 fi
18695done
18696done
18697
John Criswell39827c82003-09-23 15:28:52 +000018698 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018699 ;;
18700esac
18701fi
18702ECHO=$ac_cv_path_ECHO
18703
18704if test -n "$ECHO"; then
18705 echo "$as_me:$LINENO: result: $ECHO" >&5
18706echo "${ECHO_T}$ECHO" >&6
18707else
18708 echo "$as_me:$LINENO: result: no" >&5
18709echo "${ECHO_T}no" >&6
18710fi
18711
John Criswell39827c82003-09-23 15:28:52 +000018712if test ${ECHO} = "false"
18713then
18714 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18715echo "$as_me: error: echo required but not found" >&2;}
18716 { (exit 1); exit 1; }; }
18717fi
18718
John Criswell7a73b802003-06-30 21:59:07 +000018719# Extract the first word of "mkdir", so it can be a program name with args.
18720set dummy mkdir; ac_word=$2
18721echo "$as_me:$LINENO: checking for $ac_word" >&5
18722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723if test "${ac_cv_path_MKDIR+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18725else
18726 case $MKDIR in
18727 [\\/]* | ?:[\\/]*)
18728 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18729 ;;
18730 *)
18731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732for as_dir in $PATH
18733do
18734 IFS=$as_save_IFS
18735 test -z "$as_dir" && as_dir=.
18736 for ac_exec_ext in '' $ac_executable_extensions; do
18737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18738 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18740 break 2
18741 fi
18742done
18743done
18744
John Criswell39827c82003-09-23 15:28:52 +000018745 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018746 ;;
18747esac
18748fi
18749MKDIR=$ac_cv_path_MKDIR
18750
18751if test -n "$MKDIR"; then
18752 echo "$as_me:$LINENO: result: $MKDIR" >&5
18753echo "${ECHO_T}$MKDIR" >&6
18754else
18755 echo "$as_me:$LINENO: result: no" >&5
18756echo "${ECHO_T}no" >&6
18757fi
18758
John Criswell39827c82003-09-23 15:28:52 +000018759if test ${MKDIR} = "false"
18760then
18761 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18762echo "$as_me: error: mkdir required but not found" >&2;}
18763 { (exit 1); exit 1; }; }
18764fi
18765
John Criswell7a73b802003-06-30 21:59:07 +000018766# Extract the first word of "date", so it can be a program name with args.
18767set dummy date; ac_word=$2
18768echo "$as_me:$LINENO: checking for $ac_word" >&5
18769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18770if test "${ac_cv_path_DATE+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772else
18773 case $DATE in
18774 [\\/]* | ?:[\\/]*)
18775 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18776 ;;
18777 *)
18778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18779for as_dir in $PATH
18780do
18781 IFS=$as_save_IFS
18782 test -z "$as_dir" && as_dir=.
18783 for ac_exec_ext in '' $ac_executable_extensions; do
18784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18785 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18787 break 2
18788 fi
18789done
18790done
18791
John Criswell39827c82003-09-23 15:28:52 +000018792 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018793 ;;
18794esac
18795fi
18796DATE=$ac_cv_path_DATE
18797
18798if test -n "$DATE"; then
18799 echo "$as_me:$LINENO: result: $DATE" >&5
18800echo "${ECHO_T}$DATE" >&6
18801else
18802 echo "$as_me:$LINENO: result: no" >&5
18803echo "${ECHO_T}no" >&6
18804fi
18805
John Criswell39827c82003-09-23 15:28:52 +000018806if test ${DATE} = "false"
18807then
18808 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18809echo "$as_me: error: date required but not found" >&2;}
18810 { (exit 1); exit 1; }; }
18811fi
18812
John Criswell7a73b802003-06-30 21:59:07 +000018813# Extract the first word of "mv", so it can be a program name with args.
18814set dummy mv; ac_word=$2
18815echo "$as_me:$LINENO: checking for $ac_word" >&5
18816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18817if test "${ac_cv_path_MV+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18819else
18820 case $MV in
18821 [\\/]* | ?:[\\/]*)
18822 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18823 ;;
18824 *)
18825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18826for as_dir in $PATH
18827do
18828 IFS=$as_save_IFS
18829 test -z "$as_dir" && as_dir=.
18830 for ac_exec_ext in '' $ac_executable_extensions; do
18831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18832 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18834 break 2
18835 fi
18836done
18837done
18838
John Criswell39827c82003-09-23 15:28:52 +000018839 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018840 ;;
18841esac
18842fi
18843MV=$ac_cv_path_MV
18844
18845if test -n "$MV"; then
18846 echo "$as_me:$LINENO: result: $MV" >&5
18847echo "${ECHO_T}$MV" >&6
18848else
18849 echo "$as_me:$LINENO: result: no" >&5
18850echo "${ECHO_T}no" >&6
18851fi
18852
John Criswell39827c82003-09-23 15:28:52 +000018853if test ${MV} = "false"
18854then
18855 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18856echo "$as_me: error: mv required but not found" >&2;}
18857 { (exit 1); exit 1; }; }
18858fi
18859
John Criswell7a73b802003-06-30 21:59:07 +000018860# Extract the first word of "dot", so it can be a program name with args.
18861set dummy dot; ac_word=$2
18862echo "$as_me:$LINENO: checking for $ac_word" >&5
18863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18864if test "${ac_cv_path_DOT+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866else
18867 case $DOT in
18868 [\\/]* | ?:[\\/]*)
18869 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18870 ;;
18871 *)
18872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873for as_dir in $PATH
18874do
18875 IFS=$as_save_IFS
18876 test -z "$as_dir" && as_dir=.
18877 for ac_exec_ext in '' $ac_executable_extensions; do
18878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18879 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18881 break 2
18882 fi
18883done
18884done
18885
John Criswell39827c82003-09-23 15:28:52 +000018886 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018887 ;;
18888esac
18889fi
18890DOT=$ac_cv_path_DOT
18891
18892if test -n "$DOT"; then
18893 echo "$as_me:$LINENO: result: $DOT" >&5
18894echo "${ECHO_T}$DOT" >&6
18895else
18896 echo "$as_me:$LINENO: result: no" >&5
18897echo "${ECHO_T}no" >&6
18898fi
18899
John Criswell39827c82003-09-23 15:28:52 +000018900
John Criswell7a73b802003-06-30 21:59:07 +000018901# Extract the first word of "etags", so it can be a program name with args.
18902set dummy etags; ac_word=$2
18903echo "$as_me:$LINENO: checking for $ac_word" >&5
18904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18905if test "${ac_cv_path_ETAGS+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907else
18908 case $ETAGS in
18909 [\\/]* | ?:[\\/]*)
18910 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18911 ;;
18912 *)
18913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18914for as_dir in $PATH
18915do
18916 IFS=$as_save_IFS
18917 test -z "$as_dir" && as_dir=.
18918 for ac_exec_ext in '' $ac_executable_extensions; do
18919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18920 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18922 break 2
18923 fi
18924done
18925done
18926
John Criswell39827c82003-09-23 15:28:52 +000018927 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018928 ;;
18929esac
18930fi
18931ETAGS=$ac_cv_path_ETAGS
18932
18933if test -n "$ETAGS"; then
18934 echo "$as_me:$LINENO: result: $ETAGS" >&5
18935echo "${ECHO_T}$ETAGS" >&6
18936else
18937 echo "$as_me:$LINENO: result: no" >&5
18938echo "${ECHO_T}no" >&6
18939fi
18940
John Criswell39827c82003-09-23 15:28:52 +000018941
John Criswell7a73b802003-06-30 21:59:07 +000018942# Extract the first word of "purify", so it can be a program name with args.
18943set dummy purify; ac_word=$2
18944echo "$as_me:$LINENO: checking for $ac_word" >&5
18945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18946if test "${ac_cv_path_PURIFY+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948else
18949 case $PURIFY in
18950 [\\/]* | ?:[\\/]*)
18951 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18952 ;;
18953 *)
18954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18955for as_dir in $PATH
18956do
18957 IFS=$as_save_IFS
18958 test -z "$as_dir" && as_dir=.
18959 for ac_exec_ext in '' $ac_executable_extensions; do
18960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18961 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18963 break 2
18964 fi
18965done
18966done
18967
John Criswell39827c82003-09-23 15:28:52 +000018968 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018969 ;;
18970esac
18971fi
18972PURIFY=$ac_cv_path_PURIFY
18973
18974if test -n "$PURIFY"; then
18975 echo "$as_me:$LINENO: result: $PURIFY" >&5
18976echo "${ECHO_T}$PURIFY" >&6
18977else
18978 echo "$as_me:$LINENO: result: no" >&5
18979echo "${ECHO_T}no" >&6
18980fi
18981
John Criswell39827c82003-09-23 15:28:52 +000018982
John Criswellde00db22003-08-25 16:49:54 +000018983# Extract the first word of "python", so it can be a program name with args.
18984set dummy python; ac_word=$2
18985echo "$as_me:$LINENO: checking for $ac_word" >&5
18986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18987if test "${ac_cv_path_PYTHON+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989else
18990 case $PYTHON in
18991 [\\/]* | ?:[\\/]*)
18992 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18993 ;;
18994 *)
18995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18996for as_dir in $PATH
18997do
18998 IFS=$as_save_IFS
18999 test -z "$as_dir" && as_dir=.
19000 for ac_exec_ext in '' $ac_executable_extensions; do
19001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19002 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19004 break 2
19005 fi
19006done
19007done
19008
John Criswell39827c82003-09-23 15:28:52 +000019009 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000019010 ;;
19011esac
19012fi
19013PYTHON=$ac_cv_path_PYTHON
19014
19015if test -n "$PYTHON"; then
19016 echo "$as_me:$LINENO: result: $PYTHON" >&5
19017echo "${ECHO_T}$PYTHON" >&6
19018else
19019 echo "$as_me:$LINENO: result: no" >&5
19020echo "${ECHO_T}no" >&6
19021fi
19022
John Criswell39827c82003-09-23 15:28:52 +000019023if test ${PYTHON} = "false"
19024then
John Criswell61095982003-09-23 20:46:32 +000019025 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19026echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019027fi
19028
John Criswellde00db22003-08-25 16:49:54 +000019029# Extract the first word of "qmtest", so it can be a program name with args.
19030set dummy qmtest; ac_word=$2
19031echo "$as_me:$LINENO: checking for $ac_word" >&5
19032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19033if test "${ac_cv_path_QMTEST+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035else
19036 case $QMTEST in
19037 [\\/]* | ?:[\\/]*)
19038 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19039 ;;
19040 *)
19041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042for as_dir in $PATH
19043do
19044 IFS=$as_save_IFS
19045 test -z "$as_dir" && as_dir=.
19046 for ac_exec_ext in '' $ac_executable_extensions; do
19047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19050 break 2
19051 fi
19052done
19053done
19054
John Criswell39827c82003-09-23 15:28:52 +000019055 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019056 ;;
19057esac
19058fi
19059QMTEST=$ac_cv_path_QMTEST
19060
19061if test -n "$QMTEST"; then
19062 echo "$as_me:$LINENO: result: $QMTEST" >&5
19063echo "${ECHO_T}$QMTEST" >&6
19064else
19065 echo "$as_me:$LINENO: result: no" >&5
19066echo "${ECHO_T}no" >&6
19067fi
19068
John Criswell39827c82003-09-23 15:28:52 +000019069if test ${QMTEST} = "false"
19070then
John Criswell61095982003-09-23 20:46:32 +000019071 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19072echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019073fi
John Criswellde00db22003-08-25 16:49:54 +000019074
19075pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19076pymajor=`echo $pyversion | cut -d. -f1`
19077pyminor=`echo $pyversion | cut -d. -f2`
19078
19079if test "$pymajor" -ge "2"
19080then
19081 if test "$pymajor" -eq "2"
19082 then
19083 if test "$pyminor" -lt "2"
19084 then
19085 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19086echo "$as_me: error: Python 2.2 or greater required" >&2;}
19087 { (exit 1); exit 1; }; }
19088 fi
19089 fi
19090else
19091 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19092echo "$as_me: error: Python 2.2 or greater required" >&2;}
19093 { (exit 1); exit 1; }; }
19094fi
John Criswell7a73b802003-06-30 21:59:07 +000019095
19096
19097
19098
19099
19100echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19101echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19102if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104else
19105 ac_check_lib_save_LIBS=$LIBS
19106LIBS="-lelf $LIBS"
19107cat >conftest.$ac_ext <<_ACEOF
19108#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019114
19115/* Override any gcc2 internal prototype to avoid an error. */
19116#ifdef __cplusplus
19117extern "C"
19118#endif
19119/* We use char because int might match the return type of a gcc2
19120 builtin and then its argument prototype would still apply. */
19121char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019122int
19123main ()
19124{
19125elf_begin ();
19126 ;
19127 return 0;
19128}
19129_ACEOF
19130rm -f conftest.$ac_objext conftest$ac_exeext
19131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132 (eval $ac_link) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -s conftest$ac_exeext'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_elf_elf_begin=yes
19143else
19144 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019145sed 's/^/| /' conftest.$ac_ext >&5
19146
John Criswell7a73b802003-06-30 21:59:07 +000019147ac_cv_lib_elf_elf_begin=no
19148fi
19149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19150LIBS=$ac_check_lib_save_LIBS
19151fi
19152echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19153echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19154if test $ac_cv_lib_elf_elf_begin = yes; then
19155 cat >>confdefs.h <<_ACEOF
19156#define HAVE_LIBELF 1
19157_ACEOF
19158
19159 LIBS="-lelf $LIBS"
19160
19161fi
19162
19163
19164echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19165echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19166if test "${ac_cv_search_dlopen+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168else
19169 ac_func_search_save_LIBS=$LIBS
19170ac_cv_search_dlopen=no
19171cat >conftest.$ac_ext <<_ACEOF
19172#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019178
19179/* Override any gcc2 internal prototype to avoid an error. */
19180#ifdef __cplusplus
19181extern "C"
19182#endif
19183/* We use char because int might match the return type of a gcc2
19184 builtin and then its argument prototype would still apply. */
19185char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019186int
19187main ()
19188{
19189dlopen ();
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest.$ac_objext conftest$ac_exeext
19195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196 (eval $ac_link) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_cv_search_dlopen="none required"
19207else
19208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019209sed 's/^/| /' conftest.$ac_ext >&5
19210
John Criswell7a73b802003-06-30 21:59:07 +000019211fi
19212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19213if test "$ac_cv_search_dlopen" = no; then
19214 for ac_lib in dl; do
19215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19216 cat >conftest.$ac_ext <<_ACEOF
19217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019223
19224/* Override any gcc2 internal prototype to avoid an error. */
19225#ifdef __cplusplus
19226extern "C"
19227#endif
19228/* We use char because int might match the return type of a gcc2
19229 builtin and then its argument prototype would still apply. */
19230char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019231int
19232main ()
19233{
19234dlopen ();
19235 ;
19236 return 0;
19237}
19238_ACEOF
19239rm -f conftest.$ac_objext conftest$ac_exeext
19240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19241 (eval $ac_link) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -s conftest$ac_exeext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_cv_search_dlopen="-l$ac_lib"
19252break
19253else
19254 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019255sed 's/^/| /' conftest.$ac_ext >&5
19256
John Criswell7a73b802003-06-30 21:59:07 +000019257fi
19258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19259 done
19260fi
19261LIBS=$ac_func_search_save_LIBS
19262fi
19263echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19264echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19265if test "$ac_cv_search_dlopen" != no; then
19266 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19267
19268else
19269 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19270echo "$as_me: error: dlopen() required but not found" >&2;}
19271 { (exit 1); exit 1; }; }
19272fi
19273
19274
19275echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19276echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19277if test "${ac_cv_search_mallinfo+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279else
19280 ac_func_search_save_LIBS=$LIBS
19281ac_cv_search_mallinfo=no
19282cat >conftest.$ac_ext <<_ACEOF
19283#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019289
19290/* Override any gcc2 internal prototype to avoid an error. */
19291#ifdef __cplusplus
19292extern "C"
19293#endif
19294/* We use char because int might match the return type of a gcc2
19295 builtin and then its argument prototype would still apply. */
19296char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019297int
19298main ()
19299{
19300mallinfo ();
19301 ;
19302 return 0;
19303}
19304_ACEOF
19305rm -f conftest.$ac_objext conftest$ac_exeext
19306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19307 (eval $ac_link) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -s conftest$ac_exeext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_search_mallinfo="none required"
19318else
19319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019320sed 's/^/| /' conftest.$ac_ext >&5
19321
John Criswell7a73b802003-06-30 21:59:07 +000019322fi
19323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19324if test "$ac_cv_search_mallinfo" = no; then
19325 for ac_lib in malloc; do
19326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19328#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019329/* confdefs.h. */
19330_ACEOF
19331cat confdefs.h >>conftest.$ac_ext
19332cat >>conftest.$ac_ext <<_ACEOF
19333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019334
19335/* Override any gcc2 internal prototype to avoid an error. */
19336#ifdef __cplusplus
19337extern "C"
19338#endif
19339/* We use char because int might match the return type of a gcc2
19340 builtin and then its argument prototype would still apply. */
19341char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019342int
19343main ()
19344{
19345mallinfo ();
19346 ;
19347 return 0;
19348}
19349_ACEOF
19350rm -f conftest.$ac_objext conftest$ac_exeext
19351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19352 (eval $ac_link) 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -s conftest$ac_exeext'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_cv_search_mallinfo="-l$ac_lib"
19363break
19364else
19365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019366sed 's/^/| /' conftest.$ac_ext >&5
19367
John Criswell7a73b802003-06-30 21:59:07 +000019368fi
19369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19370 done
19371fi
19372LIBS=$ac_func_search_save_LIBS
19373fi
19374echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19375echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19376if test "$ac_cv_search_mallinfo" != no; then
19377 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19378 cat >>confdefs.h <<\_ACEOF
19379#define HAVE_MALLINFO 1
19380_ACEOF
19381
19382fi
19383
19384
19385
19386echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19387echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19388if test "${ac_cv_header_stdc+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390else
19391 cat >conftest.$ac_ext <<_ACEOF
19392#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019398#include <stdlib.h>
19399#include <stdarg.h>
19400#include <string.h>
19401#include <float.h>
19402
John Criswell0c38eaf2003-09-10 15:17:25 +000019403int
19404main ()
19405{
19406
19407 ;
19408 return 0;
19409}
John Criswell7a73b802003-06-30 21:59:07 +000019410_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019411rm -f conftest.$ac_objext
19412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19413 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019414 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019416 (exit $ac_status); } &&
19417 { ac_try='test -s conftest.$ac_objext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019423 ac_cv_header_stdc=yes
19424else
19425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019429fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019430rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019431
19432if test $ac_cv_header_stdc = yes; then
19433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19434 cat >conftest.$ac_ext <<_ACEOF
19435#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019441#include <string.h>
19442
19443_ACEOF
19444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019445 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019446 :
19447else
19448 ac_cv_header_stdc=no
19449fi
19450rm -f conftest*
19451
19452fi
19453
19454if test $ac_cv_header_stdc = yes; then
19455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19456 cat >conftest.$ac_ext <<_ACEOF
19457#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019458/* confdefs.h. */
19459_ACEOF
19460cat confdefs.h >>conftest.$ac_ext
19461cat >>conftest.$ac_ext <<_ACEOF
19462/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019463#include <stdlib.h>
19464
19465_ACEOF
19466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019467 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019468 :
19469else
19470 ac_cv_header_stdc=no
19471fi
19472rm -f conftest*
19473
19474fi
19475
19476if test $ac_cv_header_stdc = yes; then
19477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19478 if test "$cross_compiling" = yes; then
19479 :
19480else
19481 cat >conftest.$ac_ext <<_ACEOF
19482#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019483/* confdefs.h. */
19484_ACEOF
19485cat confdefs.h >>conftest.$ac_ext
19486cat >>conftest.$ac_ext <<_ACEOF
19487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019488#include <ctype.h>
19489#if ((' ' & 0x0FF) == 0x020)
19490# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19491# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19492#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019493# define ISLOWER(c) \
19494 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019495 || ('j' <= (c) && (c) <= 'r') \
19496 || ('s' <= (c) && (c) <= 'z'))
19497# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19498#endif
19499
19500#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19501int
19502main ()
19503{
19504 int i;
19505 for (i = 0; i < 256; i++)
19506 if (XOR (islower (i), ISLOWER (i))
19507 || toupper (i) != TOUPPER (i))
19508 exit(2);
19509 exit (0);
19510}
19511_ACEOF
19512rm -f conftest$ac_exeext
19513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514 (eval $ac_link) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 :
19524else
19525 echo "$as_me: program exited with status $ac_status" >&5
19526echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019527sed 's/^/| /' conftest.$ac_ext >&5
19528
John Criswell7a73b802003-06-30 21:59:07 +000019529( exit $ac_status )
19530ac_cv_header_stdc=no
19531fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019532rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019533fi
19534fi
19535fi
19536echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19537echo "${ECHO_T}$ac_cv_header_stdc" >&6
19538if test $ac_cv_header_stdc = yes; then
19539
19540cat >>confdefs.h <<\_ACEOF
19541#define STDC_HEADERS 1
19542_ACEOF
19543
19544fi
19545
19546echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19547echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19548if test "${ac_cv_header_sys_wait_h+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19550else
19551 cat >conftest.$ac_ext <<_ACEOF
19552#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019553/* confdefs.h. */
19554_ACEOF
19555cat confdefs.h >>conftest.$ac_ext
19556cat >>conftest.$ac_ext <<_ACEOF
19557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019558#include <sys/types.h>
19559#include <sys/wait.h>
19560#ifndef WEXITSTATUS
19561# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19562#endif
19563#ifndef WIFEXITED
19564# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19565#endif
19566
John Criswell7a73b802003-06-30 21:59:07 +000019567int
19568main ()
19569{
19570 int s;
19571 wait (&s);
19572 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19573 ;
19574 return 0;
19575}
19576_ACEOF
19577rm -f conftest.$ac_objext
19578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579 (eval $ac_compile) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_header_sys_wait_h=yes
19590else
19591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019592sed 's/^/| /' conftest.$ac_ext >&5
19593
John Criswell7a73b802003-06-30 21:59:07 +000019594ac_cv_header_sys_wait_h=no
19595fi
19596rm -f conftest.$ac_objext conftest.$ac_ext
19597fi
19598echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19599echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19600if test $ac_cv_header_sys_wait_h = yes; then
19601
19602cat >>confdefs.h <<\_ACEOF
19603#define HAVE_SYS_WAIT_H 1
19604_ACEOF
19605
19606fi
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19618do
19619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19620if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo "$as_me:$LINENO: checking for $ac_header" >&5
19622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19623if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625fi
19626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19628else
19629 # Is the header compilable?
19630echo "$as_me:$LINENO: checking $ac_header usability" >&5
19631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19632cat >conftest.$ac_ext <<_ACEOF
19633#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019634/* confdefs.h. */
19635_ACEOF
19636cat confdefs.h >>conftest.$ac_ext
19637cat >>conftest.$ac_ext <<_ACEOF
19638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019639$ac_includes_default
19640#include <$ac_header>
19641_ACEOF
19642rm -f conftest.$ac_objext
19643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644 (eval $ac_compile) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
19648 { ac_try='test -s conftest.$ac_objext'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_header_compiler=yes
19655else
19656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019657sed 's/^/| /' conftest.$ac_ext >&5
19658
John Criswell7a73b802003-06-30 21:59:07 +000019659ac_header_compiler=no
19660fi
19661rm -f conftest.$ac_objext conftest.$ac_ext
19662echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19663echo "${ECHO_T}$ac_header_compiler" >&6
19664
19665# Is the header present?
19666echo "$as_me:$LINENO: checking $ac_header presence" >&5
19667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19668cat >conftest.$ac_ext <<_ACEOF
19669#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019670/* confdefs.h. */
19671_ACEOF
19672cat confdefs.h >>conftest.$ac_ext
19673cat >>conftest.$ac_ext <<_ACEOF
19674/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019675#include <$ac_header>
19676_ACEOF
19677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19679 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019680 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } >/dev/null; then
19685 if test -s conftest.err; then
19686 ac_cpp_err=$ac_c_preproc_warn_flag
19687 else
19688 ac_cpp_err=
19689 fi
19690else
19691 ac_cpp_err=yes
19692fi
19693if test -z "$ac_cpp_err"; then
19694 ac_header_preproc=yes
19695else
19696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019697sed 's/^/| /' conftest.$ac_ext >&5
19698
John Criswell7a73b802003-06-30 21:59:07 +000019699 ac_header_preproc=no
19700fi
19701rm -f conftest.err conftest.$ac_ext
19702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19703echo "${ECHO_T}$ac_header_preproc" >&6
19704
19705# So? What about this header?
19706case $ac_header_compiler:$ac_header_preproc in
19707 yes:no )
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19712 (
19713 cat <<\_ASBOX
19714## ------------------------------------ ##
19715## Report this to bug-autoconf@gnu.org. ##
19716## ------------------------------------ ##
19717_ASBOX
19718 ) |
19719 sed "s/^/$as_me: WARNING: /" >&2
19720 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019721 no:yes )
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19728 (
19729 cat <<\_ASBOX
19730## ------------------------------------ ##
19731## Report this to bug-autoconf@gnu.org. ##
19732## ------------------------------------ ##
19733_ASBOX
19734 ) |
19735 sed "s/^/$as_me: WARNING: /" >&2
19736 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019737esac
19738echo "$as_me:$LINENO: checking for $ac_header" >&5
19739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19740if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19742else
19743 eval "$as_ac_Header=$ac_header_preproc"
19744fi
19745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19747
19748fi
19749if test `eval echo '${'$as_ac_Header'}'` = yes; then
19750 cat >>confdefs.h <<_ACEOF
19751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19752_ACEOF
19753
19754fi
19755
19756done
19757
19758
19759
19760
19761
19762
19763for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19764do
19765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19766if eval "test \"\${$as_ac_Header+set}\" = set"; then
19767 echo "$as_me:$LINENO: checking for $ac_header" >&5
19768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19769if eval "test \"\${$as_ac_Header+set}\" = set"; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771fi
19772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19774else
19775 # Is the header compilable?
19776echo "$as_me:$LINENO: checking $ac_header usability" >&5
19777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19778cat >conftest.$ac_ext <<_ACEOF
19779#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019785$ac_includes_default
19786#include <$ac_header>
19787_ACEOF
19788rm -f conftest.$ac_objext
19789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19790 (eval $ac_compile) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -s conftest.$ac_objext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_header_compiler=yes
19801else
19802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019803sed 's/^/| /' conftest.$ac_ext >&5
19804
John Criswell7a73b802003-06-30 21:59:07 +000019805ac_header_compiler=no
19806fi
19807rm -f conftest.$ac_objext conftest.$ac_ext
19808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19809echo "${ECHO_T}$ac_header_compiler" >&6
19810
19811# Is the header present?
19812echo "$as_me:$LINENO: checking $ac_header presence" >&5
19813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19814cat >conftest.$ac_ext <<_ACEOF
19815#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019816/* confdefs.h. */
19817_ACEOF
19818cat confdefs.h >>conftest.$ac_ext
19819cat >>conftest.$ac_ext <<_ACEOF
19820/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019821#include <$ac_header>
19822_ACEOF
19823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19825 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019826 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } >/dev/null; then
19831 if test -s conftest.err; then
19832 ac_cpp_err=$ac_c_preproc_warn_flag
19833 else
19834 ac_cpp_err=
19835 fi
19836else
19837 ac_cpp_err=yes
19838fi
19839if test -z "$ac_cpp_err"; then
19840 ac_header_preproc=yes
19841else
19842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019843sed 's/^/| /' conftest.$ac_ext >&5
19844
John Criswell7a73b802003-06-30 21:59:07 +000019845 ac_header_preproc=no
19846fi
19847rm -f conftest.err conftest.$ac_ext
19848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19849echo "${ECHO_T}$ac_header_preproc" >&6
19850
19851# So? What about this header?
19852case $ac_header_compiler:$ac_header_preproc in
19853 yes:no )
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19858 (
19859 cat <<\_ASBOX
19860## ------------------------------------ ##
19861## Report this to bug-autoconf@gnu.org. ##
19862## ------------------------------------ ##
19863_ASBOX
19864 ) |
19865 sed "s/^/$as_me: WARNING: /" >&2
19866 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019867 no:yes )
19868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19869echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19871echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19874 (
19875 cat <<\_ASBOX
19876## ------------------------------------ ##
19877## Report this to bug-autoconf@gnu.org. ##
19878## ------------------------------------ ##
19879_ASBOX
19880 ) |
19881 sed "s/^/$as_me: WARNING: /" >&2
19882 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019883esac
19884echo "$as_me:$LINENO: checking for $ac_header" >&5
19885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19886if eval "test \"\${$as_ac_Header+set}\" = set"; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888else
19889 eval "$as_ac_Header=$ac_header_preproc"
19890fi
19891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19893
19894fi
19895if test `eval echo '${'$as_ac_Header'}'` = yes; then
19896 cat >>confdefs.h <<_ACEOF
19897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19898_ACEOF
19899
19900fi
19901
19902done
19903
19904
19905
19906
19907for ac_header in dlfcn.h link.h
19908do
19909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19910if eval "test \"\${$as_ac_Header+set}\" = set"; then
19911 echo "$as_me:$LINENO: checking for $ac_header" >&5
19912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19913if eval "test \"\${$as_ac_Header+set}\" = set"; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915fi
19916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19918else
19919 # Is the header compilable?
19920echo "$as_me:$LINENO: checking $ac_header usability" >&5
19921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19922cat >conftest.$ac_ext <<_ACEOF
19923#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019924/* confdefs.h. */
19925_ACEOF
19926cat confdefs.h >>conftest.$ac_ext
19927cat >>conftest.$ac_ext <<_ACEOF
19928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019929$ac_includes_default
19930#include <$ac_header>
19931_ACEOF
19932rm -f conftest.$ac_objext
19933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934 (eval $ac_compile) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_header_compiler=yes
19945else
19946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019947sed 's/^/| /' conftest.$ac_ext >&5
19948
John Criswell7a73b802003-06-30 21:59:07 +000019949ac_header_compiler=no
19950fi
19951rm -f conftest.$ac_objext conftest.$ac_ext
19952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953echo "${ECHO_T}$ac_header_compiler" >&6
19954
19955# Is the header present?
19956echo "$as_me:$LINENO: checking $ac_header presence" >&5
19957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19958cat >conftest.$ac_ext <<_ACEOF
19959#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019965#include <$ac_header>
19966_ACEOF
19967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19969 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019970 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } >/dev/null; then
19975 if test -s conftest.err; then
19976 ac_cpp_err=$ac_c_preproc_warn_flag
19977 else
19978 ac_cpp_err=
19979 fi
19980else
19981 ac_cpp_err=yes
19982fi
19983if test -z "$ac_cpp_err"; then
19984 ac_header_preproc=yes
19985else
19986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019987sed 's/^/| /' conftest.$ac_ext >&5
19988
John Criswell7a73b802003-06-30 21:59:07 +000019989 ac_header_preproc=no
19990fi
19991rm -f conftest.err conftest.$ac_ext
19992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19993echo "${ECHO_T}$ac_header_preproc" >&6
19994
19995# So? What about this header?
19996case $ac_header_compiler:$ac_header_preproc in
19997 yes:no )
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20002 (
20003 cat <<\_ASBOX
20004## ------------------------------------ ##
20005## Report this to bug-autoconf@gnu.org. ##
20006## ------------------------------------ ##
20007_ASBOX
20008 ) |
20009 sed "s/^/$as_me: WARNING: /" >&2
20010 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020011 no:yes )
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20018 (
20019 cat <<\_ASBOX
20020## ------------------------------------ ##
20021## Report this to bug-autoconf@gnu.org. ##
20022## ------------------------------------ ##
20023_ASBOX
20024 ) |
20025 sed "s/^/$as_me: WARNING: /" >&2
20026 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020027esac
20028echo "$as_me:$LINENO: checking for $ac_header" >&5
20029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20030if eval "test \"\${$as_ac_Header+set}\" = set"; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032else
20033 eval "$as_ac_Header=$ac_header_preproc"
20034fi
20035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037
20038fi
20039if test `eval echo '${'$as_ac_Header'}'` = yes; then
20040 cat >>confdefs.h <<_ACEOF
20041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20042_ACEOF
20043
20044fi
20045
20046done
20047
20048
20049
John Criswell7a73b802003-06-30 21:59:07 +000020050echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20051echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20052if test "${ac_cv_c_const+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054else
20055 cat >conftest.$ac_ext <<_ACEOF
20056#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020057/* confdefs.h. */
20058_ACEOF
20059cat confdefs.h >>conftest.$ac_ext
20060cat >>conftest.$ac_ext <<_ACEOF
20061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020062
John Criswell7a73b802003-06-30 21:59:07 +000020063int
20064main ()
20065{
20066/* FIXME: Include the comments suggested by Paul. */
20067#ifndef __cplusplus
20068 /* Ultrix mips cc rejects this. */
20069 typedef int charset[2];
20070 const charset x;
20071 /* SunOS 4.1.1 cc rejects this. */
20072 char const *const *ccp;
20073 char **p;
20074 /* NEC SVR4.0.2 mips cc rejects this. */
20075 struct point {int x, y;};
20076 static struct point const zero = {0,0};
20077 /* AIX XL C 1.02.0.0 rejects this.
20078 It does not let you subtract one const X* pointer from another in
20079 an arm of an if-expression whose if-part is not a constant
20080 expression */
20081 const char *g = "string";
20082 ccp = &g + (g ? g-g : 0);
20083 /* HPUX 7.0 cc rejects these. */
20084 ++ccp;
20085 p = (char**) ccp;
20086 ccp = (char const *const *) p;
20087 { /* SCO 3.2v4 cc rejects this. */
20088 char *t;
20089 char const *s = 0 ? (char *) 0 : (char const *) 0;
20090
20091 *t++ = 0;
20092 }
20093 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20094 int x[] = {25, 17};
20095 const int *foo = &x[0];
20096 ++foo;
20097 }
20098 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20099 typedef const int *iptr;
20100 iptr p = 0;
20101 ++p;
20102 }
20103 { /* AIX XL C 1.02.0.0 rejects this saying
20104 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20105 struct s { int j; const int *ap[3]; };
20106 struct s *b; b->j = 5;
20107 }
20108 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20109 const int foo = 10;
20110 }
20111#endif
20112
20113 ;
20114 return 0;
20115}
20116_ACEOF
20117rm -f conftest.$ac_objext
20118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119 (eval $ac_compile) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -s conftest.$ac_objext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 ac_cv_c_const=yes
20130else
20131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020132sed 's/^/| /' conftest.$ac_ext >&5
20133
John Criswell7a73b802003-06-30 21:59:07 +000020134ac_cv_c_const=no
20135fi
20136rm -f conftest.$ac_objext conftest.$ac_ext
20137fi
20138echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20139echo "${ECHO_T}$ac_cv_c_const" >&6
20140if test $ac_cv_c_const = no; then
20141
20142cat >>confdefs.h <<\_ACEOF
20143#define const
20144_ACEOF
20145
20146fi
20147
20148echo "$as_me:$LINENO: checking for inline" >&5
20149echo $ECHO_N "checking for inline... $ECHO_C" >&6
20150if test "${ac_cv_c_inline+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152else
20153 ac_cv_c_inline=no
20154for ac_kw in inline __inline__ __inline; do
20155 cat >conftest.$ac_ext <<_ACEOF
20156#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020157/* confdefs.h. */
20158_ACEOF
20159cat confdefs.h >>conftest.$ac_ext
20160cat >>conftest.$ac_ext <<_ACEOF
20161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020162#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020163typedef int foo_t;
20164static $ac_kw foo_t static_foo () {return 0; }
20165$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020166#endif
20167
20168_ACEOF
20169rm -f conftest.$ac_objext
20170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 ac_cv_c_inline=$ac_kw; break
20182else
20183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020184sed 's/^/| /' conftest.$ac_ext >&5
20185
John Criswell7a73b802003-06-30 21:59:07 +000020186fi
20187rm -f conftest.$ac_objext conftest.$ac_ext
20188done
20189
20190fi
20191echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20192echo "${ECHO_T}$ac_cv_c_inline" >&6
20193case $ac_cv_c_inline in
20194 inline | yes) ;;
20195 no)
20196cat >>confdefs.h <<\_ACEOF
20197#define inline
20198_ACEOF
20199 ;;
20200 *) cat >>confdefs.h <<_ACEOF
20201#define inline $ac_cv_c_inline
20202_ACEOF
20203 ;;
20204esac
20205
20206
20207echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20208echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20209if test "${ac_cv_c_bigendian+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211else
20212 # See if sys/param.h defines the BYTE_ORDER macro.
20213cat >conftest.$ac_ext <<_ACEOF
20214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020215/* confdefs.h. */
20216_ACEOF
20217cat confdefs.h >>conftest.$ac_ext
20218cat >>conftest.$ac_ext <<_ACEOF
20219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020220#include <sys/types.h>
20221#include <sys/param.h>
20222
John Criswell7a73b802003-06-30 21:59:07 +000020223int
20224main ()
20225{
20226#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20227 bogus endian macros
20228#endif
20229
20230 ;
20231 return 0;
20232}
20233_ACEOF
20234rm -f conftest.$ac_objext
20235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20236 (eval $ac_compile) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 # It does; now see whether it defined to BIG_ENDIAN or not.
20247cat >conftest.$ac_ext <<_ACEOF
20248#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020254#include <sys/types.h>
20255#include <sys/param.h>
20256
John Criswell7a73b802003-06-30 21:59:07 +000020257int
20258main ()
20259{
20260#if BYTE_ORDER != BIG_ENDIAN
20261 not big endian
20262#endif
20263
20264 ;
20265 return 0;
20266}
20267_ACEOF
20268rm -f conftest.$ac_objext
20269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20270 (eval $ac_compile) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -s conftest.$ac_objext'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_cv_c_bigendian=yes
20281else
20282 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020283sed 's/^/| /' conftest.$ac_ext >&5
20284
John Criswell7a73b802003-06-30 21:59:07 +000020285ac_cv_c_bigendian=no
20286fi
20287rm -f conftest.$ac_objext conftest.$ac_ext
20288else
20289 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020290sed 's/^/| /' conftest.$ac_ext >&5
20291
John Criswell7a73b802003-06-30 21:59:07 +000020292# It does not; compile a test program.
20293if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020294 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020295 ac_cv_c_bigendian=unknown
20296 cat >conftest.$ac_ext <<_ACEOF
20297#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020303short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20304short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20305void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20306short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20307short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20308void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020309int
20310main ()
20311{
20312 _ascii (); _ebcdic ();
20313 ;
20314 return 0;
20315}
20316_ACEOF
20317rm -f conftest.$ac_objext
20318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020329 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020330 ac_cv_c_bigendian=yes
20331fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020332if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020333 if test "$ac_cv_c_bigendian" = unknown; then
20334 ac_cv_c_bigendian=no
20335 else
20336 # finding both strings is unlikely to happen, but who knows?
20337 ac_cv_c_bigendian=unknown
20338 fi
20339fi
20340else
20341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020342sed 's/^/| /' conftest.$ac_ext >&5
20343
John Criswell7a73b802003-06-30 21:59:07 +000020344fi
20345rm -f conftest.$ac_objext conftest.$ac_ext
20346else
20347 cat >conftest.$ac_ext <<_ACEOF
20348#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020349/* confdefs.h. */
20350_ACEOF
20351cat confdefs.h >>conftest.$ac_ext
20352cat >>conftest.$ac_ext <<_ACEOF
20353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020354int
20355main ()
20356{
20357 /* Are we little or big endian? From Harbison&Steele. */
20358 union
20359 {
20360 long l;
20361 char c[sizeof (long)];
20362 } u;
20363 u.l = 1;
20364 exit (u.c[sizeof (long) - 1] == 1);
20365}
20366_ACEOF
20367rm -f conftest$ac_exeext
20368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_c_bigendian=no
20379else
20380 echo "$as_me: program exited with status $ac_status" >&5
20381echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020382sed 's/^/| /' conftest.$ac_ext >&5
20383
John Criswell7a73b802003-06-30 21:59:07 +000020384( exit $ac_status )
20385ac_cv_c_bigendian=yes
20386fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020387rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020388fi
20389fi
20390rm -f conftest.$ac_objext conftest.$ac_ext
20391fi
20392echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20393echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20394case $ac_cv_c_bigendian in
20395 yes)
20396 cat >>confdefs.h <<\_ACEOF
20397#define ENDIAN_BIG 1
20398_ACEOF
20399 ;;
20400 no)
20401 cat >>confdefs.h <<\_ACEOF
20402#define ENDIAN_LITTLE 1
20403_ACEOF
20404 ;;
20405 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020406 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020407presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020408echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020409presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20410 { (exit 1); exit 1; }; } ;;
20411esac
20412
20413
20414echo "$as_me:$LINENO: checking for pid_t" >&5
20415echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20416if test "${ac_cv_type_pid_t+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419 cat >conftest.$ac_ext <<_ACEOF
20420#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020421/* confdefs.h. */
20422_ACEOF
20423cat confdefs.h >>conftest.$ac_ext
20424cat >>conftest.$ac_ext <<_ACEOF
20425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020426$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020427int
20428main ()
20429{
20430if ((pid_t *) 0)
20431 return 0;
20432if (sizeof (pid_t))
20433 return 0;
20434 ;
20435 return 0;
20436}
20437_ACEOF
20438rm -f conftest.$ac_objext
20439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440 (eval $ac_compile) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 ac_cv_type_pid_t=yes
20451else
20452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020453sed 's/^/| /' conftest.$ac_ext >&5
20454
John Criswell7a73b802003-06-30 21:59:07 +000020455ac_cv_type_pid_t=no
20456fi
20457rm -f conftest.$ac_objext conftest.$ac_ext
20458fi
20459echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20460echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20461if test $ac_cv_type_pid_t = yes; then
20462 :
20463else
20464
20465cat >>confdefs.h <<_ACEOF
20466#define pid_t int
20467_ACEOF
20468
20469fi
20470
20471echo "$as_me:$LINENO: checking for size_t" >&5
20472echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20473if test "${ac_cv_type_size_t+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475else
20476 cat >conftest.$ac_ext <<_ACEOF
20477#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020478/* confdefs.h. */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
20482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020483$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020484int
20485main ()
20486{
20487if ((size_t *) 0)
20488 return 0;
20489if (sizeof (size_t))
20490 return 0;
20491 ;
20492 return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20497 (eval $ac_compile) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_type_size_t=yes
20508else
20509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020510sed 's/^/| /' conftest.$ac_ext >&5
20511
John Criswell7a73b802003-06-30 21:59:07 +000020512ac_cv_type_size_t=no
20513fi
20514rm -f conftest.$ac_objext conftest.$ac_ext
20515fi
20516echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20517echo "${ECHO_T}$ac_cv_type_size_t" >&6
20518if test $ac_cv_type_size_t = yes; then
20519 :
20520else
20521
20522cat >>confdefs.h <<_ACEOF
20523#define size_t unsigned
20524_ACEOF
20525
20526fi
20527
20528echo "$as_me:$LINENO: checking for int64_t" >&5
20529echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20530if test "${ac_cv_type_int64_t+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20532else
20533 cat >conftest.$ac_ext <<_ACEOF
20534#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020535/* confdefs.h. */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
20539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020540$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020541int
20542main ()
20543{
20544if ((int64_t *) 0)
20545 return 0;
20546if (sizeof (int64_t))
20547 return 0;
20548 ;
20549 return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -s conftest.$ac_objext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_type_int64_t=yes
20565else
20566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020567sed 's/^/| /' conftest.$ac_ext >&5
20568
John Criswell7a73b802003-06-30 21:59:07 +000020569ac_cv_type_int64_t=no
20570fi
20571rm -f conftest.$ac_objext conftest.$ac_ext
20572fi
20573echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20574echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20575if test $ac_cv_type_int64_t = yes; then
20576
20577cat >>confdefs.h <<_ACEOF
20578#define HAVE_INT64_T 1
20579_ACEOF
20580
20581
20582else
20583 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20584echo "$as_me: error: Type int64_t required but not found" >&2;}
20585 { (exit 1); exit 1; }; }
20586fi
20587
20588echo "$as_me:$LINENO: checking for uint64_t" >&5
20589echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20590if test "${ac_cv_type_uint64_t+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20592else
20593 cat >conftest.$ac_ext <<_ACEOF
20594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020595/* confdefs.h. */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020600$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020601int
20602main ()
20603{
20604if ((uint64_t *) 0)
20605 return 0;
20606if (sizeof (uint64_t))
20607 return 0;
20608 ;
20609 return 0;
20610}
20611_ACEOF
20612rm -f conftest.$ac_objext
20613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20614 (eval $ac_compile) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_type_uint64_t=yes
20625else
20626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020627sed 's/^/| /' conftest.$ac_ext >&5
20628
John Criswell7a73b802003-06-30 21:59:07 +000020629ac_cv_type_uint64_t=no
20630fi
20631rm -f conftest.$ac_objext conftest.$ac_ext
20632fi
20633echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20634echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20635if test $ac_cv_type_uint64_t = yes; then
20636
20637cat >>confdefs.h <<_ACEOF
20638#define HAVE_UINT64_T 1
20639_ACEOF
20640
20641
20642else
20643 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20644echo "$as_me: error: Type uint64_t required but not found" >&2;}
20645 { (exit 1); exit 1; }; }
20646fi
20647
20648echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20649echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20650if test "${ac_cv_header_time+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652else
20653 cat >conftest.$ac_ext <<_ACEOF
20654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020655/* confdefs.h. */
20656_ACEOF
20657cat confdefs.h >>conftest.$ac_ext
20658cat >>conftest.$ac_ext <<_ACEOF
20659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020660#include <sys/types.h>
20661#include <sys/time.h>
20662#include <time.h>
20663
John Criswell7a73b802003-06-30 21:59:07 +000020664int
20665main ()
20666{
20667if ((struct tm *) 0)
20668return 0;
20669 ;
20670 return 0;
20671}
20672_ACEOF
20673rm -f conftest.$ac_objext
20674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20675 (eval $ac_compile) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } &&
20679 { ac_try='test -s conftest.$ac_objext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_header_time=yes
20686else
20687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020688sed 's/^/| /' conftest.$ac_ext >&5
20689
John Criswell7a73b802003-06-30 21:59:07 +000020690ac_cv_header_time=no
20691fi
20692rm -f conftest.$ac_objext conftest.$ac_ext
20693fi
20694echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20695echo "${ECHO_T}$ac_cv_header_time" >&6
20696if test $ac_cv_header_time = yes; then
20697
20698cat >>confdefs.h <<\_ACEOF
20699#define TIME_WITH_SYS_TIME 1
20700_ACEOF
20701
20702fi
20703
20704echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20705echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20706if test "${ac_cv_struct_tm+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20708else
20709 cat >conftest.$ac_ext <<_ACEOF
20710#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020716#include <sys/types.h>
20717#include <time.h>
20718
John Criswell7a73b802003-06-30 21:59:07 +000020719int
20720main ()
20721{
20722struct tm *tp; tp->tm_sec;
20723 ;
20724 return 0;
20725}
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729 (eval $ac_compile) 2>&5
20730 ac_status=$?
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -s conftest.$ac_objext'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 ac_cv_struct_tm=time.h
20740else
20741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020742sed 's/^/| /' conftest.$ac_ext >&5
20743
John Criswell7a73b802003-06-30 21:59:07 +000020744ac_cv_struct_tm=sys/time.h
20745fi
20746rm -f conftest.$ac_objext conftest.$ac_ext
20747fi
20748echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20749echo "${ECHO_T}$ac_cv_struct_tm" >&6
20750if test $ac_cv_struct_tm = sys/time.h; then
20751
20752cat >>confdefs.h <<\_ACEOF
20753#define TM_IN_SYS_TIME 1
20754_ACEOF
20755
20756fi
20757
20758
John Criswell7a73b802003-06-30 21:59:07 +000020759echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20760echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20761if test "${ac_cv_cxx_namespaces+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763else
20764
20765
20766 ac_ext=cc
20767ac_cpp='$CXXCPP $CPPFLAGS'
20768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20771
20772 cat >conftest.$ac_ext <<_ACEOF
20773#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020774/* confdefs.h. */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
20778/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020779namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020780int
20781main ()
20782{
20783using namespace Outer::Inner; return i;
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext
20789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790 (eval $ac_compile) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -s conftest.$ac_objext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_cv_cxx_namespaces=yes
20801else
20802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020803sed 's/^/| /' conftest.$ac_ext >&5
20804
John Criswell7a73b802003-06-30 21:59:07 +000020805ac_cv_cxx_namespaces=no
20806fi
20807rm -f conftest.$ac_objext conftest.$ac_ext
20808 ac_ext=c
20809ac_cpp='$CPP $CPPFLAGS'
20810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20812ac_compiler_gnu=$ac_cv_c_compiler_gnu
20813
20814
20815fi
20816echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20817echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20818if test "$ac_cv_cxx_namespaces" = yes; then
20819
20820cat >>confdefs.h <<\_ACEOF
20821#define HAVE_NAMESPACES
20822_ACEOF
20823
20824fi
20825
20826echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20827echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20828if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20830else
20831
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 +000020847#include <ext/hash_map>
20848#ifdef HAVE_NAMESPACES
20849using namespace std;
20850#endif
John Criswell7a73b802003-06-30 21:59:07 +000020851int
20852main ()
20853{
20854hash_map<int, int> t; return 0;
20855 ;
20856 return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861 (eval $ac_compile) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -s conftest.$ac_objext'
20866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867 (eval $ac_try) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
20871 ac_cv_cxx_have_ext_hash_map=std
20872else
20873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020874sed 's/^/| /' conftest.$ac_ext >&5
20875
John Criswell7a73b802003-06-30 21:59:07 +000020876ac_cv_cxx_have_ext_hash_map=no
20877fi
20878rm -f conftest.$ac_objext conftest.$ac_ext
20879 cat >conftest.$ac_ext <<_ACEOF
20880#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020881/* confdefs.h. */
20882_ACEOF
20883cat confdefs.h >>conftest.$ac_ext
20884cat >>conftest.$ac_ext <<_ACEOF
20885/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020886#include <ext/hash_map>
20887#ifdef HAVE_NAMESPACES
20888using namespace __gnu_cxx;
20889#endif
John Criswell7a73b802003-06-30 21:59:07 +000020890int
20891main ()
20892{
20893hash_map<int, int> t; return 0;
20894 ;
20895 return 0;
20896}
20897_ACEOF
20898rm -f conftest.$ac_objext
20899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20900 (eval $ac_compile) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try='test -s conftest.$ac_objext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_cv_cxx_have_ext_hash_map=gnu
20911else
20912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020913sed 's/^/| /' conftest.$ac_ext >&5
20914
John Criswell7a73b802003-06-30 21:59:07 +000020915ac_cv_cxx_have_ext_hash_map=no
20916fi
20917rm -f conftest.$ac_objext conftest.$ac_ext
20918 ac_ext=c
20919ac_cpp='$CPP $CPPFLAGS'
20920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922ac_compiler_gnu=$ac_cv_c_compiler_gnu
20923
20924
20925fi
20926echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20927echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20928if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20929
20930cat >>confdefs.h <<\_ACEOF
20931#define HAVE_STD_EXT_HASH_MAP
20932_ACEOF
20933
20934fi
20935if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20936
20937cat >>confdefs.h <<\_ACEOF
20938#define HAVE_GNU_EXT_HASH_MAP
20939_ACEOF
20940
20941fi
20942
20943echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20944echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20945if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20947else
20948
20949
20950
20951 ac_ext=cc
20952ac_cpp='$CXXCPP $CPPFLAGS'
20953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20956
20957 cat >conftest.$ac_ext <<_ACEOF
20958#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020959/* confdefs.h. */
20960_ACEOF
20961cat confdefs.h >>conftest.$ac_ext
20962cat >>conftest.$ac_ext <<_ACEOF
20963/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020964#include <ext/hash_set>
20965#ifdef HAVE_NAMESPACES
20966using namespace std;
20967#endif
John Criswell7a73b802003-06-30 21:59:07 +000020968int
20969main ()
20970{
20971hash_set<int> t; return 0;
20972 ;
20973 return 0;
20974}
20975_ACEOF
20976rm -f conftest.$ac_objext
20977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20978 (eval $ac_compile) 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -s conftest.$ac_objext'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; }; then
20988 ac_cv_cxx_have_ext_hash_set=std
20989else
20990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020991sed 's/^/| /' conftest.$ac_ext >&5
20992
John Criswell7a73b802003-06-30 21:59:07 +000020993ac_cv_cxx_have_ext_hash_set=no
20994fi
20995rm -f conftest.$ac_objext conftest.$ac_ext
20996 cat >conftest.$ac_ext <<_ACEOF
20997#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020998/* confdefs.h. */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021003#include <ext/hash_set>
21004#ifdef HAVE_NAMESPACES
21005using namespace __gnu_cxx;
21006#endif
John Criswell7a73b802003-06-30 21:59:07 +000021007int
21008main ()
21009{
21010hash_set<int> t; return 0;
21011 ;
21012 return 0;
21013}
21014_ACEOF
21015rm -f conftest.$ac_objext
21016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21017 (eval $ac_compile) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -s conftest.$ac_objext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 ac_cv_cxx_have_ext_hash_set=gnu
21028else
21029 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021030sed 's/^/| /' conftest.$ac_ext >&5
21031
John Criswell7a73b802003-06-30 21:59:07 +000021032ac_cv_cxx_have_ext_hash_set=no
21033fi
21034rm -f conftest.$ac_objext conftest.$ac_ext
21035 ac_ext=c
21036ac_cpp='$CPP $CPPFLAGS'
21037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042fi
21043echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21044echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21045if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21046
21047cat >>confdefs.h <<\_ACEOF
21048#define HAVE_STD_EXT_HASH_SET
21049_ACEOF
21050
21051fi
21052if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21053
21054cat >>confdefs.h <<\_ACEOF
21055#define HAVE_GNU_EXT_HASH_SET
21056_ACEOF
21057
21058fi
21059
21060echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21061echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21062if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21064else
21065
21066
21067
21068 ac_ext=cc
21069ac_cpp='$CXXCPP $CPPFLAGS'
21070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21073
21074 cat >conftest.$ac_ext <<_ACEOF
21075#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021076/* confdefs.h. */
21077_ACEOF
21078cat confdefs.h >>conftest.$ac_ext
21079cat >>conftest.$ac_ext <<_ACEOF
21080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021081#include <ext/slist>
21082#ifdef HAVE_NAMESPACES
21083using namespace std;
21084#endif
John Criswell7a73b802003-06-30 21:59:07 +000021085int
21086main ()
21087{
21088slist<int> s; return 0;
21089 ;
21090 return 0;
21091}
21092_ACEOF
21093rm -f conftest.$ac_objext
21094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21095 (eval $ac_compile) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
21099 { ac_try='test -s conftest.$ac_objext'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 ac_cv_cxx_have_ext_slist=std
21106else
21107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021108sed 's/^/| /' conftest.$ac_ext >&5
21109
John Criswell7a73b802003-06-30 21:59:07 +000021110ac_cv_cxx_have_ext_slist=no
21111fi
21112rm -f conftest.$ac_objext conftest.$ac_ext
21113 cat >conftest.$ac_ext <<_ACEOF
21114#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021115/* confdefs.h. */
21116_ACEOF
21117cat confdefs.h >>conftest.$ac_ext
21118cat >>conftest.$ac_ext <<_ACEOF
21119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021120#include <ext/slist>
21121#ifdef HAVE_NAMESPACES
21122using namespace __gnu_cxx;
21123#endif
John Criswell7a73b802003-06-30 21:59:07 +000021124int
21125main ()
21126{
21127slist<int> s; return 0;
21128 ;
21129 return 0;
21130}
21131_ACEOF
21132rm -f conftest.$ac_objext
21133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134 (eval $ac_compile) 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -s conftest.$ac_objext'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; }; then
21144 ac_cv_cxx_have_ext_slist=gnu
21145else
21146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021147sed 's/^/| /' conftest.$ac_ext >&5
21148
John Criswell7a73b802003-06-30 21:59:07 +000021149ac_cv_cxx_have_ext_slist=no
21150fi
21151rm -f conftest.$ac_objext conftest.$ac_ext
21152
21153 ac_ext=c
21154ac_cpp='$CPP $CPPFLAGS'
21155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21157ac_compiler_gnu=$ac_cv_c_compiler_gnu
21158
21159
21160fi
21161echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21162echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21163if test "$ac_cv_cxx_have_ext_slist" = std; then
21164
21165cat >>confdefs.h <<\_ACEOF
21166#define HAVE_EXT_SLIST std
21167_ACEOF
21168
21169fi
21170if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21171
21172cat >>confdefs.h <<\_ACEOF
21173#define HAVE_EXT_SLIST gnu
21174_ACEOF
21175
21176fi
21177
21178echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21179echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21180if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21182else
21183
21184
21185
21186 ac_ext=cc
21187ac_cpp='$CXXCPP $CPPFLAGS'
21188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21191
21192 cat >conftest.$ac_ext <<_ACEOF
21193#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021194/* confdefs.h. */
21195_ACEOF
21196cat confdefs.h >>conftest.$ac_ext
21197cat >>conftest.$ac_ext <<_ACEOF
21198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021199#include <iterator>
21200#ifdef HAVE_NAMESPACES
21201using namespace std;
21202#endif
John Criswell7a73b802003-06-30 21:59:07 +000021203int
21204main ()
21205{
21206iterator<int,int,int> t; return 0;
21207 ;
21208 return 0;
21209}
21210_ACEOF
21211rm -f conftest.$ac_objext
21212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213 (eval $ac_compile) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_cxx_have_std_iterator=yes
21224else
21225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021226sed 's/^/| /' conftest.$ac_ext >&5
21227
John Criswell7a73b802003-06-30 21:59:07 +000021228ac_cv_cxx_have_std_iterator=no
21229fi
21230rm -f conftest.$ac_objext conftest.$ac_ext
21231 ac_ext=c
21232ac_cpp='$CPP $CPPFLAGS'
21233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235ac_compiler_gnu=$ac_cv_c_compiler_gnu
21236
21237
21238fi
21239echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21240echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21241if test "$ac_cv_cxx_have_std_iterator" = yes; then
21242
21243cat >>confdefs.h <<\_ACEOF
21244#define HAVE_STD_ITERATOR
21245_ACEOF
21246
21247fi
21248
21249echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21250echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21251if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21253else
21254
21255
21256
21257 ac_ext=cc
21258ac_cpp='$CXXCPP $CPPFLAGS'
21259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21262
21263 cat >conftest.$ac_ext <<_ACEOF
21264#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021265/* confdefs.h. */
21266_ACEOF
21267cat confdefs.h >>conftest.$ac_ext
21268cat >>conftest.$ac_ext <<_ACEOF
21269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021270#include <iterator>
21271#ifdef HAVE_NAMESPACES
21272using namespace std;
21273#endif
John Criswell7a73b802003-06-30 21:59:07 +000021274int
21275main ()
21276{
John Criswellc78022e2003-07-29 19:11:58 +000021277bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021278 ;
21279 return 0;
21280}
21281_ACEOF
21282rm -f conftest.$ac_objext
21283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284 (eval $ac_compile) 2>&5
21285 ac_status=$?
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
21288 { ac_try='test -s conftest.$ac_objext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21291 ac_status=$?
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_cxx_have_bi_iterator=yes
21295else
21296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021297sed 's/^/| /' conftest.$ac_ext >&5
21298
John Criswell7a73b802003-06-30 21:59:07 +000021299ac_cv_cxx_have_bi_iterator=no
21300fi
21301rm -f conftest.$ac_objext conftest.$ac_ext
21302 ac_ext=c
21303ac_cpp='$CPP $CPPFLAGS'
21304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21306ac_compiler_gnu=$ac_cv_c_compiler_gnu
21307
21308
21309fi
21310echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21311echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21312if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21313
21314cat >>confdefs.h <<\_ACEOF
21315#define HAVE_BI_ITERATOR
21316_ACEOF
21317
21318fi
21319
21320echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21321echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21322if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324else
21325
21326
21327
21328 ac_ext=cc
21329ac_cpp='$CXXCPP $CPPFLAGS'
21330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21333
21334 cat >conftest.$ac_ext <<_ACEOF
21335#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021341#include <iterator>
21342#ifdef HAVE_NAMESPACES
21343using namespace std;
21344#endif
John Criswell7a73b802003-06-30 21:59:07 +000021345int
21346main ()
21347{
John Criswellc78022e2003-07-29 19:11:58 +000021348forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021349 ;
21350 return 0;
21351}
21352_ACEOF
21353rm -f conftest.$ac_objext
21354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355 (eval $ac_compile) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } &&
21359 { ac_try='test -s conftest.$ac_objext'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 ac_cv_cxx_have_fwd_iterator=yes
21366else
21367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021368sed 's/^/| /' conftest.$ac_ext >&5
21369
John Criswell7a73b802003-06-30 21:59:07 +000021370ac_cv_cxx_have_fwd_iterator=no
21371fi
21372rm -f conftest.$ac_objext conftest.$ac_ext
21373 ac_ext=c
21374ac_cpp='$CPP $CPPFLAGS'
21375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21377ac_compiler_gnu=$ac_cv_c_compiler_gnu
21378
21379
21380fi
21381echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21382echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21383if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21384
21385cat >>confdefs.h <<\_ACEOF
21386#define HAVE_FWD_ITERATOR
21387_ACEOF
21388
21389fi
21390
21391
21392# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21393# for constant arguments. Useless!
21394echo "$as_me:$LINENO: checking for working alloca.h" >&5
21395echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21396if test "${ac_cv_working_alloca_h+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398else
21399 cat >conftest.$ac_ext <<_ACEOF
21400#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021401/* confdefs.h. */
21402_ACEOF
21403cat confdefs.h >>conftest.$ac_ext
21404cat >>conftest.$ac_ext <<_ACEOF
21405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021406#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021407int
21408main ()
21409{
21410char *p = (char *) alloca (2 * sizeof (int));
21411 ;
21412 return 0;
21413}
21414_ACEOF
21415rm -f conftest.$ac_objext conftest$ac_exeext
21416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21417 (eval $ac_link) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
21421 { ac_try='test -s conftest$ac_exeext'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; }; then
21427 ac_cv_working_alloca_h=yes
21428else
21429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021430sed 's/^/| /' conftest.$ac_ext >&5
21431
John Criswell7a73b802003-06-30 21:59:07 +000021432ac_cv_working_alloca_h=no
21433fi
21434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21435fi
21436echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21437echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21438if test $ac_cv_working_alloca_h = yes; then
21439
21440cat >>confdefs.h <<\_ACEOF
21441#define HAVE_ALLOCA_H 1
21442_ACEOF
21443
21444fi
21445
21446echo "$as_me:$LINENO: checking for alloca" >&5
21447echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21448if test "${ac_cv_func_alloca_works+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451 cat >conftest.$ac_ext <<_ACEOF
21452#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021453/* confdefs.h. */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021458#ifdef __GNUC__
21459# define alloca __builtin_alloca
21460#else
21461# ifdef _MSC_VER
21462# include <malloc.h>
21463# define alloca _alloca
21464# else
21465# if HAVE_ALLOCA_H
21466# include <alloca.h>
21467# else
21468# ifdef _AIX
21469 #pragma alloca
21470# else
21471# ifndef alloca /* predefined by HP cc +Olibcalls */
21472char *alloca ();
21473# endif
21474# endif
21475# endif
21476# endif
21477#endif
21478
John Criswell7a73b802003-06-30 21:59:07 +000021479int
21480main ()
21481{
21482char *p = (char *) alloca (1);
21483 ;
21484 return 0;
21485}
21486_ACEOF
21487rm -f conftest.$ac_objext conftest$ac_exeext
21488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489 (eval $ac_link) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -s conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ac_cv_func_alloca_works=yes
21500else
21501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021502sed 's/^/| /' conftest.$ac_ext >&5
21503
John Criswell7a73b802003-06-30 21:59:07 +000021504ac_cv_func_alloca_works=no
21505fi
21506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21507fi
21508echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21509echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21510
21511if test $ac_cv_func_alloca_works = yes; then
21512
21513cat >>confdefs.h <<\_ACEOF
21514#define HAVE_ALLOCA 1
21515_ACEOF
21516
21517else
21518 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21519# that cause trouble. Some versions do not even contain alloca or
21520# contain a buggy version. If you still want to use their alloca,
21521# use ar to extract alloca.o from them instead of compiling alloca.c.
21522
21523ALLOCA=alloca.$ac_objext
21524
21525cat >>confdefs.h <<\_ACEOF
21526#define C_ALLOCA 1
21527_ACEOF
21528
21529
21530echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21531echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21532if test "${ac_cv_os_cray+set}" = set; then
21533 echo $ECHO_N "(cached) $ECHO_C" >&6
21534else
21535 cat >conftest.$ac_ext <<_ACEOF
21536#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021537/* confdefs.h. */
21538_ACEOF
21539cat confdefs.h >>conftest.$ac_ext
21540cat >>conftest.$ac_ext <<_ACEOF
21541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021542#if defined(CRAY) && ! defined(CRAY2)
21543webecray
21544#else
21545wenotbecray
21546#endif
21547
21548_ACEOF
21549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021550 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021551 ac_cv_os_cray=yes
21552else
21553 ac_cv_os_cray=no
21554fi
21555rm -f conftest*
21556
21557fi
21558echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21559echo "${ECHO_T}$ac_cv_os_cray" >&6
21560if test $ac_cv_os_cray = yes; then
21561 for ac_func in _getb67 GETB67 getb67; do
21562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21563echo "$as_me:$LINENO: checking for $ac_func" >&5
21564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21565if eval "test \"\${$as_ac_var+set}\" = set"; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567else
21568 cat >conftest.$ac_ext <<_ACEOF
21569#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021570/* confdefs.h. */
21571_ACEOF
21572cat confdefs.h >>conftest.$ac_ext
21573cat >>conftest.$ac_ext <<_ACEOF
21574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021575/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021576 which can conflict with char $ac_func (); below.
21577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21578 <limits.h> exists even on freestanding compilers. */
21579#ifdef __STDC__
21580# include <limits.h>
21581#else
21582# include <assert.h>
21583#endif
John Criswell7a73b802003-06-30 21:59:07 +000021584/* Override any gcc2 internal prototype to avoid an error. */
21585#ifdef __cplusplus
21586extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021587{
John Criswell7a73b802003-06-30 21:59:07 +000021588#endif
21589/* We use char because int might match the return type of a gcc2
21590 builtin and then its argument prototype would still apply. */
21591char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021592/* The GNU C library defines this for functions which it implements
21593 to always fail with ENOSYS. Some functions are actually named
21594 something starting with __ and the normal name is an alias. */
21595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21596choke me
21597#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021598char (*f) () = $ac_func;
21599#endif
21600#ifdef __cplusplus
21601}
John Criswell7a73b802003-06-30 21:59:07 +000021602#endif
21603
John Criswell0c38eaf2003-09-10 15:17:25 +000021604int
21605main ()
21606{
21607return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021608 ;
21609 return 0;
21610}
21611_ACEOF
21612rm -f conftest.$ac_objext conftest$ac_exeext
21613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21614 (eval $ac_link) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } &&
21618 { ac_try='test -s conftest$ac_exeext'
21619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620 (eval $ac_try) 2>&5
21621 ac_status=$?
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; }; then
21624 eval "$as_ac_var=yes"
21625else
21626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021627sed 's/^/| /' conftest.$ac_ext >&5
21628
John Criswell7a73b802003-06-30 21:59:07 +000021629eval "$as_ac_var=no"
21630fi
21631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21632fi
21633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21635if test `eval echo '${'$as_ac_var'}'` = yes; then
21636
21637cat >>confdefs.h <<_ACEOF
21638#define CRAY_STACKSEG_END $ac_func
21639_ACEOF
21640
21641 break
21642fi
21643
21644 done
21645fi
21646
21647echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21648echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21649if test "${ac_cv_c_stack_direction+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651else
21652 if test "$cross_compiling" = yes; then
21653 ac_cv_c_stack_direction=0
21654else
21655 cat >conftest.$ac_ext <<_ACEOF
21656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021662int
21663find_stack_direction ()
21664{
21665 static char *addr = 0;
21666 auto char dummy;
21667 if (addr == 0)
21668 {
21669 addr = &dummy;
21670 return find_stack_direction ();
21671 }
21672 else
21673 return (&dummy > addr) ? 1 : -1;
21674}
21675
21676int
21677main ()
21678{
21679 exit (find_stack_direction () < 0);
21680}
21681_ACEOF
21682rm -f conftest$ac_exeext
21683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21684 (eval $ac_link) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ac_cv_c_stack_direction=1
21694else
21695 echo "$as_me: program exited with status $ac_status" >&5
21696echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021697sed 's/^/| /' conftest.$ac_ext >&5
21698
John Criswell7a73b802003-06-30 21:59:07 +000021699( exit $ac_status )
21700ac_cv_c_stack_direction=-1
21701fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021702rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021703fi
21704fi
21705echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21706echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21707
21708cat >>confdefs.h <<_ACEOF
21709#define STACK_DIRECTION $ac_cv_c_stack_direction
21710_ACEOF
21711
21712
21713fi
21714
21715if test $ac_cv_c_compiler_gnu = yes; then
21716 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21717echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21718if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21720else
21721 ac_pattern="Autoconf.*'x'"
21722 cat >conftest.$ac_ext <<_ACEOF
21723#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021724/* confdefs.h. */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
21728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021729#include <sgtty.h>
21730Autoconf TIOCGETP
21731_ACEOF
21732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021733 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021734 ac_cv_prog_gcc_traditional=yes
21735else
21736 ac_cv_prog_gcc_traditional=no
21737fi
21738rm -f conftest*
21739
21740
21741 if test $ac_cv_prog_gcc_traditional = no; then
21742 cat >conftest.$ac_ext <<_ACEOF
21743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021744/* confdefs.h. */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021749#include <termio.h>
21750Autoconf TCGETA
21751_ACEOF
21752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021753 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021754 ac_cv_prog_gcc_traditional=yes
21755fi
21756rm -f conftest*
21757
21758 fi
21759fi
21760echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21761echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21762 if test $ac_cv_prog_gcc_traditional = yes; then
21763 CC="$CC -traditional"
21764 fi
21765fi
21766
21767echo "$as_me:$LINENO: checking for working memcmp" >&5
21768echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21769if test "${ac_cv_func_memcmp_working+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771else
21772 if test "$cross_compiling" = yes; then
21773 ac_cv_func_memcmp_working=no
21774else
21775 cat >conftest.$ac_ext <<_ACEOF
21776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021777/* confdefs.h. */
21778_ACEOF
21779cat confdefs.h >>conftest.$ac_ext
21780cat >>conftest.$ac_ext <<_ACEOF
21781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021782
John Criswell7a73b802003-06-30 21:59:07 +000021783int
21784main ()
21785{
21786
21787 /* Some versions of memcmp are not 8-bit clean. */
21788 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21789 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21790 exit (1);
21791
21792 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21793 or more and with at least one buffer not starting on a 4-byte boundary.
21794 William Lewis provided this test program. */
21795 {
21796 char foo[21];
21797 char bar[21];
21798 int i;
21799 for (i = 0; i < 4; i++)
21800 {
21801 char *a = foo + i;
21802 char *b = bar + i;
21803 strcpy (a, "--------01111111");
21804 strcpy (b, "--------10000000");
21805 if (memcmp (a, b, 16) >= 0)
21806 exit (1);
21807 }
21808 exit (0);
21809 }
21810
21811 ;
21812 return 0;
21813}
21814_ACEOF
21815rm -f conftest$ac_exeext
21816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21817 (eval $ac_link) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 ac_cv_func_memcmp_working=yes
21827else
21828 echo "$as_me: program exited with status $ac_status" >&5
21829echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021830sed 's/^/| /' conftest.$ac_ext >&5
21831
John Criswell7a73b802003-06-30 21:59:07 +000021832( exit $ac_status )
21833ac_cv_func_memcmp_working=no
21834fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021835rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021836fi
21837fi
21838echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21839echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21840test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21841
21842
21843
21844for ac_header in stdlib.h unistd.h
21845do
21846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847if eval "test \"\${$as_ac_Header+set}\" = set"; then
21848 echo "$as_me:$LINENO: checking for $ac_header" >&5
21849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21850if eval "test \"\${$as_ac_Header+set}\" = set"; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852fi
21853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21855else
21856 # Is the header compilable?
21857echo "$as_me:$LINENO: checking $ac_header usability" >&5
21858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21859cat >conftest.$ac_ext <<_ACEOF
21860#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021861/* confdefs.h. */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021866$ac_includes_default
21867#include <$ac_header>
21868_ACEOF
21869rm -f conftest.$ac_objext
21870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21871 (eval $ac_compile) 2>&5
21872 ac_status=$?
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } &&
21875 { ac_try='test -s conftest.$ac_objext'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21878 ac_status=$?
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_header_compiler=yes
21882else
21883 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021884sed 's/^/| /' conftest.$ac_ext >&5
21885
John Criswell7a73b802003-06-30 21:59:07 +000021886ac_header_compiler=no
21887fi
21888rm -f conftest.$ac_objext conftest.$ac_ext
21889echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21890echo "${ECHO_T}$ac_header_compiler" >&6
21891
21892# Is the header present?
21893echo "$as_me:$LINENO: checking $ac_header presence" >&5
21894echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21895cat >conftest.$ac_ext <<_ACEOF
21896#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021897/* confdefs.h. */
21898_ACEOF
21899cat confdefs.h >>conftest.$ac_ext
21900cat >>conftest.$ac_ext <<_ACEOF
21901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021902#include <$ac_header>
21903_ACEOF
21904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21906 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021907 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021908 rm -f conftest.er1
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } >/dev/null; then
21912 if test -s conftest.err; then
21913 ac_cpp_err=$ac_c_preproc_warn_flag
21914 else
21915 ac_cpp_err=
21916 fi
21917else
21918 ac_cpp_err=yes
21919fi
21920if test -z "$ac_cpp_err"; then
21921 ac_header_preproc=yes
21922else
21923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021924sed 's/^/| /' conftest.$ac_ext >&5
21925
John Criswell7a73b802003-06-30 21:59:07 +000021926 ac_header_preproc=no
21927fi
21928rm -f conftest.err conftest.$ac_ext
21929echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21930echo "${ECHO_T}$ac_header_preproc" >&6
21931
21932# So? What about this header?
21933case $ac_header_compiler:$ac_header_preproc in
21934 yes:no )
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21936echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21939 (
21940 cat <<\_ASBOX
21941## ------------------------------------ ##
21942## Report this to bug-autoconf@gnu.org. ##
21943## ------------------------------------ ##
21944_ASBOX
21945 ) |
21946 sed "s/^/$as_me: WARNING: /" >&2
21947 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021948 no:yes )
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21955 (
21956 cat <<\_ASBOX
21957## ------------------------------------ ##
21958## Report this to bug-autoconf@gnu.org. ##
21959## ------------------------------------ ##
21960_ASBOX
21961 ) |
21962 sed "s/^/$as_me: WARNING: /" >&2
21963 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021964esac
21965echo "$as_me:$LINENO: checking for $ac_header" >&5
21966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21967if eval "test \"\${$as_ac_Header+set}\" = set"; then
21968 echo $ECHO_N "(cached) $ECHO_C" >&6
21969else
21970 eval "$as_ac_Header=$ac_header_preproc"
21971fi
21972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21974
21975fi
21976if test `eval echo '${'$as_ac_Header'}'` = yes; then
21977 cat >>confdefs.h <<_ACEOF
21978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21979_ACEOF
21980
21981fi
21982
21983done
21984
21985
21986for ac_func in getpagesize
21987do
21988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21989echo "$as_me:$LINENO: checking for $ac_func" >&5
21990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21991if eval "test \"\${$as_ac_var+set}\" = set"; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21993else
21994 cat >conftest.$ac_ext <<_ACEOF
21995#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021996/* confdefs.h. */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022001/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022002 which can conflict with char $ac_func (); below.
22003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22004 <limits.h> exists even on freestanding compilers. */
22005#ifdef __STDC__
22006# include <limits.h>
22007#else
22008# include <assert.h>
22009#endif
John Criswell7a73b802003-06-30 21:59:07 +000022010/* Override any gcc2 internal prototype to avoid an error. */
22011#ifdef __cplusplus
22012extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022013{
John Criswell7a73b802003-06-30 21:59:07 +000022014#endif
22015/* We use char because int might match the return type of a gcc2
22016 builtin and then its argument prototype would still apply. */
22017char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022018/* The GNU C library defines this for functions which it implements
22019 to always fail with ENOSYS. Some functions are actually named
22020 something starting with __ and the normal name is an alias. */
22021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22022choke me
22023#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022024char (*f) () = $ac_func;
22025#endif
22026#ifdef __cplusplus
22027}
John Criswell7a73b802003-06-30 21:59:07 +000022028#endif
22029
John Criswell0c38eaf2003-09-10 15:17:25 +000022030int
22031main ()
22032{
22033return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022034 ;
22035 return 0;
22036}
22037_ACEOF
22038rm -f conftest.$ac_objext conftest$ac_exeext
22039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040 (eval $ac_link) 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } &&
22044 { ac_try='test -s conftest$ac_exeext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 eval "$as_ac_var=yes"
22051else
22052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022053sed 's/^/| /' conftest.$ac_ext >&5
22054
John Criswell7a73b802003-06-30 21:59:07 +000022055eval "$as_ac_var=no"
22056fi
22057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22058fi
22059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22061if test `eval echo '${'$as_ac_var'}'` = yes; then
22062 cat >>confdefs.h <<_ACEOF
22063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22064_ACEOF
22065
22066fi
22067done
22068
22069echo "$as_me:$LINENO: checking for working mmap" >&5
22070echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22071if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22073else
22074 if test "$cross_compiling" = yes; then
22075 ac_cv_func_mmap_fixed_mapped=no
22076else
22077 cat >conftest.$ac_ext <<_ACEOF
22078#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022079/* confdefs.h. */
22080_ACEOF
22081cat confdefs.h >>conftest.$ac_ext
22082cat >>conftest.$ac_ext <<_ACEOF
22083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022084$ac_includes_default
22085/* malloc might have been renamed as rpl_malloc. */
22086#undef malloc
22087
22088/* Thanks to Mike Haertel and Jim Avera for this test.
22089 Here is a matrix of mmap possibilities:
22090 mmap private not fixed
22091 mmap private fixed at somewhere currently unmapped
22092 mmap private fixed at somewhere already mapped
22093 mmap shared not fixed
22094 mmap shared fixed at somewhere currently unmapped
22095 mmap shared fixed at somewhere already mapped
22096 For private mappings, we should verify that changes cannot be read()
22097 back from the file, nor mmap's back from the file at a different
22098 address. (There have been systems where private was not correctly
22099 implemented like the infamous i386 svr4.0, and systems where the
22100 VM page cache was not coherent with the file system buffer cache
22101 like early versions of FreeBSD and possibly contemporary NetBSD.)
22102 For shared mappings, we should conversely verify that changes get
22103 propagated back to all the places they're supposed to be.
22104
22105 Grep wants private fixed already mapped.
22106 The main things grep needs to know about mmap are:
22107 * does it exist and is it safe to write into the mmap'd area
22108 * how to use it (BSD variants) */
22109
22110#include <fcntl.h>
22111#include <sys/mman.h>
22112
22113#if !STDC_HEADERS && !HAVE_STDLIB_H
22114char *malloc ();
22115#endif
22116
22117/* This mess was copied from the GNU getpagesize.h. */
22118#if !HAVE_GETPAGESIZE
22119/* Assume that all systems that can run configure have sys/param.h. */
22120# if !HAVE_SYS_PARAM_H
22121# define HAVE_SYS_PARAM_H 1
22122# endif
22123
22124# ifdef _SC_PAGESIZE
22125# define getpagesize() sysconf(_SC_PAGESIZE)
22126# else /* no _SC_PAGESIZE */
22127# if HAVE_SYS_PARAM_H
22128# include <sys/param.h>
22129# ifdef EXEC_PAGESIZE
22130# define getpagesize() EXEC_PAGESIZE
22131# else /* no EXEC_PAGESIZE */
22132# ifdef NBPG
22133# define getpagesize() NBPG * CLSIZE
22134# ifndef CLSIZE
22135# define CLSIZE 1
22136# endif /* no CLSIZE */
22137# else /* no NBPG */
22138# ifdef NBPC
22139# define getpagesize() NBPC
22140# else /* no NBPC */
22141# ifdef PAGESIZE
22142# define getpagesize() PAGESIZE
22143# endif /* PAGESIZE */
22144# endif /* no NBPC */
22145# endif /* no NBPG */
22146# endif /* no EXEC_PAGESIZE */
22147# else /* no HAVE_SYS_PARAM_H */
22148# define getpagesize() 8192 /* punt totally */
22149# endif /* no HAVE_SYS_PARAM_H */
22150# endif /* no _SC_PAGESIZE */
22151
22152#endif /* no HAVE_GETPAGESIZE */
22153
22154int
22155main ()
22156{
22157 char *data, *data2, *data3;
22158 int i, pagesize;
22159 int fd;
22160
22161 pagesize = getpagesize ();
22162
22163 /* First, make a file with some known garbage in it. */
22164 data = (char *) malloc (pagesize);
22165 if (!data)
22166 exit (1);
22167 for (i = 0; i < pagesize; ++i)
22168 *(data + i) = rand ();
22169 umask (0);
22170 fd = creat ("conftest.mmap", 0600);
22171 if (fd < 0)
22172 exit (1);
22173 if (write (fd, data, pagesize) != pagesize)
22174 exit (1);
22175 close (fd);
22176
22177 /* Next, try to mmap the file at a fixed address which already has
22178 something else allocated at it. If we can, also make sure that
22179 we see the same garbage. */
22180 fd = open ("conftest.mmap", O_RDWR);
22181 if (fd < 0)
22182 exit (1);
22183 data2 = (char *) malloc (2 * pagesize);
22184 if (!data2)
22185 exit (1);
22186 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22189 exit (1);
22190 for (i = 0; i < pagesize; ++i)
22191 if (*(data + i) != *(data2 + i))
22192 exit (1);
22193
22194 /* Finally, make sure that changes to the mapped area do not
22195 percolate back to the file as seen by read(). (This is a bug on
22196 some variants of i386 svr4.0.) */
22197 for (i = 0; i < pagesize; ++i)
22198 *(data2 + i) = *(data2 + i) + 1;
22199 data3 = (char *) malloc (pagesize);
22200 if (!data3)
22201 exit (1);
22202 if (read (fd, data3, pagesize) != pagesize)
22203 exit (1);
22204 for (i = 0; i < pagesize; ++i)
22205 if (*(data + i) != *(data3 + i))
22206 exit (1);
22207 close (fd);
22208 exit (0);
22209}
22210_ACEOF
22211rm -f conftest$ac_exeext
22212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22213 (eval $ac_link) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_func_mmap_fixed_mapped=yes
22223else
22224 echo "$as_me: program exited with status $ac_status" >&5
22225echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022226sed 's/^/| /' conftest.$ac_ext >&5
22227
John Criswell7a73b802003-06-30 21:59:07 +000022228( exit $ac_status )
22229ac_cv_func_mmap_fixed_mapped=no
22230fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022231rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022232fi
22233fi
22234echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22235echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22236if test $ac_cv_func_mmap_fixed_mapped = yes; then
22237
22238cat >>confdefs.h <<\_ACEOF
22239#define HAVE_MMAP 1
22240_ACEOF
22241
22242fi
22243rm -f conftest.mmap
22244
22245echo "$as_me:$LINENO: checking for mmap of files" >&5
22246echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22247if test "${ac_cv_func_mmap_file+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249else
22250
22251
22252 ac_ext=c
22253ac_cpp='$CPP $CPPFLAGS'
22254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256ac_compiler_gnu=$ac_cv_c_compiler_gnu
22257
22258 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022259 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22260See \`config.log' for more details." >&5
22261echo "$as_me: error: cannot run test program while cross compiling
22262See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022263 { (exit 1); exit 1; }; }
22264else
22265 cat >conftest.$ac_ext <<_ACEOF
22266#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022267/* confdefs.h. */
22268_ACEOF
22269cat confdefs.h >>conftest.$ac_ext
22270cat >>conftest.$ac_ext <<_ACEOF
22271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022272
22273#ifdef HAVE_SYS_MMAN_H
22274#include <sys/mman.h>
22275#endif
22276
22277#ifdef HAVE_SYS_TYPES_H
22278#include <sys/types.h>
22279#endif
22280
22281#ifdef HAVE_FCNTL_H
22282#include <fcntl.h>
22283#endif
22284
22285 int fd;
22286 int main () {
22287 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22288_ACEOF
22289rm -f conftest$ac_exeext
22290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22291 (eval $ac_link) 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 ac_cv_func_mmap_file=yes
22301else
22302 echo "$as_me: program exited with status $ac_status" >&5
22303echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022304sed 's/^/| /' conftest.$ac_ext >&5
22305
John Criswell7a73b802003-06-30 21:59:07 +000022306( exit $ac_status )
22307ac_cv_func_mmap_file=no
22308fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022309rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022310fi
22311 ac_ext=c
22312ac_cpp='$CPP $CPPFLAGS'
22313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22315ac_compiler_gnu=$ac_cv_c_compiler_gnu
22316
22317
22318fi
22319echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22320echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22321if test "$ac_cv_func_mmap_file" = yes; then
22322 cat >>confdefs.h <<\_ACEOF
22323#define HAVE_MMAP_FILE 1
22324_ACEOF
22325
22326 MMAP_FILE=yes
22327
22328fi
22329
22330if test ${ac_cv_func_mmap_file} = "no"
22331then
22332 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22333echo "$as_me: error: mmap() of files required but not found" >&2;}
22334 { (exit 1); exit 1; }; }
22335fi
22336echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22337echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22338if test "${ac_cv_header_mmap_anon+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22340else
22341
22342
22343 ac_ext=c
22344ac_cpp='$CPP $CPPFLAGS'
22345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22347ac_compiler_gnu=$ac_cv_c_compiler_gnu
22348
22349 cat >conftest.$ac_ext <<_ACEOF
22350#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022351/* confdefs.h. */
22352_ACEOF
22353cat confdefs.h >>conftest.$ac_ext
22354cat >>conftest.$ac_ext <<_ACEOF
22355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022356#include <sys/mman.h>
22357 #include <unistd.h>
22358 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022359int
22360main ()
22361{
22362mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22363 ;
22364 return 0;
22365}
22366_ACEOF
22367rm -f conftest.$ac_objext
22368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369 (eval $ac_compile) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try='test -s conftest.$ac_objext'
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22376 ac_status=$?
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; }; then
22379 ac_cv_header_mmap_anon=yes
22380else
22381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022382sed 's/^/| /' conftest.$ac_ext >&5
22383
John Criswell7a73b802003-06-30 21:59:07 +000022384ac_cv_header_mmap_anon=no
22385fi
22386rm -f conftest.$ac_objext conftest.$ac_ext
22387 ac_ext=c
22388ac_cpp='$CPP $CPPFLAGS'
22389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22391ac_compiler_gnu=$ac_cv_c_compiler_gnu
22392
22393
22394fi
22395echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22396echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22397if test "$ac_cv_header_mmap_anon" = yes; then
22398 cat >>confdefs.h <<\_ACEOF
22399#define HAVE_MMAP_ANONYMOUS 1
22400_ACEOF
22401
22402fi
22403
22404echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22405echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22406if test "${ac_cv_type_signal+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408else
22409 cat >conftest.$ac_ext <<_ACEOF
22410#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022411/* confdefs.h. */
22412_ACEOF
22413cat confdefs.h >>conftest.$ac_ext
22414cat >>conftest.$ac_ext <<_ACEOF
22415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022416#include <sys/types.h>
22417#include <signal.h>
22418#ifdef signal
22419# undef signal
22420#endif
22421#ifdef __cplusplus
22422extern "C" void (*signal (int, void (*)(int)))(int);
22423#else
22424void (*signal ()) ();
22425#endif
22426
John Criswell7a73b802003-06-30 21:59:07 +000022427int
22428main ()
22429{
22430int i;
22431 ;
22432 return 0;
22433}
22434_ACEOF
22435rm -f conftest.$ac_objext
22436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22437 (eval $ac_compile) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -s conftest.$ac_objext'
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }; then
22447 ac_cv_type_signal=void
22448else
22449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022450sed 's/^/| /' conftest.$ac_ext >&5
22451
John Criswell7a73b802003-06-30 21:59:07 +000022452ac_cv_type_signal=int
22453fi
22454rm -f conftest.$ac_objext conftest.$ac_ext
22455fi
22456echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22457echo "${ECHO_T}$ac_cv_type_signal" >&6
22458
22459cat >>confdefs.h <<_ACEOF
22460#define RETSIGTYPE $ac_cv_type_signal
22461_ACEOF
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22474do
22475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22476echo "$as_me:$LINENO: checking for $ac_func" >&5
22477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22478if eval "test \"\${$as_ac_var+set}\" = set"; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22480else
22481 cat >conftest.$ac_ext <<_ACEOF
22482#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022483/* confdefs.h. */
22484_ACEOF
22485cat confdefs.h >>conftest.$ac_ext
22486cat >>conftest.$ac_ext <<_ACEOF
22487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022488/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022489 which can conflict with char $ac_func (); below.
22490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22491 <limits.h> exists even on freestanding compilers. */
22492#ifdef __STDC__
22493# include <limits.h>
22494#else
22495# include <assert.h>
22496#endif
John Criswell7a73b802003-06-30 21:59:07 +000022497/* Override any gcc2 internal prototype to avoid an error. */
22498#ifdef __cplusplus
22499extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022500{
John Criswell7a73b802003-06-30 21:59:07 +000022501#endif
22502/* We use char because int might match the return type of a gcc2
22503 builtin and then its argument prototype would still apply. */
22504char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022505/* The GNU C library defines this for functions which it implements
22506 to always fail with ENOSYS. Some functions are actually named
22507 something starting with __ and the normal name is an alias. */
22508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22509choke me
22510#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022511char (*f) () = $ac_func;
22512#endif
22513#ifdef __cplusplus
22514}
John Criswell7a73b802003-06-30 21:59:07 +000022515#endif
22516
John Criswell0c38eaf2003-09-10 15:17:25 +000022517int
22518main ()
22519{
22520return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022521 ;
22522 return 0;
22523}
22524_ACEOF
22525rm -f conftest.$ac_objext conftest$ac_exeext
22526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22527 (eval $ac_link) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
22531 { ac_try='test -s conftest$ac_exeext'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22537 eval "$as_ac_var=yes"
22538else
22539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022540sed 's/^/| /' conftest.$ac_ext >&5
22541
John Criswell7a73b802003-06-30 21:59:07 +000022542eval "$as_ac_var=no"
22543fi
22544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22545fi
22546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22548if test `eval echo '${'$as_ac_var'}'` = yes; then
22549 cat >>confdefs.h <<_ACEOF
22550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22551_ACEOF
22552
22553fi
22554done
22555
22556
22557
22558echo "$as_me:$LINENO: checking for mmap" >&5
22559echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22560if test "${ac_cv_func_mmap+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22562else
22563 cat >conftest.$ac_ext <<_ACEOF
22564#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022565/* confdefs.h. */
22566_ACEOF
22567cat confdefs.h >>conftest.$ac_ext
22568cat >>conftest.$ac_ext <<_ACEOF
22569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022570/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022571 which can conflict with char mmap (); below.
22572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22573 <limits.h> exists even on freestanding compilers. */
22574#ifdef __STDC__
22575# include <limits.h>
22576#else
22577# include <assert.h>
22578#endif
John Criswell7a73b802003-06-30 21:59:07 +000022579/* Override any gcc2 internal prototype to avoid an error. */
22580#ifdef __cplusplus
22581extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022582{
John Criswell7a73b802003-06-30 21:59:07 +000022583#endif
22584/* We use char because int might match the return type of a gcc2
22585 builtin and then its argument prototype would still apply. */
22586char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022587/* The GNU C library defines this for functions which it implements
22588 to always fail with ENOSYS. Some functions are actually named
22589 something starting with __ and the normal name is an alias. */
22590#if defined (__stub_mmap) || defined (__stub___mmap)
22591choke me
22592#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022593char (*f) () = mmap;
22594#endif
22595#ifdef __cplusplus
22596}
John Criswell7a73b802003-06-30 21:59:07 +000022597#endif
22598
John Criswell0c38eaf2003-09-10 15:17:25 +000022599int
22600main ()
22601{
22602return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022603 ;
22604 return 0;
22605}
22606_ACEOF
22607rm -f conftest.$ac_objext conftest$ac_exeext
22608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22609 (eval $ac_link) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } &&
22613 { ac_try='test -s conftest$ac_exeext'
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }; then
22619 ac_cv_func_mmap=yes
22620else
22621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022622sed 's/^/| /' conftest.$ac_ext >&5
22623
John Criswell7a73b802003-06-30 21:59:07 +000022624ac_cv_func_mmap=no
22625fi
22626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22627fi
22628echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22629echo "${ECHO_T}$ac_cv_func_mmap" >&6
22630if test $ac_cv_func_mmap = yes; then
22631 :
22632else
22633 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22634echo "$as_me: error: Function mmap() required but not found" >&2;}
22635 { (exit 1); exit 1; }; }
22636fi
22637
22638echo "$as_me:$LINENO: checking for mprotect" >&5
22639echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22640if test "${ac_cv_func_mprotect+set}" = set; then
22641 echo $ECHO_N "(cached) $ECHO_C" >&6
22642else
22643 cat >conftest.$ac_ext <<_ACEOF
22644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022645/* confdefs.h. */
22646_ACEOF
22647cat confdefs.h >>conftest.$ac_ext
22648cat >>conftest.$ac_ext <<_ACEOF
22649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022650/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022651 which can conflict with char mprotect (); below.
22652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22653 <limits.h> exists even on freestanding compilers. */
22654#ifdef __STDC__
22655# include <limits.h>
22656#else
22657# include <assert.h>
22658#endif
John Criswell7a73b802003-06-30 21:59:07 +000022659/* Override any gcc2 internal prototype to avoid an error. */
22660#ifdef __cplusplus
22661extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022662{
John Criswell7a73b802003-06-30 21:59:07 +000022663#endif
22664/* We use char because int might match the return type of a gcc2
22665 builtin and then its argument prototype would still apply. */
22666char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022667/* The GNU C library defines this for functions which it implements
22668 to always fail with ENOSYS. Some functions are actually named
22669 something starting with __ and the normal name is an alias. */
22670#if defined (__stub_mprotect) || defined (__stub___mprotect)
22671choke me
22672#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022673char (*f) () = mprotect;
22674#endif
22675#ifdef __cplusplus
22676}
John Criswell7a73b802003-06-30 21:59:07 +000022677#endif
22678
John Criswell0c38eaf2003-09-10 15:17:25 +000022679int
22680main ()
22681{
22682return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022683 ;
22684 return 0;
22685}
22686_ACEOF
22687rm -f conftest.$ac_objext conftest$ac_exeext
22688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22689 (eval $ac_link) 2>&5
22690 ac_status=$?
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); } &&
22693 { ac_try='test -s conftest$ac_exeext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 ac_cv_func_mprotect=yes
22700else
22701 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022702sed 's/^/| /' conftest.$ac_ext >&5
22703
John Criswell7a73b802003-06-30 21:59:07 +000022704ac_cv_func_mprotect=no
22705fi
22706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22707fi
22708echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22709echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22710if test $ac_cv_func_mprotect = yes; then
22711 :
22712else
22713 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22714echo "$as_me: error: Function mprotect() required but not found" >&2;}
22715 { (exit 1); exit 1; }; }
22716fi
22717
22718
John Criswellb13092b2003-07-22 21:00:24 +000022719
John Criswell7a73b802003-06-30 21:59:07 +000022720# Check whether --enable-purify or --disable-purify was given.
22721if test "${enable_purify+set}" = set; then
22722 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022723
22724else
John Criswellb13092b2003-07-22 21:00:24 +000022725 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022726fi;
John Criswellb13092b2003-07-22 21:00:24 +000022727if test ${enableval} = "no"
22728then
22729 ENABLE_PURIFY=
22730
22731else
22732 ENABLE_PURIFY=ENABLE_PURIFY=1
22733
22734fi
22735
John Criswell7a73b802003-06-30 21:59:07 +000022736# Check whether --enable-optimized or --disable-optimized was given.
22737if test "${enable_optimized+set}" = set; then
22738 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022739
22740else
John Criswellb13092b2003-07-22 21:00:24 +000022741 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022742fi;
John Criswellb13092b2003-07-22 21:00:24 +000022743if test ${enableval} = "no"
22744then
22745 ENABLE_OPTIMIZED=
22746
22747else
22748 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22749
22750fi
22751
John Criswell7a73b802003-06-30 21:59:07 +000022752# Check whether --enable-spec or --disable-spec was given.
22753if test "${enable_spec+set}" = set; then
22754 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022755
22756else
John Criswellb13092b2003-07-22 21:00:24 +000022757 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022758fi;
John Criswellb13092b2003-07-22 21:00:24 +000022759if test ${enableval} = "no"
22760then
22761 USE_SPEC=
22762
22763else
22764 USE_SPEC=USE_SPEC=1
22765
22766fi
22767
John Criswell7a73b802003-06-30 21:59:07 +000022768# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22769if test "${enable_precompiled_bytecode+set}" = set; then
22770 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022771
22772else
John Criswellb13092b2003-07-22 21:00:24 +000022773 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022774fi;
John Criswellb13092b2003-07-22 21:00:24 +000022775if test ${enableval} = "no"
22776then
22777 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022778
John Criswellb13092b2003-07-22 21:00:24 +000022779else
22780 UPB=USE_PRECOMPILED_BYTECODE=1
22781
22782fi
John Criswellf02dbf02003-07-22 20:07:49 +000022783
22784
22785# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22786if test "${enable_llc_diffs+set}" = set; then
22787 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022788
22789else
John Criswellb13092b2003-07-22 21:00:24 +000022790 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022791fi;
John Criswellb13092b2003-07-22 21:00:24 +000022792if test ${enableval} = "no"
22793then
22794 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022795
John Criswellb13092b2003-07-22 21:00:24 +000022796else
22797 DISABLE_LLC_DIFFS=
22798
22799fi
22800
22801# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022802if test "${enable_jit+set}" = set; then
22803 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022804
22805else
John Criswellc78022e2003-07-29 19:11:58 +000022806 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022807fi;
John Criswellb13092b2003-07-22 21:00:24 +000022808
22809if test ${enableval} = "no"
22810then
22811 JIT=
22812
22813else
John Criswellc78022e2003-07-29 19:11:58 +000022814 case $target in
22815 *i*86*)
22816 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022817
John Criswellc78022e2003-07-29 19:11:58 +000022818 ;;
22819 *sparc*)
22820 JIT=TARGET_HAS_JIT=1
22821
22822 ;;
22823 *)
22824 JIT=
22825
22826 ;;
22827 esac
John Criswellb13092b2003-07-22 21:00:24 +000022828fi
John Criswell7a73b802003-06-30 21:59:07 +000022829
22830
John Criswellc78022e2003-07-29 19:11:58 +000022831
John Criswell7a73b802003-06-30 21:59:07 +000022832# Check whether --with-spec or --without-spec was given.
22833if test "${with_spec+set}" = set; then
22834 withval="$with_spec"
22835 SPEC_ROOT=$withval
22836
22837else
22838 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22839
22840fi;
22841
John Criswellc78022e2003-07-29 19:11:58 +000022842
John Criswell7a73b802003-06-30 21:59:07 +000022843# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22844if test "${with_llvmgccdir+set}" = set; then
22845 withval="$with_llvmgccdir"
22846 LLVMGCCDIR=$withval
22847
22848fi;
22849
John Criswellc78022e2003-07-29 19:11:58 +000022850
John Criswell7a73b802003-06-30 21:59:07 +000022851# Check whether --with-bcrepos or --without-bcrepos was given.
22852if test "${with_bcrepos+set}" = set; then
22853 withval="$with_bcrepos"
22854 BCR=$withval
22855
22856else
22857 BCR=/home/vadve/lattner/LLVMPrograms
22858
22859fi;
22860
John Criswellc78022e2003-07-29 19:11:58 +000022861
John Criswell7a73b802003-06-30 21:59:07 +000022862# Check whether --with-papi or --without-papi was given.
22863if test "${with_papi+set}" = set; then
22864 withval="$with_papi"
22865 PAPIDIR=$withval
22866
22867else
John Criswellde00db22003-08-25 16:49:54 +000022868 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022869
22870fi;
22871
John Criswell7a73b802003-06-30 21:59:07 +000022872
22873# Check whether --with-purify or --without-purify was given.
22874if test "${with_purify+set}" = set; then
22875 withval="$with_purify"
22876 PURIFY=$withval
22877
22878fi;
22879
John Criswellde00db22003-08-25 16:49:54 +000022880
John Criswell0c38eaf2003-09-10 15:17:25 +000022881 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022882cat >confcache <<\_ACEOF
22883# This file is a shell script that caches the results of configure
22884# tests run on this system so they can be shared between configure
22885# scripts and configure runs, see configure's option --config-cache.
22886# It is not useful on other systems. If it contains results you don't
22887# want to keep, you may remove or edit it.
22888#
22889# config.status only pays attention to the cache file if you give it
22890# the --recheck option to rerun configure.
22891#
John Criswell0c38eaf2003-09-10 15:17:25 +000022892# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022893# loading this file, other *unset* `ac_cv_foo' will be assigned the
22894# following values.
22895
22896_ACEOF
22897
22898# The following way of writing the cache mishandles newlines in values,
22899# but we know of no workaround that is simple, portable, and efficient.
22900# So, don't put newlines in cache variables' values.
22901# Ultrix sh set writes to stderr and can't be redirected directly,
22902# and sets the high bit in the cache file unless we assign to the vars.
22903{
22904 (set) 2>&1 |
22905 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22906 *ac_space=\ *)
22907 # `set' does not quote correctly, so add quotes (double-quote
22908 # substitution turns \\\\ into \\, and sed turns \\ into \).
22909 sed -n \
22910 "s/'/'\\\\''/g;
22911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22912 ;;
22913 *)
22914 # `set' quotes correctly as required by POSIX, so do not add quotes.
22915 sed -n \
22916 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22917 ;;
22918 esac;
22919} |
22920 sed '
22921 t clear
22922 : clear
22923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22924 t end
22925 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22926 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022927if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022928 if test -w $cache_file; then
22929 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22930 cat confcache >$cache_file
22931 else
22932 echo "not updating unwritable cache $cache_file"
22933 fi
22934fi
22935rm -f confcache
22936
22937test "x$prefix" = xNONE && prefix=$ac_default_prefix
22938# Let make expand exec_prefix.
22939test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22940
22941# VPATH may cause trouble with some makes, so we remove $(srcdir),
22942# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22943# trailing colons and then remove the whole line if VPATH becomes empty
22944# (actually we leave an empty line to preserve line numbers).
22945if test "x$srcdir" = x.; then
22946 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22947s/:*\$(srcdir):*/:/;
22948s/:*\${srcdir}:*/:/;
22949s/:*@srcdir@:*/:/;
22950s/^\([^=]*=[ ]*\):*/\1/;
22951s/:*$//;
22952s/^[^=]*=[ ]*$//;
22953}'
22954fi
22955
22956DEFS=-DHAVE_CONFIG_H
22957
John Criswell0c38eaf2003-09-10 15:17:25 +000022958ac_libobjs=
22959ac_ltlibobjs=
22960for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22961 # 1. Remove the extension, and $U if already installed.
22962 ac_i=`echo "$ac_i" |
22963 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22964 # 2. Add them.
22965 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22966 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22967done
22968LIBOBJS=$ac_libobjs
22969
22970LTLIBOBJS=$ac_ltlibobjs
22971
22972
John Criswell7a73b802003-06-30 21:59:07 +000022973
22974: ${CONFIG_STATUS=./config.status}
22975ac_clean_files_save=$ac_clean_files
22976ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22977{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22978echo "$as_me: creating $CONFIG_STATUS" >&6;}
22979cat >$CONFIG_STATUS <<_ACEOF
22980#! $SHELL
22981# Generated by $as_me.
22982# Run this file to recreate the current configuration.
22983# Compiler output produced by configure, useful for debugging
22984# configure, is in config.log if it exists.
22985
22986debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022987ac_cs_recheck=false
22988ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022989SHELL=\${CONFIG_SHELL-$SHELL}
22990_ACEOF
22991
22992cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022993## --------------------- ##
22994## M4sh Initialization. ##
22995## --------------------- ##
22996
22997# Be Bourne compatible
22998if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22999 emulate sh
23000 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023001 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23002 # is contrary to our usage. Disable this feature.
23003 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023004elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23005 set -o posix
23006fi
23007
John Criswell7a73b802003-06-30 21:59:07 +000023008# Support unset when possible.
23009if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23010 as_unset=unset
23011else
23012 as_unset=false
23013fi
23014
John Criswell0c38eaf2003-09-10 15:17:25 +000023015
23016# Work around bugs in pre-3.0 UWIN ksh.
23017$as_unset ENV MAIL MAILPATH
23018PS1='$ '
23019PS2='> '
23020PS4='+ '
23021
23022# NLS nuisances.
23023for as_var in \
23024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23026 LC_TELEPHONE LC_TIME
23027do
23028 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23029 eval $as_var=C; export $as_var
23030 else
23031 $as_unset $as_var
23032 fi
23033done
23034
23035# Required to use basename.
23036if expr a : '\(a\)' >/dev/null 2>&1; then
23037 as_expr=expr
23038else
23039 as_expr=false
23040fi
23041
23042if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23043 as_basename=basename
23044else
23045 as_basename=false
23046fi
John Criswell7a73b802003-06-30 21:59:07 +000023047
23048
23049# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023050as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023051$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23052 X"$0" : 'X\(//\)$' \| \
23053 X"$0" : 'X\(/\)$' \| \
23054 . : '\(.\)' 2>/dev/null ||
23055echo X/"$0" |
23056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23057 /^X\/\(\/\/\)$/{ s//\1/; q; }
23058 /^X\/\(\/\).*/{ s//\1/; q; }
23059 s/.*/./; q'`
23060
John Criswell0c38eaf2003-09-10 15:17:25 +000023061
John Criswell7a73b802003-06-30 21:59:07 +000023062# PATH needs CR, and LINENO needs CR and PATH.
23063# Avoid depending upon Character Ranges.
23064as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23065as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23066as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23067as_cr_digits='0123456789'
23068as_cr_alnum=$as_cr_Letters$as_cr_digits
23069
23070# The user is always right.
23071if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023072 echo "#! /bin/sh" >conf$$.sh
23073 echo "exit 0" >>conf$$.sh
23074 chmod +x conf$$.sh
23075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023076 PATH_SEPARATOR=';'
23077 else
23078 PATH_SEPARATOR=:
23079 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023080 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023081fi
23082
23083
23084 as_lineno_1=$LINENO
23085 as_lineno_2=$LINENO
23086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23087 test "x$as_lineno_1" != "x$as_lineno_2" &&
23088 test "x$as_lineno_3" = "x$as_lineno_2" || {
23089 # Find who we are. Look in the path if we contain no path at all
23090 # relative or not.
23091 case $0 in
23092 *[\\/]* ) as_myself=$0 ;;
23093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23094for as_dir in $PATH
23095do
23096 IFS=$as_save_IFS
23097 test -z "$as_dir" && as_dir=.
23098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23099done
23100
23101 ;;
23102 esac
23103 # We did not find ourselves, most probably we were run as `sh COMMAND'
23104 # in which case we are not to be found in the path.
23105 if test "x$as_myself" = x; then
23106 as_myself=$0
23107 fi
23108 if test ! -f "$as_myself"; then
23109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23110echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23111 { (exit 1); exit 1; }; }
23112 fi
23113 case $CONFIG_SHELL in
23114 '')
23115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23116for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23117do
23118 IFS=$as_save_IFS
23119 test -z "$as_dir" && as_dir=.
23120 for as_base in sh bash ksh sh5; do
23121 case $as_dir in
23122 /*)
23123 if ("$as_dir/$as_base" -c '
23124 as_lineno_1=$LINENO
23125 as_lineno_2=$LINENO
23126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23127 test "x$as_lineno_1" != "x$as_lineno_2" &&
23128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023131 CONFIG_SHELL=$as_dir/$as_base
23132 export CONFIG_SHELL
23133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23134 fi;;
23135 esac
23136 done
23137done
23138;;
23139 esac
23140
23141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23142 # uniformly replaced by the line number. The first 'sed' inserts a
23143 # line-number line before each line; the second 'sed' does the real
23144 # work. The second script uses 'N' to pair each line-number line
23145 # with the numbered line, and appends trailing '-' during
23146 # substitution so that $LINENO is not a special case at line end.
23147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23149 sed '=' <$as_myself |
23150 sed '
23151 N
23152 s,$,-,
23153 : loop
23154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23155 t loop
23156 s,-$,,
23157 s,^['$as_cr_digits']*\n,,
23158 ' >$as_me.lineno &&
23159 chmod +x $as_me.lineno ||
23160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23161echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23162 { (exit 1); exit 1; }; }
23163
23164 # Don't try to exec as it changes $[0], causing all sort of problems
23165 # (the dirname of $[0] is not the place where we might find the
23166 # original and so on. Autoconf is especially sensible to this).
23167 . ./$as_me.lineno
23168 # Exit status is that of the last command.
23169 exit
23170}
23171
23172
23173case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23174 *c*,-n*) ECHO_N= ECHO_C='
23175' ECHO_T=' ' ;;
23176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23178esac
23179
23180if expr a : '\(a\)' >/dev/null 2>&1; then
23181 as_expr=expr
23182else
23183 as_expr=false
23184fi
23185
23186rm -f conf$$ conf$$.exe conf$$.file
23187echo >conf$$.file
23188if ln -s conf$$.file conf$$ 2>/dev/null; then
23189 # We could just check for DJGPP; but this test a) works b) is more generic
23190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23191 if test -f conf$$.exe; then
23192 # Don't use ln at all; we don't have any links
23193 as_ln_s='cp -p'
23194 else
23195 as_ln_s='ln -s'
23196 fi
23197elif ln conf$$.file conf$$ 2>/dev/null; then
23198 as_ln_s=ln
23199else
23200 as_ln_s='cp -p'
23201fi
23202rm -f conf$$ conf$$.exe conf$$.file
23203
John Criswell0c38eaf2003-09-10 15:17:25 +000023204if mkdir -p . 2>/dev/null; then
23205 as_mkdir_p=:
23206else
23207 as_mkdir_p=false
23208fi
23209
John Criswell7a73b802003-06-30 21:59:07 +000023210as_executable_p="test -f"
23211
23212# Sed expression to map a string onto a valid CPP name.
23213as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23214
23215# Sed expression to map a string onto a valid variable name.
23216as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23217
23218
23219# IFS
23220# We need space, tab and new line, in precisely that order.
23221as_nl='
23222'
23223IFS=" $as_nl"
23224
23225# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023226$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023227
23228exec 6>&1
23229
23230# Open the log real soon, to keep \$[0] and so on meaningful, and to
23231# report actual input values of CONFIG_FILES etc. instead of their
23232# values after options handling. Logging --version etc. is OK.
23233exec 5>>config.log
23234{
23235 echo
23236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23237## Running $as_me. ##
23238_ASBOX
23239} >&5
23240cat >&5 <<_CSEOF
23241
23242This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023243generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023244
23245 CONFIG_FILES = $CONFIG_FILES
23246 CONFIG_HEADERS = $CONFIG_HEADERS
23247 CONFIG_LINKS = $CONFIG_LINKS
23248 CONFIG_COMMANDS = $CONFIG_COMMANDS
23249 $ $0 $@
23250
23251_CSEOF
23252echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23253echo >&5
23254_ACEOF
23255
23256# Files that config.status was made for.
23257if test -n "$ac_config_files"; then
23258 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23259fi
23260
23261if test -n "$ac_config_headers"; then
23262 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23263fi
23264
23265if test -n "$ac_config_links"; then
23266 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23267fi
23268
23269if test -n "$ac_config_commands"; then
23270 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23271fi
23272
23273cat >>$CONFIG_STATUS <<\_ACEOF
23274
23275ac_cs_usage="\
23276\`$as_me' instantiates files from templates according to the
23277current configuration.
23278
23279Usage: $0 [OPTIONS] [FILE]...
23280
23281 -h, --help print this help, then exit
23282 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023283 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023284 -d, --debug don't remove temporary files
23285 --recheck update $as_me by reconfiguring in the same conditions
23286 --file=FILE[:TEMPLATE]
23287 instantiate the configuration file FILE
23288 --header=FILE[:TEMPLATE]
23289 instantiate the configuration header FILE
23290
23291Configuration files:
23292$config_files
23293
23294Configuration headers:
23295$config_headers
23296
John Criswellc764fbc2003-09-06 15:17:13 +000023297Configuration commands:
23298$config_commands
23299
John Criswell7a73b802003-06-30 21:59:07 +000023300Report bugs to <bug-autoconf@gnu.org>."
23301_ACEOF
23302
23303cat >>$CONFIG_STATUS <<_ACEOF
23304ac_cs_version="\\
23305[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023306configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23308
23309Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23310Free Software Foundation, Inc.
23311This config.status script is free software; the Free Software Foundation
23312gives unlimited permission to copy, distribute and modify it."
23313srcdir=$srcdir
23314INSTALL="$INSTALL"
23315_ACEOF
23316
23317cat >>$CONFIG_STATUS <<\_ACEOF
23318# If no file are specified by the user, then we need to provide default
23319# value. By we need to know if files were specified by the user.
23320ac_need_defaults=:
23321while test $# != 0
23322do
23323 case $1 in
23324 --*=*)
23325 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023327 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023328 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023329 -*)
23330 ac_option=$1
23331 ac_optarg=$2
23332 ac_shift=shift
23333 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023334 *) # This is not an option, so the user has probably given explicit
23335 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023336 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023337 ac_need_defaults=false;;
23338 esac
23339
John Criswell0c38eaf2003-09-10 15:17:25 +000023340 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023341 # Handling of the options.
23342_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023343cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23345 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023346 --version | --vers* | -V )
23347 echo "$ac_cs_version"; exit 0 ;;
23348 --he | --h)
23349 # Conflict between --help and --header
23350 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23351Try \`$0 --help' for more information." >&5
23352echo "$as_me: error: ambiguous option: $1
23353Try \`$0 --help' for more information." >&2;}
23354 { (exit 1); exit 1; }; };;
23355 --help | --hel | -h )
23356 echo "$ac_cs_usage"; exit 0 ;;
23357 --debug | --d* | -d )
23358 debug=: ;;
23359 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023360 $ac_shift
23361 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023362 ac_need_defaults=false;;
23363 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023364 $ac_shift
23365 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023366 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23369 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023370
23371 # This is an error.
23372 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23373Try \`$0 --help' for more information." >&5
23374echo "$as_me: error: unrecognized option: $1
23375Try \`$0 --help' for more information." >&2;}
23376 { (exit 1); exit 1; }; } ;;
23377
23378 *) ac_config_targets="$ac_config_targets $1" ;;
23379
23380 esac
23381 shift
23382done
23383
John Criswell0c38eaf2003-09-10 15:17:25 +000023384ac_configure_extra_args=
23385
23386if $ac_cs_silent; then
23387 exec 6>/dev/null
23388 ac_configure_extra_args="$ac_configure_extra_args --silent"
23389fi
23390
23391_ACEOF
23392cat >>$CONFIG_STATUS <<_ACEOF
23393if \$ac_cs_recheck; then
23394 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23395 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23396fi
23397
John Criswell7a73b802003-06-30 21:59:07 +000023398_ACEOF
23399
John Criswellc764fbc2003-09-06 15:17:13 +000023400cat >>$CONFIG_STATUS <<_ACEOF
23401#
23402# INIT-COMMANDS section.
23403#
John Criswell7a73b802003-06-30 21:59:07 +000023404
John Criswellc764fbc2003-09-06 15:17:13 +000023405${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23407${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23408${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023422${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023427${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023442${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023443${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023447${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023448${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023449${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023451${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023455${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23543${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023544${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023545${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023546${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023547${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023548${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023550${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23551${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/CompileFail/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023552${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23553${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023554${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023555${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23557${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023558${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023559${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023560${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023561${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023562${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023563${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023564${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023566${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23568${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23569${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23570${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23571${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23572${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23573${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23574${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23575${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23576${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23577${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23578${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
John Criswell4e079782003-09-29 14:52:28 +000023579${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23580${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23581${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23582${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23583${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23584${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23585${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023586
23587_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023588
23589
23590
23591cat >>$CONFIG_STATUS <<\_ACEOF
23592for ac_config_target in $ac_config_targets
23593do
23594 case "$ac_config_target" in
23595 # Handling of arguments.
23596 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023597 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23598 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23599 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23600 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23601 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23602 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23603 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23604 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23605 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23606 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23607 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23608 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23609 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23610 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23611 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23612 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23613 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023614 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23615 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23616 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23617 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23618 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023619 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23620 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23621 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23622 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23623 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23624 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23625 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23626 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23627 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23628 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23629 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23630 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23631 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23632 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23633 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023634 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023635 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23636 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23637 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23638 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023639 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023640 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023641 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23642 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023643 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23644 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23645 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23646 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023647 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023648 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23649 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23650 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23651 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23652 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23653 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23654 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23655 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23656 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23657 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23658 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23659 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23660 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23661 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23662 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23663 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23664 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23665 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023666 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023667 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23668 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23669 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23670 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23671 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23672 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23673 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23674 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23675 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23676 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23677 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23678 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23679 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23680 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23681 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23682 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23683 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23684 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023685 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23686 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023687 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23688 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023689 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23690 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23691 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23692 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23693 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23694 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23695 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23696 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23697 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23698 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23699 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23700 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23701 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23702 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23703 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23704 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23705 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23706 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23707 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23708 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23709 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23710 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23711 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23712 "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 +000023713 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023714 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23715 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23716 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23717 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23718 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23719 "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 +000023720 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023721 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023722 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23723 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23724 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23725 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23726 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023727 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23728 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23729 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023730 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23731 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23732 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23733 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23734 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23735 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023736 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023737 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023738 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023739 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023740 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23741 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023742 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23743 "test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023744 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23745 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023746 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023747 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23748 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23749 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023750 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023751 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023752 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023753 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023754 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023755 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023756 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23757 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023758 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23759 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23760 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23761 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23762 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23763 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23764 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23765 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23766 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23767 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23768 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23769 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23770 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell4e079782003-09-29 14:52:28 +000023771 "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23772 "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23773 "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23774 "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23775 "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23776 "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23777 "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023778 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23779 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23780echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23781 { (exit 1); exit 1; }; };;
23782 esac
23783done
23784
23785# If the user did not use the arguments to specify the items to instantiate,
23786# then the envvar interface is used. Set only those that are not.
23787# We use the long form for the default assignment because of an extremely
23788# bizarre bug on SunOS 4.1.3.
23789if $ac_need_defaults; then
23790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023793fi
23794
John Criswell0c38eaf2003-09-10 15:17:25 +000023795# Have a temporary directory for convenience. Make it in the build tree
23796# simply because there is no reason to put it here, and in addition,
23797# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023798# Create a temporary directory, and hook for its removal unless debugging.
23799$debug ||
23800{
23801 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23802 trap '{ (exit 1); exit 1; }' 1 2 13 15
23803}
23804
23805# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023806
John Criswell7a73b802003-06-30 21:59:07 +000023807{
John Criswell0c38eaf2003-09-10 15:17:25 +000023808 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023809 test -n "$tmp" && test -d "$tmp"
23810} ||
23811{
John Criswell0c38eaf2003-09-10 15:17:25 +000023812 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023813 (umask 077 && mkdir $tmp)
23814} ||
23815{
John Criswell0c38eaf2003-09-10 15:17:25 +000023816 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023817 { (exit 1); exit 1; }
23818}
23819
23820_ACEOF
23821
23822cat >>$CONFIG_STATUS <<_ACEOF
23823
23824#
23825# CONFIG_FILES section.
23826#
23827
23828# No need to generate the scripts if there are no CONFIG_FILES.
23829# This happens for instance when ./config.status config.h
23830if test -n "\$CONFIG_FILES"; then
23831 # Protect against being on the right side of a sed subst in config.status.
23832 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23833 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23834s,@SHELL@,$SHELL,;t t
23835s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23836s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23837s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23838s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23839s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23840s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23841s,@exec_prefix@,$exec_prefix,;t t
23842s,@prefix@,$prefix,;t t
23843s,@program_transform_name@,$program_transform_name,;t t
23844s,@bindir@,$bindir,;t t
23845s,@sbindir@,$sbindir,;t t
23846s,@libexecdir@,$libexecdir,;t t
23847s,@datadir@,$datadir,;t t
23848s,@sysconfdir@,$sysconfdir,;t t
23849s,@sharedstatedir@,$sharedstatedir,;t t
23850s,@localstatedir@,$localstatedir,;t t
23851s,@libdir@,$libdir,;t t
23852s,@includedir@,$includedir,;t t
23853s,@oldincludedir@,$oldincludedir,;t t
23854s,@infodir@,$infodir,;t t
23855s,@mandir@,$mandir,;t t
23856s,@build_alias@,$build_alias,;t t
23857s,@host_alias@,$host_alias,;t t
23858s,@target_alias@,$target_alias,;t t
23859s,@DEFS@,$DEFS,;t t
23860s,@ECHO_C@,$ECHO_C,;t t
23861s,@ECHO_N@,$ECHO_N,;t t
23862s,@ECHO_T@,$ECHO_T,;t t
23863s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023864s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023865s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23866s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23867s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23868s,@build@,$build,;t t
23869s,@build_cpu@,$build_cpu,;t t
23870s,@build_vendor@,$build_vendor,;t t
23871s,@build_os@,$build_os,;t t
23872s,@host@,$host,;t t
23873s,@host_cpu@,$host_cpu,;t t
23874s,@host_vendor@,$host_vendor,;t t
23875s,@host_os@,$host_os,;t t
23876s,@target@,$target,;t t
23877s,@target_cpu@,$target_cpu,;t t
23878s,@target_vendor@,$target_vendor,;t t
23879s,@target_os@,$target_os,;t t
23880s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023881s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023882s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023883s,@CXX@,$CXX,;t t
23884s,@CXXFLAGS@,$CXXFLAGS,;t t
23885s,@LDFLAGS@,$LDFLAGS,;t t
23886s,@CPPFLAGS@,$CPPFLAGS,;t t
23887s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23888s,@EXEEXT@,$EXEEXT,;t t
23889s,@OBJEXT@,$OBJEXT,;t t
23890s,@CC@,$CC,;t t
23891s,@CFLAGS@,$CFLAGS,;t t
23892s,@ac_ct_CC@,$ac_ct_CC,;t t
23893s,@CPP@,$CPP,;t t
23894s,@ifGNUmake@,$ifGNUmake,;t t
23895s,@LEX@,$LEX,;t t
23896s,@LEXLIB@,$LEXLIB,;t t
23897s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23898s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023899s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023900s,@LN_S@,$LN_S,;t t
23901s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023902s,@AR@,$AR,;t t
23903s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023904s,@RANLIB@,$RANLIB,;t t
23905s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23906s,@STRIP@,$STRIP,;t t
23907s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023908s,@CXXCPP@,$CXXCPP,;t t
23909s,@F77@,$F77,;t t
23910s,@FFLAGS@,$FFLAGS,;t t
23911s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023912s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023913s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023914s,@SED@,$SED,;t t
23915s,@RM@,$RM,;t t
23916s,@MKDIR@,$MKDIR,;t t
23917s,@DATE@,$DATE,;t t
23918s,@MV@,$MV,;t t
23919s,@DOT@,$DOT,;t t
23920s,@ETAGS@,$ETAGS,;t t
23921s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023922s,@PYTHON@,$PYTHON,;t t
23923s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023924s,@ALLOCA@,$ALLOCA,;t t
23925s,@LIBOBJS@,$LIBOBJS,;t t
23926s,@MMAP_FILE@,$MMAP_FILE,;t t
23927s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023928s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23929s,@USE_SPEC@,$USE_SPEC,;t t
23930s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023931s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023932s,@JIT@,$JIT,;t t
23933s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23934s,@BCR@,$BCR,;t t
23935s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023936s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023937CEOF
23938
23939_ACEOF
23940
23941 cat >>$CONFIG_STATUS <<\_ACEOF
23942 # Split the substitutions into bite-sized pieces for seds with
23943 # small command number limits, like on Digital OSF/1 and HP-UX.
23944 ac_max_sed_lines=48
23945 ac_sed_frag=1 # Number of current file.
23946 ac_beg=1 # First line for current file.
23947 ac_end=$ac_max_sed_lines # Line after last line for current file.
23948 ac_more_lines=:
23949 ac_sed_cmds=
23950 while $ac_more_lines; do
23951 if test $ac_beg -gt 1; then
23952 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23953 else
23954 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23955 fi
23956 if test ! -s $tmp/subs.frag; then
23957 ac_more_lines=false
23958 else
23959 # The purpose of the label and of the branching condition is to
23960 # speed up the sed processing (if there are no `@' at all, there
23961 # is no need to browse any of the substitutions).
23962 # These are the two extra sed commands mentioned above.
23963 (echo ':t
23964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23965 if test -z "$ac_sed_cmds"; then
23966 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23967 else
23968 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23969 fi
23970 ac_sed_frag=`expr $ac_sed_frag + 1`
23971 ac_beg=$ac_end
23972 ac_end=`expr $ac_end + $ac_max_sed_lines`
23973 fi
23974 done
23975 if test -z "$ac_sed_cmds"; then
23976 ac_sed_cmds=cat
23977 fi
23978fi # test -n "$CONFIG_FILES"
23979
23980_ACEOF
23981cat >>$CONFIG_STATUS <<\_ACEOF
23982for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23984 case $ac_file in
23985 - | *:- | *:-:* ) # input from stdin
23986 cat >$tmp/stdin
23987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23991 * ) ac_file_in=$ac_file.in ;;
23992 esac
23993
23994 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23997 X"$ac_file" : 'X\(//\)[^/]' \| \
23998 X"$ac_file" : 'X\(//\)$' \| \
23999 X"$ac_file" : 'X\(/\)' \| \
24000 . : '\(.\)' 2>/dev/null ||
24001echo X"$ac_file" |
24002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24004 /^X\(\/\/\)$/{ s//\1/; q; }
24005 /^X\(\/\).*/{ s//\1/; q; }
24006 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024007 { if $as_mkdir_p; then
24008 mkdir -p "$ac_dir"
24009 else
24010 as_dir="$ac_dir"
24011 as_dirs=
24012 while test ! -d "$as_dir"; do
24013 as_dirs="$as_dir $as_dirs"
24014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24016 X"$as_dir" : 'X\(//\)[^/]' \| \
24017 X"$as_dir" : 'X\(//\)$' \| \
24018 X"$as_dir" : 'X\(/\)' \| \
24019 . : '\(.\)' 2>/dev/null ||
24020echo X"$as_dir" |
24021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24023 /^X\(\/\/\)$/{ s//\1/; q; }
24024 /^X\(\/\).*/{ s//\1/; q; }
24025 s/.*/./; q'`
24026 done
24027 test ! -n "$as_dirs" || mkdir $as_dirs
24028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24029echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24030 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024031
24032 ac_builddir=.
24033
24034if test "$ac_dir" != .; then
24035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24036 # A "../" for each directory in $ac_dir_suffix.
24037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24038else
24039 ac_dir_suffix= ac_top_builddir=
24040fi
24041
24042case $srcdir in
24043 .) # No --srcdir option. We are building in place.
24044 ac_srcdir=.
24045 if test -z "$ac_top_builddir"; then
24046 ac_top_srcdir=.
24047 else
24048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24049 fi ;;
24050 [\\/]* | ?:[\\/]* ) # Absolute path.
24051 ac_srcdir=$srcdir$ac_dir_suffix;
24052 ac_top_srcdir=$srcdir ;;
24053 *) # Relative path.
24054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24056esac
24057# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24058# absolute.
24059ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024060ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024061ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24062ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24063
24064
24065 case $INSTALL in
24066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24067 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24068 esac
24069
24070 if test x"$ac_file" != x-; then
24071 { echo "$as_me:$LINENO: creating $ac_file" >&5
24072echo "$as_me: creating $ac_file" >&6;}
24073 rm -f "$ac_file"
24074 fi
24075 # Let's still pretend it is `configure' which instantiates (i.e., don't
24076 # use $as_me), people would be surprised to read:
24077 # /* config.h. Generated by config.status. */
24078 if test x"$ac_file" = x-; then
24079 configure_input=
24080 else
24081 configure_input="$ac_file. "
24082 fi
24083 configure_input=$configure_input"Generated from `echo $ac_file_in |
24084 sed 's,.*/,,'` by configure."
24085
24086 # First look for the input files in the build tree, otherwise in the
24087 # src tree.
24088 ac_file_inputs=`IFS=:
24089 for f in $ac_file_in; do
24090 case $f in
24091 -) echo $tmp/stdin ;;
24092 [\\/$]*)
24093 # Absolute (can't be DOS-style, as IFS=:)
24094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24095echo "$as_me: error: cannot find input file: $f" >&2;}
24096 { (exit 1); exit 1; }; }
24097 echo $f;;
24098 *) # Relative
24099 if test -f "$f"; then
24100 # Build tree
24101 echo $f
24102 elif test -f "$srcdir/$f"; then
24103 # Source tree
24104 echo $srcdir/$f
24105 else
24106 # /dev/null tree
24107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24108echo "$as_me: error: cannot find input file: $f" >&2;}
24109 { (exit 1); exit 1; }; }
24110 fi;;
24111 esac
24112 done` || { (exit 1); exit 1; }
24113_ACEOF
24114cat >>$CONFIG_STATUS <<_ACEOF
24115 sed "$ac_vpsub
24116$extrasub
24117_ACEOF
24118cat >>$CONFIG_STATUS <<\_ACEOF
24119:t
24120/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24121s,@configure_input@,$configure_input,;t t
24122s,@srcdir@,$ac_srcdir,;t t
24123s,@abs_srcdir@,$ac_abs_srcdir,;t t
24124s,@top_srcdir@,$ac_top_srcdir,;t t
24125s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24126s,@builddir@,$ac_builddir,;t t
24127s,@abs_builddir@,$ac_abs_builddir,;t t
24128s,@top_builddir@,$ac_top_builddir,;t t
24129s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24130s,@INSTALL@,$ac_INSTALL,;t t
24131" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24132 rm -f $tmp/stdin
24133 if test x"$ac_file" != x-; then
24134 mv $tmp/out $ac_file
24135 else
24136 cat $tmp/out
24137 rm -f $tmp/out
24138 fi
24139
24140done
24141_ACEOF
24142cat >>$CONFIG_STATUS <<\_ACEOF
24143
24144#
24145# CONFIG_HEADER section.
24146#
24147
24148# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24149# NAME is the cpp macro being defined and VALUE is the value it is being given.
24150#
24151# ac_d sets the value in "#define NAME VALUE" lines.
24152ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24153ac_dB='[ ].*$,\1#\2'
24154ac_dC=' '
24155ac_dD=',;t'
24156# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24157ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24158ac_uB='$,\1#\2define\3'
24159ac_uC=' '
24160ac_uD=',;t'
24161
24162for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24164 case $ac_file in
24165 - | *:- | *:-:* ) # input from stdin
24166 cat >$tmp/stdin
24167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24171 * ) ac_file_in=$ac_file.in ;;
24172 esac
24173
24174 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24175echo "$as_me: creating $ac_file" >&6;}
24176
24177 # First look for the input files in the build tree, otherwise in the
24178 # src tree.
24179 ac_file_inputs=`IFS=:
24180 for f in $ac_file_in; do
24181 case $f in
24182 -) echo $tmp/stdin ;;
24183 [\\/$]*)
24184 # Absolute (can't be DOS-style, as IFS=:)
24185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24186echo "$as_me: error: cannot find input file: $f" >&2;}
24187 { (exit 1); exit 1; }; }
24188 echo $f;;
24189 *) # Relative
24190 if test -f "$f"; then
24191 # Build tree
24192 echo $f
24193 elif test -f "$srcdir/$f"; then
24194 # Source tree
24195 echo $srcdir/$f
24196 else
24197 # /dev/null tree
24198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24199echo "$as_me: error: cannot find input file: $f" >&2;}
24200 { (exit 1); exit 1; }; }
24201 fi;;
24202 esac
24203 done` || { (exit 1); exit 1; }
24204 # Remove the trailing spaces.
24205 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24206
24207_ACEOF
24208
24209# Transform confdefs.h into two sed scripts, `conftest.defines' and
24210# `conftest.undefs', that substitutes the proper values into
24211# config.h.in to produce config.h. The first handles `#define'
24212# templates, and the second `#undef' templates.
24213# And first: Protect against being on the right side of a sed subst in
24214# config.status. Protect against being in an unquoted here document
24215# in config.status.
24216rm -f conftest.defines conftest.undefs
24217# Using a here document instead of a string reduces the quoting nightmare.
24218# Putting comments in sed scripts is not portable.
24219#
24220# `end' is used to avoid that the second main sed command (meant for
24221# 0-ary CPP macros) applies to n-ary macro definitions.
24222# See the Autoconf documentation for `clear'.
24223cat >confdef2sed.sed <<\_ACEOF
24224s/[\\&,]/\\&/g
24225s,[\\$`],\\&,g
24226t clear
24227: clear
24228s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24229t end
24230s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24231: end
24232_ACEOF
24233# If some macros were called several times there might be several times
24234# the same #defines, which is useless. Nevertheless, we may not want to
24235# sort them, since we want the *last* AC-DEFINE to be honored.
24236uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24237sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24238rm -f confdef2sed.sed
24239
24240# This sed command replaces #undef with comments. This is necessary, for
24241# example, in the case of _POSIX_SOURCE, which is predefined and required
24242# on some systems where configure will not decide to define it.
24243cat >>conftest.undefs <<\_ACEOF
24244s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24245_ACEOF
24246
24247# Break up conftest.defines because some shells have a limit on the size
24248# of here documents, and old seds have small limits too (100 cmds).
24249echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024250echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024251echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24252echo ' :' >>$CONFIG_STATUS
24253rm -f conftest.tail
24254while grep . conftest.defines >/dev/null
24255do
24256 # Write a limited-size here document to $tmp/defines.sed.
24257 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24258 # Speed up: don't consider the non `#define' lines.
24259 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24260 # Work around the forget-to-reset-the-flag bug.
24261 echo 't clr' >>$CONFIG_STATUS
24262 echo ': clr' >>$CONFIG_STATUS
24263 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24264 echo 'CEOF
24265 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24266 rm -f $tmp/in
24267 mv $tmp/out $tmp/in
24268' >>$CONFIG_STATUS
24269 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24270 rm -f conftest.defines
24271 mv conftest.tail conftest.defines
24272done
24273rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024274echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024275echo >>$CONFIG_STATUS
24276
24277# Break up conftest.undefs because some shells have a limit on the size
24278# of here documents, and old seds have small limits too (100 cmds).
24279echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24280rm -f conftest.tail
24281while grep . conftest.undefs >/dev/null
24282do
24283 # Write a limited-size here document to $tmp/undefs.sed.
24284 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24285 # Speed up: don't consider the non `#undef'
24286 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24287 # Work around the forget-to-reset-the-flag bug.
24288 echo 't clr' >>$CONFIG_STATUS
24289 echo ': clr' >>$CONFIG_STATUS
24290 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24291 echo 'CEOF
24292 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24293 rm -f $tmp/in
24294 mv $tmp/out $tmp/in
24295' >>$CONFIG_STATUS
24296 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24297 rm -f conftest.undefs
24298 mv conftest.tail conftest.undefs
24299done
24300rm -f conftest.undefs
24301
24302cat >>$CONFIG_STATUS <<\_ACEOF
24303 # Let's still pretend it is `configure' which instantiates (i.e., don't
24304 # use $as_me), people would be surprised to read:
24305 # /* config.h. Generated by config.status. */
24306 if test x"$ac_file" = x-; then
24307 echo "/* Generated by configure. */" >$tmp/config.h
24308 else
24309 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24310 fi
24311 cat $tmp/in >>$tmp/config.h
24312 rm -f $tmp/in
24313 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024314 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024315 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24316echo "$as_me: $ac_file is unchanged" >&6;}
24317 else
24318 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24319$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24320 X"$ac_file" : 'X\(//\)[^/]' \| \
24321 X"$ac_file" : 'X\(//\)$' \| \
24322 X"$ac_file" : 'X\(/\)' \| \
24323 . : '\(.\)' 2>/dev/null ||
24324echo X"$ac_file" |
24325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24327 /^X\(\/\/\)$/{ s//\1/; q; }
24328 /^X\(\/\).*/{ s//\1/; q; }
24329 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024330 { if $as_mkdir_p; then
24331 mkdir -p "$ac_dir"
24332 else
24333 as_dir="$ac_dir"
24334 as_dirs=
24335 while test ! -d "$as_dir"; do
24336 as_dirs="$as_dir $as_dirs"
24337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24339 X"$as_dir" : 'X\(//\)[^/]' \| \
24340 X"$as_dir" : 'X\(//\)$' \| \
24341 X"$as_dir" : 'X\(/\)' \| \
24342 . : '\(.\)' 2>/dev/null ||
24343echo X"$as_dir" |
24344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24346 /^X\(\/\/\)$/{ s//\1/; q; }
24347 /^X\(\/\).*/{ s//\1/; q; }
24348 s/.*/./; q'`
24349 done
24350 test ! -n "$as_dirs" || mkdir $as_dirs
24351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24352echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24353 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024354
24355 rm -f $ac_file
24356 mv $tmp/config.h $ac_file
24357 fi
24358 else
24359 cat $tmp/config.h
24360 rm -f $tmp/config.h
24361 fi
24362done
24363_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024364cat >>$CONFIG_STATUS <<\_ACEOF
24365
24366#
24367# CONFIG_COMMANDS section.
24368#
24369for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24370 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24371 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24372 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24373$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24374 X"$ac_dest" : 'X\(//\)[^/]' \| \
24375 X"$ac_dest" : 'X\(//\)$' \| \
24376 X"$ac_dest" : 'X\(/\)' \| \
24377 . : '\(.\)' 2>/dev/null ||
24378echo X"$ac_dest" |
24379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24381 /^X\(\/\/\)$/{ s//\1/; q; }
24382 /^X\(\/\).*/{ s//\1/; q; }
24383 s/.*/./; q'`
24384 ac_builddir=.
24385
24386if test "$ac_dir" != .; then
24387 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24388 # A "../" for each directory in $ac_dir_suffix.
24389 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24390else
24391 ac_dir_suffix= ac_top_builddir=
24392fi
24393
24394case $srcdir in
24395 .) # No --srcdir option. We are building in place.
24396 ac_srcdir=.
24397 if test -z "$ac_top_builddir"; then
24398 ac_top_srcdir=.
24399 else
24400 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24401 fi ;;
24402 [\\/]* | ?:[\\/]* ) # Absolute path.
24403 ac_srcdir=$srcdir$ac_dir_suffix;
24404 ac_top_srcdir=$srcdir ;;
24405 *) # Relative path.
24406 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24407 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24408esac
24409# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24410# absolute.
24411ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024412ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024413ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24414ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24415
24416
24417 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24418echo "$as_me: executing $ac_dest commands" >&6;}
24419 case $ac_dest in
24420 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24421 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24422 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24423 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24424 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24425 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24426 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24427 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24428 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24429 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24430 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24431 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24432 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24433 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24434 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24435 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24436 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 +000024437 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24438 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24439 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24440 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24441 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024442 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24443 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24444 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24445 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24446 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24447 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24448 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24449 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24450 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24451 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24452 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24453 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24454 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24455 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24456 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 +000024457 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 +000024458 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24459 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24460 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24461 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 +000024462 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 +000024463 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 +000024464 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24465 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 +000024466 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24467 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24468 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24469 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024470 test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024471 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24472 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24473 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24474 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24475 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24476 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24477 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24478 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24479 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24480 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24481 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24482 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24483 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24484 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24485 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24486 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24487 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24488 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 +000024489 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 +000024490 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 ;;
24491 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 ;;
24492 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 ;;
24493 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 ;;
24494 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 ;;
24495 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 ;;
24496 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 ;;
24497 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 ;;
24498 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 ;;
24499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 ;;
24503 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 ;;
24504 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 ;;
24505 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24506 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24507 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 +000024508 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24509 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 +000024510 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 ;;
24511 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 +000024512 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24513 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 ;;
24514 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 ;;
24515 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 ;;
24516 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 ;;
24517 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 ;;
24518 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 ;;
24519 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 ;;
24520 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 ;;
24521 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 ;;
24522 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 ;;
24523 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 ;;
24524 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 ;;
24525 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 ;;
24526 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 ;;
24527 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 ;;
24528 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 ;;
24529 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 ;;
24530 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 ;;
24531 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 ;;
24532 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 ;;
24533 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 ;;
24534 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 ;;
24535 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 +000024536 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 +000024537 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 ;;
24538 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 ;;
24539 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 ;;
24540 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 ;;
24541 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 ;;
24542 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 +000024543 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 +000024544 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 +000024545 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24546 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24547 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24548 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24549 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024550 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24551 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24552 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 +000024553 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24554 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24555 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 ;;
24556 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 ;;
24557 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 ;;
24558 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 +000024559 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 +000024560 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 +000024561 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 +000024562 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 +000024563 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 ;;
24564 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 +000024565 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 ;;
24566 test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/CompileFail/Makefile test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024567 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24568 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024569 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024570 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24571 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24572 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024573 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024574 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024575 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024576 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 +000024577 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 +000024578 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 +000024579 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24580 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024581 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24582 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24583 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24584 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24585 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24586 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24587 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24588 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24589 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24590 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24591 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24592 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24593 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
John Criswell4e079782003-09-29 14:52:28 +000024594 support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24595 support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24596 support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24597 support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24598 support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24599 support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24600 support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024601 esac
24602done
24603_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024604
24605cat >>$CONFIG_STATUS <<\_ACEOF
24606
24607{ (exit 0); exit 0; }
24608_ACEOF
24609chmod +x $CONFIG_STATUS
24610ac_clean_files=$ac_clean_files_save
24611
24612
24613# configure is writing to config.log, and then calls config.status.
24614# config.status does its own redirection, appending to config.log.
24615# Unfortunately, on DOS this fails, as config.log is still kept open
24616# by configure, so config.status won't be able to write to it; its
24617# output is simply discarded. So we exec the FD to /dev/null,
24618# effectively closing config.log, so it can be properly (re)opened and
24619# appended to by config.status. When coming back to configure, we
24620# need to make the FD available again.
24621if test "$no_create" != yes; then
24622 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024623 ac_config_status_args=
24624 test "$silent" = yes &&
24625 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024626 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024628 exec 5>>config.log
24629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24630 # would make configure fail if this is the last instruction.
24631 $ac_cs_success || { (exit 1); exit 1; }
24632fi
24633
John Criswell12399a12003-09-30 15:55:44 +000024634#
24635# CONFIG_SUBDIRS section.
24636#
24637if test "$no_recursion" != yes; then
24638
24639 # Remove --cache-file and --srcdir arguments so they do not pile up.
24640 ac_sub_configure_args=
24641 ac_prev=
24642 for ac_arg in $ac_configure_args; do
24643 if test -n "$ac_prev"; then
24644 ac_prev=
24645 continue
24646 fi
24647 case $ac_arg in
24648 -cache-file | --cache-file | --cache-fil | --cache-fi \
24649 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24650 ac_prev=cache_file ;;
24651 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24652 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24653 | --c=*)
24654 ;;
24655 --config-cache | -C)
24656 ;;
24657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24658 ac_prev=srcdir ;;
24659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24660 ;;
24661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24662 ac_prev=prefix ;;
24663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24664 ;;
24665 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24666 esac
24667 done
24668
24669 # Always prepend --prefix to ensure using the same prefix
24670 # in subdir configurations.
24671 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24672
24673 ac_popdir=`pwd`
24674 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24675
24676 # Do not complain, so a configure script can configure whichever
24677 # parts of a large source tree are present.
24678 test -d $srcdir/$ac_dir || continue
24679
24680 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24681echo "$as_me: configuring in $ac_dir" >&6;}
24682 { if $as_mkdir_p; then
24683 mkdir -p "$ac_dir"
24684 else
24685 as_dir="$ac_dir"
24686 as_dirs=
24687 while test ! -d "$as_dir"; do
24688 as_dirs="$as_dir $as_dirs"
24689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24691 X"$as_dir" : 'X\(//\)[^/]' \| \
24692 X"$as_dir" : 'X\(//\)$' \| \
24693 X"$as_dir" : 'X\(/\)' \| \
24694 . : '\(.\)' 2>/dev/null ||
24695echo X"$as_dir" |
24696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24698 /^X\(\/\/\)$/{ s//\1/; q; }
24699 /^X\(\/\).*/{ s//\1/; q; }
24700 s/.*/./; q'`
24701 done
24702 test ! -n "$as_dirs" || mkdir $as_dirs
24703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24704echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24705 { (exit 1); exit 1; }; }; }
24706
24707 ac_builddir=.
24708
24709if test "$ac_dir" != .; then
24710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24711 # A "../" for each directory in $ac_dir_suffix.
24712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24713else
24714 ac_dir_suffix= ac_top_builddir=
24715fi
24716
24717case $srcdir in
24718 .) # No --srcdir option. We are building in place.
24719 ac_srcdir=.
24720 if test -z "$ac_top_builddir"; then
24721 ac_top_srcdir=.
24722 else
24723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24724 fi ;;
24725 [\\/]* | ?:[\\/]* ) # Absolute path.
24726 ac_srcdir=$srcdir$ac_dir_suffix;
24727 ac_top_srcdir=$srcdir ;;
24728 *) # Relative path.
24729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24731esac
24732# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24733# absolute.
24734ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24735ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24736ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24737ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24738
24739
24740 cd $ac_dir
24741
24742 # Check for guested configure; otherwise get Cygnus style configure.
24743 if test -f $ac_srcdir/configure.gnu; then
24744 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24745 elif test -f $ac_srcdir/configure; then
24746 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24747 elif test -f $ac_srcdir/configure.in; then
24748 ac_sub_configure=$ac_configure
24749 else
24750 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24751echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24752 ac_sub_configure=
24753 fi
24754
24755 # The recursion is here.
24756 if test -n "$ac_sub_configure"; then
24757 # Make the cache file name correct relative to the subdirectory.
24758 case $cache_file in
24759 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24760 *) # Relative path.
24761 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24762 esac
24763
24764 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24765echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24766 # The eval makes quoting arguments work.
24767 eval $ac_sub_configure $ac_sub_configure_args \
24768 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24769 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24770echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24771 { (exit 1); exit 1; }; }
24772 fi
24773
24774 cd $ac_popdir
24775 done
24776fi
24777