blob: 4902b5ec27d38fe18d67870775cf6b600871b35e [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 Criswellce2141f2003-10-02 19:02:30 +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 PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR PURIFY 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
Brian Gaekec45be042003-10-07 06:01:34 +00001608 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Target/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/Sparc/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/Target/X86/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/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/Hello/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/IPO/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/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/Instrumentation/ProfilePaths/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/Scalar/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/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands lib/VMCore/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/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/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/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001654
1655
John Criswell613758d2003-09-11 18:03:50 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1657
1658
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/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/libgcc/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/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
John Criswell613758d2003-09-11 18:03:50 +00001671 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell613758d2003-09-11 18:03:50 +00001677 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1678
1679
1680 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands runtime/libtrace/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"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell0c38eaf2003-09-10 15:17:25 +00001692 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001693
1694
John Criswellf424d742003-10-07 21:13:47 +00001695 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1696
1697
1698 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/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/Makefile.programs"
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.aa.Makefile"
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.dsgraph.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.micro.report"
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.aa.report"
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.example.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.nightly.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.buildrepo.Makefile"
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.jit.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.nightly.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.dsgraph.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.jit.report"
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.typesafe.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/TEST.dsgraph.gnuplot"
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/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell0c38eaf2003-09-10 15:17:25 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell613758d2003-09-11 18:03:50 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/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/179.art/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/CFP2000/183.equake/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/CFP2000/188.ammp/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/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/164.gzip/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/175.vpr/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/176.gcc/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/181.mcf/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/186.crafty/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/197.parser/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/254.gap/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/255.vortex/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/External/SPEC/CINT2000/256.bzip2/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/External/SPEC/CINT2000/300.twolf/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/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell0c38eaf2003-09-10 15:17:25 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell0c38eaf2003-09-10 15:17:25 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell48e3cb92003-09-12 16:31:43 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001813
1814
John Criswell48e3cb92003-09-12 16:31:43 +00001815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001816
1817
John Criswell39e83892003-09-12 16:36:17 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1819
1820
1821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/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/Fhourstones/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/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/01-qbsort/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/03-testtrie/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/04-bisect/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/05-eks/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/08-main/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/09-vor/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/12-IOtest/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/15-trie/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/McCat/17-bintr/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/McCat/18-imp/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/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/bh/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/bisort/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/em3d/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/health/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/mst/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/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001882
1883
John Criswell48e3cb92003-09-12 16:31:43 +00001884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001885
1886
John Criswell48e3cb92003-09-12 16:31:43 +00001887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1888
1889
1890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1891
1892
1893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell39e83892003-09-12 16:36:17 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/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/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/anagram/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/bc/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/ft/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/Ptrdist/ks/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/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell48e3cb92003-09-12 16:31:43 +00001917 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell48e3cb92003-09-12 16:31:43 +00001920 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/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/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/Flex/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/Larn/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/Moria-5.5.2/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/NoSource/Povray31/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/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001939
1940
John Criswell0c38eaf2003-09-10 15:17:25 +00001941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001942
1943
John Criswell0c38eaf2003-09-10 15:17:25 +00001944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001945
1946
John Criswellffaaf3b2003-09-10 18:38:44 +00001947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1948
1949
1950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1951
1952
1953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1954
1955
1956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1957
1958
1959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1960
1961
1962 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1963
1964
John Criswell0c38eaf2003-09-10 15:17:25 +00001965 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001966
1967
John Criswell0c38eaf2003-09-10 15:17:25 +00001968 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001969
1970
John Criswell0afe8252003-09-11 20:53:48 +00001971 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1972
1973
John Criswell67181ca2003-09-26 14:53:17 +00001974 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1975
1976
John Criswell68886d42003-09-26 19:51:42 +00001977 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1978
1979
1980 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1981
1982
John Criswellc66bbd52003-09-29 21:35:32 +00001983 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/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/analyze/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/bugpoint/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/extract/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/gccas/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/gccld/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/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswellddb7b4e2003-09-16 15:54:19 +00002010 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002011
2012
Chris Lattnerebd70302003-09-13 03:29:53 +00002013 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2014
2015
John Criswellddb7b4e2003-09-16 15:54:19 +00002016 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2017
2018
John Criswell0c38eaf2003-09-10 15:17:25 +00002019 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002020
2021
John Criswellddb7b4e2003-09-16 15:54:19 +00002022 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2023
2024
2025 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2026
2027
Brian Gaekec45be042003-10-07 06:01:34 +00002028 ac_config_commands="$ac_config_commands utils/Makefile"
2029
2030
2031 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2032
2033
2034 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2035
2036
2037 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands www/docs/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/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/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/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002050
2051
John Criswell0c38eaf2003-09-10 15:17:25 +00002052 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002053
2054
John Criswell0c38eaf2003-09-10 15:17:25 +00002055 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002056
2057
John Criswell0c38eaf2003-09-10 15:17:25 +00002058 ac_config_commands="$ac_config_commands projects/sample/lib/sample/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/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002062
2063
John Criswell0c38eaf2003-09-10 15:17:25 +00002064 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002065
2066
John Criswell0c38eaf2003-09-10 15:17:25 +00002067 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002068
2069
John Criswell0c38eaf2003-09-10 15:17:25 +00002070 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002071
2072
John Criswell0c38eaf2003-09-10 15:17:25 +00002073 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002074
2075
John Criswell0c38eaf2003-09-10 15:17:25 +00002076 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002077
2078
John Criswell392aaa32003-07-22 19:18:09 +00002079
2080
John Criswell7a73b802003-06-30 21:59:07 +00002081# Find a good install program. We prefer a C program (faster),
2082# so one script is as good as another. But avoid the broken or
2083# incompatible versions:
2084# SysV /etc/install, /usr/sbin/install
2085# SunOS /usr/etc/install
2086# IRIX /sbin/install
2087# AIX /bin/install
2088# AmigaOS /C/install, which installs bootblocks on floppy discs
2089# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2090# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2091# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2092# ./install, which can be erroneously created by make from ./install.sh.
2093echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2095if test -z "$INSTALL"; then
2096if test "${ac_cv_path_install+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 # Account for people who put trailing slashes in PATH elements.
2105case $as_dir/ in
2106 ./ | .// | /cC/* | \
2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108 /usr/ucb/* ) ;;
2109 *)
2110 # OSF1 and SCO ODT 3.0 have their own names for install.
2111 # Don't use installbsd from OSF since it installs stuff as root
2112 # by default.
2113 for ac_prog in ginstall scoinst install; do
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2116 if test $ac_prog = install &&
2117 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # AIX install. It has an incompatible calling convention.
2119 :
2120 elif test $ac_prog = install &&
2121 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122 # program-specific install script used by HP pwplus--don't use.
2123 :
2124 else
2125 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2126 break 3
2127 fi
2128 fi
2129 done
2130 done
2131 ;;
2132esac
2133done
2134
2135
2136fi
2137 if test "${ac_cv_path_install+set}" = set; then
2138 INSTALL=$ac_cv_path_install
2139 else
2140 # As a last resort, use the slow shell script. We don't cache a
2141 # path for INSTALL within a source directory, because that will
2142 # break other packages using the cache if that directory is
2143 # removed, or if the path is relative.
2144 INSTALL=$ac_install_sh
2145 fi
2146fi
2147echo "$as_me:$LINENO: result: $INSTALL" >&5
2148echo "${ECHO_T}$INSTALL" >&6
2149
2150# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2151# It thinks the first close brace ends the variable substitution.
2152test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2153
2154test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2155
2156test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2157
2158
2159# Make sure we can run config.sub.
2160$ac_config_sub sun4 >/dev/null 2>&1 ||
2161 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2162echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2163 { (exit 1); exit 1; }; }
2164
2165echo "$as_me:$LINENO: checking build system type" >&5
2166echo $ECHO_N "checking build system type... $ECHO_C" >&6
2167if test "${ac_cv_build+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170 ac_cv_build_alias=$build_alias
2171test -z "$ac_cv_build_alias" &&
2172 ac_cv_build_alias=`$ac_config_guess`
2173test -z "$ac_cv_build_alias" &&
2174 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2175echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2176 { (exit 1); exit 1; }; }
2177ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2178 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2179echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2181
2182fi
2183echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2184echo "${ECHO_T}$ac_cv_build" >&6
2185build=$ac_cv_build
2186build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2187build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2188build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2189
2190
2191echo "$as_me:$LINENO: checking host system type" >&5
2192echo $ECHO_N "checking host system type... $ECHO_C" >&6
2193if test "${ac_cv_host+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 ac_cv_host_alias=$host_alias
2197test -z "$ac_cv_host_alias" &&
2198 ac_cv_host_alias=$ac_cv_build_alias
2199ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2200 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2201echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2202 { (exit 1); exit 1; }; }
2203
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206echo "${ECHO_T}$ac_cv_host" >&6
2207host=$ac_cv_host
2208host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2209host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2210host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2211
2212
2213echo "$as_me:$LINENO: checking target system type" >&5
2214echo $ECHO_N "checking target system type... $ECHO_C" >&6
2215if test "${ac_cv_target+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218 ac_cv_target_alias=$target_alias
2219test "x$ac_cv_target_alias" = "x" &&
2220 ac_cv_target_alias=$ac_cv_host_alias
2221ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2222 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2223echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2224 { (exit 1); exit 1; }; }
2225
2226fi
2227echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2228echo "${ECHO_T}$ac_cv_target" >&6
2229target=$ac_cv_target
2230target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2231target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2232target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2233
2234
2235# The aliases save the names the user supplied, while $host etc.
2236# will get canonicalized.
2237test -n "$target_alias" &&
2238 test "$program_prefix$program_suffix$program_transform_name" = \
2239 NONENONEs,x,x, &&
2240 program_prefix=${target_alias}-
2241
2242case $build in
2243 *i*86*) OS=Linux
2244
John Criswellf02dbf02003-07-22 20:07:49 +00002245 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002246
2247 ;;
2248
2249 *sparc*) OS=SunOS
2250
2251 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2252
2253 ;;
2254
2255 *) OS=Unknown
2256
2257 ;;
2258esac
2259
2260case $target in
2261 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2262
2263 ;;
2264esac
2265
John Criswell76595452003-07-01 22:07:39 +00002266case $target in
2267 *i*86*) ARCH=x86
2268
2269 ;;
2270 *sparc*solaris*) ARCH=Sparc
2271
2272 ;;
2273esac
2274
John Criswell7a73b802003-06-30 21:59:07 +00002275
2276ac_ext=cc
2277ac_cpp='$CXXCPP $CPPFLAGS'
2278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2281if test -n "$ac_tool_prefix"; then
2282 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2283 do
2284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2285set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2286echo "$as_me:$LINENO: checking for $ac_word" >&5
2287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288if test "${ac_cv_prog_CXX+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291 if test -n "$CXX"; then
2292 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2293else
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2304 fi
2305done
2306done
2307
2308fi
2309fi
2310CXX=$ac_cv_prog_CXX
2311if test -n "$CXX"; then
2312 echo "$as_me:$LINENO: result: $CXX" >&5
2313echo "${ECHO_T}$CXX" >&6
2314else
2315 echo "$as_me:$LINENO: result: no" >&5
2316echo "${ECHO_T}no" >&6
2317fi
2318
2319 test -n "$CXX" && break
2320 done
2321fi
2322if test -z "$CXX"; then
2323 ac_ct_CXX=$CXX
2324 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2325do
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327set dummy $ac_prog; ac_word=$2
2328echo "$as_me:$LINENO: checking for $ac_word" >&5
2329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333 if test -n "$ac_ct_CXX"; then
2334 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2335else
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343 ac_cv_prog_ac_ct_CXX="$ac_prog"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2346 fi
2347done
2348done
2349
2350fi
2351fi
2352ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2353if test -n "$ac_ct_CXX"; then
2354 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2355echo "${ECHO_T}$ac_ct_CXX" >&6
2356else
2357 echo "$as_me:$LINENO: result: no" >&5
2358echo "${ECHO_T}no" >&6
2359fi
2360
2361 test -n "$ac_ct_CXX" && break
2362done
2363test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2364
2365 CXX=$ac_ct_CXX
2366fi
2367
2368
2369# Provide some information about the compiler.
2370echo "$as_me:$LINENO:" \
2371 "checking for C++ compiler version" >&5
2372ac_compiler=`set X $ac_compile; echo $2`
2373{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2374 (eval $ac_compiler --version </dev/null >&5) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2379 (eval $ac_compiler -v </dev/null >&5) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2384 (eval $ac_compiler -V </dev/null >&5) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }
2388
2389cat >conftest.$ac_ext <<_ACEOF
2390#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002391/* confdefs.h. */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002396
John Criswell7a73b802003-06-30 21:59:07 +00002397int
2398main ()
2399{
2400
2401 ;
2402 return 0;
2403}
2404_ACEOF
2405ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002406ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002407# Try to create an executable without -o first, disregard a.out.
2408# It will help us diagnose broken compilers, and finding out an intuition
2409# of exeext.
2410echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2411echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2412ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2414 (eval $ac_link_default) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 # Find the output, starting from the most likely. This scheme is
2419# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2420# resort.
2421
2422# Be careful to initialize this variable, since it used to be cached.
2423# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2424ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002425# b.out is created by i960 compilers.
2426for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2427do
2428 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002429 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2431 ;;
2432 conftest.$ac_ext )
2433 # This is the source file.
2434 ;;
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 # FIXME: I believe we export ac_cv_exeext for Libtool,
2442 # but it would be cool to find out if it's true. Does anybody
2443 # maintain Libtool? --akim.
2444 export ac_cv_exeext
2445 break;;
2446 * )
2447 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002448 esac
2449done
2450else
2451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002452sed 's/^/| /' conftest.$ac_ext >&5
2453
2454{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2455See \`config.log' for more details." >&5
2456echo "$as_me: error: C++ compiler cannot create executables
2457See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002458 { (exit 77); exit 77; }; }
2459fi
2460
2461ac_exeext=$ac_cv_exeext
2462echo "$as_me:$LINENO: result: $ac_file" >&5
2463echo "${ECHO_T}$ac_file" >&6
2464
2465# Check the compiler produces executables we can run. If not, either
2466# the compiler is broken, or we cross compile.
2467echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2468echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2469# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2470# If not cross compiling, check that we can run a simple program.
2471if test "$cross_compiling" != yes; then
2472 if { ac_try='./$ac_file'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 cross_compiling=no
2479 else
2480 if test "$cross_compiling" = maybe; then
2481 cross_compiling=yes
2482 else
2483 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002484If you meant to cross compile, use \`--host'.
2485See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002486echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002487If you meant to cross compile, use \`--host'.
2488See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002489 { (exit 1); exit 1; }; }
2490 fi
2491 fi
2492fi
2493echo "$as_me:$LINENO: result: yes" >&5
2494echo "${ECHO_T}yes" >&6
2495
John Criswell0c38eaf2003-09-10 15:17:25 +00002496rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002497ac_clean_files=$ac_clean_files_save
2498# Check the compiler produces executables we can run. If not, either
2499# the compiler is broken, or we cross compile.
2500echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2501echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2502echo "$as_me:$LINENO: result: $cross_compiling" >&5
2503echo "${ECHO_T}$cross_compiling" >&6
2504
2505echo "$as_me:$LINENO: checking for suffix of executables" >&5
2506echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2513# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2514# work properly (i.e., refer to `conftest.exe'), while it won't with
2515# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002516for ac_file in conftest.exe conftest conftest.*; do
2517 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002518 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002520 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 export ac_cv_exeext
2522 break;;
2523 * ) break;;
2524 esac
2525done
2526else
John Criswell0c38eaf2003-09-10 15:17:25 +00002527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528See \`config.log' for more details." >&5
2529echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002531 { (exit 1); exit 1; }; }
2532fi
2533
2534rm -f conftest$ac_cv_exeext
2535echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536echo "${ECHO_T}$ac_cv_exeext" >&6
2537
2538rm -f conftest.$ac_ext
2539EXEEXT=$ac_cv_exeext
2540ac_exeext=$EXEEXT
2541echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2543if test "${ac_cv_objext+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 cat >conftest.$ac_ext <<_ACEOF
2547#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002553
John Criswell7a73b802003-06-30 21:59:07 +00002554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.o conftest.obj
2563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; then
2568 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2569 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572 break;;
2573 esac
2574done
2575else
2576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580See \`config.log' for more details." >&5
2581echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002583 { (exit 1); exit 1; }; }
2584fi
2585
2586rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587fi
2588echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589echo "${ECHO_T}$ac_cv_objext" >&6
2590OBJEXT=$ac_cv_objext
2591ac_objext=$OBJEXT
2592echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2593echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2594if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597 cat >conftest.$ac_ext <<_ACEOF
2598#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002599/* confdefs.h. */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002604
John Criswell7a73b802003-06-30 21:59:07 +00002605int
2606main ()
2607{
2608#ifndef __GNUC__
2609 choke me
2610#endif
2611
2612 ;
2613 return 0;
2614}
2615_ACEOF
2616rm -f conftest.$ac_objext
2617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_compiler_gnu=yes
2629else
2630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002631sed 's/^/| /' conftest.$ac_ext >&5
2632
John Criswell7a73b802003-06-30 21:59:07 +00002633ac_compiler_gnu=no
2634fi
2635rm -f conftest.$ac_objext conftest.$ac_ext
2636ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2637
2638fi
2639echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2640echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641GXX=`test $ac_compiler_gnu = yes && echo yes`
2642ac_test_CXXFLAGS=${CXXFLAGS+set}
2643ac_save_CXXFLAGS=$CXXFLAGS
2644CXXFLAGS="-g"
2645echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2646echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647if test "${ac_cv_prog_cxx_g+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649else
2650 cat >conftest.$ac_ext <<_ACEOF
2651#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002652/* confdefs.h. */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002657
John Criswell7a73b802003-06-30 21:59:07 +00002658int
2659main ()
2660{
2661
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 ac_cv_prog_cxx_g=yes
2679else
2680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002681sed 's/^/| /' conftest.$ac_ext >&5
2682
John Criswell7a73b802003-06-30 21:59:07 +00002683ac_cv_prog_cxx_g=no
2684fi
2685rm -f conftest.$ac_objext conftest.$ac_ext
2686fi
2687echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2688echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2689if test "$ac_test_CXXFLAGS" = set; then
2690 CXXFLAGS=$ac_save_CXXFLAGS
2691elif test $ac_cv_prog_cxx_g = yes; then
2692 if test "$GXX" = yes; then
2693 CXXFLAGS="-g -O2"
2694 else
2695 CXXFLAGS="-g"
2696 fi
2697else
2698 if test "$GXX" = yes; then
2699 CXXFLAGS="-O2"
2700 else
2701 CXXFLAGS=
2702 fi
2703fi
2704for ac_declaration in \
2705 ''\
2706 '#include <stdlib.h>' \
2707 'extern "C" void std::exit (int) throw (); using std::exit;' \
2708 'extern "C" void std::exit (int); using std::exit;' \
2709 'extern "C" void exit (int) throw ();' \
2710 'extern "C" void exit (int);' \
2711 'void exit (int);'
2712do
2713 cat >conftest.$ac_ext <<_ACEOF
2714#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002720#include <stdlib.h>
2721$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002722int
2723main ()
2724{
2725exit (42);
2726 ;
2727 return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext
2731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 :
2743else
2744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002745sed 's/^/| /' conftest.$ac_ext >&5
2746
John Criswell7a73b802003-06-30 21:59:07 +00002747continue
2748fi
2749rm -f conftest.$ac_objext conftest.$ac_ext
2750 cat >conftest.$ac_ext <<_ACEOF
2751#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002757$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002758int
2759main ()
2760{
2761exit (42);
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 break
2779else
2780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002781sed 's/^/| /' conftest.$ac_ext >&5
2782
John Criswell7a73b802003-06-30 21:59:07 +00002783fi
2784rm -f conftest.$ac_objext conftest.$ac_ext
2785done
2786rm -f conftest*
2787if test -n "$ac_declaration"; then
2788 echo '#ifdef __cplusplus' >>confdefs.h
2789 echo $ac_declaration >>confdefs.h
2790 echo '#endif' >>confdefs.h
2791fi
2792
2793ac_ext=c
2794ac_cpp='$CPP $CPPFLAGS'
2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2804if test -n "$ac_tool_prefix"; then
2805 for ac_prog in gcc
2806 do
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809echo "$as_me:$LINENO: checking for $ac_word" >&5
2810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811if test "${ac_cv_prog_CC+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828done
2829done
2830
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
2835 echo "$as_me:$LINENO: result: $CC" >&5
2836echo "${ECHO_T}$CC" >&6
2837else
2838 echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6
2840fi
2841
2842 test -n "$CC" && break
2843 done
2844fi
2845if test -z "$CC"; then
2846 ac_ct_CC=$CC
2847 for ac_prog in gcc
2848do
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850set dummy $ac_prog; ac_word=$2
2851echo "$as_me:$LINENO: checking for $ac_word" >&5
2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856 if test -n "$ac_ct_CC"; then
2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_CC="$ac_prog"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870done
2871done
2872
2873fi
2874fi
2875ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876if test -n "$ac_ct_CC"; then
2877 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2878echo "${ECHO_T}$ac_ct_CC" >&6
2879else
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882fi
2883
2884 test -n "$ac_ct_CC" && break
2885done
2886
2887 CC=$ac_ct_CC
2888fi
2889
2890
John Criswell0c38eaf2003-09-10 15:17:25 +00002891test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2892See \`config.log' for more details." >&5
2893echo "$as_me: error: no acceptable C compiler found in \$PATH
2894See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002895 { (exit 1); exit 1; }; }
2896
2897# Provide some information about the compiler.
2898echo "$as_me:$LINENO:" \
2899 "checking for C compiler version" >&5
2900ac_compiler=`set X $ac_compile; echo $2`
2901{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2902 (eval $ac_compiler --version </dev/null >&5) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2907 (eval $ac_compiler -v </dev/null >&5) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2912 (eval $ac_compiler -V </dev/null >&5) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916
2917echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2918echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2919if test "${ac_cv_c_compiler_gnu+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 cat >conftest.$ac_ext <<_ACEOF
2923#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002924/* confdefs.h. */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002929
John Criswell7a73b802003-06-30 21:59:07 +00002930int
2931main ()
2932{
2933#ifndef __GNUC__
2934 choke me
2935#endif
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext
2942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -s conftest.$ac_objext'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 ac_compiler_gnu=yes
2954else
2955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002956sed 's/^/| /' conftest.$ac_ext >&5
2957
John Criswell7a73b802003-06-30 21:59:07 +00002958ac_compiler_gnu=no
2959fi
2960rm -f conftest.$ac_objext conftest.$ac_ext
2961ac_cv_c_compiler_gnu=$ac_compiler_gnu
2962
2963fi
2964echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2965echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2966GCC=`test $ac_compiler_gnu = yes && echo yes`
2967ac_test_CFLAGS=${CFLAGS+set}
2968ac_save_CFLAGS=$CFLAGS
2969CFLAGS="-g"
2970echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2971echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2972if test "${ac_cv_prog_cc_g+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974else
2975 cat >conftest.$ac_ext <<_ACEOF
2976#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002982
John Criswell7a73b802003-06-30 21:59:07 +00002983int
2984main ()
2985{
2986
2987 ;
2988 return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext
2992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_cv_prog_cc_g=yes
3004else
3005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003006sed 's/^/| /' conftest.$ac_ext >&5
3007
John Criswell7a73b802003-06-30 21:59:07 +00003008ac_cv_prog_cc_g=no
3009fi
3010rm -f conftest.$ac_objext conftest.$ac_ext
3011fi
3012echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3013echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3014if test "$ac_test_CFLAGS" = set; then
3015 CFLAGS=$ac_save_CFLAGS
3016elif test $ac_cv_prog_cc_g = yes; then
3017 if test "$GCC" = yes; then
3018 CFLAGS="-g -O2"
3019 else
3020 CFLAGS="-g"
3021 fi
3022else
3023 if test "$GCC" = yes; then
3024 CFLAGS="-O2"
3025 else
3026 CFLAGS=
3027 fi
3028fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003029echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3030echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3031if test "${ac_cv_prog_cc_stdc+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 ac_cv_prog_cc_stdc=no
3035ac_save_CC=$CC
3036cat >conftest.$ac_ext <<_ACEOF
3037#line $LINENO "configure"
3038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
3043#include <stdarg.h>
3044#include <stdio.h>
3045#include <sys/types.h>
3046#include <sys/stat.h>
3047/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3048struct buf { int x; };
3049FILE * (*rcsopen) (struct buf *, struct stat *, int);
3050static char *e (p, i)
3051 char **p;
3052 int i;
3053{
3054 return p[i];
3055}
3056static char *f (char * (*g) (char **, int), char **p, ...)
3057{
3058 char *s;
3059 va_list v;
3060 va_start (v,p);
3061 s = g (p, va_arg (v,int));
3062 va_end (v);
3063 return s;
3064}
3065int test (int i, double x);
3066struct s1 {int (*f) (int a);};
3067struct s2 {int (*f) (double a);};
3068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3069int argc;
3070char **argv;
3071int
3072main ()
3073{
3074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3075 ;
3076 return 0;
3077}
3078_ACEOF
3079# Don't try gcc -ansi; that turns off useful extensions and
3080# breaks some systems' header files.
3081# AIX -qlanglvl=ansi
3082# Ultrix and OSF/1 -std1
3083# HP-UX 10.20 and later -Ae
3084# HP-UX older versions -Aa -D_HPUX_SOURCE
3085# SVR4 -Xc -D__EXTENSIONS__
3086for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3087do
3088 CC="$ac_save_CC $ac_arg"
3089 rm -f conftest.$ac_objext
3090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 (eval $ac_try) 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 ac_cv_prog_cc_stdc=$ac_arg
3102break
3103else
3104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107fi
3108rm -f conftest.$ac_objext
3109done
3110rm -f conftest.$ac_ext conftest.$ac_objext
3111CC=$ac_save_CC
3112
3113fi
3114
3115case "x$ac_cv_prog_cc_stdc" in
3116 x|xno)
3117 echo "$as_me:$LINENO: result: none needed" >&5
3118echo "${ECHO_T}none needed" >&6 ;;
3119 *)
3120 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3121echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3122 CC="$CC $ac_cv_prog_cc_stdc" ;;
3123esac
3124
John Criswell7a73b802003-06-30 21:59:07 +00003125# Some people use a C++ compiler to compile C. Since we use `exit',
3126# in C++ we need to declare it. In case someone uses the same compiler
3127# for both compiling C and C++ we need to have the C++ compiler decide
3128# the declaration of exit, since it's the most demanding environment.
3129cat >conftest.$ac_ext <<_ACEOF
3130#ifndef __cplusplus
3131 choke me
3132#endif
3133_ACEOF
3134rm -f conftest.$ac_objext
3135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 for ac_declaration in \
3147 ''\
3148 '#include <stdlib.h>' \
3149 'extern "C" void std::exit (int) throw (); using std::exit;' \
3150 'extern "C" void std::exit (int); using std::exit;' \
3151 'extern "C" void exit (int) throw ();' \
3152 'extern "C" void exit (int);' \
3153 'void exit (int);'
3154do
3155 cat >conftest.$ac_ext <<_ACEOF
3156#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003162#include <stdlib.h>
3163$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003164int
3165main ()
3166{
3167exit (42);
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext
3173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 :
3185else
3186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003187sed 's/^/| /' conftest.$ac_ext >&5
3188
John Criswell7a73b802003-06-30 21:59:07 +00003189continue
3190fi
3191rm -f conftest.$ac_objext conftest.$ac_ext
3192 cat >conftest.$ac_ext <<_ACEOF
3193#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003194/* confdefs.h. */
3195_ACEOF
3196cat confdefs.h >>conftest.$ac_ext
3197cat >>conftest.$ac_ext <<_ACEOF
3198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003199$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003200int
3201main ()
3202{
3203exit (42);
3204 ;
3205 return 0;
3206}
3207_ACEOF
3208rm -f conftest.$ac_objext
3209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 break
3221else
3222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003223sed 's/^/| /' conftest.$ac_ext >&5
3224
John Criswell7a73b802003-06-30 21:59:07 +00003225fi
3226rm -f conftest.$ac_objext conftest.$ac_ext
3227done
3228rm -f conftest*
3229if test -n "$ac_declaration"; then
3230 echo '#ifdef __cplusplus' >>confdefs.h
3231 echo $ac_declaration >>confdefs.h
3232 echo '#endif' >>confdefs.h
3233fi
3234
3235else
3236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003237sed 's/^/| /' conftest.$ac_ext >&5
3238
John Criswell7a73b802003-06-30 21:59:07 +00003239fi
3240rm -f conftest.$ac_objext conftest.$ac_ext
3241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
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
3252echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3253echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3254# On Suns, sometimes $CPP names a directory.
3255if test -n "$CPP" && test -d "$CPP"; then
3256 CPP=
3257fi
3258if test -z "$CPP"; then
3259 if test "${ac_cv_prog_CPP+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262 # Double quotes because CPP needs to be expanded
3263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3264 do
3265 ac_preproc_ok=false
3266for ac_c_preproc_warn_flag in '' yes
3267do
3268 # Use a header file that comes with gcc, so configuring glibc
3269 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp. "Syntax error" is here to catch this case.
3274 cat >conftest.$ac_ext <<_ACEOF
3275#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281#ifdef __STDC__
3282# include <limits.h>
3283#else
3284# include <assert.h>
3285#endif
John Criswell7a73b802003-06-30 21:59:07 +00003286 Syntax error
3287_ACEOF
3288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3290 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003291 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_c_preproc_warn_flag
3298 else
3299 ac_cpp_err=
3300 fi
3301else
3302 ac_cpp_err=yes
3303fi
3304if test -z "$ac_cpp_err"; then
3305 :
3306else
3307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003308sed 's/^/| /' conftest.$ac_ext >&5
3309
John Criswell7a73b802003-06-30 21:59:07 +00003310 # Broken: fails on valid input.
3311continue
3312fi
3313rm -f conftest.err conftest.$ac_ext
3314
3315 # OK, works on sane cases. Now check whether non-existent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3318#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003324#include <ac_nonexistent.h>
3325_ACEOF
3326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3328 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003329 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } >/dev/null; then
3334 if test -s conftest.err; then
3335 ac_cpp_err=$ac_c_preproc_warn_flag
3336 else
3337 ac_cpp_err=
3338 fi
3339else
3340 ac_cpp_err=yes
3341fi
3342if test -z "$ac_cpp_err"; then
3343 # Broken: success on invalid input.
3344continue
3345else
3346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003347sed 's/^/| /' conftest.$ac_ext >&5
3348
John Criswell7a73b802003-06-30 21:59:07 +00003349 # Passes both tests.
3350ac_preproc_ok=:
3351break
3352fi
3353rm -f conftest.err conftest.$ac_ext
3354
3355done
3356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357rm -f conftest.err conftest.$ac_ext
3358if $ac_preproc_ok; then
3359 break
3360fi
3361
3362 done
3363 ac_cv_prog_CPP=$CPP
3364
3365fi
3366 CPP=$ac_cv_prog_CPP
3367else
3368 ac_cv_prog_CPP=$CPP
3369fi
3370echo "$as_me:$LINENO: result: $CPP" >&5
3371echo "${ECHO_T}$CPP" >&6
3372ac_preproc_ok=false
3373for ac_c_preproc_warn_flag in '' yes
3374do
3375 # Use a header file that comes with gcc, so configuring glibc
3376 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat >conftest.$ac_ext <<_ACEOF
3382#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388#ifdef __STDC__
3389# include <limits.h>
3390#else
3391# include <assert.h>
3392#endif
John Criswell7a73b802003-06-30 21:59:07 +00003393 Syntax error
3394_ACEOF
3395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3397 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003398 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 else
3406 ac_cpp_err=
3407 fi
3408else
3409 ac_cpp_err=yes
3410fi
3411if test -z "$ac_cpp_err"; then
3412 :
3413else
3414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003415sed 's/^/| /' conftest.$ac_ext >&5
3416
John Criswell7a73b802003-06-30 21:59:07 +00003417 # Broken: fails on valid input.
3418continue
3419fi
3420rm -f conftest.err conftest.$ac_ext
3421
3422 # OK, works on sane cases. Now check whether non-existent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3425#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003431#include <ac_nonexistent.h>
3432_ACEOF
3433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3435 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003436 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 else
3444 ac_cpp_err=
3445 fi
3446else
3447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
3450 # Broken: success on invalid input.
3451continue
3452else
3453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003454sed 's/^/| /' conftest.$ac_ext >&5
3455
John Criswell7a73b802003-06-30 21:59:07 +00003456 # Passes both tests.
3457ac_preproc_ok=:
3458break
3459fi
3460rm -f conftest.err conftest.$ac_ext
3461
3462done
3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464rm -f conftest.err conftest.$ac_ext
3465if $ac_preproc_ok; then
3466 :
3467else
John Criswell0c38eaf2003-09-10 15:17:25 +00003468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3469See \`config.log' for more details." >&5
3470echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3471See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003472 { (exit 1); exit 1; }; }
3473fi
3474
3475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
3481
3482if test "$GCC" != "yes"
3483then
3484 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3485echo "$as_me: error: gcc required but not found" >&2;}
3486 { (exit 1); exit 1; }; }
3487fi
3488
3489if test "$GXX" != "yes"
3490then
3491 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3492echo "$as_me: error: g++ required but not found" >&2;}
3493 { (exit 1); exit 1; }; }
3494fi
3495
John Criswellde00db22003-08-25 16:49:54 +00003496gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3497if test "$gccmajor" -lt "3"
3498then
3499 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3500echo "$as_me: error: gcc 3.x required" >&2;}
3501 { (exit 1); exit 1; }; }
3502fi
3503
John Criswell7a73b802003-06-30 21:59:07 +00003504 echo "$as_me:$LINENO: checking for GNU make" >&5
3505echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3506if test "${_cv_gnu_make_command+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 _cv_gnu_make_command='' ;
3510 for a in "$MAKE" make gmake gnumake ; do
3511 if test -z "$a" ; then continue ; fi ;
3512 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3513 _cv_gnu_make_command=$a ;
3514 break;
3515 fi
3516 done ;
3517
3518fi
3519echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3520echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3521 if test "x$_cv_gnu_make_command" != "x" ; then
3522 ifGNUmake='' ;
3523 else
3524 ifGNUmake='#' ;
3525 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3526echo "${ECHO_T}\"Not found\"" >&6;
3527 fi
3528
3529
3530if test -z "$_cv_gnu_make_command"
3531then
3532 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3533echo "$as_me: error: GNU Make required but not found" >&2;}
3534 { (exit 1); exit 1; }; }
3535fi
3536
3537
3538echo "$as_me:$LINENO: checking " >&5
3539echo $ECHO_N "checking ... $ECHO_C" >&6
3540if test "${ac_cv_has_flex+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 for ac_prog in flex lex
3544do
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546set dummy $ac_prog; ac_word=$2
3547echo "$as_me:$LINENO: checking for $ac_word" >&5
3548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549if test "${ac_cv_prog_LEX+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 if test -n "$LEX"; then
3553 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3554else
3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556for as_dir in $PATH
3557do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_LEX="$ac_prog"
3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566done
3567done
3568
3569fi
3570fi
3571LEX=$ac_cv_prog_LEX
3572if test -n "$LEX"; then
3573 echo "$as_me:$LINENO: result: $LEX" >&5
3574echo "${ECHO_T}$LEX" >&6
3575else
3576 echo "$as_me:$LINENO: result: no" >&5
3577echo "${ECHO_T}no" >&6
3578fi
3579
3580 test -n "$LEX" && break
3581done
3582test -n "$LEX" || LEX=":"
3583
3584if test -z "$LEXLIB"
3585then
3586 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3587echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3588if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591 ac_check_lib_save_LIBS=$LIBS
3592LIBS="-lfl $LIBS"
3593cat >conftest.$ac_ext <<_ACEOF
3594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003600
3601/* Override any gcc2 internal prototype to avoid an error. */
3602#ifdef __cplusplus
3603extern "C"
3604#endif
3605/* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3607char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003608int
3609main ()
3610{
3611yywrap ();
3612 ;
3613 return 0;
3614}
3615_ACEOF
3616rm -f conftest.$ac_objext conftest$ac_exeext
3617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_lib_fl_yywrap=yes
3629else
3630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003631sed 's/^/| /' conftest.$ac_ext >&5
3632
John Criswell7a73b802003-06-30 21:59:07 +00003633ac_cv_lib_fl_yywrap=no
3634fi
3635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3636LIBS=$ac_check_lib_save_LIBS
3637fi
3638echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3639echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3640if test $ac_cv_lib_fl_yywrap = yes; then
3641 LEXLIB="-lfl"
3642else
3643 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3644echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3645if test "${ac_cv_lib_l_yywrap+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648 ac_check_lib_save_LIBS=$LIBS
3649LIBS="-ll $LIBS"
3650cat >conftest.$ac_ext <<_ACEOF
3651#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003657
3658/* Override any gcc2 internal prototype to avoid an error. */
3659#ifdef __cplusplus
3660extern "C"
3661#endif
3662/* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3664char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003665int
3666main ()
3667{
3668yywrap ();
3669 ;
3670 return 0;
3671}
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -s conftest$ac_exeext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_lib_l_yywrap=yes
3686else
3687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003688sed 's/^/| /' conftest.$ac_ext >&5
3689
John Criswell7a73b802003-06-30 21:59:07 +00003690ac_cv_lib_l_yywrap=no
3691fi
3692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3693LIBS=$ac_check_lib_save_LIBS
3694fi
3695echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3696echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3697if test $ac_cv_lib_l_yywrap = yes; then
3698 LEXLIB="-ll"
3699fi
3700
3701fi
3702
3703fi
3704
3705if test "x$LEX" != "x:"; then
3706 echo "$as_me:$LINENO: checking lex output file root" >&5
3707echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3708if test "${ac_cv_prog_lex_root+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 # The minimal lex program is just a single line: %%. But some broken lexes
3712# (Solaris, I think it was) want two %% lines, so accommodate them.
3713cat >conftest.l <<_ACEOF
3714%%
3715%%
3716_ACEOF
3717{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3718 (eval $LEX conftest.l) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }
3722if test -f lex.yy.c; then
3723 ac_cv_prog_lex_root=lex.yy
3724elif test -f lexyy.c; then
3725 ac_cv_prog_lex_root=lexyy
3726else
3727 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3728echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3729 { (exit 1); exit 1; }; }
3730fi
3731fi
3732echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3733echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3734rm -f conftest.l
3735LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3736
3737echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3738echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3739if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 # POSIX says lex can declare yytext either as a pointer or an array; the
3743# default is implementation-dependent. Figure out which it is, since
3744# not all implementations provide the %pointer and %array declarations.
3745ac_cv_prog_lex_yytext_pointer=no
3746echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3747ac_save_LIBS=$LIBS
3748LIBS="$LIBS $LEXLIB"
3749cat >conftest.$ac_ext <<_ACEOF
3750`cat $LEX_OUTPUT_ROOT.c`
3751_ACEOF
3752rm -f conftest.$ac_objext conftest$ac_exeext
3753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754 (eval $ac_link) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -s conftest$ac_exeext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 ac_cv_prog_lex_yytext_pointer=yes
3765else
3766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003767sed 's/^/| /' conftest.$ac_ext >&5
3768
John Criswell7a73b802003-06-30 21:59:07 +00003769fi
3770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3771LIBS=$ac_save_LIBS
3772rm -f "${LEX_OUTPUT_ROOT}.c"
3773
3774fi
3775echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3776echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3777if test $ac_cv_prog_lex_yytext_pointer = yes; then
3778
3779cat >>confdefs.h <<\_ACEOF
3780#define YYTEXT_POINTER 1
3781_ACEOF
3782
3783fi
3784
3785fi
3786
3787fi
3788echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3789echo "${ECHO_T}$ac_cv_has_flex" >&6
3790if test "$LEX" != "flex"; then
3791 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3792echo "$as_me: error: flex not found but required" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
3796echo "$as_me:$LINENO: checking " >&5
3797echo $ECHO_N "checking ... $ECHO_C" >&6
3798if test "${ac_cv_has_bison+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 for ac_prog in 'bison -y' byacc
3802do
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804set dummy $ac_prog; ac_word=$2
3805echo "$as_me:$LINENO: checking for $ac_word" >&5
3806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807if test "${ac_cv_prog_YACC+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810 if test -n "$YACC"; then
3811 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_YACC="$ac_prog"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824done
3825done
3826
3827fi
3828fi
3829YACC=$ac_cv_prog_YACC
3830if test -n "$YACC"; then
3831 echo "$as_me:$LINENO: result: $YACC" >&5
3832echo "${ECHO_T}$YACC" >&6
3833else
3834 echo "$as_me:$LINENO: result: no" >&5
3835echo "${ECHO_T}no" >&6
3836fi
3837
3838 test -n "$YACC" && break
3839done
3840test -n "$YACC" || YACC="yacc"
3841
3842
3843fi
3844echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3845echo "${ECHO_T}$ac_cv_has_bison" >&6
3846if test "$YACC" != "bison -y"; then
3847 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3848echo "$as_me: error: bison not found but required" >&2;}
3849 { (exit 1); exit 1; }; }
3850else
3851 YACC=bison
3852
3853fi
3854
3855
3856# Check whether --enable-shared or --disable-shared was given.
3857if test "${enable_shared+set}" = set; then
3858 enableval="$enable_shared"
3859 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003860 case $enableval in
3861 yes) enable_shared=yes ;;
3862 no) enable_shared=no ;;
3863 *)
3864 enable_shared=no
3865 # Look at the argument we got. We use all the common list separators.
3866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3867 for pkg in $enableval; do
3868 IFS="$lt_save_ifs"
3869 if test "X$pkg" = "X$p"; then
3870 enable_shared=yes
3871 fi
3872 done
3873 IFS="$lt_save_ifs"
3874 ;;
3875 esac
John Criswell7a73b802003-06-30 21:59:07 +00003876else
3877 enable_shared=yes
3878fi;
John Criswell47fdd832003-07-14 16:52:07 +00003879
John Criswell7a73b802003-06-30 21:59:07 +00003880# Check whether --enable-static or --disable-static was given.
3881if test "${enable_static+set}" = set; then
3882 enableval="$enable_static"
3883 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003884 case $enableval in
3885 yes) enable_static=yes ;;
3886 no) enable_static=no ;;
3887 *)
3888 enable_static=no
3889 # Look at the argument we got. We use all the common list separators.
3890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3891 for pkg in $enableval; do
3892 IFS="$lt_save_ifs"
3893 if test "X$pkg" = "X$p"; then
3894 enable_static=yes
3895 fi
3896 done
3897 IFS="$lt_save_ifs"
3898 ;;
3899 esac
John Criswell7a73b802003-06-30 21:59:07 +00003900else
3901 enable_static=yes
3902fi;
John Criswell47fdd832003-07-14 16:52:07 +00003903
John Criswell7a73b802003-06-30 21:59:07 +00003904# Check whether --enable-fast-install or --disable-fast-install was given.
3905if test "${enable_fast_install+set}" = set; then
3906 enableval="$enable_fast_install"
3907 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003908 case $enableval in
3909 yes) enable_fast_install=yes ;;
3910 no) enable_fast_install=no ;;
3911 *)
3912 enable_fast_install=no
3913 # Look at the argument we got. We use all the common list separators.
3914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3915 for pkg in $enableval; do
3916 IFS="$lt_save_ifs"
3917 if test "X$pkg" = "X$p"; then
3918 enable_fast_install=yes
3919 fi
3920 done
3921 IFS="$lt_save_ifs"
3922 ;;
3923 esac
John Criswell7a73b802003-06-30 21:59:07 +00003924else
3925 enable_fast_install=yes
3926fi;
John Criswell47fdd832003-07-14 16:52:07 +00003927
3928echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3929echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3930if test "${lt_cv_path_SED+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 # Loop through the user's path and test for sed and gsed.
3934# Then use that list of sed's as ones to test for truncation.
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for lt_ac_prog in sed gsed; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3943 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3944 fi
3945 done
3946 done
3947done
3948lt_ac_max=0
3949lt_ac_count=0
3950# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3951# along with /bin/sed that truncates output.
3952for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3953 test ! -f $lt_ac_sed && break
3954 cat /dev/null > conftest.in
3955 lt_ac_count=0
3956 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3957 # Check for GNU sed and select it if it is found.
3958 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3959 lt_cv_path_SED=$lt_ac_sed
3960 break
3961 fi
3962 while true; do
3963 cat conftest.in conftest.in >conftest.tmp
3964 mv conftest.tmp conftest.in
3965 cp conftest.in conftest.nl
3966 echo >>conftest.nl
3967 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3968 cmp -s conftest.out conftest.nl || break
3969 # 10000 chars as input seems more than enough
3970 test $lt_ac_count -gt 10 && break
3971 lt_ac_count=`expr $lt_ac_count + 1`
3972 if test $lt_ac_count -gt $lt_ac_max; then
3973 lt_ac_max=$lt_ac_count
3974 lt_cv_path_SED=$lt_ac_sed
3975 fi
3976 done
3977done
3978SED=$lt_cv_path_SED
3979
John Criswell7a73b802003-06-30 21:59:07 +00003980fi
3981
John Criswell47fdd832003-07-14 16:52:07 +00003982echo "$as_me:$LINENO: result: $SED" >&5
3983echo "${ECHO_T}$SED" >&6
3984
3985echo "$as_me:$LINENO: checking for egrep" >&5
3986echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3987if test "${ac_cv_prog_egrep+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3991 then ac_cv_prog_egrep='grep -E'
3992 else ac_cv_prog_egrep='egrep'
3993 fi
3994fi
3995echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3996echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3997 EGREP=$ac_cv_prog_egrep
3998
3999
John Criswell7a73b802003-06-30 21:59:07 +00004000
4001# Check whether --with-gnu-ld or --without-gnu-ld was given.
4002if test "${with_gnu_ld+set}" = set; then
4003 withval="$with_gnu_ld"
4004 test "$withval" = no || with_gnu_ld=yes
4005else
4006 with_gnu_ld=no
4007fi;
4008ac_prog=ld
4009if test "$GCC" = yes; then
4010 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004011 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4012echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004013 case $host in
4014 *-*-mingw*)
4015 # gcc leaves a trailing carriage return which upsets mingw
4016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4017 *)
4018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4019 esac
4020 case $ac_prog in
4021 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004022 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004023 re_direlt='/[^/][^/]*/\.\./'
4024 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004025 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004027 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004028 done
4029 test -z "$LD" && LD="$ac_prog"
4030 ;;
4031 "")
4032 # If it fails, then pretend we aren't using GCC.
4033 ac_prog=ld
4034 ;;
4035 *)
4036 # If it is relative, then search for the first ld in PATH.
4037 with_gnu_ld=unknown
4038 ;;
4039 esac
4040elif test "$with_gnu_ld" = yes; then
4041 echo "$as_me:$LINENO: checking for GNU ld" >&5
4042echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4043else
4044 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4045echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4046fi
4047if test "${lt_cv_path_LD+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004052 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004053 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004054 test -z "$ac_dir" && ac_dir=.
4055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4056 lt_cv_path_LD="$ac_dir/$ac_prog"
4057 # Check to see if the program is GNU ld. I'd rather use --version,
4058 # but apparently some GNU ld's only accept -v.
4059 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4061 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004062 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004063 ;;
4064 *)
John Criswell7a73b802003-06-30 21:59:07 +00004065 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004066 ;;
4067 esac
John Criswell7a73b802003-06-30 21:59:07 +00004068 fi
4069 done
John Criswell47fdd832003-07-14 16:52:07 +00004070 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004071else
4072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4073fi
4074fi
4075
4076LD="$lt_cv_path_LD"
4077if test -n "$LD"; then
4078 echo "$as_me:$LINENO: result: $LD" >&5
4079echo "${ECHO_T}$LD" >&6
4080else
4081 echo "$as_me:$LINENO: result: no" >&5
4082echo "${ECHO_T}no" >&6
4083fi
4084test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4085echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4086 { (exit 1); exit 1; }; }
4087echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4088echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4089if test "${lt_cv_prog_gnu_ld+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004093case `"$LD" -v 2>&1 </dev/null` in
4094*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004095 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004096 ;;
4097*)
John Criswell7a73b802003-06-30 21:59:07 +00004098 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004099 ;;
4100esac
John Criswell7a73b802003-06-30 21:59:07 +00004101fi
4102echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4103echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4104with_gnu_ld=$lt_cv_prog_gnu_ld
4105
4106
4107echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4108echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4109if test "${lt_cv_ld_reload_flag+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112 lt_cv_ld_reload_flag='-r'
4113fi
4114echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4115echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4116reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004117case $reload_flag in
4118"" | " "*) ;;
4119*) reload_flag=" $reload_flag" ;;
4120esac
4121reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004122
4123echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4124echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4125if test "${lt_cv_path_NM+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 if test -n "$NM"; then
4129 # Let the user override the test.
4130 lt_cv_path_NM="$NM"
4131else
John Criswell47fdd832003-07-14 16:52:07 +00004132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004133 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004134 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004135 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004136 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4137 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004138 # Check to see if the nm accepts a BSD-compat flag.
4139 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4140 # nm: unknown option "B" ignored
4141 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004142 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4143 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004144 lt_cv_path_NM="$tmp_nm -B"
4145 break
John Criswell47fdd832003-07-14 16:52:07 +00004146 ;;
4147 *)
4148 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4149 */dev/null*)
4150 lt_cv_path_NM="$tmp_nm -p"
4151 break
4152 ;;
4153 *)
4154 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4155 continue # so that we can try to find one that supports BSD flags
4156 ;;
4157 esac
4158 esac
John Criswell7a73b802003-06-30 21:59:07 +00004159 fi
4160 done
John Criswell47fdd832003-07-14 16:52:07 +00004161 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004162 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4163fi
4164fi
John Criswell47fdd832003-07-14 16:52:07 +00004165echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4166echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004167NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004168
4169echo "$as_me:$LINENO: checking whether ln -s works" >&5
4170echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4171LN_S=$as_ln_s
4172if test "$LN_S" = "ln -s"; then
4173 echo "$as_me:$LINENO: result: yes" >&5
4174echo "${ECHO_T}yes" >&6
4175else
4176 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4177echo "${ECHO_T}no, using $LN_S" >&6
4178fi
4179
John Criswell47fdd832003-07-14 16:52:07 +00004180echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4181echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004182if test "${lt_cv_deplibs_check_method+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185 lt_cv_file_magic_cmd='$MAGIC_CMD'
4186lt_cv_file_magic_test_file=
4187lt_cv_deplibs_check_method='unknown'
4188# Need to set the preceding variable on all platforms that support
4189# interlibrary dependencies.
4190# 'none' -- dependencies not supported.
4191# `unknown' -- same as none, but documents that we really don't know.
4192# 'pass_all' -- all dependencies passed with no checks.
4193# 'test_compile' -- check by making test program.
4194# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004195# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004196# If you have `file' or equivalent on your system and you're not sure
4197# whether `pass_all' will *always* work, you probably want this one.
4198
4199case $host_os in
4200aix4* | aix5*)
4201 lt_cv_deplibs_check_method=pass_all
4202 ;;
4203
4204beos*)
4205 lt_cv_deplibs_check_method=pass_all
4206 ;;
4207
4208bsdi4*)
4209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4210 lt_cv_file_magic_cmd='/usr/bin/file -L'
4211 lt_cv_file_magic_test_file=/shlib/libc.so
4212 ;;
4213
4214cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004215 # win32_libid is a shell function defined in ltmain.sh
4216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4217 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004218 ;;
4219
4220darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004221 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004222 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4223 lt_cv_file_magic_cmd='/usr/bin/file -L'
4224 case "$host_os" in
4225 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004226 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004227 ;;
4228 *) # Darwin 1.3 on
4229 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4230 ;;
4231 esac
John Criswell47fdd832003-07-14 16:52:07 +00004232 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004233 ;;
4234
4235freebsd*)
4236 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4237 case $host_cpu in
4238 i*86 )
4239 # Not sure whether the presence of OpenBSD here was a mistake.
4240 # Let's accept both of them until this is cleared up.
4241 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4242 lt_cv_file_magic_cmd=/usr/bin/file
4243 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4244 ;;
4245 esac
4246 else
4247 lt_cv_deplibs_check_method=pass_all
4248 fi
4249 ;;
4250
4251gnu*)
4252 lt_cv_deplibs_check_method=pass_all
4253 ;;
4254
John Criswell47fdd832003-07-14 16:52:07 +00004255hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004256 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004257 case "$host_cpu" in
4258 ia64*)
4259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4260 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4261 ;;
4262 hppa*64*)
4263 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]'
4264 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4265 ;;
4266 *)
4267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4268 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4269 ;;
4270 esac
John Criswell7a73b802003-06-30 21:59:07 +00004271 ;;
4272
John Criswell47fdd832003-07-14 16:52:07 +00004273irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004274 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004275 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004276 # this will be overridden with pass_all, but let us keep it just in case
4277 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4278 ;;
4279 *)
4280 case $LD in
4281 *-32|*"-32 ") libmagic=32-bit;;
4282 *-n32|*"-n32 ") libmagic=N32;;
4283 *-64|*"-64 ") libmagic=64-bit;;
4284 *) libmagic=never-match;;
4285 esac
4286 # this will be overridden with pass_all, but let us keep it just in case
4287 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4288 ;;
4289 esac
4290 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4291 lt_cv_deplibs_check_method=pass_all
4292 ;;
4293
4294# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004295linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004296 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004297 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004298 lt_cv_deplibs_check_method=pass_all ;;
4299 *)
4300 # glibc up to 2.1.1 does not perform some relocations on ARM
4301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4302 esac
4303 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4304 ;;
4305
4306netbsd*)
4307 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004309 else
John Criswell47fdd832003-07-14 16:52:07 +00004310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004311 fi
4312 ;;
4313
4314newos6*)
4315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4316 lt_cv_file_magic_cmd=/usr/bin/file
4317 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4318 ;;
4319
John Criswell47fdd832003-07-14 16:52:07 +00004320nto-qnx)
4321 lt_cv_deplibs_check_method=unknown
4322 ;;
4323
John Criswell7a73b802003-06-30 21:59:07 +00004324openbsd*)
4325 lt_cv_file_magic_cmd=/usr/bin/file
4326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4329 else
4330 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4331 fi
4332 ;;
4333
4334osf3* | osf4* | osf5*)
4335 # this will be overridden with pass_all, but let us keep it just in case
4336 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4337 lt_cv_file_magic_test_file=/shlib/libc.so
4338 lt_cv_deplibs_check_method=pass_all
4339 ;;
4340
4341sco3.2v5*)
4342 lt_cv_deplibs_check_method=pass_all
4343 ;;
4344
4345solaris*)
4346 lt_cv_deplibs_check_method=pass_all
4347 lt_cv_file_magic_test_file=/lib/libc.so
4348 ;;
4349
John Criswell7a73b802003-06-30 21:59:07 +00004350sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4351 case $host_vendor in
4352 motorola)
4353 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]'
4354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4355 ;;
4356 ncr)
4357 lt_cv_deplibs_check_method=pass_all
4358 ;;
4359 sequent)
4360 lt_cv_file_magic_cmd='/bin/file'
4361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4362 ;;
4363 sni)
4364 lt_cv_file_magic_cmd='/bin/file'
4365 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4366 lt_cv_file_magic_test_file=/lib/libc.so
4367 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004368 siemens)
4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004371 esac
4372 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004373
4374sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4375 lt_cv_deplibs_check_method=pass_all
4376 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004377esac
4378
4379fi
4380echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4381echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4382file_magic_cmd=$lt_cv_file_magic_cmd
4383deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004384test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004385
4386
4387
4388
John Criswell47fdd832003-07-14 16:52:07 +00004389# If no C compiler was specified, use CC.
4390LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004391
John Criswell47fdd832003-07-14 16:52:07 +00004392# Allow CC to be a program name with arguments.
4393compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004394
John Criswell47fdd832003-07-14 16:52:07 +00004395# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4396if test "${enable_libtool_lock+set}" = set; then
4397 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004398
John Criswell47fdd832003-07-14 16:52:07 +00004399fi;
4400test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004401
John Criswell47fdd832003-07-14 16:52:07 +00004402# Some flags need to be propagated to the compiler or linker for good
4403# libtool support.
4404case $host in
4405ia64-*-hpux*)
4406 # Find out which ABI we are using.
4407 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004413 case `/usr/bin/file conftest.$ac_objext` in
4414 *ELF-32*)
4415 HPUX_IA64_MODE="32"
4416 ;;
4417 *ELF-64*)
4418 HPUX_IA64_MODE="64"
4419 ;;
4420 esac
4421 fi
4422 rm -rf conftest*
4423 ;;
4424*-*-irix6*)
4425 # Find out which ABI we are using.
John Criswellf424d742003-10-07 21:13:47 +00004426 echo '#line 4426 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004431 (exit $ac_status); }; then
4432 if test "$lt_cv_prog_gnu_ld" = yes; then
4433 case `/usr/bin/file conftest.$ac_objext` in
4434 *32-bit*)
4435 LD="${LD-ld} -melf32bsmip"
4436 ;;
4437 *N32*)
4438 LD="${LD-ld} -melf32bmipn32"
4439 ;;
4440 *64-bit*)
4441 LD="${LD-ld} -melf64bmip"
4442 ;;
4443 esac
4444 else
4445 case `/usr/bin/file conftest.$ac_objext` in
4446 *32-bit*)
4447 LD="${LD-ld} -32"
4448 ;;
4449 *N32*)
4450 LD="${LD-ld} -n32"
4451 ;;
4452 *64-bit*)
4453 LD="${LD-ld} -64"
4454 ;;
4455 esac
4456 fi
4457 fi
4458 rm -rf conftest*
4459 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004460
John Criswell47fdd832003-07-14 16:52:07 +00004461x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4462 # Find out which ABI we are using.
4463 echo 'int i;' > conftest.$ac_ext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; then
4469 case "`/usr/bin/file conftest.o`" in
4470 *32-bit*)
4471 case $host in
4472 x86_64-*linux*)
4473 LD="${LD-ld} -m elf_i386"
4474 ;;
4475 ppc64-*linux*)
4476 LD="${LD-ld} -m elf32ppclinux"
4477 ;;
4478 s390x-*linux*)
4479 LD="${LD-ld} -m elf_s390"
4480 ;;
4481 sparc64-*linux*)
4482 LD="${LD-ld} -m elf32_sparc"
4483 ;;
4484 esac
4485 ;;
4486 *64-bit*)
4487 case $host in
4488 x86_64-*linux*)
4489 LD="${LD-ld} -m elf_x86_64"
4490 ;;
4491 ppc*-*linux*|powerpc*-*linux*)
4492 LD="${LD-ld} -m elf64ppc"
4493 ;;
4494 s390*-*linux*)
4495 LD="${LD-ld} -m elf64_s390"
4496 ;;
4497 sparc*-*linux*)
4498 LD="${LD-ld} -m elf64_sparc"
4499 ;;
4500 esac
4501 ;;
4502 esac
4503 fi
4504 rm -rf conftest*
4505 ;;
4506
4507*-*-sco3.2v5*)
4508 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4509 SAVE_CFLAGS="$CFLAGS"
4510 CFLAGS="$CFLAGS -belf"
4511 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4512echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4513if test "${lt_cv_cc_needs_belf+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 ac_ext=c
4517ac_cpp='$CPP $CPPFLAGS'
4518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521
4522 cat >conftest.$ac_ext <<_ACEOF
4523#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004529
John Criswell47fdd832003-07-14 16:52:07 +00004530int
4531main ()
John Criswell7a73b802003-06-30 21:59:07 +00004532{
John Criswell7a73b802003-06-30 21:59:07 +00004533
John Criswell47fdd832003-07-14 16:52:07 +00004534 ;
4535 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004536}
John Criswell47fdd832003-07-14 16:52:07 +00004537_ACEOF
4538rm -f conftest.$ac_objext conftest$ac_exeext
4539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004540 (eval $ac_link) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest$ac_exeext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004551else
John Criswell47fdd832003-07-14 16:52:07 +00004552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004553sed 's/^/| /' conftest.$ac_ext >&5
4554
John Criswell47fdd832003-07-14 16:52:07 +00004555lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004556fi
John Criswell47fdd832003-07-14 16:52:07 +00004557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4558 ac_ext=c
4559ac_cpp='$CPP $CPPFLAGS'
4560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
John Criswell7a73b802003-06-30 21:59:07 +00004564fi
John Criswell47fdd832003-07-14 16:52:07 +00004565echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4566echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4567 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4568 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4569 CFLAGS="$SAVE_CFLAGS"
4570 fi
4571 ;;
4572
4573esac
4574
4575need_locks="$enable_libtool_lock"
4576
John Criswell7a73b802003-06-30 21:59:07 +00004577
4578
4579echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4580echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4581if test "${ac_cv_header_stdc+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 cat >conftest.$ac_ext <<_ACEOF
4585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004586/* confdefs.h. */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004591#include <stdlib.h>
4592#include <stdarg.h>
4593#include <string.h>
4594#include <float.h>
4595
John Criswell0c38eaf2003-09-10 15:17:25 +00004596int
4597main ()
4598{
4599
4600 ;
4601 return 0;
4602}
John Criswell7a73b802003-06-30 21:59:07 +00004603_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004604rm -f conftest.$ac_objext
4605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004607 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004609 (exit $ac_status); } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004616 ac_cv_header_stdc=yes
4617else
4618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004622fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004623rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004624
4625if test $ac_cv_header_stdc = yes; then
4626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4627 cat >conftest.$ac_ext <<_ACEOF
4628#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004634#include <string.h>
4635
4636_ACEOF
4637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004638 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004639 :
4640else
4641 ac_cv_header_stdc=no
4642fi
4643rm -f conftest*
4644
4645fi
4646
4647if test $ac_cv_header_stdc = yes; then
4648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4649 cat >conftest.$ac_ext <<_ACEOF
4650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004656#include <stdlib.h>
4657
4658_ACEOF
4659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004660 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004661 :
4662else
4663 ac_cv_header_stdc=no
4664fi
4665rm -f conftest*
4666
4667fi
4668
4669if test $ac_cv_header_stdc = yes; then
4670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4671 if test "$cross_compiling" = yes; then
4672 :
4673else
4674 cat >conftest.$ac_ext <<_ACEOF
4675#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004676/* confdefs.h. */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004681#include <ctype.h>
4682#if ((' ' & 0x0FF) == 0x020)
4683# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4684# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4685#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004686# define ISLOWER(c) \
4687 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004688 || ('j' <= (c) && (c) <= 'r') \
4689 || ('s' <= (c) && (c) <= 'z'))
4690# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4691#endif
4692
4693#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4694int
4695main ()
4696{
4697 int i;
4698 for (i = 0; i < 256; i++)
4699 if (XOR (islower (i), ISLOWER (i))
4700 || toupper (i) != TOUPPER (i))
4701 exit(2);
4702 exit (0);
4703}
4704_ACEOF
4705rm -f conftest$ac_exeext
4706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707 (eval $ac_link) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 :
4717else
4718 echo "$as_me: program exited with status $ac_status" >&5
4719echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004720sed 's/^/| /' conftest.$ac_ext >&5
4721
John Criswell7a73b802003-06-30 21:59:07 +00004722( exit $ac_status )
4723ac_cv_header_stdc=no
4724fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004725rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004726fi
4727fi
4728fi
4729echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4730echo "${ECHO_T}$ac_cv_header_stdc" >&6
4731if test $ac_cv_header_stdc = yes; then
4732
4733cat >>confdefs.h <<\_ACEOF
4734#define STDC_HEADERS 1
4735_ACEOF
4736
4737fi
4738
4739# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4750 inttypes.h stdint.h unistd.h
4751do
4752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4753echo "$as_me:$LINENO: checking for $ac_header" >&5
4754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4755if eval "test \"\${$as_ac_Header+set}\" = set"; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 cat >conftest.$ac_ext <<_ACEOF
4759#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004760/* confdefs.h. */
4761_ACEOF
4762cat confdefs.h >>conftest.$ac_ext
4763cat >>conftest.$ac_ext <<_ACEOF
4764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004765$ac_includes_default
4766
4767#include <$ac_header>
4768_ACEOF
4769rm -f conftest.$ac_objext
4770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 eval "$as_ac_Header=yes"
4782else
4783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004784sed 's/^/| /' conftest.$ac_ext >&5
4785
John Criswell7a73b802003-06-30 21:59:07 +00004786eval "$as_ac_Header=no"
4787fi
4788rm -f conftest.$ac_objext conftest.$ac_ext
4789fi
4790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792if test `eval echo '${'$as_ac_Header'}'` = yes; then
4793 cat >>confdefs.h <<_ACEOF
4794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795_ACEOF
4796
4797fi
4798
4799done
4800
4801
4802
4803for ac_header in dlfcn.h
4804do
4805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo "$as_me:$LINENO: checking for $ac_header" >&5
4808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4809if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811fi
4812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4814else
4815 # Is the header compilable?
4816echo "$as_me:$LINENO: checking $ac_header usability" >&5
4817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4818cat >conftest.$ac_ext <<_ACEOF
4819#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004820/* confdefs.h. */
4821_ACEOF
4822cat confdefs.h >>conftest.$ac_ext
4823cat >>conftest.$ac_ext <<_ACEOF
4824/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004825$ac_includes_default
4826#include <$ac_header>
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -s conftest.$ac_objext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_header_compiler=yes
4841else
4842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004843sed 's/^/| /' conftest.$ac_ext >&5
4844
John Criswell7a73b802003-06-30 21:59:07 +00004845ac_header_compiler=no
4846fi
4847rm -f conftest.$ac_objext conftest.$ac_ext
4848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4849echo "${ECHO_T}$ac_header_compiler" >&6
4850
4851# Is the header present?
4852echo "$as_me:$LINENO: checking $ac_header presence" >&5
4853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4854cat >conftest.$ac_ext <<_ACEOF
4855#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004861#include <$ac_header>
4862_ACEOF
4863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4865 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004866 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } >/dev/null; then
4871 if test -s conftest.err; then
4872 ac_cpp_err=$ac_c_preproc_warn_flag
4873 else
4874 ac_cpp_err=
4875 fi
4876else
4877 ac_cpp_err=yes
4878fi
4879if test -z "$ac_cpp_err"; then
4880 ac_header_preproc=yes
4881else
4882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004883sed 's/^/| /' conftest.$ac_ext >&5
4884
John Criswell7a73b802003-06-30 21:59:07 +00004885 ac_header_preproc=no
4886fi
4887rm -f conftest.err conftest.$ac_ext
4888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4889echo "${ECHO_T}$ac_header_preproc" >&6
4890
4891# So? What about this header?
4892case $ac_header_compiler:$ac_header_preproc in
4893 yes:no )
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898 (
4899 cat <<\_ASBOX
4900## ------------------------------------ ##
4901## Report this to bug-autoconf@gnu.org. ##
4902## ------------------------------------ ##
4903_ASBOX
4904 ) |
4905 sed "s/^/$as_me: WARNING: /" >&2
4906 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004907 no:yes )
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4914 (
4915 cat <<\_ASBOX
4916## ------------------------------------ ##
4917## Report this to bug-autoconf@gnu.org. ##
4918## ------------------------------------ ##
4919_ASBOX
4920 ) |
4921 sed "s/^/$as_me: WARNING: /" >&2
4922 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004923esac
4924echo "$as_me:$LINENO: checking for $ac_header" >&5
4925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4926if eval "test \"\${$as_ac_Header+set}\" = set"; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 eval "$as_ac_Header=$ac_header_preproc"
4930fi
4931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4933
4934fi
4935if test `eval echo '${'$as_ac_Header'}'` = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4938_ACEOF
4939
4940fi
4941
4942done
4943
John Criswell47fdd832003-07-14 16:52:07 +00004944ac_ext=cc
4945ac_cpp='$CXXCPP $CPPFLAGS'
4946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4951if test -z "$CXXCPP"; then
4952 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
John Criswell47fdd832003-07-14 16:52:07 +00004955 # Double quotes because CXXCPP needs to be expanded
4956 for CXXCPP in "$CXX -E" "/lib/cpp"
4957 do
4958 ac_preproc_ok=false
4959for ac_cxx_preproc_warn_flag in '' yes
4960do
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat >conftest.$ac_ext <<_ACEOF
4968#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h. */
4974#ifdef __STDC__
4975# include <limits.h>
4976#else
4977# include <assert.h>
4978#endif
John Criswell47fdd832003-07-14 16:52:07 +00004979 Syntax error
4980_ACEOF
4981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004984 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null; then
4989 if test -s conftest.err; then
4990 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004991 else
John Criswell47fdd832003-07-14 16:52:07 +00004992 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004993 fi
John Criswell47fdd832003-07-14 16:52:07 +00004994else
4995 ac_cpp_err=yes
4996fi
4997if test -z "$ac_cpp_err"; then
4998 :
4999else
5000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005001sed 's/^/| /' conftest.$ac_ext >&5
5002
John Criswell47fdd832003-07-14 16:52:07 +00005003 # Broken: fails on valid input.
5004continue
5005fi
5006rm -f conftest.err conftest.$ac_ext
5007
5008 # OK, works on sane cases. Now check whether non-existent headers
5009 # can be detected and how.
5010 cat >conftest.$ac_ext <<_ACEOF
5011#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005017#include <ac_nonexistent.h>
5018_ACEOF
5019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005022 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } >/dev/null; then
5027 if test -s conftest.err; then
5028 ac_cpp_err=$ac_cxx_preproc_warn_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032else
5033 ac_cpp_err=yes
5034fi
5035if test -z "$ac_cpp_err"; then
5036 # Broken: success on invalid input.
5037continue
5038else
5039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005040sed 's/^/| /' conftest.$ac_ext >&5
5041
John Criswell47fdd832003-07-14 16:52:07 +00005042 # Passes both tests.
5043ac_preproc_ok=:
5044break
5045fi
5046rm -f conftest.err conftest.$ac_ext
5047
5048done
5049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050rm -f conftest.err conftest.$ac_ext
5051if $ac_preproc_ok; then
5052 break
John Criswell7a73b802003-06-30 21:59:07 +00005053fi
5054
John Criswell47fdd832003-07-14 16:52:07 +00005055 done
5056 ac_cv_prog_CXXCPP=$CXXCPP
5057
5058fi
5059 CXXCPP=$ac_cv_prog_CXXCPP
5060else
5061 ac_cv_prog_CXXCPP=$CXXCPP
5062fi
5063echo "$as_me:$LINENO: result: $CXXCPP" >&5
5064echo "${ECHO_T}$CXXCPP" >&6
5065ac_preproc_ok=false
5066for ac_cxx_preproc_warn_flag in '' yes
5067do
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat >conftest.$ac_ext <<_ACEOF
5075#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081#ifdef __STDC__
5082# include <limits.h>
5083#else
5084# include <assert.h>
5085#endif
John Criswell47fdd832003-07-14 16:52:07 +00005086 Syntax error
5087_ACEOF
5088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5090 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005091 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } >/dev/null; then
5096 if test -s conftest.err; then
5097 ac_cpp_err=$ac_cxx_preproc_warn_flag
5098 else
5099 ac_cpp_err=
5100 fi
5101else
5102 ac_cpp_err=yes
5103fi
5104if test -z "$ac_cpp_err"; then
5105 :
5106else
5107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005108sed 's/^/| /' conftest.$ac_ext >&5
5109
John Criswell47fdd832003-07-14 16:52:07 +00005110 # Broken: fails on valid input.
5111continue
5112fi
5113rm -f conftest.err conftest.$ac_ext
5114
5115 # OK, works on sane cases. Now check whether non-existent headers
5116 # can be detected and how.
5117 cat >conftest.$ac_ext <<_ACEOF
5118#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005119/* confdefs.h. */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005124#include <ac_nonexistent.h>
5125_ACEOF
5126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005129 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } >/dev/null; then
5134 if test -s conftest.err; then
5135 ac_cpp_err=$ac_cxx_preproc_warn_flag
5136 else
5137 ac_cpp_err=
5138 fi
5139else
5140 ac_cpp_err=yes
5141fi
5142if test -z "$ac_cpp_err"; then
5143 # Broken: success on invalid input.
5144continue
5145else
5146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005147sed 's/^/| /' conftest.$ac_ext >&5
5148
John Criswell47fdd832003-07-14 16:52:07 +00005149 # Passes both tests.
5150ac_preproc_ok=:
5151break
5152fi
5153rm -f conftest.err conftest.$ac_ext
5154
5155done
5156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157rm -f conftest.err conftest.$ac_ext
5158if $ac_preproc_ok; then
5159 :
5160else
John Criswell0c38eaf2003-09-10 15:17:25 +00005161 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162See \`config.log' for more details." >&5
5163echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005165 { (exit 1); exit 1; }; }
5166fi
5167
5168ac_ext=cc
5169ac_cpp='$CXXCPP $CPPFLAGS'
5170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
5174
5175ac_ext=f
5176ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005180 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 +00005181 do
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_F77+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 if test -n "$F77"; then
5190 ac_cv_prog_F77="$F77" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205
5206fi
5207fi
5208F77=$ac_cv_prog_F77
5209if test -n "$F77"; then
5210 echo "$as_me:$LINENO: result: $F77" >&5
5211echo "${ECHO_T}$F77" >&6
5212else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215fi
5216
5217 test -n "$F77" && break
5218 done
5219fi
5220if test -z "$F77"; then
5221 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005222 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 +00005223do
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225set dummy $ac_prog; ac_word=$2
5226echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 if test -n "$ac_ct_F77"; then
5232 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_F77="$ac_prog"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245done
5246done
5247
5248fi
5249fi
5250ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251if test -n "$ac_ct_F77"; then
5252 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253echo "${ECHO_T}$ac_ct_F77" >&6
5254else
5255 echo "$as_me:$LINENO: result: no" >&5
5256echo "${ECHO_T}no" >&6
5257fi
5258
5259 test -n "$ac_ct_F77" && break
5260done
5261
5262 F77=$ac_ct_F77
5263fi
5264
5265
5266# Provide some information about the compiler.
John Criswellf424d742003-10-07 21:13:47 +00005267echo "$as_me:5267:" \
John Criswell47fdd832003-07-14 16:52:07 +00005268 "checking for Fortran 77 compiler version" >&5
5269ac_compiler=`set X $ac_compile; echo $2`
5270{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271 (eval $ac_compiler --version </dev/null >&5) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276 (eval $ac_compiler -v </dev/null >&5) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281 (eval $ac_compiler -V </dev/null >&5) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285
5286# If we don't use `.F' as extension, the preprocessor is not run on the
5287# input file.
5288ac_save_ext=$ac_ext
5289ac_ext=F
5290echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5291echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5292if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295 cat >conftest.$ac_ext <<_ACEOF
5296 program main
5297#ifndef __GNUC__
5298 choke me
5299#endif
5300
5301 end
5302_ACEOF
5303rm -f conftest.$ac_objext
5304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_compiler_gnu=yes
5316else
5317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005318sed 's/^/| /' conftest.$ac_ext >&5
5319
John Criswell47fdd832003-07-14 16:52:07 +00005320ac_compiler_gnu=no
5321fi
5322rm -f conftest.$ac_objext conftest.$ac_ext
5323ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5324
5325fi
5326echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5327echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5328ac_ext=$ac_save_ext
5329G77=`test $ac_compiler_gnu = yes && echo yes`
5330ac_test_FFLAGS=${FFLAGS+set}
5331ac_save_FFLAGS=$FFLAGS
5332FFLAGS=
5333echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5334echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5335if test "${ac_cv_prog_f77_g+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338 FFLAGS=-g
5339cat >conftest.$ac_ext <<_ACEOF
5340 program main
5341
5342 end
5343_ACEOF
5344rm -f conftest.$ac_objext
5345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest.$ac_objext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_prog_f77_g=yes
5357else
5358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005359sed 's/^/| /' conftest.$ac_ext >&5
5360
John Criswell47fdd832003-07-14 16:52:07 +00005361ac_cv_prog_f77_g=no
5362fi
5363rm -f conftest.$ac_objext conftest.$ac_ext
5364
5365fi
5366echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5367echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5368if test "$ac_test_FFLAGS" = set; then
5369 FFLAGS=$ac_save_FFLAGS
5370elif test $ac_cv_prog_f77_g = yes; then
5371 if test "$G77" = yes; then
5372 FFLAGS="-g -O2"
5373 else
5374 FFLAGS="-g"
5375 fi
5376else
5377 if test "$G77" = yes; then
5378 FFLAGS="-O2"
5379 else
5380 FFLAGS=
5381 fi
5382fi
5383ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
5390
5391# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5392
5393# find the maximum length of command line arguments
5394echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5395echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5396if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 i=0
5400 testring="ABCD"
5401
5402 case $build_os in
5403 msdosdjgpp*)
5404 # On DJGPP, this test can blow up pretty badly due to problems in libc
5405 # (any single argument exceeding 2000 bytes causes a buffer overrun
5406 # during glob expansion). Even if it were fixed, the result of this
5407 # check would be larger than it should be.
5408 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5409 ;;
5410
5411 gnu*)
5412 # Under GNU Hurd, this test is not required because there is
5413 # no limit to the length of command line arguments.
5414 # Libtool will interpret -1 as no limit whatsoever
5415 lt_cv_sys_max_cmd_len=-1;
5416 ;;
5417
5418 cygwin* | mingw*)
5419 # On Win9x/ME, this test blows up -- it succeeds, but takes
5420 # about 5 minutes as the teststring grows exponentially.
5421 # Worse, since 9x/ME are not pre-emptively multitasking,
5422 # you end up with a "frozen" computer, even though with patience
5423 # the test eventually succeeds (with a max line length of 256k).
5424 # Instead, let's just punt: use the minimum linelength reported by
5425 # all of the supported platforms: 8192 (on NT/2K/XP).
5426 lt_cv_sys_max_cmd_len=8192;
5427 ;;
5428
5429 *)
5430 # If test is not a shell built-in, we'll probably end up computing a
5431 # maximum length that is only half of the actual maximum length, but
5432 # we can't tell.
5433 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5434 = "XX$testring") >/dev/null 2>&1 &&
5435 new_result=`expr "X$testring" : ".*" 2>&1` &&
5436 lt_cv_sys_max_cmd_len=$new_result &&
5437 test $i != 17 # 1/2 MB should be enough
5438 do
5439 i=`expr $i + 1`
5440 testring=$testring$testring
5441 done
5442 testring=
5443 # Add a significant safety factor because C++ compilers can tack on massive
5444 # amounts of additional arguments before passing them to the linker.
5445 # It appears as though 1/2 is a usable value.
5446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5447 ;;
5448 esac
5449
5450fi
5451
5452if test -n $lt_cv_sys_max_cmd_len ; then
5453 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5454echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5455else
5456 echo "$as_me:$LINENO: result: none" >&5
5457echo "${ECHO_T}none" >&6
5458fi
5459
5460
5461
5462
5463# Check for command to grab the raw symbol name followed by C symbol from nm.
5464echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5465echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5466if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469
5470# These are sane defaults that work on at least a few old systems.
5471# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5472
5473# Character class describing NM global symbol codes.
5474symcode='[BCDEGRST]'
5475
5476# Regexp to match symbols that can be accessed directly from C.
5477sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5478
5479# Transform the above into a raw symbol and a C symbol.
5480symxfrm='\1 \2\3 \3'
5481
5482# Transform an extracted symbol line into a proper C declaration
5483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5484
5485# Transform an extracted symbol line into symbol name and symbol address
5486lt_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'"
5487
5488# Define system-specific variables.
5489case $host_os in
5490aix*)
5491 symcode='[BCDT]'
5492 ;;
5493cygwin* | mingw* | pw32*)
5494 symcode='[ABCDGISTW]'
5495 ;;
5496hpux*) # Its linker distinguishes data from code symbols
5497 if test "$host_cpu" = ia64; then
5498 symcode='[ABCDEGRST]'
5499 fi
5500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5501 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'"
5502 ;;
5503irix* | nonstopux*)
5504 symcode='[BCDEGRST]'
5505 ;;
5506osf*)
5507 symcode='[BCDEGQRST]'
5508 ;;
5509solaris* | sysv5*)
5510 symcode='[BDT]'
5511 ;;
5512sysv4)
5513 symcode='[DFNSTU]'
5514 ;;
5515esac
5516
5517# Handle CRLF in mingw tool chain
5518opt_cr=
5519case $build_os in
5520mingw*)
5521 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5522 ;;
5523esac
5524
5525# If we're using GNU nm, then use its standard symbol codes.
5526case `$NM -V 2>&1` in
5527*GNU* | *'with BFD'*)
5528 symcode='[ABCDGISTW]' ;;
5529esac
5530
5531# Try without a prefix undercore, then with it.
5532for ac_symprfx in "" "_"; do
5533
5534 # Write the raw and C identifiers.
5535 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5536
5537 # Check to see that the pipe works correctly.
5538 pipe_works=no
5539
5540 rm -f conftest*
5541 cat > conftest.$ac_ext <<EOF
5542#ifdef __cplusplus
5543extern "C" {
5544#endif
5545char nm_test_var;
5546void nm_test_func(){}
5547#ifdef __cplusplus
5548}
5549#endif
5550int main(){nm_test_var='a';nm_test_func();return(0);}
5551EOF
5552
5553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554 (eval $ac_compile) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; then
5558 # Now try to grab the symbols.
5559 nlist=conftest.nm
5560 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5561 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && test -s "$nlist"; then
5565 # Try sorting and uniquifying the output.
5566 if sort "$nlist" | uniq > "$nlist"T; then
5567 mv -f "$nlist"T "$nlist"
5568 else
5569 rm -f "$nlist"T
5570 fi
5571
5572 # Make sure that we snagged all the symbols we need.
5573 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5574 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5575 cat <<EOF > conftest.$ac_ext
5576#ifdef __cplusplus
5577extern "C" {
5578#endif
5579
5580EOF
5581 # Now generate the symbol file.
5582 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5583
5584 cat <<EOF >> conftest.$ac_ext
5585#if defined (__STDC__) && __STDC__
5586# define lt_ptr_t void *
5587#else
5588# define lt_ptr_t char *
5589# define const
5590#endif
5591
5592/* The mapping between symbol names and symbols. */
5593const struct {
5594 const char *name;
5595 lt_ptr_t address;
5596}
5597lt_preloaded_symbols[] =
5598{
5599EOF
5600 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5601 cat <<\EOF >> conftest.$ac_ext
5602 {0, (lt_ptr_t) 0}
5603};
5604
5605#ifdef __cplusplus
5606}
5607#endif
5608EOF
5609 # Now try linking the two files.
5610 mv conftest.$ac_objext conftstm.$ac_objext
5611 lt_save_LIBS="$LIBS"
5612 lt_save_CFLAGS="$CFLAGS"
5613 LIBS="conftstm.$ac_objext"
5614 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5620 pipe_works=yes
5621 fi
5622 LIBS="$lt_save_LIBS"
5623 CFLAGS="$lt_save_CFLAGS"
5624 else
5625 echo "cannot find nm_test_func in $nlist" >&5
5626 fi
5627 else
5628 echo "cannot find nm_test_var in $nlist" >&5
5629 fi
5630 else
5631 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5632 fi
5633 else
5634 echo "$progname: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 fi
5637 rm -f conftest* conftst*
5638
5639 # Do not use the global_symbol_pipe unless it works.
5640 if test "$pipe_works" = yes; then
5641 break
5642 else
5643 lt_cv_sys_global_symbol_pipe=
5644 fi
5645done
5646
5647fi
5648
5649if test -z "$lt_cv_sys_global_symbol_pipe"; then
5650 lt_cv_sys_global_symbol_to_cdecl=
5651fi
5652if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5653 echo "$as_me:$LINENO: result: failed" >&5
5654echo "${ECHO_T}failed" >&6
5655else
5656 echo "$as_me:$LINENO: result: ok" >&5
5657echo "${ECHO_T}ok" >&6
5658fi
5659
5660echo "$as_me:$LINENO: checking for objdir" >&5
5661echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5662if test "${lt_cv_objdir+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665 rm -f .libs 2>/dev/null
5666mkdir .libs 2>/dev/null
5667if test -d .libs; then
5668 lt_cv_objdir=.libs
5669else
5670 # MS-DOS does not allow filenames that begin with a dot.
5671 lt_cv_objdir=_libs
5672fi
5673rmdir .libs 2>/dev/null
5674fi
5675echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5676echo "${ECHO_T}$lt_cv_objdir" >&6
5677objdir=$lt_cv_objdir
5678
5679
5680
5681
5682
5683case $host_os in
5684aix3*)
5685 # AIX sometimes has problems with the GCC collect2 program. For some
5686 # reason, if we set the COLLECT_NAMES environment variable, the problems
5687 # vanish in a puff of smoke.
5688 if test "X${COLLECT_NAMES+set}" != Xset; then
5689 COLLECT_NAMES=
5690 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005691 fi
5692 ;;
5693esac
5694
John Criswell47fdd832003-07-14 16:52:07 +00005695# Sed substitution that helps us do robust quoting. It backslashifies
5696# metacharacters that are still active within double-quoted strings.
5697Xsed='sed -e s/^X//'
5698sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5699
5700# Same as above, but do not quote variable references.
5701double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5702
5703# Sed substitution to delay expansion of an escaped shell variable in a
5704# double_quote_subst'ed string.
5705delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5706
5707# Sed substitution to avoid accidental globbing in evaled expressions
5708no_glob_subst='s/\*/\\\*/g'
5709
5710# Constants:
5711rm="rm -f"
5712
5713# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005714default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005715can_build_shared=yes
5716
5717# All known linkers require a `.a' archive for static linking (except M$VC,
5718# which needs '.lib').
5719libext=a
5720ltmain="$ac_aux_dir/ltmain.sh"
5721ofile="$default_ofile"
5722with_gnu_ld="$lt_cv_prog_gnu_ld"
5723
5724if test -n "$ac_tool_prefix"; then
5725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5726set dummy ${ac_tool_prefix}ar; ac_word=$2
5727echo "$as_me:$LINENO: checking for $ac_word" >&5
5728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5729if test "${ac_cv_prog_AR+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731else
5732 if test -n "$AR"; then
5733 ac_cv_prog_AR="$AR" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_AR="${ac_tool_prefix}ar"
5743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746done
5747done
5748
5749fi
5750fi
5751AR=$ac_cv_prog_AR
5752if test -n "$AR"; then
5753 echo "$as_me:$LINENO: result: $AR" >&5
5754echo "${ECHO_T}$AR" >&6
5755else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758fi
5759
5760fi
5761if test -z "$ac_cv_prog_AR"; then
5762 ac_ct_AR=$AR
5763 # Extract the first word of "ar", so it can be a program name with args.
5764set dummy ar; ac_word=$2
5765echo "$as_me:$LINENO: checking for $ac_word" >&5
5766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
5770 if test -n "$ac_ct_AR"; then
5771 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_ac_ct_AR="ar"
5781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784done
5785done
5786
5787 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5788fi
5789fi
5790ac_ct_AR=$ac_cv_prog_ac_ct_AR
5791if test -n "$ac_ct_AR"; then
5792 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5793echo "${ECHO_T}$ac_ct_AR" >&6
5794else
5795 echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6
5797fi
5798
5799 AR=$ac_ct_AR
5800else
5801 AR="$ac_cv_prog_AR"
5802fi
5803
John Criswell7a73b802003-06-30 21:59:07 +00005804if test -n "$ac_tool_prefix"; then
5805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5807echo "$as_me:$LINENO: checking for $ac_word" >&5
5808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5809if test "${ac_cv_prog_RANLIB+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 if test -n "$RANLIB"; then
5813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5814else
5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816for as_dir in $PATH
5817do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826done
5827done
5828
5829fi
5830fi
5831RANLIB=$ac_cv_prog_RANLIB
5832if test -n "$RANLIB"; then
5833 echo "$as_me:$LINENO: result: $RANLIB" >&5
5834echo "${ECHO_T}$RANLIB" >&6
5835else
5836 echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838fi
5839
5840fi
5841if test -z "$ac_cv_prog_RANLIB"; then
5842 ac_ct_RANLIB=$RANLIB
5843 # Extract the first word of "ranlib", so it can be a program name with args.
5844set dummy ranlib; ac_word=$2
5845echo "$as_me:$LINENO: checking for $ac_word" >&5
5846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849else
5850 if test -n "$ac_ct_RANLIB"; then
5851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5852else
5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH
5855do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_ac_ct_RANLIB="ranlib"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5863 fi
5864done
5865done
5866
5867 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5868fi
5869fi
5870ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5871if test -n "$ac_ct_RANLIB"; then
5872 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5873echo "${ECHO_T}$ac_ct_RANLIB" >&6
5874else
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877fi
5878
5879 RANLIB=$ac_ct_RANLIB
5880else
5881 RANLIB="$ac_cv_prog_RANLIB"
5882fi
5883
5884if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5886set dummy ${ac_tool_prefix}strip; ac_word=$2
5887echo "$as_me:$LINENO: checking for $ac_word" >&5
5888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889if test "${ac_cv_prog_STRIP+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 if test -n "$STRIP"; then
5893 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906done
5907done
5908
5909fi
5910fi
5911STRIP=$ac_cv_prog_STRIP
5912if test -n "$STRIP"; then
5913 echo "$as_me:$LINENO: result: $STRIP" >&5
5914echo "${ECHO_T}$STRIP" >&6
5915else
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918fi
5919
5920fi
5921if test -z "$ac_cv_prog_STRIP"; then
5922 ac_ct_STRIP=$STRIP
5923 # Extract the first word of "strip", so it can be a program name with args.
5924set dummy strip; ac_word=$2
5925echo "$as_me:$LINENO: checking for $ac_word" >&5
5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930 if test -n "$ac_ct_STRIP"; then
5931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_ac_ct_STRIP="strip"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945done
5946
5947 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5948fi
5949fi
5950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5951if test -n "$ac_ct_STRIP"; then
5952 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5953echo "${ECHO_T}$ac_ct_STRIP" >&6
5954else
5955 echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
5957fi
5958
5959 STRIP=$ac_ct_STRIP
5960else
5961 STRIP="$ac_cv_prog_STRIP"
5962fi
5963
5964
John Criswell7a73b802003-06-30 21:59:07 +00005965old_CC="$CC"
5966old_CFLAGS="$CFLAGS"
5967
5968# Set sane defaults for various variables
5969test -z "$AR" && AR=ar
5970test -z "$AR_FLAGS" && AR_FLAGS=cru
5971test -z "$AS" && AS=as
5972test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005973test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005974test -z "$DLLTOOL" && DLLTOOL=dlltool
5975test -z "$LD" && LD=ld
5976test -z "$LN_S" && LN_S="ln -s"
5977test -z "$MAGIC_CMD" && MAGIC_CMD=file
5978test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005979test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005980test -z "$OBJDUMP" && OBJDUMP=objdump
5981test -z "$RANLIB" && RANLIB=:
5982test -z "$STRIP" && STRIP=:
5983test -z "$ac_objext" && ac_objext=o
5984
John Criswell7a73b802003-06-30 21:59:07 +00005985# Determine commands to create old-style static archives.
5986old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5987old_postinstall_cmds='chmod 644 $oldlib'
5988old_postuninstall_cmds=
5989
5990if test -n "$RANLIB"; then
5991 case $host_os in
5992 openbsd*)
5993 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5994 ;;
5995 *)
5996 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5997 ;;
5998 esac
5999 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6000fi
6001
John Criswell47fdd832003-07-14 16:52:07 +00006002# Only perform the check for file, if the check method requires it
6003case $deplibs_check_method in
6004file_magic*)
6005 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6006 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6007echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6008if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006010else
John Criswell47fdd832003-07-14 16:52:07 +00006011 case $MAGIC_CMD in
6012[\\/*] | ?:[\\/]*)
6013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6014 ;;
6015*)
6016 lt_save_MAGIC_CMD="$MAGIC_CMD"
6017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6019 for ac_dir in $ac_dummy; do
6020 IFS="$lt_save_ifs"
6021 test -z "$ac_dir" && ac_dir=.
6022 if test -f $ac_dir/${ac_tool_prefix}file; then
6023 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6024 if test -n "$file_magic_test_file"; then
6025 case $deplibs_check_method in
6026 "file_magic "*)
6027 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6030 $EGREP "$file_magic_regex" > /dev/null; then
6031 :
6032 else
6033 cat <<EOF 1>&2
6034
6035*** Warning: the command libtool uses to detect shared libraries,
6036*** $file_magic_cmd, produces output that libtool cannot recognize.
6037*** The result is that libtool may fail to recognize shared libraries
6038*** as such. This will affect the creation of libtool libraries that
6039*** depend on shared libraries, but programs linked with such libtool
6040*** libraries will work regardless of this problem. Nevertheless, you
6041*** may want to report the problem to your system manager and/or to
6042*** bug-libtool@gnu.org
6043
6044EOF
6045 fi ;;
6046 esac
6047 fi
6048 break
6049 fi
6050 done
6051 IFS="$lt_save_ifs"
6052 MAGIC_CMD="$lt_save_MAGIC_CMD"
6053 ;;
6054esac
John Criswell7a73b802003-06-30 21:59:07 +00006055fi
John Criswell7a73b802003-06-30 21:59:07 +00006056
John Criswell47fdd832003-07-14 16:52:07 +00006057MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058if test -n "$MAGIC_CMD"; then
6059 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6060echo "${ECHO_T}$MAGIC_CMD" >&6
6061else
6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
6064fi
John Criswell7a73b802003-06-30 21:59:07 +00006065
John Criswell47fdd832003-07-14 16:52:07 +00006066if test -z "$lt_cv_path_MAGIC_CMD"; then
6067 if test -n "$ac_tool_prefix"; then
6068 echo "$as_me:$LINENO: checking for file" >&5
6069echo $ECHO_N "checking for file... $ECHO_C" >&6
6070if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073 case $MAGIC_CMD in
6074[\\/*] | ?:[\\/]*)
6075 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6076 ;;
6077*)
6078 lt_save_MAGIC_CMD="$MAGIC_CMD"
6079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6080 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6081 for ac_dir in $ac_dummy; do
6082 IFS="$lt_save_ifs"
6083 test -z "$ac_dir" && ac_dir=.
6084 if test -f $ac_dir/file; then
6085 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6086 if test -n "$file_magic_test_file"; then
6087 case $deplibs_check_method in
6088 "file_magic "*)
6089 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6091 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6092 $EGREP "$file_magic_regex" > /dev/null; then
6093 :
6094 else
6095 cat <<EOF 1>&2
6096
6097*** Warning: the command libtool uses to detect shared libraries,
6098*** $file_magic_cmd, produces output that libtool cannot recognize.
6099*** The result is that libtool may fail to recognize shared libraries
6100*** as such. This will affect the creation of libtool libraries that
6101*** depend on shared libraries, but programs linked with such libtool
6102*** libraries will work regardless of this problem. Nevertheless, you
6103*** may want to report the problem to your system manager and/or to
6104*** bug-libtool@gnu.org
6105
6106EOF
6107 fi ;;
6108 esac
6109 fi
6110 break
6111 fi
6112 done
6113 IFS="$lt_save_ifs"
6114 MAGIC_CMD="$lt_save_MAGIC_CMD"
6115 ;;
6116esac
6117fi
6118
6119MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120if test -n "$MAGIC_CMD"; then
6121 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6122echo "${ECHO_T}$MAGIC_CMD" >&6
6123else
6124 echo "$as_me:$LINENO: result: no" >&5
6125echo "${ECHO_T}no" >&6
6126fi
6127
6128 else
6129 MAGIC_CMD=:
6130 fi
6131fi
6132
6133 fi
6134 ;;
6135esac
6136
6137enable_dlopen=no
6138enable_win32_dll=no
6139
6140# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6141if test "${enable_libtool_lock+set}" = set; then
6142 enableval="$enable_libtool_lock"
6143
6144fi;
6145test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6146
John Criswell7a73b802003-06-30 21:59:07 +00006147
6148# Check whether --with-pic or --without-pic was given.
6149if test "${with_pic+set}" = set; then
6150 withval="$with_pic"
6151 pic_mode="$withval"
6152else
6153 pic_mode=default
6154fi;
6155test -z "$pic_mode" && pic_mode=default
6156
John Criswell47fdd832003-07-14 16:52:07 +00006157# Use C for the default configuration in the libtool script
6158tagname=
6159lt_save_CC="$CC"
6160ac_ext=c
6161ac_cpp='$CPP $CPPFLAGS'
6162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165
6166
6167# Source file extension for C test sources.
6168ac_ext=c
6169
6170# Object file extension for compiled C test sources.
6171objext=o
6172objext=$objext
6173
6174# Code to be used in simple compile tests
6175lt_simple_compile_test_code="int some_variable = 0;\n"
6176
6177# Code to be used in simple link tests
6178lt_simple_link_test_code='int main(){return(0);}\n'
6179
6180
6181# If no C compiler was specified, use CC.
6182LTCC=${LTCC-"$CC"}
6183
6184# Allow CC to be a program name with arguments.
6185compiler=$CC
6186
6187
6188#
6189# Check for any special shared library compilation flags.
6190#
6191lt_prog_cc_shlib=
6192if test "$GCC" = no; then
6193 case $host_os in
6194 sco3.2v5*)
6195 lt_prog_cc_shlib='-belf'
6196 ;;
6197 esac
6198fi
6199if test -n "$lt_prog_cc_shlib"; then
6200 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6201echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6202 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6203 else
6204 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6205echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6206 lt_cv_prog_cc_can_build_shared=no
6207 fi
6208fi
6209
6210
6211#
6212# Check to make sure the static flag actually works.
6213#
6214echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6215echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6216if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
John Criswell47fdd832003-07-14 16:52:07 +00006219 lt_prog_compiler_static_works=no
6220 save_LDFLAGS="$LDFLAGS"
6221 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6222 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6224 # The compiler can only warn and ignore the option if not recognized
6225 # So say no if there are warnings
6226 if test -s conftest.err; then
6227 # Append any errors to the config.log.
6228 cat conftest.err 1>&5
6229 else
6230 lt_prog_compiler_static_works=yes
6231 fi
6232 fi
6233 $rm conftest*
6234 LDFLAGS="$save_LDFLAGS"
6235
6236fi
6237echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6238echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6239
6240if test x"$lt_prog_compiler_static_works" = xyes; then
6241 :
6242else
6243 lt_prog_compiler_static=
6244fi
6245
6246
6247
6248## CAVEAT EMPTOR:
6249## There is no encapsulation within the following macros, do not change
6250## the running order or otherwise move them around unless you know exactly
6251## what you are doing...
6252
6253lt_prog_compiler_no_builtin_flag=
6254
6255if test "$GCC" = yes; then
6256 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6257
6258 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6259echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6260if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else
6263 lt_cv_prog_compiler_rtti_exceptions=no
6264 ac_outfile=conftest.$ac_objext
6265 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6266 lt_compiler_flag="-fno-rtti -fno-exceptions"
6267 # Insert the option either (1) after the last *FLAGS variable, or
6268 # (2) before a word containing "conftest.", or (3) at the end.
6269 # Note that $ac_compile itself does not contain backslashes and begins
6270 # with a dollar sign (not a hyphen), so the echo should work correctly.
6271 # The option is referenced via a variable to avoid confusing sed.
6272 lt_compile=`echo "$ac_compile" | $SED \
6273 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6275 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +00006276 (eval echo "\"\$as_me:6276: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006277 (eval "$lt_compile" 2>conftest.err)
6278 ac_status=$?
6279 cat conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +00006280 echo "$as_me:6280: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006281 if (exit $ac_status) && test -s "$ac_outfile"; then
6282 # The compiler can only warn and ignore the option if not recognized
6283 # So say no if there are warnings
6284 if test ! -s conftest.err; then
6285 lt_cv_prog_compiler_rtti_exceptions=yes
6286 fi
6287 fi
6288 $rm conftest*
6289
6290fi
6291echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6292echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6293
6294if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6295 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6296else
6297 :
6298fi
6299
6300fi
6301
6302lt_prog_compiler_wl=
6303lt_prog_compiler_pic=
6304lt_prog_compiler_static=
6305
6306echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6307echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006308
6309 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006310 lt_prog_compiler_wl='-Wl,'
6311 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006312
6313 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006314 aix*)
6315 # All AIX code is PIC.
6316 if test "$host_cpu" = ia64; then
6317 # AIX 5 now supports IA64 processor
6318 lt_prog_compiler_static='-Bstatic'
6319 fi
John Criswell7a73b802003-06-30 21:59:07 +00006320 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006321
John Criswell7a73b802003-06-30 21:59:07 +00006322 amigaos*)
6323 # FIXME: we need at least 68020 code to build shared libraries, but
6324 # adding the `-m68020' flag to GCC prevents building anything better,
6325 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006326 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006327 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006328
6329 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006330 # PIC is the default for these OSes.
6331 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006332
6333 mingw* | pw32* | os2*)
6334 # This hack is so that the source file can tell whether it is being
6335 # built for inclusion in a dll (and should export symbols for example).
6336 lt_prog_compiler_pic='-DDLL_EXPORT'
6337 ;;
6338
John Criswell7a73b802003-06-30 21:59:07 +00006339 darwin* | rhapsody*)
6340 # PIC is the default on this platform
6341 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006342 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006343 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006344
6345 msdosdjgpp*)
6346 # Just because we use GCC doesn't mean we suddenly get shared libraries
6347 # on systems that don't support them.
6348 lt_prog_compiler_can_build_shared=no
6349 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006350 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006351
John Criswell7a73b802003-06-30 21:59:07 +00006352 sysv4*MP*)
6353 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006354 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006355 fi
6356 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006357
6358 hpux*)
6359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6360 # not for PA HP-UX.
6361 case "$host_cpu" in
6362 hppa*64*|ia64*)
6363 # +Z the default
6364 ;;
6365 *)
6366 lt_prog_compiler_pic='-fPIC'
6367 ;;
6368 esac
6369 ;;
6370
John Criswell7a73b802003-06-30 21:59:07 +00006371 *)
John Criswell47fdd832003-07-14 16:52:07 +00006372 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006373 ;;
6374 esac
6375 else
John Criswell47fdd832003-07-14 16:52:07 +00006376 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006377 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006378 aix*)
6379 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006380 if test "$host_cpu" = ia64; then
6381 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006382 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006383 else
John Criswell47fdd832003-07-14 16:52:07 +00006384 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006385 fi
6386 ;;
6387
John Criswell47fdd832003-07-14 16:52:07 +00006388 mingw* | pw32* | os2*)
6389 # This hack is so that the source file can tell whether it is being
6390 # built for inclusion in a dll (and should export symbols for example).
6391 lt_prog_compiler_pic='-DDLL_EXPORT'
6392 ;;
6393
John Criswell7a73b802003-06-30 21:59:07 +00006394 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006395 lt_prog_compiler_wl='-Wl,'
6396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6397 # not for PA HP-UX.
6398 case "$host_cpu" in
6399 hppa*64*|ia64*)
6400 # +Z the default
6401 ;;
6402 *)
6403 lt_prog_compiler_pic='+Z'
6404 ;;
6405 esac
6406 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6407 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006408 ;;
6409
John Criswell47fdd832003-07-14 16:52:07 +00006410 irix5* | irix6* | nonstopux*)
6411 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006412 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006413 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006414 ;;
6415
6416 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006417 lt_prog_compiler_pic='-KPIC'
6418 lt_prog_compiler_static='-Bstatic'
6419 ;;
6420
6421 linux*)
6422 case $CC in
6423 icc|ecc)
6424 lt_prog_compiler_wl='-Wl,'
6425 lt_prog_compiler_pic='-KPIC'
6426 lt_prog_compiler_static='-static'
6427 ;;
6428 ccc)
6429 lt_prog_compiler_wl='-Wl,'
6430 # All Alpha code is PIC.
6431 lt_prog_compiler_static='-non_shared'
6432 ;;
6433 esac
John Criswell7a73b802003-06-30 21:59:07 +00006434 ;;
6435
6436 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006437 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006438 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006439 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006440 ;;
6441
6442 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006443 lt_prog_compiler_pic='-Kpic'
6444 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006445 ;;
6446
6447 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006448 lt_prog_compiler_wl='-Wl,'
6449 lt_prog_compiler_pic='-KPIC'
6450 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006451 ;;
6452
6453 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006454 lt_prog_compiler_wl='-Qoption ld '
6455 lt_prog_compiler_pic='-PIC'
6456 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006457 ;;
6458
6459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006460 lt_prog_compiler_wl='-Wl,'
6461 lt_prog_compiler_pic='-KPIC'
6462 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006463 ;;
6464
6465 sysv4*MP*)
6466 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006467 lt_prog_compiler_pic='-Kconform_pic'
6468 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006469 fi
6470 ;;
6471
John Criswell47fdd832003-07-14 16:52:07 +00006472 uts4*)
6473 lt_prog_compiler_pic='-pic'
6474 lt_prog_compiler_static='-Bstatic'
6475 ;;
6476
John Criswell7a73b802003-06-30 21:59:07 +00006477 *)
John Criswell47fdd832003-07-14 16:52:07 +00006478 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006479 ;;
6480 esac
6481 fi
6482
John Criswell47fdd832003-07-14 16:52:07 +00006483echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6484echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006485
John Criswell47fdd832003-07-14 16:52:07 +00006486#
6487# Check to make sure the PIC flag actually works.
6488#
6489if test -n "$lt_prog_compiler_pic"; then
6490 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6491echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6492if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
John Criswell47fdd832003-07-14 16:52:07 +00006495 lt_prog_compiler_pic_works=no
6496 ac_outfile=conftest.$ac_objext
6497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6498 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6499 # Insert the option either (1) after the last *FLAGS variable, or
6500 # (2) before a word containing "conftest.", or (3) at the end.
6501 # Note that $ac_compile itself does not contain backslashes and begins
6502 # with a dollar sign (not a hyphen), so the echo should work correctly.
6503 # The option is referenced via a variable to avoid confusing sed.
6504 lt_compile=`echo "$ac_compile" | $SED \
6505 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +00006508 (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006509 (eval "$lt_compile" 2>conftest.err)
6510 ac_status=$?
6511 cat conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +00006512 echo "$as_me:6512: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006513 if (exit $ac_status) && test -s "$ac_outfile"; then
6514 # The compiler can only warn and ignore the option if not recognized
6515 # So say no if there are warnings
6516 if test ! -s conftest.err; then
6517 lt_prog_compiler_pic_works=yes
6518 fi
6519 fi
6520 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006521
John Criswell47fdd832003-07-14 16:52:07 +00006522fi
6523echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6524echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006525
John Criswell47fdd832003-07-14 16:52:07 +00006526if test x"$lt_prog_compiler_pic_works" = xyes; then
6527 case $lt_prog_compiler_pic in
6528 "" | " "*) ;;
6529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6530 esac
John Criswell7a73b802003-06-30 21:59:07 +00006531else
John Criswell47fdd832003-07-14 16:52:07 +00006532 lt_prog_compiler_pic=
6533 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006534fi
6535
John Criswell7a73b802003-06-30 21:59:07 +00006536fi
John Criswell47fdd832003-07-14 16:52:07 +00006537case "$host_os" in
6538 # For platforms which do not support PIC, -DPIC is meaningless:
6539 *djgpp*)
6540 lt_prog_compiler_pic=
6541 ;;
6542 *)
6543 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6544 ;;
6545esac
John Criswell7a73b802003-06-30 21:59:07 +00006546
John Criswell7a73b802003-06-30 21:59:07 +00006547echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6548echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006549if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
John Criswell47fdd832003-07-14 16:52:07 +00006552 lt_cv_prog_compiler_c_o=no
6553 $rm -r conftest 2>/dev/null
6554 mkdir conftest
6555 cd conftest
6556 mkdir out
6557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006558
John Criswell47fdd832003-07-14 16:52:07 +00006559 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6560 # that will create temporary files in the current directory regardless of
6561 # the output directory. Thus, making CWD read-only will cause this test
6562 # to fail, enabling locking or at least warning the user not to do parallel
6563 # builds.
6564 chmod -w .
6565
6566 lt_compiler_flag="-o out/conftest2.$ac_objext"
6567 # Insert the option either (1) after the last *FLAGS variable, or
6568 # (2) before a word containing "conftest.", or (3) at the end.
6569 # Note that $ac_compile itself does not contain backslashes and begins
6570 # with a dollar sign (not a hyphen), so the echo should work correctly.
6571 lt_compile=`echo "$ac_compile" | $SED \
6572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6574 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +00006575 (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006576 (eval "$lt_compile" 2>out/conftest.err)
6577 ac_status=$?
6578 cat out/conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +00006579 echo "$as_me:6579: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6581 then
6582 # The compiler can only warn and ignore the option if not recognized
6583 # So say no if there are warnings
6584 if test ! -s out/conftest.err; then
6585 lt_cv_prog_compiler_c_o=yes
6586 fi
6587 fi
6588 chmod u+w .
6589 $rm conftest* out/*
6590 rmdir out
6591 cd ..
6592 rmdir conftest
6593 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006594
6595fi
John Criswell47fdd832003-07-14 16:52:07 +00006596echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6597echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006598
John Criswell7a73b802003-06-30 21:59:07 +00006599
John Criswell7a73b802003-06-30 21:59:07 +00006600hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006601if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006602 # do not overwrite the value of need_locks provided by the user
6603 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6604echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6605 hard_links=yes
6606 $rm conftest*
6607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6608 touch conftest.a
6609 ln conftest.a conftest.b 2>&5 || hard_links=no
6610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6611 echo "$as_me:$LINENO: result: $hard_links" >&5
6612echo "${ECHO_T}$hard_links" >&6
6613 if test "$hard_links" = no; then
6614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6615echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6616 need_locks=warn
6617 fi
6618else
6619 need_locks=no
6620fi
John Criswell7a73b802003-06-30 21:59:07 +00006621
John Criswell47fdd832003-07-14 16:52:07 +00006622echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6623echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6624
6625 runpath_var=
6626 allow_undefined_flag=
6627 enable_shared_with_static_runtimes=no
6628 archive_cmds=
6629 archive_expsym_cmds=
6630 old_archive_From_new_cmds=
6631 old_archive_from_expsyms_cmds=
6632 export_dynamic_flag_spec=
6633 whole_archive_flag_spec=
6634 thread_safe_flag_spec=
6635 hardcode_libdir_flag_spec=
6636 hardcode_libdir_flag_spec_ld=
6637 hardcode_libdir_separator=
6638 hardcode_direct=no
6639 hardcode_minus_L=no
6640 hardcode_shlibpath_var=unsupported
6641 link_all_deplibs=unknown
6642 hardcode_automatic=no
6643 module_cmds=
6644 module_expsym_cmds=
6645 always_export_symbols=no
6646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6647 # include_expsyms should be a list of space-separated symbols to be *always*
6648 # included in the symbol list
6649 include_expsyms=
6650 # exclude_expsyms can be an extended regexp of symbols to exclude
6651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6653 # as well as any symbol that contains `d'.
6654 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6656 # platforms (ab)use it in PIC code, but their linkers get confused if
6657 # the symbol is explicitly referenced. Since portable code cannot
6658 # rely on this symbol name, it's probably fine to never include it in
6659 # preloaded symbol tables.
6660 extract_expsyms_cmds=
6661
6662 case $host_os in
6663 cygwin* | mingw* | pw32*)
6664 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6665 # When not using gcc, we currently assume that we are using
6666 # Microsoft Visual C++.
6667 if test "$GCC" != yes; then
6668 with_gnu_ld=no
6669 fi
6670 ;;
6671 openbsd*)
6672 with_gnu_ld=no
6673 ;;
6674 esac
6675
6676 ld_shlibs=yes
6677 if test "$with_gnu_ld" = yes; then
6678 # If archive_cmds runs LD, not CC, wlarc should be empty
6679 wlarc='${wl}'
6680
6681 # See if GNU ld supports shared libraries.
6682 case $host_os in
6683 aix3* | aix4* | aix5*)
6684 # On AIX/PPC, the GNU linker is very broken
6685 if test "$host_cpu" != ia64; then
6686 ld_shlibs=no
6687 cat <<EOF 1>&2
6688
6689*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6690*** to be unable to reliably create shared libraries on AIX.
6691*** Therefore, libtool is disabling shared libraries support. If you
6692*** really care for shared libraries, you may want to modify your PATH
6693*** so that a non-GNU linker is found, and then restart.
6694
6695EOF
6696 fi
6697 ;;
6698
6699 amigaos*)
6700 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)'
6701 hardcode_libdir_flag_spec='-L$libdir'
6702 hardcode_minus_L=yes
6703
6704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6705 # that the semantics of dynamic libraries on AmigaOS, at least up
6706 # to version 4, is to share data among multiple programs linked
6707 # with the same dynamic library. Since this doesn't match the
6708 # behavior of shared libraries on other platforms, we can't use
6709 # them.
6710 ld_shlibs=no
6711 ;;
6712
6713 beos*)
6714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6715 allow_undefined_flag=unsupported
6716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6717 # support --undefined. This deserves some investigation. FIXME
6718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6719 else
6720 ld_shlibs=no
6721 fi
6722 ;;
6723
6724 cygwin* | mingw* | pw32*)
6725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6726 # as there is no search path for DLLs.
6727 hardcode_libdir_flag_spec='-L$libdir'
6728 allow_undefined_flag=unsupported
6729 always_export_symbols=no
6730 enable_shared_with_static_runtimes=yes
6731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6732
6733 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6735 # If the export-symbols file already is a .def file (1st line
6736 # is EXPORTS), use it as is; otherwise, prepend...
6737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6738 cp $export_symbols $output_objdir/$soname.def;
6739 else
6740 echo EXPORTS > $output_objdir/$soname.def;
6741 cat $export_symbols >> $output_objdir/$soname.def;
6742 fi~
6743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6744 else
6745 ld_shlibs=no
6746 fi
6747 ;;
6748
6749 netbsd*)
6750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6751 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6752 wlarc=
6753 else
6754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756 fi
6757 ;;
6758
6759 solaris* | sysv5*)
6760 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6761 ld_shlibs=no
6762 cat <<EOF 1>&2
6763
6764*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6765*** create shared libraries on Solaris systems. Therefore, libtool
6766*** is disabling shared libraries support. We urge you to upgrade GNU
6767*** binutils to release 2.9.1 or newer. Another option is to modify
6768*** your PATH or compiler configuration so that the native linker is
6769*** used, and then restart.
6770
6771EOF
6772 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6775 else
6776 ld_shlibs=no
6777 fi
6778 ;;
6779
6780 sunos4*)
6781 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6782 wlarc=
6783 hardcode_direct=yes
6784 hardcode_shlibpath_var=no
6785 ;;
6786
6787 *)
6788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6791 else
6792 ld_shlibs=no
6793 fi
6794 ;;
6795 esac
6796
6797 if test "$ld_shlibs" = yes; then
6798 runpath_var=LD_RUN_PATH
6799 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6800 export_dynamic_flag_spec='${wl}--export-dynamic'
6801 # ancient GNU ld didn't support --whole-archive et. al.
6802 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6803 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6804 else
6805 whole_archive_flag_spec=
6806 fi
6807 fi
6808 else
6809 # PORTME fill in a description of your system's linker (not GNU ld)
6810 case $host_os in
6811 aix3*)
6812 allow_undefined_flag=unsupported
6813 always_export_symbols=yes
6814 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'
6815 # Note: this linker hardcodes the directories in LIBPATH if there
6816 # are no directories specified by -L.
6817 hardcode_minus_L=yes
6818 if test "$GCC" = yes && test -z "$link_static_flag"; then
6819 # Neither direct hardcoding nor static linking is supported with a
6820 # broken collect2.
6821 hardcode_direct=unsupported
6822 fi
6823 ;;
6824
6825 aix4* | aix5*)
6826 if test "$host_cpu" = ia64; then
6827 # On IA64, the linker does run time linking by default, so we don't
6828 # have to do anything special.
6829 aix_use_runtimelinking=no
6830 exp_sym_flag='-Bexport'
6831 no_entry_flag=""
6832 else
6833 # If we're using GNU nm, then we don't want the "-C" option.
6834 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6835 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6836 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'
6837 else
6838 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'
6839 fi
6840 aix_use_runtimelinking=no
6841
6842 # Test if we are trying to use run time linking or normal
6843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6844 # need to do runtime linking.
6845 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6846 for ld_flag in $LDFLAGS; do
6847 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6848 aix_use_runtimelinking=yes
6849 break
6850 fi
6851 done
6852 esac
6853
6854 exp_sym_flag='-bexport'
6855 no_entry_flag='-bnoentry'
6856 fi
6857
6858 # When large executables or shared objects are built, AIX ld can
6859 # have problems creating the table of contents. If linking a library
6860 # or program results in "error TOC overflow" add -mminimal-toc to
6861 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6862 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6863
6864 archive_cmds=''
6865 hardcode_direct=yes
6866 hardcode_libdir_separator=':'
6867 link_all_deplibs=yes
6868
6869 if test "$GCC" = yes; then
6870 case $host_os in aix4.012|aix4.012.*)
6871 # We only want to do this on AIX 4.2 and lower, the check
6872 # below for broken collect2 doesn't work under 4.3+
6873 collect2name=`${CC} -print-prog-name=collect2`
6874 if test -f "$collect2name" && \
6875 strings "$collect2name" | grep resolve_lib_name >/dev/null
6876 then
6877 # We have reworked collect2
6878 hardcode_direct=yes
6879 else
6880 # We have old collect2
6881 hardcode_direct=unsupported
6882 # It fails to find uninstalled libraries when the uninstalled
6883 # path is not listed in the libpath. Setting hardcode_minus_L
6884 # to unsupported forces relinking
6885 hardcode_minus_L=yes
6886 hardcode_libdir_flag_spec='-L$libdir'
6887 hardcode_libdir_separator=
6888 fi
6889 esac
6890 shared_flag='-shared'
6891 else
6892 # not using gcc
6893 if test "$host_cpu" = ia64; then
6894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6895 # chokes on -Wl,-G. The following line is correct:
6896 shared_flag='-G'
6897 else
6898 if test "$aix_use_runtimelinking" = yes; then
6899 shared_flag='${wl}-G'
6900 else
6901 shared_flag='${wl}-bM:SRE'
6902 fi
6903 fi
6904 fi
6905
6906 # It seems that -bexpall does not export symbols beginning with
6907 # underscore (_), so it is better to generate a list of symbols to export.
6908 always_export_symbols=yes
6909 if test "$aix_use_runtimelinking" = yes; then
6910 # Warning - without using the other runtime loading flags (-brtl),
6911 # -berok will link without error, but may produce a broken library.
6912 allow_undefined_flag='-berok'
6913 # Determine the default libpath from the value encoded in an empty executable.
6914 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006915#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006916/* confdefs.h. */
6917_ACEOF
6918cat confdefs.h >>conftest.$ac_ext
6919cat >>conftest.$ac_ext <<_ACEOF
6920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006921
John Criswell7a73b802003-06-30 21:59:07 +00006922int
6923main ()
6924{
John Criswell47fdd832003-07-14 16:52:07 +00006925
John Criswell7a73b802003-06-30 21:59:07 +00006926 ;
6927 return 0;
6928}
6929_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006930rm -f conftest.$ac_objext conftest$ac_exeext
6931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006936 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006942
John Criswell47fdd832003-07-14 16:52:07 +00006943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6944}'`
6945# Check for a 64-bit object if we didn't find anything.
6946if 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; }
6947}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006948else
6949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006950sed 's/^/| /' conftest.$ac_ext >&5
6951
John Criswell7a73b802003-06-30 21:59:07 +00006952fi
John Criswell47fdd832003-07-14 16:52:07 +00006953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006955
John Criswell47fdd832003-07-14 16:52:07 +00006956 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6957 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"
6958 else
6959 if test "$host_cpu" = ia64; then
6960 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6961 allow_undefined_flag="-z nodefs"
6962 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"
6963 else
6964 # Determine the default libpath from the value encoded in an empty executable.
6965 cat >conftest.$ac_ext <<_ACEOF
6966#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006967/* confdefs.h. */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006972
John Criswell47fdd832003-07-14 16:52:07 +00006973int
6974main ()
6975{
John Criswell7a73b802003-06-30 21:59:07 +00006976
John Criswell47fdd832003-07-14 16:52:07 +00006977 ;
6978 return 0;
6979}
6980_ACEOF
6981rm -f conftest.$ac_objext conftest$ac_exeext
6982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983 (eval $ac_link) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -s conftest$ac_exeext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006993
John Criswell47fdd832003-07-14 16:52:07 +00006994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6995}'`
6996# Check for a 64-bit object if we didn't find anything.
6997if 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; }
6998}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006999else
John Criswell47fdd832003-07-14 16:52:07 +00007000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007001sed 's/^/| /' conftest.$ac_ext >&5
7002
John Criswell47fdd832003-07-14 16:52:07 +00007003fi
7004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007006
John Criswell47fdd832003-07-14 16:52:07 +00007007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7008 # Warning - without using the other run time loading flags,
7009 # -berok will link without error, but may produce a broken library.
7010 no_undefined_flag=' ${wl}-bernotok'
7011 allow_undefined_flag=' ${wl}-berok'
7012 # -bexpall does not export symbols beginning with underscore (_)
7013 always_export_symbols=yes
7014 # Exported symbols can be pulled into shared objects from archives
7015 whole_archive_flag_spec=' '
7016 archive_cmds_need_lc=yes
7017 # This is similar to how AIX traditionally builds it's shared libraries.
7018 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 +00007019 fi
7020 fi
John Criswell7a73b802003-06-30 21:59:07 +00007021 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007022
7023 amigaos*)
7024 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)'
7025 hardcode_libdir_flag_spec='-L$libdir'
7026 hardcode_minus_L=yes
7027 # see comment about different semantics on the GNU ld section
7028 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007029 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007030
John Criswell47fdd832003-07-14 16:52:07 +00007031 bsdi4*)
7032 export_dynamic_flag_spec=-rdynamic
7033 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007034
John Criswell47fdd832003-07-14 16:52:07 +00007035 cygwin* | mingw* | pw32*)
7036 # When not using gcc, we currently assume that we are using
7037 # Microsoft Visual C++.
7038 # hardcode_libdir_flag_spec is actually meaningless, as there is
7039 # no search path for DLLs.
7040 hardcode_libdir_flag_spec=' '
7041 allow_undefined_flag=unsupported
7042 # Tell ltmain to make .lib files, not .a files.
7043 libext=lib
7044 # Tell ltmain to make .dll files, not .so files.
7045 shrext=".dll"
7046 # FIXME: Setting linknames here is a bad hack.
7047 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7048 # The linker will automatically build a .lib file if we build a DLL.
7049 old_archive_From_new_cmds='true'
7050 # FIXME: Should let the user specify the lib program.
7051 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7052 fix_srcfile_path='`cygpath -w "$srcfile"`'
7053 enable_shared_with_static_runtimes=yes
7054 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007055
John Criswell47fdd832003-07-14 16:52:07 +00007056 darwin* | rhapsody*)
7057 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7058 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007059 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007060 rhapsody* | darwin1.[012])
7061 allow_undefined_flag='-undefined suppress'
7062 ;;
7063 *) # Darwin 1.3 on
7064 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007065 ;;
7066 esac
John Criswell47fdd832003-07-14 16:52:07 +00007067 # FIXME: Relying on posixy $() will cause problems for
7068 # cross-compilation, but unfortunately the echo tests do not
7069 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7070 # `"' quotes if we put them in here... so don't!
7071 lt_int_apple_cc_single_mod=no
7072 output_verbose_link_cmd='echo'
7073 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7074 lt_int_apple_cc_single_mod=yes
7075 fi
7076 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7077 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7078 else
7079 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'
7080 fi
7081 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7083 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7084 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}'
7085 else
7086 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}'
7087 fi
7088 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}'
7089 hardcode_direct=no
7090 hardcode_automatic=yes
7091 hardcode_shlibpath_var=unsupported
7092 whole_archive_flag_spec='-all_load $convenience'
7093 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007094 fi
John Criswell47fdd832003-07-14 16:52:07 +00007095 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007096
John Criswell47fdd832003-07-14 16:52:07 +00007097 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007099 hardcode_libdir_flag_spec='-L$libdir'
7100 hardcode_shlibpath_var=no
7101 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007102
John Criswell47fdd832003-07-14 16:52:07 +00007103 freebsd1*)
7104 ld_shlibs=no
7105 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007106
John Criswell47fdd832003-07-14 16:52:07 +00007107 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7108 # support. Future versions do this automatically, but an explicit c++rt0.o
7109 # does not break anything, and helps significantly (at the cost of a little
7110 # extra space).
7111 freebsd2.2*)
7112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7113 hardcode_libdir_flag_spec='-R$libdir'
7114 hardcode_direct=yes
7115 hardcode_shlibpath_var=no
7116 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007117
John Criswell47fdd832003-07-14 16:52:07 +00007118 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7119 freebsd2*)
7120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7121 hardcode_direct=yes
7122 hardcode_minus_L=yes
7123 hardcode_shlibpath_var=no
7124 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007125
John Criswell47fdd832003-07-14 16:52:07 +00007126 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7127 freebsd*)
7128 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7129 hardcode_libdir_flag_spec='-R$libdir'
7130 hardcode_direct=yes
7131 hardcode_shlibpath_var=no
7132 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007133
John Criswell47fdd832003-07-14 16:52:07 +00007134 hpux9*)
7135 if test "$GCC" = yes; then
7136 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'
7137 else
7138 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'
7139 fi
7140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7141 hardcode_libdir_separator=:
7142 hardcode_direct=yes
7143
7144 # hardcode_minus_L: Not really in the search PATH,
7145 # but as the default location of the library.
7146 hardcode_minus_L=yes
7147 export_dynamic_flag_spec='${wl}-E'
7148 ;;
7149
7150 hpux10* | hpux11*)
7151 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7152 case "$host_cpu" in
7153 hppa*64*|ia64*)
7154 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7155 ;;
7156 *)
7157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7158 ;;
7159 esac
7160 else
7161 case "$host_cpu" in
7162 hppa*64*|ia64*)
7163 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7164 ;;
7165 *)
7166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7167 ;;
7168 esac
7169 fi
7170 if test "$with_gnu_ld" = no; then
7171 case "$host_cpu" in
7172 hppa*64*)
7173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7174 hardcode_libdir_flag_spec_ld='+b $libdir'
7175 hardcode_libdir_separator=:
7176 hardcode_direct=no
7177 hardcode_shlibpath_var=no
7178 ;;
7179 ia64*)
7180 hardcode_libdir_flag_spec='-L$libdir'
7181 hardcode_direct=no
7182 hardcode_shlibpath_var=no
7183
7184 # hardcode_minus_L: Not really in the search PATH,
7185 # but as the default location of the library.
7186 hardcode_minus_L=yes
7187 ;;
7188 *)
7189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190 hardcode_libdir_separator=:
7191 hardcode_direct=yes
7192 export_dynamic_flag_spec='${wl}-E'
7193
7194 # hardcode_minus_L: Not really in the search PATH,
7195 # but as the default location of the library.
7196 hardcode_minus_L=yes
7197 ;;
7198 esac
7199 fi
7200 ;;
7201
7202 irix5* | irix6* | nonstopux*)
7203 if test "$GCC" = yes; then
7204 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'
7205 else
7206 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'
7207 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7208 fi
7209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7210 hardcode_libdir_separator=:
7211 link_all_deplibs=yes
7212 ;;
7213
7214 netbsd*)
7215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7217 else
7218 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7219 fi
7220 hardcode_libdir_flag_spec='-R$libdir'
7221 hardcode_direct=yes
7222 hardcode_shlibpath_var=no
7223 ;;
7224
7225 newsos6)
7226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7227 hardcode_direct=yes
7228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7229 hardcode_libdir_separator=:
7230 hardcode_shlibpath_var=no
7231 ;;
7232
7233 openbsd*)
7234 hardcode_direct=yes
7235 hardcode_shlibpath_var=no
7236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7238 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7239 export_dynamic_flag_spec='${wl}-E'
7240 else
7241 case $host_os in
7242 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7244 hardcode_libdir_flag_spec='-R$libdir'
7245 ;;
7246 *)
7247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7249 ;;
7250 esac
7251 fi
7252 ;;
7253
7254 os2*)
7255 hardcode_libdir_flag_spec='-L$libdir'
7256 hardcode_minus_L=yes
7257 allow_undefined_flag=unsupported
7258 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'
7259 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7260 ;;
7261
7262 osf3*)
7263 if test "$GCC" = yes; then
7264 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7265 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'
7266 else
7267 allow_undefined_flag=' -expect_unresolved \*'
7268 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'
7269 fi
7270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7271 hardcode_libdir_separator=:
7272 ;;
7273
7274 osf4* | osf5*) # as osf3* with the addition of -msym flag
7275 if test "$GCC" = yes; then
7276 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7277 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'
7278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7279 else
7280 allow_undefined_flag=' -expect_unresolved \*'
7281 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'
7282 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7283 $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'
7284
7285 # Both c and cxx compiler support -rpath directly
7286 hardcode_libdir_flag_spec='-rpath $libdir'
7287 fi
7288 hardcode_libdir_separator=:
7289 ;;
7290
7291 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007294 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007295 runpath_var=LD_RUN_PATH
7296 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007297 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007298
John Criswell47fdd832003-07-14 16:52:07 +00007299 solaris*)
7300 no_undefined_flag=' -z text'
7301 if test "$GCC" = yes; then
7302 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7303 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7304 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7305 else
7306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7307 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7309 fi
7310 hardcode_libdir_flag_spec='-R$libdir'
7311 hardcode_shlibpath_var=no
7312 case $host_os in
7313 solaris2.[0-5] | solaris2.[0-5].*) ;;
7314 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7315 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7316 esac
7317 link_all_deplibs=yes
7318 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007319
John Criswell47fdd832003-07-14 16:52:07 +00007320 sunos4*)
7321 if test "x$host_vendor" = xsequent; then
7322 # Use $CC to link under sequent, because it throws in some extra .o
7323 # files that make .init and .fini sections work.
7324 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7325 else
7326 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7327 fi
7328 hardcode_libdir_flag_spec='-L$libdir'
7329 hardcode_direct=yes
7330 hardcode_minus_L=yes
7331 hardcode_shlibpath_var=no
7332 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007333
John Criswell47fdd832003-07-14 16:52:07 +00007334 sysv4)
7335 case $host_vendor in
7336 sni)
7337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7338 hardcode_direct=yes # is this really true???
7339 ;;
7340 siemens)
7341 ## LD is ld it makes a PLAMLIB
7342 ## CC just makes a GrossModule.
7343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7344 reload_cmds='$CC -r -o $output$reload_objs'
7345 hardcode_direct=no
7346 ;;
7347 motorola)
7348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7349 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7350 ;;
7351 esac
7352 runpath_var='LD_RUN_PATH'
7353 hardcode_shlibpath_var=no
7354 ;;
7355
7356 sysv4.3*)
7357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358 hardcode_shlibpath_var=no
7359 export_dynamic_flag_spec='-Bexport'
7360 ;;
7361
7362 sysv4*MP*)
7363 if test -d /usr/nec; then
7364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365 hardcode_shlibpath_var=no
7366 runpath_var=LD_RUN_PATH
7367 hardcode_runpath_var=yes
7368 ld_shlibs=yes
7369 fi
7370 ;;
7371
7372 sysv4.2uw2*)
7373 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7374 hardcode_direct=yes
7375 hardcode_minus_L=no
7376 hardcode_shlibpath_var=no
7377 hardcode_runpath_var=yes
7378 runpath_var=LD_RUN_PATH
7379 ;;
7380
7381 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7382 no_undefined_flag='${wl}-z ${wl}text'
7383 if test "$GCC" = yes; then
7384 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385 else
7386 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7387 fi
7388 runpath_var='LD_RUN_PATH'
7389 hardcode_shlibpath_var=no
7390 ;;
7391
7392 sysv5*)
7393 no_undefined_flag=' -z text'
7394 # $CC -shared without GNU ld will not create a library from C++
7395 # object files and a static libstdc++, better avoid it by now
7396 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7398 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7399 hardcode_libdir_flag_spec=
7400 hardcode_shlibpath_var=no
7401 runpath_var='LD_RUN_PATH'
7402 ;;
7403
7404 uts4*)
7405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406 hardcode_libdir_flag_spec='-L$libdir'
7407 hardcode_shlibpath_var=no
7408 ;;
7409
7410 *)
7411 ld_shlibs=no
7412 ;;
7413 esac
7414 fi
7415
John Criswell7a73b802003-06-30 21:59:07 +00007416echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7417echo "${ECHO_T}$ld_shlibs" >&6
7418test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007419
John Criswell47fdd832003-07-14 16:52:07 +00007420variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7421if test "$GCC" = yes; then
7422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7423fi
7424
7425#
7426# Do we need to explicitly link libc?
7427#
7428case "x$archive_cmds_need_lc" in
7429x|xyes)
7430 # Assume -lc should be added
7431 archive_cmds_need_lc=yes
7432
7433 if test "$enable_shared" = yes && test "$GCC" = yes; then
7434 case $archive_cmds in
7435 *'~'*)
7436 # FIXME: we may have to deal with multi-command sequences.
7437 ;;
7438 '$CC '*)
7439 # Test whether the compiler implicitly links with -lc since on some
7440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7441 # to ld, don't add -lc before -lgcc.
7442 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7443echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7444 $rm conftest*
7445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7446
7447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } 2>conftest.err; then
7452 soname=conftest
7453 lib=conftest
7454 libobjs=conftest.$ac_objext
7455 deplibs=
7456 wl=$lt_prog_compiler_wl
7457 compiler_flags=-v
7458 linker_flags=-v
7459 verstring=
7460 output_objdir=.
7461 libname=conftest
7462 lt_save_allow_undefined_flag=$allow_undefined_flag
7463 allow_undefined_flag=
7464 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7465 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }
7469 then
7470 archive_cmds_need_lc=no
7471 else
7472 archive_cmds_need_lc=yes
7473 fi
7474 allow_undefined_flag=$lt_save_allow_undefined_flag
7475 else
7476 cat conftest.err 1>&5
7477 fi
7478 $rm conftest*
7479 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7480echo "${ECHO_T}$archive_cmds_need_lc" >&6
7481 ;;
7482 esac
7483 fi
7484 ;;
7485esac
7486
John Criswell7a73b802003-06-30 21:59:07 +00007487echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7488echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7489hardcode_action=
7490if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007491 test -n "$runpath_var " || \
7492 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007493
7494 # We can hardcode non-existant directories.
7495 if test "$hardcode_direct" != no &&
7496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7497 # have to relink, otherwise we might link with an installed library
7498 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007500 test "$hardcode_minus_L" != no; then
7501 # Linking always hardcodes the temporary library directory.
7502 hardcode_action=relink
7503 else
7504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7505 hardcode_action=immediate
7506 fi
7507else
7508 # We cannot hardcode anything, or else we can only hardcode existing
7509 # directories.
7510 hardcode_action=unsupported
7511fi
7512echo "$as_me:$LINENO: result: $hardcode_action" >&5
7513echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007514
John Criswell47fdd832003-07-14 16:52:07 +00007515if test "$hardcode_action" = relink; then
7516 # Fast installation is not supported
7517 enable_fast_install=no
7518elif test "$shlibpath_overrides_runpath" = yes ||
7519 test "$enable_shared" = no; then
7520 # Fast installation is not necessary
7521 enable_fast_install=needless
7522fi
7523
John Criswell7a73b802003-06-30 21:59:07 +00007524striplib=
7525old_striplib=
7526echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7527echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7528if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7530 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7531 echo "$as_me:$LINENO: result: yes" >&5
7532echo "${ECHO_T}yes" >&6
7533else
John Criswell47fdd832003-07-14 16:52:07 +00007534# FIXME - insert some real tests, host_os isn't really good enough
7535 case $host_os in
7536 darwin*)
7537 if test -n "$STRIP" ; then
7538 striplib="$STRIP -x"
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
John Criswell7a73b802003-06-30 21:59:07 +00007542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544fi
John Criswell47fdd832003-07-14 16:52:07 +00007545 ;;
7546 *)
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549 ;;
7550 esac
7551fi
John Criswell7a73b802003-06-30 21:59:07 +00007552
John Criswell7a73b802003-06-30 21:59:07 +00007553echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7554echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7555library_names_spec=
7556libname_spec='lib$name'
7557soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007558shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007559postinstall_cmds=
7560postuninstall_cmds=
7561finish_cmds=
7562finish_eval=
7563shlibpath_var=
7564shlibpath_overrides_runpath=unknown
7565version_type=none
7566dynamic_linker="$host_os ld.so"
7567sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007568if test "$GCC" = yes; then
7569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7570 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7571 # if the path contains ";" then we assume it to be the separator
7572 # otherwise default to the standard path separator (i.e. ":") - it is
7573 # assumed that no part of a normal pathname contains ";" but that should
7574 # okay in the real world where ";" in dirpaths is itself problematic.
7575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7576 else
7577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7578 fi
7579else
7580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7581fi
7582need_lib_prefix=unknown
7583hardcode_into_libs=no
7584
7585# when you set need_version to no, make sure it does not cause -set_version
7586# flags to be left without arguments
7587need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007588
7589case $host_os in
7590aix3*)
7591 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007593 shlibpath_var=LIBPATH
7594
John Criswell47fdd832003-07-14 16:52:07 +00007595 # AIX 3 has no versioning support, so we append a major version to the name.
7596 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007597 ;;
7598
7599aix4* | aix5*)
7600 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007601 need_lib_prefix=no
7602 need_version=no
7603 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007604 if test "$host_cpu" = ia64; then
7605 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007607 shlibpath_var=LD_LIBRARY_PATH
7608 else
7609 # With GCC up to 2.95.x, collect2 would create an import file
7610 # for dependence libraries. The import file would start with
7611 # the line `#! .'. This would cause the generated library to
7612 # depend on `.', always an invalid library. This was fixed in
7613 # development snapshots of GCC prior to 3.0.
7614 case $host_os in
7615 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7617 echo ' yes '
7618 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7619 :
7620 else
7621 can_build_shared=no
7622 fi
7623 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007624 esac
John Criswell47fdd832003-07-14 16:52:07 +00007625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7626 # soname into executable. Probably we can add versioning support to
7627 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007628 if test "$aix_use_runtimelinking" = yes; then
7629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7630 # instead of lib<name>.a to let people know that these are not
7631 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007633 else
7634 # We preserve .a as extension for shared libraries through AIX4.2
7635 # and later when we are not doing run time linking.
7636 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007637 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007638 fi
7639 shlibpath_var=LIBPATH
7640 fi
7641 ;;
7642
7643amigaos*)
7644 library_names_spec='$libname.ixlibrary $libname.a'
7645 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7646 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'
7647 ;;
7648
7649beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007650 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007651 dynamic_linker="$host_os ld.so"
7652 shlibpath_var=LIBRARY_PATH
7653 ;;
7654
7655bsdi4*)
7656 version_type=linux
7657 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7661 shlibpath_var=LD_LIBRARY_PATH
7662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007664 # the default ld.so.conf also contains /usr/contrib/lib and
7665 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7666 # libtool to hard-code these into programs
7667 ;;
7668
7669cygwin* | mingw* | pw32*)
7670 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007671 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007672 need_version=no
7673 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007674
John Criswell7a73b802003-06-30 21:59:07 +00007675 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007676 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007677 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007678 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7679 postinstall_cmds='base_file=`basename \${file}`~
7680 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007681 dldir=$destdir/`dirname \$dlpath`~
7682 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007683 $install_prog $dir/$dlname \$dldir/$dlname'
7684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007685 dlpath=$dir/\$dldll~
7686 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007687 shlibpath_overrides_runpath=yes
7688
7689 case $host_os in
7690 cygwin*)
7691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7693 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7694 ;;
7695 mingw*)
7696 # MinGW DLLs use traditional 'lib' prefix
7697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7699 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7700 # It is most probably a Windows format PATH printed by
7701 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7702 # path with ; separators, and with drive letters. We can handle the
7703 # drive letters (cygwin fileutils understands them), so leave them,
7704 # especially as we might pass files found there to a mingw objdump,
7705 # which wouldn't understand a cygwinified path. Ahh.
7706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7707 else
7708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7709 fi
7710 ;;
7711 pw32*)
7712 # pw32 DLLs use 'pw' prefix rather than 'lib'
7713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7714 ;;
7715 esac
John Criswell7a73b802003-06-30 21:59:07 +00007716 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007717
John Criswell7a73b802003-06-30 21:59:07 +00007718 *)
John Criswell47fdd832003-07-14 16:52:07 +00007719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007720 ;;
7721 esac
7722 dynamic_linker='Win32 ld.exe'
7723 # FIXME: first we should search . and the directory the executable is in
7724 shlibpath_var=PATH
7725 ;;
7726
7727darwin* | rhapsody*)
7728 dynamic_linker="$host_os dyld"
7729 version_type=darwin
7730 need_lib_prefix=no
7731 need_version=no
7732 # FIXME: Relying on posixy $() will cause problems for
7733 # cross-compilation, but unfortunately the echo tests do not
7734 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007735 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7736 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007737 shlibpath_overrides_runpath=yes
7738 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007739 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7740 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7741 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7742 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"`
7743 fi
7744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7745 ;;
7746
7747dgux*)
7748 version_type=linux
7749 need_lib_prefix=no
7750 need_version=no
7751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7752 soname_spec='${libname}${release}${shared_ext}$major'
7753 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007754 ;;
7755
7756freebsd1*)
7757 dynamic_linker=no
7758 ;;
7759
7760freebsd*)
7761 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7762 version_type=freebsd-$objformat
7763 case $version_type in
7764 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007766 need_version=no
7767 need_lib_prefix=no
7768 ;;
7769 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007771 need_version=yes
7772 ;;
7773 esac
7774 shlibpath_var=LD_LIBRARY_PATH
7775 case $host_os in
7776 freebsd2*)
7777 shlibpath_overrides_runpath=yes
7778 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007779 freebsd3.01* | freebsdelf3.01*)
7780 shlibpath_overrides_runpath=yes
7781 hardcode_into_libs=yes
7782 ;;
7783 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007784 shlibpath_overrides_runpath=no
7785 hardcode_into_libs=yes
7786 ;;
7787 esac
7788 ;;
7789
7790gnu*)
7791 version_type=linux
7792 need_lib_prefix=no
7793 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7795 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007796 shlibpath_var=LD_LIBRARY_PATH
7797 hardcode_into_libs=yes
7798 ;;
7799
7800hpux9* | hpux10* | hpux11*)
7801 # Give a soname corresponding to the major version so that dld.sl refuses to
7802 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007803 version_type=sunos
7804 need_lib_prefix=no
7805 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007806 case "$host_cpu" in
7807 ia64*)
7808 shrext='.so'
7809 hardcode_into_libs=yes
7810 dynamic_linker="$host_os dld.so"
7811 shlibpath_var=LD_LIBRARY_PATH
7812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7814 soname_spec='${libname}${release}${shared_ext}$major'
7815 if test "X$HPUX_IA64_MODE" = X32; then
7816 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7817 else
7818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7819 fi
7820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7821 ;;
7822 hppa*64*)
7823 shrext='.sl'
7824 hardcode_into_libs=yes
7825 dynamic_linker="$host_os dld.sl"
7826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7829 soname_spec='${libname}${release}${shared_ext}$major'
7830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7832 ;;
7833 *)
7834 shrext='.sl'
7835 dynamic_linker="$host_os dld.sl"
7836 shlibpath_var=SHLIB_PATH
7837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839 soname_spec='${libname}${release}${shared_ext}$major'
7840 ;;
7841 esac
John Criswell7a73b802003-06-30 21:59:07 +00007842 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7843 postinstall_cmds='chmod 555 $lib'
7844 ;;
7845
John Criswell47fdd832003-07-14 16:52:07 +00007846irix5* | irix6* | nonstopux*)
7847 case $host_os in
7848 nonstopux*) version_type=nonstopux ;;
7849 *)
7850 if test "$lt_cv_prog_gnu_ld" = yes; then
7851 version_type=linux
7852 else
7853 version_type=irix
7854 fi ;;
7855 esac
John Criswell7a73b802003-06-30 21:59:07 +00007856 need_lib_prefix=no
7857 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007858 soname_spec='${libname}${release}${shared_ext}$major'
7859 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 +00007860 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007861 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007862 libsuff= shlibsuff=
7863 ;;
7864 *)
7865 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7867 libsuff= shlibsuff= libmagic=32-bit;;
7868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7869 libsuff=32 shlibsuff=N32 libmagic=N32;;
7870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007872 *) libsuff= shlibsuff= libmagic=never-match;;
7873 esac
7874 ;;
7875 esac
7876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7877 shlibpath_overrides_runpath=no
7878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007880 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007881 ;;
7882
7883# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007884linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007885 dynamic_linker=no
7886 ;;
7887
7888# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007889linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007890 version_type=linux
7891 need_lib_prefix=no
7892 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7896 shlibpath_var=LD_LIBRARY_PATH
7897 shlibpath_overrides_runpath=no
7898 # This implies no fast_install, which is unacceptable.
7899 # Some rework will be needed to allow for fast_install
7900 # before this can be enabled.
7901 hardcode_into_libs=yes
7902
7903 # We used to test for /lib/ld.so.1 and disable shared libraries on
7904 # powerpc, because MkLinux only supported shared libraries with the
7905 # GNU dynamic linker. Since this was broken with cross compilers,
7906 # most powerpc-linux boxes support dynamic linking these days and
7907 # people can always --disable-shared, the test was removed, and we
7908 # assume the GNU/Linux dynamic linker is in use.
7909 dynamic_linker='GNU/Linux ld.so'
7910 ;;
7911
7912netbsd*)
7913 version_type=sunos
7914 need_lib_prefix=no
7915 need_version=no
7916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7919 dynamic_linker='NetBSD (a.out) ld.so'
7920 else
John Criswell47fdd832003-07-14 16:52:07 +00007921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7922 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007923 dynamic_linker='NetBSD ld.elf_so'
7924 fi
7925 shlibpath_var=LD_LIBRARY_PATH
7926 shlibpath_overrides_runpath=yes
7927 hardcode_into_libs=yes
7928 ;;
7929
7930newsos6)
7931 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933 shlibpath_var=LD_LIBRARY_PATH
7934 shlibpath_overrides_runpath=yes
7935 ;;
7936
7937nto-qnx)
7938 version_type=linux
7939 need_lib_prefix=no
7940 need_version=no
7941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7942 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007943 shlibpath_var=LD_LIBRARY_PATH
7944 shlibpath_overrides_runpath=yes
7945 ;;
7946
7947openbsd*)
7948 version_type=sunos
7949 need_lib_prefix=no
7950 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7953 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007954 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 +00007955 case $host_os in
7956 openbsd2.[89] | openbsd2.[89].*)
7957 shlibpath_overrides_runpath=no
7958 ;;
7959 *)
7960 shlibpath_overrides_runpath=yes
7961 ;;
7962 esac
John Criswell7a73b802003-06-30 21:59:07 +00007963 else
7964 shlibpath_overrides_runpath=yes
7965 fi
John Criswell7a73b802003-06-30 21:59:07 +00007966 ;;
7967
7968os2*)
7969 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007970 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007971 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007972 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007973 dynamic_linker='OS/2 ld.exe'
7974 shlibpath_var=LIBPATH
7975 ;;
7976
7977osf3* | osf4* | osf5*)
7978 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007979 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007980 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007981 soname_spec='${libname}${release}${shared_ext}$major'
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007983 shlibpath_var=LD_LIBRARY_PATH
7984 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7985 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7986 ;;
7987
7988sco3.2v5*)
7989 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007990 soname_spec='${libname}${release}${shared_ext}$major'
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007992 shlibpath_var=LD_LIBRARY_PATH
7993 ;;
7994
7995solaris*)
7996 version_type=linux
7997 need_lib_prefix=no
7998 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8000 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008001 shlibpath_var=LD_LIBRARY_PATH
8002 shlibpath_overrides_runpath=yes
8003 hardcode_into_libs=yes
8004 # ldd complains unless libraries are executable
8005 postinstall_cmds='chmod +x $lib'
8006 ;;
8007
8008sunos4*)
8009 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008011 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8012 shlibpath_var=LD_LIBRARY_PATH
8013 shlibpath_overrides_runpath=yes
8014 if test "$with_gnu_ld" = yes; then
8015 need_lib_prefix=no
8016 fi
8017 need_version=yes
8018 ;;
8019
8020sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8021 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8023 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008024 shlibpath_var=LD_LIBRARY_PATH
8025 case $host_vendor in
8026 sni)
8027 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008028 need_lib_prefix=no
8029 export_dynamic_flag_spec='${wl}-Blargedynsym'
8030 runpath_var=LD_RUN_PATH
8031 ;;
8032 siemens)
8033 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008034 ;;
8035 motorola)
8036 need_lib_prefix=no
8037 need_version=no
8038 shlibpath_overrides_runpath=no
8039 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8040 ;;
8041 esac
8042 ;;
8043
John Criswell7a73b802003-06-30 21:59:07 +00008044sysv4*MP*)
8045 if test -d /usr/nec ;then
8046 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008047 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8048 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008049 shlibpath_var=LD_LIBRARY_PATH
8050 fi
8051 ;;
8052
John Criswell47fdd832003-07-14 16:52:07 +00008053uts4*)
8054 version_type=linux
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 soname_spec='${libname}${release}${shared_ext}$major'
8057 shlibpath_var=LD_LIBRARY_PATH
8058 ;;
8059
John Criswell7a73b802003-06-30 21:59:07 +00008060*)
8061 dynamic_linker=no
8062 ;;
8063esac
8064echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8065echo "${ECHO_T}$dynamic_linker" >&6
8066test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008067
8068if test "x$enable_dlopen" != xyes; then
8069 enable_dlopen=unknown
8070 enable_dlopen_self=unknown
8071 enable_dlopen_self_static=unknown
8072else
8073 lt_cv_dlopen=no
8074 lt_cv_dlopen_libs=
8075
8076 case $host_os in
8077 beos*)
8078 lt_cv_dlopen="load_add_on"
8079 lt_cv_dlopen_libs=
8080 lt_cv_dlopen_self=yes
8081 ;;
8082
John Criswell47fdd832003-07-14 16:52:07 +00008083 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008084 lt_cv_dlopen="LoadLibrary"
8085 lt_cv_dlopen_libs=
8086 ;;
8087
John Criswell47fdd832003-07-14 16:52:07 +00008088 cygwin*)
8089 lt_cv_dlopen="dlopen"
8090 lt_cv_dlopen_libs=
8091 ;;
8092
8093 darwin*)
8094 # if libdl is installed we need to link against it
8095 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8096echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8097if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100 ac_check_lib_save_LIBS=$LIBS
8101LIBS="-ldl $LIBS"
8102cat >conftest.$ac_ext <<_ACEOF
8103#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008104/* confdefs.h. */
8105_ACEOF
8106cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008109
8110/* Override any gcc2 internal prototype to avoid an error. */
8111#ifdef __cplusplus
8112extern "C"
8113#endif
8114/* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8116char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008117int
8118main ()
8119{
8120dlopen ();
8121 ;
8122 return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext conftest$ac_exeext
8126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127 (eval $ac_link) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -s conftest$ac_exeext'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 (eval $ac_try) 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_cv_lib_dl_dlopen=yes
8138else
8139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008140sed 's/^/| /' conftest.$ac_ext >&5
8141
John Criswell47fdd832003-07-14 16:52:07 +00008142ac_cv_lib_dl_dlopen=no
8143fi
8144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8145LIBS=$ac_check_lib_save_LIBS
8146fi
8147echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8148echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8149if test $ac_cv_lib_dl_dlopen = yes; then
8150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8151else
8152
8153 lt_cv_dlopen="dyld"
8154 lt_cv_dlopen_libs=
8155 lt_cv_dlopen_self=yes
8156
8157fi
8158
8159 ;;
8160
John Criswell7a73b802003-06-30 21:59:07 +00008161 *)
8162 echo "$as_me:$LINENO: checking for shl_load" >&5
8163echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8164if test "${ac_cv_func_shl_load+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
8167 cat >conftest.$ac_ext <<_ACEOF
8168#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008169/* confdefs.h. */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008174/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008175 which can conflict with char shl_load (); below.
8176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177 <limits.h> exists even on freestanding compilers. */
8178#ifdef __STDC__
8179# include <limits.h>
8180#else
8181# include <assert.h>
8182#endif
John Criswell7a73b802003-06-30 21:59:07 +00008183/* Override any gcc2 internal prototype to avoid an error. */
8184#ifdef __cplusplus
8185extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008186{
John Criswell7a73b802003-06-30 21:59:07 +00008187#endif
8188/* We use char because int might match the return type of a gcc2
8189 builtin and then its argument prototype would still apply. */
8190char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008191/* The GNU C library defines this for functions which it implements
8192 to always fail with ENOSYS. Some functions are actually named
8193 something starting with __ and the normal name is an alias. */
8194#if defined (__stub_shl_load) || defined (__stub___shl_load)
8195choke me
8196#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008197char (*f) () = shl_load;
8198#endif
8199#ifdef __cplusplus
8200}
John Criswell7a73b802003-06-30 21:59:07 +00008201#endif
8202
John Criswell0c38eaf2003-09-10 15:17:25 +00008203int
8204main ()
8205{
8206return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008207 ;
8208 return 0;
8209}
8210_ACEOF
8211rm -f conftest.$ac_objext conftest$ac_exeext
8212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_func_shl_load=yes
8224else
8225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008226sed 's/^/| /' conftest.$ac_ext >&5
8227
John Criswell7a73b802003-06-30 21:59:07 +00008228ac_cv_func_shl_load=no
8229fi
8230rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8231fi
8232echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8233echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8234if test $ac_cv_func_shl_load = yes; then
8235 lt_cv_dlopen="shl_load"
8236else
8237 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8238echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8239if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242 ac_check_lib_save_LIBS=$LIBS
8243LIBS="-ldld $LIBS"
8244cat >conftest.$ac_ext <<_ACEOF
8245#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008246/* confdefs.h. */
8247_ACEOF
8248cat confdefs.h >>conftest.$ac_ext
8249cat >>conftest.$ac_ext <<_ACEOF
8250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008251
8252/* Override any gcc2 internal prototype to avoid an error. */
8253#ifdef __cplusplus
8254extern "C"
8255#endif
8256/* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8258char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008259int
8260main ()
8261{
8262shl_load ();
8263 ;
8264 return 0;
8265}
8266_ACEOF
8267rm -f conftest.$ac_objext conftest$ac_exeext
8268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8269 (eval $ac_link) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -s conftest$ac_exeext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_cv_lib_dld_shl_load=yes
8280else
8281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008282sed 's/^/| /' conftest.$ac_ext >&5
8283
John Criswell7a73b802003-06-30 21:59:07 +00008284ac_cv_lib_dld_shl_load=no
8285fi
8286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8287LIBS=$ac_check_lib_save_LIBS
8288fi
8289echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8290echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8291if test $ac_cv_lib_dld_shl_load = yes; then
8292 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8293else
8294 echo "$as_me:$LINENO: checking for dlopen" >&5
8295echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8296if test "${ac_cv_func_dlopen+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299 cat >conftest.$ac_ext <<_ACEOF
8300#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008306/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008307 which can conflict with char dlopen (); below.
8308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8309 <limits.h> exists even on freestanding compilers. */
8310#ifdef __STDC__
8311# include <limits.h>
8312#else
8313# include <assert.h>
8314#endif
John Criswell7a73b802003-06-30 21:59:07 +00008315/* Override any gcc2 internal prototype to avoid an error. */
8316#ifdef __cplusplus
8317extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008318{
John Criswell7a73b802003-06-30 21:59:07 +00008319#endif
8320/* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8322char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008323/* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326#if defined (__stub_dlopen) || defined (__stub___dlopen)
8327choke me
8328#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008329char (*f) () = dlopen;
8330#endif
8331#ifdef __cplusplus
8332}
John Criswell7a73b802003-06-30 21:59:07 +00008333#endif
8334
John Criswell0c38eaf2003-09-10 15:17:25 +00008335int
8336main ()
8337{
8338return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008339 ;
8340 return 0;
8341}
8342_ACEOF
8343rm -f conftest.$ac_objext conftest$ac_exeext
8344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_func_dlopen=yes
8356else
8357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008358sed 's/^/| /' conftest.$ac_ext >&5
8359
John Criswell7a73b802003-06-30 21:59:07 +00008360ac_cv_func_dlopen=no
8361fi
8362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8363fi
8364echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8365echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8366if test $ac_cv_func_dlopen = yes; then
8367 lt_cv_dlopen="dlopen"
8368else
8369 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8370echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8371if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374 ac_check_lib_save_LIBS=$LIBS
8375LIBS="-ldl $LIBS"
8376cat >conftest.$ac_ext <<_ACEOF
8377#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008378/* confdefs.h. */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008383
8384/* Override any gcc2 internal prototype to avoid an error. */
8385#ifdef __cplusplus
8386extern "C"
8387#endif
8388/* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8390char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008391int
8392main ()
8393{
8394dlopen ();
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext conftest$ac_exeext
8400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_lib_dl_dlopen=yes
8412else
8413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008414sed 's/^/| /' conftest.$ac_ext >&5
8415
John Criswell7a73b802003-06-30 21:59:07 +00008416ac_cv_lib_dl_dlopen=no
8417fi
8418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419LIBS=$ac_check_lib_save_LIBS
8420fi
8421echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8422echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8423if test $ac_cv_lib_dl_dlopen = yes; then
8424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8425else
8426 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8427echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8428if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431 ac_check_lib_save_LIBS=$LIBS
8432LIBS="-lsvld $LIBS"
8433cat >conftest.$ac_ext <<_ACEOF
8434#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008435/* confdefs.h. */
8436_ACEOF
8437cat confdefs.h >>conftest.$ac_ext
8438cat >>conftest.$ac_ext <<_ACEOF
8439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008440
8441/* Override any gcc2 internal prototype to avoid an error. */
8442#ifdef __cplusplus
8443extern "C"
8444#endif
8445/* We use char because int might match the return type of a gcc2
8446 builtin and then its argument prototype would still apply. */
8447char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008448int
8449main ()
8450{
8451dlopen ();
8452 ;
8453 return 0;
8454}
8455_ACEOF
8456rm -f conftest.$ac_objext conftest$ac_exeext
8457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458 (eval $ac_link) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_lib_svld_dlopen=yes
8469else
8470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008471sed 's/^/| /' conftest.$ac_ext >&5
8472
John Criswell7a73b802003-06-30 21:59:07 +00008473ac_cv_lib_svld_dlopen=no
8474fi
8475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8476LIBS=$ac_check_lib_save_LIBS
8477fi
8478echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480if test $ac_cv_lib_svld_dlopen = yes; then
8481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8482else
8483 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488 ac_check_lib_save_LIBS=$LIBS
8489LIBS="-ldld $LIBS"
8490cat >conftest.$ac_ext <<_ACEOF
8491#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008492/* confdefs.h. */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008497
8498/* Override any gcc2 internal prototype to avoid an error. */
8499#ifdef __cplusplus
8500extern "C"
8501#endif
8502/* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008505int
8506main ()
8507{
8508dld_link ();
8509 ;
8510 return 0;
8511}
8512_ACEOF
8513rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -s conftest$ac_exeext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_lib_dld_dld_link=yes
8526else
8527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008528sed 's/^/| /' conftest.$ac_ext >&5
8529
John Criswell7a73b802003-06-30 21:59:07 +00008530ac_cv_lib_dld_dld_link=no
8531fi
8532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533LIBS=$ac_check_lib_save_LIBS
8534fi
8535echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8536echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8537if test $ac_cv_lib_dld_dld_link = yes; then
8538 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8539fi
8540
8541
8542fi
8543
8544
8545fi
8546
8547
8548fi
8549
8550
8551fi
8552
8553
8554fi
8555
8556 ;;
8557 esac
8558
8559 if test "x$lt_cv_dlopen" != xno; then
8560 enable_dlopen=yes
8561 else
8562 enable_dlopen=no
8563 fi
8564
8565 case $lt_cv_dlopen in
8566 dlopen)
8567 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008568 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008569
8570 save_LDFLAGS="$LDFLAGS"
8571 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8572
8573 save_LIBS="$LIBS"
8574 LIBS="$lt_cv_dlopen_libs $LIBS"
8575
8576 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8577echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8578if test "${lt_cv_dlopen_self+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581 if test "$cross_compiling" = yes; then :
8582 lt_cv_dlopen_self=cross
8583else
John Criswell47fdd832003-07-14 16:52:07 +00008584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008585 lt_status=$lt_dlunknown
8586 cat > conftest.$ac_ext <<EOF
John Criswellf424d742003-10-07 21:13:47 +00008587#line 8587 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008588#include "confdefs.h"
8589
8590#if HAVE_DLFCN_H
8591#include <dlfcn.h>
8592#endif
8593
8594#include <stdio.h>
8595
8596#ifdef RTLD_GLOBAL
8597# define LT_DLGLOBAL RTLD_GLOBAL
8598#else
8599# ifdef DL_GLOBAL
8600# define LT_DLGLOBAL DL_GLOBAL
8601# else
8602# define LT_DLGLOBAL 0
8603# endif
8604#endif
8605
8606/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8607 find out it does not work in some platform. */
8608#ifndef LT_DLLAZY_OR_NOW
8609# ifdef RTLD_LAZY
8610# define LT_DLLAZY_OR_NOW RTLD_LAZY
8611# else
8612# ifdef DL_LAZY
8613# define LT_DLLAZY_OR_NOW DL_LAZY
8614# else
8615# ifdef RTLD_NOW
8616# define LT_DLLAZY_OR_NOW RTLD_NOW
8617# else
8618# ifdef DL_NOW
8619# define LT_DLLAZY_OR_NOW DL_NOW
8620# else
8621# define LT_DLLAZY_OR_NOW 0
8622# endif
8623# endif
8624# endif
8625# endif
8626#endif
8627
8628#ifdef __cplusplus
8629extern "C" void exit (int);
8630#endif
8631
8632void fnord() { int i=42;}
8633int main ()
8634{
8635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8636 int status = $lt_dlunknown;
8637
8638 if (self)
8639 {
8640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8642 /* dlclose (self); */
8643 }
8644
8645 exit (status);
8646}
8647EOF
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8653 (./conftest; exit; ) 2>/dev/null
8654 lt_status=$?
8655 case x$lt_status in
8656 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8657 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8658 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8659 esac
8660 else :
8661 # compilation failed
8662 lt_cv_dlopen_self=no
8663 fi
8664fi
8665rm -fr conftest*
8666
8667
8668fi
8669echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8670echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8671
8672 if test "x$lt_cv_dlopen_self" = xyes; then
8673 LDFLAGS="$LDFLAGS $link_static_flag"
8674 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8675echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8676if test "${lt_cv_dlopen_self_static+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679 if test "$cross_compiling" = yes; then :
8680 lt_cv_dlopen_self_static=cross
8681else
John Criswell47fdd832003-07-14 16:52:07 +00008682 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008683 lt_status=$lt_dlunknown
8684 cat > conftest.$ac_ext <<EOF
John Criswellf424d742003-10-07 21:13:47 +00008685#line 8685 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008686#include "confdefs.h"
8687
8688#if HAVE_DLFCN_H
8689#include <dlfcn.h>
8690#endif
8691
8692#include <stdio.h>
8693
8694#ifdef RTLD_GLOBAL
8695# define LT_DLGLOBAL RTLD_GLOBAL
8696#else
8697# ifdef DL_GLOBAL
8698# define LT_DLGLOBAL DL_GLOBAL
8699# else
8700# define LT_DLGLOBAL 0
8701# endif
8702#endif
8703
8704/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8705 find out it does not work in some platform. */
8706#ifndef LT_DLLAZY_OR_NOW
8707# ifdef RTLD_LAZY
8708# define LT_DLLAZY_OR_NOW RTLD_LAZY
8709# else
8710# ifdef DL_LAZY
8711# define LT_DLLAZY_OR_NOW DL_LAZY
8712# else
8713# ifdef RTLD_NOW
8714# define LT_DLLAZY_OR_NOW RTLD_NOW
8715# else
8716# ifdef DL_NOW
8717# define LT_DLLAZY_OR_NOW DL_NOW
8718# else
8719# define LT_DLLAZY_OR_NOW 0
8720# endif
8721# endif
8722# endif
8723# endif
8724#endif
8725
8726#ifdef __cplusplus
8727extern "C" void exit (int);
8728#endif
8729
8730void fnord() { int i=42;}
8731int main ()
8732{
8733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8734 int status = $lt_dlunknown;
8735
8736 if (self)
8737 {
8738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8739 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8740 /* dlclose (self); */
8741 }
8742
8743 exit (status);
8744}
8745EOF
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8751 (./conftest; exit; ) 2>/dev/null
8752 lt_status=$?
8753 case x$lt_status in
8754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8756 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8757 esac
8758 else :
8759 # compilation failed
8760 lt_cv_dlopen_self_static=no
8761 fi
8762fi
8763rm -fr conftest*
8764
8765
8766fi
8767echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8768echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8769 fi
8770
8771 CPPFLAGS="$save_CPPFLAGS"
8772 LDFLAGS="$save_LDFLAGS"
8773 LIBS="$save_LIBS"
8774 ;;
8775 esac
8776
8777 case $lt_cv_dlopen_self in
8778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8779 *) enable_dlopen_self=unknown ;;
8780 esac
8781
8782 case $lt_cv_dlopen_self_static in
8783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8784 *) enable_dlopen_self_static=unknown ;;
8785 esac
8786fi
8787
8788
John Criswell47fdd832003-07-14 16:52:07 +00008789# Report which librarie types wil actually be built
8790echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8791echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8792echo "$as_me:$LINENO: result: $can_build_shared" >&5
8793echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008794
John Criswell47fdd832003-07-14 16:52:07 +00008795echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8796echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8797test "$can_build_shared" = "no" && enable_shared=no
8798
8799# On AIX, shared libraries and static libraries use the same namespace, and
8800# are all built from PIC.
8801case "$host_os" in
8802aix3*)
8803 test "$enable_shared" = yes && enable_static=no
8804 if test -n "$RANLIB"; then
8805 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8806 postinstall_cmds='$RANLIB $lib'
8807 fi
8808 ;;
8809
8810aix4*)
8811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8812 test "$enable_shared" = yes && enable_static=no
8813 fi
8814 ;;
8815 darwin* | rhapsody*)
8816 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8817 archive_cmds_need_lc=no
8818 case "$host_os" in
8819 rhapsody* | darwin1.[012])
8820 allow_undefined_flag='-undefined suppress'
8821 ;;
8822 *) # Darwin 1.3 on
8823 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8824 ;;
8825 esac
8826 # FIXME: Relying on posixy $() will cause problems for
8827 # cross-compilation, but unfortunately the echo tests do not
8828 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8829 # `"' quotes if we put them in here... so don't!
8830 output_verbose_link_cmd='echo'
8831 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8832 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8833 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8834 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}'
8835 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}'
8836 hardcode_direct=no
8837 hardcode_automatic=yes
8838 hardcode_shlibpath_var=unsupported
8839 whole_archive_flag_spec='-all_load $convenience'
8840 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008841 fi
John Criswell7a73b802003-06-30 21:59:07 +00008842 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008843esac
8844echo "$as_me:$LINENO: result: $enable_shared" >&5
8845echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008846
John Criswell47fdd832003-07-14 16:52:07 +00008847echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8848echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8849# Make sure either enable_shared or enable_static is yes.
8850test "$enable_shared" = yes || enable_static=yes
8851echo "$as_me:$LINENO: result: $enable_static" >&5
8852echo "${ECHO_T}$enable_static" >&6
8853
8854# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008855# libtool distribution, otherwise you forgot to ship ltmain.sh
8856# with your package, and you will get complaints that there are
8857# no rules to generate ltmain.sh.
8858if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008859 # See if we are running on zsh, and set the options which allow our commands through
8860 # without removal of \ escapes.
8861 if test -n "${ZSH_VERSION+set}" ; then
8862 setopt NO_GLOB_SUBST
8863 fi
John Criswell7a73b802003-06-30 21:59:07 +00008864 # Now quote all the things that may contain metacharacters while being
8865 # careful not to overquote the AC_SUBSTed values. We take copies of the
8866 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008867 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8868 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8869 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8870 deplibs_check_method reload_flag reload_cmds need_locks \
8871 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8872 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008873 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008874 old_postinstall_cmds old_postuninstall_cmds \
8875 compiler \
8876 CC \
8877 LD \
8878 lt_prog_compiler_wl \
8879 lt_prog_compiler_pic \
8880 lt_prog_compiler_static \
8881 lt_prog_compiler_no_builtin_flag \
8882 export_dynamic_flag_spec \
8883 thread_safe_flag_spec \
8884 whole_archive_flag_spec \
8885 enable_shared_with_static_runtimes \
8886 old_archive_cmds \
8887 old_archive_from_new_cmds \
8888 predep_objects \
8889 postdep_objects \
8890 predeps \
8891 postdeps \
8892 compiler_lib_search_path \
8893 archive_cmds \
8894 archive_expsym_cmds \
8895 postinstall_cmds \
8896 postuninstall_cmds \
8897 old_archive_from_expsyms_cmds \
8898 allow_undefined_flag \
8899 no_undefined_flag \
8900 export_symbols_cmds \
8901 hardcode_libdir_flag_spec \
8902 hardcode_libdir_flag_spec_ld \
8903 hardcode_libdir_separator \
8904 hardcode_automatic \
8905 module_cmds \
8906 module_expsym_cmds \
8907 lt_cv_prog_compiler_c_o \
8908 exclude_expsyms \
8909 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008910
8911 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008912 old_archive_cmds | \
8913 old_archive_from_new_cmds | \
8914 archive_cmds | \
8915 archive_expsym_cmds | \
8916 module_cmds | \
8917 module_expsym_cmds | \
8918 old_archive_from_expsyms_cmds | \
8919 export_symbols_cmds | \
8920 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008921 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008922 old_postinstall_cmds | old_postuninstall_cmds | \
8923 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008924 # Double-quote double-evaled strings.
8925 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8926 ;;
8927 *)
8928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8929 ;;
8930 esac
8931 done
8932
John Criswell47fdd832003-07-14 16:52:07 +00008933 case $lt_echo in
8934 *'\$0 --fallback-echo"')
8935 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8936 ;;
8937 esac
8938
8939cfgfile="${ofile}T"
8940 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8941 $rm -f "$cfgfile"
8942 { echo "$as_me:$LINENO: creating $ofile" >&5
8943echo "$as_me: creating $ofile" >&6;}
8944
8945 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008946#! $SHELL
8947
John Criswell47fdd832003-07-14 16:52:07 +00008948# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008949# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8950# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8951#
John Criswell47fdd832003-07-14 16:52:07 +00008952# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8953# Free Software Foundation, Inc.
8954#
8955# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008956# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8957#
8958# This program is free software; you can redistribute it and/or modify
8959# it under the terms of the GNU General Public License as published by
8960# the Free Software Foundation; either version 2 of the License, or
8961# (at your option) any later version.
8962#
8963# This program is distributed in the hope that it will be useful, but
8964# WITHOUT ANY WARRANTY; without even the implied warranty of
8965# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8966# General Public License for more details.
8967#
8968# You should have received a copy of the GNU General Public License
8969# along with this program; if not, write to the Free Software
8970# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8971#
8972# As a special exception to the GNU General Public License, if you
8973# distribute this file as part of a program that contains a
8974# configuration script generated by Autoconf, you may include it under
8975# the same distribution terms that you use for the rest of that program.
8976
John Criswell47fdd832003-07-14 16:52:07 +00008977# A sed program that does not truncate output.
8978SED=$lt_SED
8979
John Criswell7a73b802003-06-30 21:59:07 +00008980# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008981Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008982
8983# The HP-UX ksh and POSIX shell print the target directory to stdout
8984# if CDPATH is set.
8985if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8986
John Criswell47fdd832003-07-14 16:52:07 +00008987# The names of the tagged configurations supported by this script.
8988available_tags=
8989
John Criswell7a73b802003-06-30 21:59:07 +00008990# ### BEGIN LIBTOOL CONFIG
8991
8992# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8993
8994# Shell to use when invoking shell scripts.
8995SHELL=$lt_SHELL
8996
8997# Whether or not to build shared libraries.
8998build_libtool_libs=$enable_shared
8999
9000# Whether or not to build static libraries.
9001build_old_libs=$enable_static
9002
9003# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009004build_libtool_need_lc=$archive_cmds_need_lc
9005
9006# Whether or not to disallow shared libs when runtime libs are static
9007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009008
9009# Whether or not to optimize for fast installation.
9010fast_install=$enable_fast_install
9011
9012# The host system.
9013host_alias=$host_alias
9014host=$host
9015
9016# An echo program that does not interpret backslashes.
9017echo=$lt_echo
9018
9019# The archiver.
9020AR=$lt_AR
9021AR_FLAGS=$lt_AR_FLAGS
9022
John Criswell47fdd832003-07-14 16:52:07 +00009023# A C compiler.
9024LTCC=$lt_LTCC
9025
9026# A language-specific compiler.
9027CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009028
9029# Is the compiler the GNU C compiler?
9030with_gcc=$GCC
9031
John Criswell47fdd832003-07-14 16:52:07 +00009032# An ERE matcher.
9033EGREP=$lt_EGREP
9034
John Criswell7a73b802003-06-30 21:59:07 +00009035# The linker used to build libraries.
9036LD=$lt_LD
9037
9038# Whether we need hard or soft links.
9039LN_S=$lt_LN_S
9040
9041# A BSD-compatible nm program.
9042NM=$lt_NM
9043
9044# A symbol stripping program
9045STRIP=$STRIP
9046
9047# Used to examine libraries when file_magic_cmd begins "file"
9048MAGIC_CMD=$MAGIC_CMD
9049
9050# Used on cygwin: DLL creation program.
9051DLLTOOL="$DLLTOOL"
9052
9053# Used on cygwin: object dumper.
9054OBJDUMP="$OBJDUMP"
9055
9056# Used on cygwin: assembler.
9057AS="$AS"
9058
9059# The name of the directory that contains temporary libtool files.
9060objdir=$objdir
9061
9062# How to create reloadable object files.
9063reload_flag=$lt_reload_flag
9064reload_cmds=$lt_reload_cmds
9065
9066# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009067wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009068
9069# Object file suffix (normally "o").
9070objext="$ac_objext"
9071
9072# Old archive suffix (normally "a").
9073libext="$libext"
9074
John Criswell47fdd832003-07-14 16:52:07 +00009075# Shared library suffix (normally ".so").
9076shrext='$shrext'
9077
John Criswell7a73b802003-06-30 21:59:07 +00009078# Executable file suffix (normally "").
9079exeext="$exeext"
9080
9081# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009082pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009083pic_mode=$pic_mode
9084
John Criswell47fdd832003-07-14 16:52:07 +00009085# What is the maximum length of a command?
9086max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009087
John Criswell47fdd832003-07-14 16:52:07 +00009088# Does compiler simultaneously support -c and -o options?
9089compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009090
9091# Must we lock files when doing compilation ?
9092need_locks=$lt_need_locks
9093
9094# Do we need the lib prefix for modules?
9095need_lib_prefix=$need_lib_prefix
9096
9097# Do we need a version for libraries?
9098need_version=$need_version
9099
9100# Whether dlopen is supported.
9101dlopen_support=$enable_dlopen
9102
9103# Whether dlopen of programs is supported.
9104dlopen_self=$enable_dlopen_self
9105
9106# Whether dlopen of statically linked programs is supported.
9107dlopen_self_static=$enable_dlopen_self_static
9108
9109# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009110link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009111
9112# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009113no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009114
9115# Compiler flag to allow reflexive dlopens.
9116export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9117
9118# Compiler flag to generate shared objects directly from archives.
9119whole_archive_flag_spec=$lt_whole_archive_flag_spec
9120
9121# Compiler flag to generate thread-safe objects.
9122thread_safe_flag_spec=$lt_thread_safe_flag_spec
9123
9124# Library versioning type.
9125version_type=$version_type
9126
9127# Format of library name prefix.
9128libname_spec=$lt_libname_spec
9129
9130# List of archive names. First name is the real one, the rest are links.
9131# The last name is the one that the linker finds with -lNAME.
9132library_names_spec=$lt_library_names_spec
9133
9134# The coded name of the library, if different from the real name.
9135soname_spec=$lt_soname_spec
9136
9137# Commands used to build and install an old-style archive.
9138RANLIB=$lt_RANLIB
9139old_archive_cmds=$lt_old_archive_cmds
9140old_postinstall_cmds=$lt_old_postinstall_cmds
9141old_postuninstall_cmds=$lt_old_postuninstall_cmds
9142
9143# Create an old-style archive from a shared archive.
9144old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9145
9146# Create a temporary old-style archive to link instead of a shared archive.
9147old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9148
9149# Commands used to build and install a shared archive.
9150archive_cmds=$lt_archive_cmds
9151archive_expsym_cmds=$lt_archive_expsym_cmds
9152postinstall_cmds=$lt_postinstall_cmds
9153postuninstall_cmds=$lt_postuninstall_cmds
9154
John Criswell47fdd832003-07-14 16:52:07 +00009155# Commands used to build a loadable module (assumed same as above if empty)
9156module_cmds=$lt_module_cmds
9157module_expsym_cmds=$lt_module_expsym_cmds
9158
John Criswell7a73b802003-06-30 21:59:07 +00009159# Commands to strip libraries.
9160old_striplib=$lt_old_striplib
9161striplib=$lt_striplib
9162
John Criswell47fdd832003-07-14 16:52:07 +00009163# Dependencies to place before the objects being linked to create a
9164# shared library.
9165predep_objects=$lt_predep_objects
9166
9167# Dependencies to place after the objects being linked to create a
9168# shared library.
9169postdep_objects=$lt_postdep_objects
9170
9171# Dependencies to place before the objects being linked to create a
9172# shared library.
9173predeps=$lt_predeps
9174
9175# Dependencies to place after the objects being linked to create a
9176# shared library.
9177postdeps=$lt_postdeps
9178
9179# The library search path used internally by the compiler when linking
9180# a shared library.
9181compiler_lib_search_path=$lt_compiler_lib_search_path
9182
John Criswell7a73b802003-06-30 21:59:07 +00009183# Method to check whether dependent libraries are shared objects.
9184deplibs_check_method=$lt_deplibs_check_method
9185
9186# Command to use when deplibs_check_method == file_magic.
9187file_magic_cmd=$lt_file_magic_cmd
9188
9189# Flag that allows shared libraries with undefined symbols to be built.
9190allow_undefined_flag=$lt_allow_undefined_flag
9191
9192# Flag that forces no undefined symbols.
9193no_undefined_flag=$lt_no_undefined_flag
9194
9195# Commands used to finish a libtool library installation in a directory.
9196finish_cmds=$lt_finish_cmds
9197
9198# Same as above, but a single script fragment to be evaled but not shown.
9199finish_eval=$lt_finish_eval
9200
9201# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009202global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009203
9204# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009205global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009206
9207# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009208global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009209
9210# This is the shared library runtime path variable.
9211runpath_var=$runpath_var
9212
9213# This is the shared library path variable.
9214shlibpath_var=$shlibpath_var
9215
9216# Is shlibpath searched before the hard-coded library search path?
9217shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9218
9219# How to hardcode a shared library path into an executable.
9220hardcode_action=$hardcode_action
9221
9222# Whether we should hardcode library paths into libraries.
9223hardcode_into_libs=$hardcode_into_libs
9224
9225# Flag to hardcode \$libdir into a binary during linking.
9226# This must work even if \$libdir does not exist.
9227hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9228
John Criswell47fdd832003-07-14 16:52:07 +00009229# If ld is used when linking, flag to hardcode \$libdir into
9230# a binary during linking. This must work even if \$libdir does
9231# not exist.
9232hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9233
John Criswell7a73b802003-06-30 21:59:07 +00009234# Whether we need a single -rpath flag with a separated argument.
9235hardcode_libdir_separator=$lt_hardcode_libdir_separator
9236
John Criswell47fdd832003-07-14 16:52:07 +00009237# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009238# resulting binary.
9239hardcode_direct=$hardcode_direct
9240
9241# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9242# resulting binary.
9243hardcode_minus_L=$hardcode_minus_L
9244
9245# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9246# the resulting binary.
9247hardcode_shlibpath_var=$hardcode_shlibpath_var
9248
John Criswell47fdd832003-07-14 16:52:07 +00009249# Set to yes if building a shared library automatically hardcodes DIR into the library
9250# and all subsequent libraries and executables linked against it.
9251hardcode_automatic=$hardcode_automatic
9252
John Criswell7a73b802003-06-30 21:59:07 +00009253# Variables whose values should be saved in libtool wrapper scripts and
9254# restored at relink time.
9255variables_saved_for_relink="$variables_saved_for_relink"
9256
9257# Whether libtool must link a program against all its dependency libraries.
9258link_all_deplibs=$link_all_deplibs
9259
9260# Compile-time system search path for libraries
9261sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9262
9263# Run-time system search path for libraries
9264sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9265
9266# Fix the shell variable \$srcfile for the compiler.
9267fix_srcfile_path="$fix_srcfile_path"
9268
9269# Set to yes if exported symbols are required.
9270always_export_symbols=$always_export_symbols
9271
9272# The commands to list exported symbols.
9273export_symbols_cmds=$lt_export_symbols_cmds
9274
9275# The commands to extract the exported symbol list from a shared archive.
9276extract_expsyms_cmds=$lt_extract_expsyms_cmds
9277
9278# Symbols that should not be listed in the preloaded symbols.
9279exclude_expsyms=$lt_exclude_expsyms
9280
9281# Symbols that must always be exported.
9282include_expsyms=$lt_include_expsyms
9283
9284# ### END LIBTOOL CONFIG
9285
9286__EOF__
9287
John Criswell47fdd832003-07-14 16:52:07 +00009288
John Criswell7a73b802003-06-30 21:59:07 +00009289 case $host_os in
9290 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009291 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009292
9293# AIX sometimes has problems with the GCC collect2 program. For some
9294# reason, if we set the COLLECT_NAMES environment variable, the problems
9295# vanish in a puff of smoke.
9296if test "X${COLLECT_NAMES+set}" != Xset; then
9297 COLLECT_NAMES=
9298 export COLLECT_NAMES
9299fi
9300EOF
9301 ;;
9302 esac
9303
John Criswell7a73b802003-06-30 21:59:07 +00009304 # We use sed instead of cat because bash on DJGPP gets confused if
9305 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9306 # text mode, it properly converts lines to CR/LF. This bash problem
9307 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009308 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009309
John Criswell47fdd832003-07-14 16:52:07 +00009310 mv -f "$cfgfile" "$ofile" || \
9311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009312 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009313
9314else
9315 # If there is no Makefile yet, we rely on a make rule to execute
9316 # `config.status --recheck' to rerun these tests and create the
9317 # libtool script then.
9318 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009319fi
John Criswell7a73b802003-06-30 21:59:07 +00009320
9321
John Criswell47fdd832003-07-14 16:52:07 +00009322ac_ext=c
9323ac_cpp='$CPP $CPPFLAGS'
9324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9326ac_compiler_gnu=$ac_cv_c_compiler_gnu
9327
9328CC="$lt_save_CC"
9329
9330
9331# Check whether --with-tags or --without-tags was given.
9332if test "${with_tags+set}" = set; then
9333 withval="$with_tags"
9334 tagnames="$withval"
9335fi;
9336
9337if test -f "$ltmain" && test -n "$tagnames"; then
9338 if test ! -f "${ofile}"; then
9339 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9340echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9341 fi
9342
9343 if test -z "$LTCC"; then
9344 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9345 if test -z "$LTCC"; then
9346 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9347echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9348 else
9349 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9350echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9351 fi
9352 fi
9353
9354 # Extract list of available tagged configurations in $ofile.
9355 # Note that this assumes the entire list is on one line.
9356 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9357
9358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9359 for tagname in $tagnames; do
9360 IFS="$lt_save_ifs"
9361 # Check whether tagname contains only valid characters
9362 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9363 "") ;;
9364 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9365echo "$as_me: error: invalid tag name: $tagname" >&2;}
9366 { (exit 1); exit 1; }; }
9367 ;;
9368 esac
9369
9370 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9371 then
9372 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9373echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9374 { (exit 1); exit 1; }; }
9375 fi
9376
9377 # Update the list of available tags.
9378 if test -n "$tagname"; then
9379 echo appending configuration tag \"$tagname\" to $ofile
9380
9381 case $tagname in
9382 CXX)
9383 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9384 ac_ext=cc
9385ac_cpp='$CXXCPP $CPPFLAGS'
9386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9389
9390
9391
9392
9393archive_cmds_need_lc_CXX=no
9394allow_undefined_flag_CXX=
9395always_export_symbols_CXX=no
9396archive_expsym_cmds_CXX=
9397export_dynamic_flag_spec_CXX=
9398hardcode_direct_CXX=no
9399hardcode_libdir_flag_spec_CXX=
9400hardcode_libdir_flag_spec_ld_CXX=
9401hardcode_libdir_separator_CXX=
9402hardcode_minus_L_CXX=no
9403hardcode_automatic_CXX=no
9404module_cmds_CXX=
9405module_expsym_cmds_CXX=
9406link_all_deplibs_CXX=unknown
9407old_archive_cmds_CXX=$old_archive_cmds
9408no_undefined_flag_CXX=
9409whole_archive_flag_spec_CXX=
9410enable_shared_with_static_runtimes_CXX=no
9411
9412# Dependencies to place before and after the object being linked:
9413predep_objects_CXX=
9414postdep_objects_CXX=
9415predeps_CXX=
9416postdeps_CXX=
9417compiler_lib_search_path_CXX=
9418
9419# Source file extension for C++ test sources.
9420ac_ext=cc
9421
9422# Object file extension for compiled C++ test sources.
9423objext=o
9424objext_CXX=$objext
9425
9426# Code to be used in simple compile tests
9427lt_simple_compile_test_code="int some_variable = 0;\n"
9428
9429# Code to be used in simple link tests
9430lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9431
9432# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9433
9434# If no C compiler was specified, use CC.
9435LTCC=${LTCC-"$CC"}
9436
9437# Allow CC to be a program name with arguments.
9438compiler=$CC
9439
9440
9441# Allow CC to be a program name with arguments.
9442lt_save_CC=$CC
9443lt_save_LD=$LD
9444lt_save_GCC=$GCC
9445GCC=$GXX
9446lt_save_with_gnu_ld=$with_gnu_ld
9447lt_save_path_LD=$lt_cv_path_LD
9448if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9449 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9450else
9451 unset lt_cv_prog_gnu_ld
9452fi
9453if test -n "${lt_cv_path_LDCXX+set}"; then
9454 lt_cv_path_LD=$lt_cv_path_LDCXX
9455else
9456 unset lt_cv_path_LD
9457fi
9458test -z "${LDCXX+set}" || LD=$LDCXX
9459CC=${CXX-"c++"}
9460compiler=$CC
9461compiler_CXX=$CC
9462cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9463
9464# We don't want -fno-exception wen compiling C++ code, so set the
9465# no_builtin_flag separately
9466if test "$GXX" = yes; then
9467 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9468else
9469 lt_prog_compiler_no_builtin_flag_CXX=
9470fi
9471
9472if test "$GXX" = yes; then
9473 # Set up default GNU C++ configuration
9474
9475
9476# Check whether --with-gnu-ld or --without-gnu-ld was given.
9477if test "${with_gnu_ld+set}" = set; then
9478 withval="$with_gnu_ld"
9479 test "$withval" = no || with_gnu_ld=yes
9480else
9481 with_gnu_ld=no
9482fi;
9483ac_prog=ld
9484if test "$GCC" = yes; then
9485 # Check if gcc -print-prog-name=ld gives a path.
9486 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9487echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9488 case $host in
9489 *-*-mingw*)
9490 # gcc leaves a trailing carriage return which upsets mingw
9491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9492 *)
9493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9494 esac
9495 case $ac_prog in
9496 # Accept absolute paths.
9497 [\\/]* | ?:[\\/]*)
9498 re_direlt='/[^/][^/]*/\.\./'
9499 # Canonicalize the path of ld
9500 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9501 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9502 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9503 done
9504 test -z "$LD" && LD="$ac_prog"
9505 ;;
9506 "")
9507 # If it fails, then pretend we aren't using GCC.
9508 ac_prog=ld
9509 ;;
9510 *)
9511 # If it is relative, then search for the first ld in PATH.
9512 with_gnu_ld=unknown
9513 ;;
9514 esac
9515elif test "$with_gnu_ld" = yes; then
9516 echo "$as_me:$LINENO: checking for GNU ld" >&5
9517echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9518else
9519 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9520echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9521fi
9522if test "${lt_cv_path_LD+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525 if test -z "$LD"; then
9526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9527 for ac_dir in $PATH; do
9528 IFS="$lt_save_ifs"
9529 test -z "$ac_dir" && ac_dir=.
9530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9531 lt_cv_path_LD="$ac_dir/$ac_prog"
9532 # Check to see if the program is GNU ld. I'd rather use --version,
9533 # but apparently some GNU ld's only accept -v.
9534 # Break only if it was the GNU/non-GNU ld that we prefer.
9535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9536 *GNU* | *'with BFD'*)
9537 test "$with_gnu_ld" != no && break
9538 ;;
9539 *)
9540 test "$with_gnu_ld" != yes && break
9541 ;;
9542 esac
9543 fi
9544 done
9545 IFS="$lt_save_ifs"
9546else
9547 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9548fi
9549fi
9550
9551LD="$lt_cv_path_LD"
9552if test -n "$LD"; then
9553 echo "$as_me:$LINENO: result: $LD" >&5
9554echo "${ECHO_T}$LD" >&6
9555else
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
9558fi
9559test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9560echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9561 { (exit 1); exit 1; }; }
9562echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9563echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9564if test "${lt_cv_prog_gnu_ld+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566else
9567 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9568case `"$LD" -v 2>&1 </dev/null` in
9569*GNU* | *'with BFD'*)
9570 lt_cv_prog_gnu_ld=yes
9571 ;;
9572*)
9573 lt_cv_prog_gnu_ld=no
9574 ;;
9575esac
9576fi
9577echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9578echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9579with_gnu_ld=$lt_cv_prog_gnu_ld
9580
9581
9582
9583 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9584 # archiving commands below assume that GNU ld is being used.
9585 if test "$with_gnu_ld" = yes; then
9586 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 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'
9588
9589 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9590 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9591
9592 # If archive_cmds runs LD, not CC, wlarc should be empty
9593 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9594 # investigate it a little bit more. (MM)
9595 wlarc='${wl}'
9596
9597 # ancient GNU ld didn't support --whole-archive et. al.
9598 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9599 grep 'no-whole-archive' > /dev/null; then
9600 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9601 else
9602 whole_archive_flag_spec_CXX=
9603 fi
9604 else
9605 with_gnu_ld=no
9606 wlarc=
9607
9608 # A generic and very simple default shared library creation
9609 # command for GNU C++ for the case where it uses the native
9610 # linker, instead of GNU ld. If possible, this setting should
9611 # overridden to take advantage of the native linker features on
9612 # the platform it is being used on.
9613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9614 fi
9615
9616 # Commands to make compiler produce verbose output that lists
9617 # what "hidden" libraries, object files and flags are used when
9618 # linking a shared library.
9619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9620
9621else
9622 GXX=no
9623 with_gnu_ld=no
9624 wlarc=
9625fi
9626
9627# PORTME: fill in a description of your system's C++ link characteristics
9628echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9629echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9630ld_shlibs_CXX=yes
9631case $host_os in
9632 aix3*)
9633 # FIXME: insert proper C++ library support
9634 ld_shlibs_CXX=no
9635 ;;
9636 aix4* | aix5*)
9637 if test "$host_cpu" = ia64; then
9638 # On IA64, the linker does run time linking by default, so we don't
9639 # have to do anything special.
9640 aix_use_runtimelinking=no
9641 exp_sym_flag='-Bexport'
9642 no_entry_flag=""
9643 else
9644 aix_use_runtimelinking=no
9645
9646 # Test if we are trying to use run time linking or normal
9647 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9648 # need to do runtime linking.
9649 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9650 for ld_flag in $LDFLAGS; do
9651 case $ld_flag in
9652 *-brtl*)
9653 aix_use_runtimelinking=yes
9654 break
9655 ;;
9656 esac
9657 done
9658 esac
9659
9660 exp_sym_flag='-bexport'
9661 no_entry_flag='-bnoentry'
9662 fi
9663
9664 # When large executables or shared objects are built, AIX ld can
9665 # have problems creating the table of contents. If linking a library
9666 # or program results in "error TOC overflow" add -mminimal-toc to
9667 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9668 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9669
9670 archive_cmds_CXX=''
9671 hardcode_direct_CXX=yes
9672 hardcode_libdir_separator_CXX=':'
9673 link_all_deplibs_CXX=yes
9674
9675 if test "$GXX" = yes; then
9676 case $host_os in aix4.012|aix4.012.*)
9677 # We only want to do this on AIX 4.2 and lower, the check
9678 # below for broken collect2 doesn't work under 4.3+
9679 collect2name=`${CC} -print-prog-name=collect2`
9680 if test -f "$collect2name" && \
9681 strings "$collect2name" | grep resolve_lib_name >/dev/null
9682 then
9683 # We have reworked collect2
9684 hardcode_direct_CXX=yes
9685 else
9686 # We have old collect2
9687 hardcode_direct_CXX=unsupported
9688 # It fails to find uninstalled libraries when the uninstalled
9689 # path is not listed in the libpath. Setting hardcode_minus_L
9690 # to unsupported forces relinking
9691 hardcode_minus_L_CXX=yes
9692 hardcode_libdir_flag_spec_CXX='-L$libdir'
9693 hardcode_libdir_separator_CXX=
9694 fi
9695 esac
9696 shared_flag='-shared'
9697 else
9698 # not using gcc
9699 if test "$host_cpu" = ia64; then
9700 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9701 # chokes on -Wl,-G. The following line is correct:
9702 shared_flag='-G'
9703 else
9704 if test "$aix_use_runtimelinking" = yes; then
9705 shared_flag='${wl}-G'
9706 else
9707 shared_flag='${wl}-bM:SRE'
9708 fi
9709 fi
9710 fi
9711
9712 # It seems that -bexpall does not export symbols beginning with
9713 # underscore (_), so it is better to generate a list of symbols to export.
9714 always_export_symbols_CXX=yes
9715 if test "$aix_use_runtimelinking" = yes; then
9716 # Warning - without using the other runtime loading flags (-brtl),
9717 # -berok will link without error, but may produce a broken library.
9718 allow_undefined_flag_CXX='-berok'
9719 # Determine the default libpath from the value encoded in an empty executable.
9720 cat >conftest.$ac_ext <<_ACEOF
9721#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009722/* confdefs.h. */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009727
John Criswell47fdd832003-07-14 16:52:07 +00009728int
9729main ()
9730{
9731
9732 ;
9733 return 0;
9734}
9735_ACEOF
9736rm -f conftest.$ac_objext conftest$ac_exeext
9737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748
9749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9750}'`
9751# Check for a 64-bit object if we didn't find anything.
9752if 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; }
9753}'`; fi
9754else
9755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009756sed 's/^/| /' conftest.$ac_ext >&5
9757
John Criswell47fdd832003-07-14 16:52:07 +00009758fi
9759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9760if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9761
9762 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9763
9764 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"
9765 else
9766 if test "$host_cpu" = ia64; then
9767 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9768 allow_undefined_flag_CXX="-z nodefs"
9769 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"
9770 else
9771 # Determine the default libpath from the value encoded in an empty executable.
9772 cat >conftest.$ac_ext <<_ACEOF
9773#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009779
John Criswell47fdd832003-07-14 16:52:07 +00009780int
9781main ()
9782{
9783
9784 ;
9785 return 0;
9786}
9787_ACEOF
9788rm -f conftest.$ac_objext conftest$ac_exeext
9789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -s conftest$ac_exeext'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9800
9801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9802}'`
9803# Check for a 64-bit object if we didn't find anything.
9804if 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; }
9805}'`; fi
9806else
9807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009808sed 's/^/| /' conftest.$ac_ext >&5
9809
John Criswell47fdd832003-07-14 16:52:07 +00009810fi
9811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9812if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9813
9814 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9815 # Warning - without using the other run time loading flags,
9816 # -berok will link without error, but may produce a broken library.
9817 no_undefined_flag_CXX=' ${wl}-bernotok'
9818 allow_undefined_flag_CXX=' ${wl}-berok'
9819 # -bexpall does not export symbols beginning with underscore (_)
9820 always_export_symbols_CXX=yes
9821 # Exported symbols can be pulled into shared objects from archives
9822 whole_archive_flag_spec_CXX=' '
9823 archive_cmds_need_lc_CXX=yes
9824 # This is similar to how AIX traditionally builds it's shared libraries.
9825 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'
9826 fi
9827 fi
9828 ;;
9829 chorus*)
9830 case $cc_basename in
9831 *)
9832 # FIXME: insert proper C++ library support
9833 ld_shlibs_CXX=no
9834 ;;
9835 esac
9836 ;;
9837
9838 cygwin* | mingw* | pw32*)
9839 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9840 # as there is no search path for DLLs.
9841 hardcode_libdir_flag_spec_CXX='-L$libdir'
9842 allow_undefined_flag_CXX=unsupported
9843 always_export_symbols_CXX=no
9844 enable_shared_with_static_runtimes_CXX=yes
9845
9846 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9847 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'
9848 # If the export-symbols file already is a .def file (1st line
9849 # is EXPORTS), use it as is; otherwise, prepend...
9850 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9851 cp $export_symbols $output_objdir/$soname.def;
9852 else
9853 echo EXPORTS > $output_objdir/$soname.def;
9854 cat $export_symbols >> $output_objdir/$soname.def;
9855 fi~
9856 $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'
9857 else
9858 ld_shlibs_CXX=no
9859 fi
9860 ;;
9861
9862 darwin* | rhapsody*)
9863 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9864 archive_cmds_need_lc_CXX=no
9865 case "$host_os" in
9866 rhapsody* | darwin1.[012])
9867 allow_undefined_flag_CXX='-undefined suppress'
9868 ;;
9869 *) # Darwin 1.3 on
9870 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9871 ;;
9872 esac
9873 lt_int_apple_cc_single_mod=no
9874 output_verbose_link_cmd='echo'
9875 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9876 lt_int_apple_cc_single_mod=yes
9877 fi
9878 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9879 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9880 else
9881 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'
9882 fi
9883 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9884
9885 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9886 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9887 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}'
9888 else
9889 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}'
9890 fi
9891 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}'
9892 hardcode_direct_CXX=no
9893 hardcode_automatic_CXX=yes
9894 hardcode_shlibpath_var_CXX=unsupported
9895 whole_archive_flag_spec_CXX='-all_load $convenience'
9896 link_all_deplibs_CXX=yes
9897 fi
9898 ;;
9899
9900 dgux*)
9901 case $cc_basename in
9902 ec++)
9903 # FIXME: insert proper C++ library support
9904 ld_shlibs_CXX=no
9905 ;;
9906 ghcx)
9907 # Green Hills C++ Compiler
9908 # FIXME: insert proper C++ library support
9909 ld_shlibs_CXX=no
9910 ;;
9911 *)
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 ;;
9915 esac
9916 ;;
9917 freebsd12*)
9918 # C++ shared libraries reported to be fairly broken before switch to ELF
9919 ld_shlibs_CXX=no
9920 ;;
9921 freebsd-elf*)
9922 archive_cmds_need_lc_CXX=no
9923 ;;
9924 freebsd*)
9925 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9926 # conventions
9927 ld_shlibs_CXX=yes
9928 ;;
9929 gnu*)
9930 ;;
9931 hpux9*)
9932 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9933 hardcode_libdir_separator_CXX=:
9934 export_dynamic_flag_spec_CXX='${wl}-E'
9935 hardcode_direct_CXX=yes
9936 hardcode_minus_L_CXX=yes # Not in the search PATH,
9937 # but as the default
9938 # location of the library.
9939
9940 case $cc_basename in
9941 CC)
9942 # FIXME: insert proper C++ library support
9943 ld_shlibs_CXX=no
9944 ;;
9945 aCC)
9946 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'
9947 # Commands to make compiler produce verbose output that lists
9948 # what "hidden" libraries, object files and flags are used when
9949 # linking a shared library.
9950 #
9951 # There doesn't appear to be a way to prevent this compiler from
9952 # explicitly linking system object files so we need to strip them
9953 # from the output so that they don't get included in the library
9954 # dependencies.
9955 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'
9956 ;;
9957 *)
9958 if test "$GXX" = yes; then
9959 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'
9960 else
9961 # FIXME: insert proper C++ library support
9962 ld_shlibs_CXX=no
9963 fi
9964 ;;
9965 esac
9966 ;;
9967 hpux10*|hpux11*)
9968 if test $with_gnu_ld = no; then
9969 case "$host_cpu" in
9970 hppa*64*)
9971 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9972 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9973 hardcode_libdir_separator_CXX=:
9974 ;;
9975 ia64*)
9976 hardcode_libdir_flag_spec_CXX='-L$libdir'
9977 ;;
9978 *)
9979 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9980 hardcode_libdir_separator_CXX=:
9981 export_dynamic_flag_spec_CXX='${wl}-E'
9982 ;;
9983 esac
9984 fi
9985 case "$host_cpu" in
9986 hppa*64*)
9987 hardcode_direct_CXX=no
9988 hardcode_shlibpath_var_CXX=no
9989 ;;
9990 ia64*)
9991 hardcode_direct_CXX=no
9992 hardcode_shlibpath_var_CXX=no
9993 hardcode_minus_L_CXX=yes # Not in the search PATH,
9994 # but as the default
9995 # location of the library.
9996 ;;
9997 *)
9998 hardcode_direct_CXX=yes
9999 hardcode_minus_L_CXX=yes # Not in the search PATH,
10000 # but as the default
10001 # location of the library.
10002 ;;
10003 esac
10004
10005 case $cc_basename in
10006 CC)
10007 # FIXME: insert proper C++ library support
10008 ld_shlibs_CXX=no
10009 ;;
10010 aCC)
10011 case "$host_cpu" in
10012 hppa*64*|ia64*)
10013 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10014 ;;
10015 *)
10016 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10017 ;;
10018 esac
10019 # Commands to make compiler produce verbose output that lists
10020 # what "hidden" libraries, object files and flags are used when
10021 # linking a shared library.
10022 #
10023 # There doesn't appear to be a way to prevent this compiler from
10024 # explicitly linking system object files so we need to strip them
10025 # from the output so that they don't get included in the library
10026 # dependencies.
10027 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'
10028 ;;
10029 *)
10030 if test "$GXX" = yes; then
10031 if test $with_gnu_ld = no; then
10032 case "$host_cpu" in
10033 ia64*|hppa*64*)
10034 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10035 ;;
10036 *)
10037 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'
10038 ;;
10039 esac
10040 fi
10041 else
10042 # FIXME: insert proper C++ library support
10043 ld_shlibs_CXX=no
10044 fi
10045 ;;
10046 esac
10047 ;;
10048 irix5* | irix6*)
10049 case $cc_basename in
10050 CC)
10051 # SGI C++
10052 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'
10053
10054 # Archives containing C++ object files must be created using
10055 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10056 # necessary to make sure instantiated templates are included
10057 # in the archive.
10058 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10059 ;;
10060 *)
10061 if test "$GXX" = yes; then
10062 if test "$with_gnu_ld" = no; then
10063 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'
10064 else
10065 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'
10066 fi
10067 fi
10068 link_all_deplibs_CXX=yes
10069 ;;
10070 esac
10071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10072 hardcode_libdir_separator_CXX=:
10073 ;;
10074 linux*)
10075 case $cc_basename in
10076 KCC)
10077 # Kuck and Associates, Inc. (KAI) C++ Compiler
10078
10079 # KCC will only create a shared library if the output file
10080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10081 # to its proper name (with version) after linking.
10082 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'
10083 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'
10084 # Commands to make compiler produce verbose output that lists
10085 # what "hidden" libraries, object files and flags are used when
10086 # linking a shared library.
10087 #
10088 # There doesn't appear to be a way to prevent this compiler from
10089 # explicitly linking system object files so we need to strip them
10090 # from the output so that they don't get included in the library
10091 # dependencies.
10092 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'
10093
10094 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10096
10097 # Archives containing C++ object files must be created using
10098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10100 ;;
10101 icpc)
10102 # Intel C++
10103 with_gnu_ld=yes
10104 archive_cmds_need_lc_CXX=no
10105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 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'
10107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10108 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10109 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10110 ;;
10111 cxx)
10112 # Compaq C++
10113 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10114 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'
10115
10116 runpath_var=LD_RUN_PATH
10117 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10118 hardcode_libdir_separator_CXX=:
10119
10120 # Commands to make compiler produce verbose output that lists
10121 # what "hidden" libraries, object files and flags are used when
10122 # linking a shared library.
10123 #
10124 # There doesn't appear to be a way to prevent this compiler from
10125 # explicitly linking system object files so we need to strip them
10126 # from the output so that they don't get included in the library
10127 # dependencies.
10128 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'
10129 ;;
10130 esac
10131 ;;
10132 lynxos*)
10133 # FIXME: insert proper C++ library support
10134 ld_shlibs_CXX=no
10135 ;;
10136 m88k*)
10137 # FIXME: insert proper C++ library support
10138 ld_shlibs_CXX=no
10139 ;;
10140 mvs*)
10141 case $cc_basename in
10142 cxx)
10143 # FIXME: insert proper C++ library support
10144 ld_shlibs_CXX=no
10145 ;;
10146 *)
10147 # FIXME: insert proper C++ library support
10148 ld_shlibs_CXX=no
10149 ;;
10150 esac
10151 ;;
10152 netbsd*)
10153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10154 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10155 wlarc=
10156 hardcode_libdir_flag_spec_CXX='-R$libdir'
10157 hardcode_direct_CXX=yes
10158 hardcode_shlibpath_var_CXX=no
10159 fi
10160 # Workaround some broken pre-1.5 toolchains
10161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10162 ;;
10163 osf3*)
10164 case $cc_basename in
10165 KCC)
10166 # Kuck and Associates, Inc. (KAI) C++ Compiler
10167
10168 # KCC will only create a shared library if the output file
10169 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10170 # to its proper name (with version) after linking.
10171 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'
10172
10173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10174 hardcode_libdir_separator_CXX=:
10175
10176 # Archives containing C++ object files must be created using
10177 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10178 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10179
10180 ;;
10181 RCC)
10182 # Rational C++ 2.4.1
10183 # FIXME: insert proper C++ library support
10184 ld_shlibs_CXX=no
10185 ;;
10186 cxx)
10187 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10188 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'
10189
10190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10191 hardcode_libdir_separator_CXX=:
10192
10193 # Commands to make compiler produce verbose output that lists
10194 # what "hidden" libraries, object files and flags are used when
10195 # linking a shared library.
10196 #
10197 # There doesn't appear to be a way to prevent this compiler from
10198 # explicitly linking system object files so we need to strip them
10199 # from the output so that they don't get included in the library
10200 # dependencies.
10201 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'
10202 ;;
10203 *)
10204 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10205 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10206 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'
10207
10208 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10209 hardcode_libdir_separator_CXX=:
10210
10211 # Commands to make compiler produce verbose output that lists
10212 # what "hidden" libraries, object files and flags are used when
10213 # linking a shared library.
10214 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10215
10216 else
10217 # FIXME: insert proper C++ library support
10218 ld_shlibs_CXX=no
10219 fi
10220 ;;
10221 esac
10222 ;;
10223 osf4* | osf5*)
10224 case $cc_basename in
10225 KCC)
10226 # Kuck and Associates, Inc. (KAI) C++ Compiler
10227
10228 # KCC will only create a shared library if the output file
10229 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10230 # to its proper name (with version) after linking.
10231 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'
10232
10233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10234 hardcode_libdir_separator_CXX=:
10235
10236 # Archives containing C++ object files must be created using
10237 # the KAI C++ compiler.
10238 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10239 ;;
10240 RCC)
10241 # Rational C++ 2.4.1
10242 # FIXME: insert proper C++ library support
10243 ld_shlibs_CXX=no
10244 ;;
10245 cxx)
10246 allow_undefined_flag_CXX=' -expect_unresolved \*'
10247 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'
10248 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10249 echo "-hidden">> $lib.exp~
10250 $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~
10251 $rm $lib.exp'
10252
10253 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10254 hardcode_libdir_separator_CXX=:
10255
10256 # Commands to make compiler produce verbose output that lists
10257 # what "hidden" libraries, object files and flags are used when
10258 # linking a shared library.
10259 #
10260 # There doesn't appear to be a way to prevent this compiler from
10261 # explicitly linking system object files so we need to strip them
10262 # from the output so that they don't get included in the library
10263 # dependencies.
10264 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'
10265 ;;
10266 *)
10267 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10268 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10269 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'
10270
10271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10272 hardcode_libdir_separator_CXX=:
10273
10274 # Commands to make compiler produce verbose output that lists
10275 # what "hidden" libraries, object files and flags are used when
10276 # linking a shared library.
10277 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10278
10279 else
10280 # FIXME: insert proper C++ library support
10281 ld_shlibs_CXX=no
10282 fi
10283 ;;
10284 esac
10285 ;;
10286 psos*)
10287 # FIXME: insert proper C++ library support
10288 ld_shlibs_CXX=no
10289 ;;
10290 sco*)
10291 archive_cmds_need_lc_CXX=no
10292 case $cc_basename in
10293 CC)
10294 # FIXME: insert proper C++ library support
10295 ld_shlibs_CXX=no
10296 ;;
10297 *)
10298 # FIXME: insert proper C++ library support
10299 ld_shlibs_CXX=no
10300 ;;
10301 esac
10302 ;;
10303 sunos4*)
10304 case $cc_basename in
10305 CC)
10306 # Sun C++ 4.x
10307 # FIXME: insert proper C++ library support
10308 ld_shlibs_CXX=no
10309 ;;
10310 lcc)
10311 # Lucid
10312 # FIXME: insert proper C++ library support
10313 ld_shlibs_CXX=no
10314 ;;
10315 *)
10316 # FIXME: insert proper C++ library support
10317 ld_shlibs_CXX=no
10318 ;;
10319 esac
10320 ;;
10321 solaris*)
10322 case $cc_basename in
10323 CC)
10324 # Sun C++ 4.2, 5.x and Centerline C++
10325 no_undefined_flag_CXX=' -zdefs'
10326 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10327 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10328 $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'
10329
10330 hardcode_libdir_flag_spec_CXX='-R$libdir'
10331 hardcode_shlibpath_var_CXX=no
10332 case $host_os in
10333 solaris2.0-5 | solaris2.0-5.*) ;;
10334 *)
10335 # The C++ compiler is used as linker so we must use $wl
10336 # flag to pass the commands to the underlying system
10337 # linker.
10338 # Supported since Solaris 2.6 (maybe 2.5.1?)
10339 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10340 ;;
10341 esac
10342 link_all_deplibs_CXX=yes
10343
10344 # Commands to make compiler produce verbose output that lists
10345 # what "hidden" libraries, object files and flags are used when
10346 # linking a shared library.
10347 #
10348 # There doesn't appear to be a way to prevent this compiler from
10349 # explicitly linking system object files so we need to strip them
10350 # from the output so that they don't get included in the library
10351 # dependencies.
10352 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'
10353
10354 # Archives containing C++ object files must be created using
10355 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10356 # necessary to make sure instantiated templates are included
10357 # in the archive.
10358 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10359 ;;
10360 gcx)
10361 # Green Hills C++ Compiler
10362 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10363
10364 # The C++ compiler must be used to create the archive.
10365 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10366 ;;
10367 *)
10368 # GNU C++ compiler with Solaris linker
10369 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10370 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10371 if $CC --version | grep -v '^2\.7' > /dev/null; then
10372 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10373 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10374 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10375
10376 # Commands to make compiler produce verbose output that lists
10377 # what "hidden" libraries, object files and flags are used when
10378 # linking a shared library.
10379 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10380 else
10381 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10382 # platform.
10383 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10384 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10385 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10386
10387 # Commands to make compiler produce verbose output that lists
10388 # what "hidden" libraries, object files and flags are used when
10389 # linking a shared library.
10390 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10391 fi
10392
10393 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10394 fi
10395 ;;
10396 esac
10397 ;;
10398 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10399 archive_cmds_need_lc_CXX=no
10400 ;;
10401 tandem*)
10402 case $cc_basename in
10403 NCC)
10404 # NonStop-UX NCC 3.20
10405 # FIXME: insert proper C++ library support
10406 ld_shlibs_CXX=no
10407 ;;
10408 *)
10409 # FIXME: insert proper C++ library support
10410 ld_shlibs_CXX=no
10411 ;;
10412 esac
10413 ;;
10414 vxworks*)
10415 # FIXME: insert proper C++ library support
10416 ld_shlibs_CXX=no
10417 ;;
10418 *)
10419 # FIXME: insert proper C++ library support
10420 ld_shlibs_CXX=no
10421 ;;
10422esac
10423echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10424echo "${ECHO_T}$ld_shlibs_CXX" >&6
10425test "$ld_shlibs_CXX" = no && can_build_shared=no
10426
10427GCC_CXX="$GXX"
10428LD_CXX="$LD"
10429
10430## CAVEAT EMPTOR:
10431## There is no encapsulation within the following macros, do not change
10432## the running order or otherwise move them around unless you know exactly
10433## what you are doing...
10434
10435cat > conftest.$ac_ext <<EOF
10436class Foo
10437{
10438public:
10439 Foo (void) { a = 0; }
10440private:
10441 int a;
10442};
10443EOF
10444
10445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; then
10450 # Parse the compiler output and extract the necessary
10451 # objects, libraries and library flags.
10452
10453 # Sentinel used to keep track of whether or not we are before
10454 # the conftest object file.
10455 pre_test_object_deps_done=no
10456
10457 # The `*' in the case matches for architectures that use `case' in
10458 # $output_verbose_cmd can trigger glob expansion during the loop
10459 # eval without this substitution.
10460 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10461
10462 for p in `eval $output_verbose_link_cmd`; do
10463 case $p in
10464
10465 -L* | -R* | -l*)
10466 # Some compilers place space between "-{L,R}" and the path.
10467 # Remove the space.
10468 if test $p = "-L" \
10469 || test $p = "-R"; then
10470 prev=$p
10471 continue
10472 else
10473 prev=
10474 fi
10475
10476 if test "$pre_test_object_deps_done" = no; then
10477 case $p in
10478 -L* | -R*)
10479 # Internal compiler library paths should come after those
10480 # provided the user. The postdeps already come after the
10481 # user supplied libs so there is no need to process them.
10482 if test -z "$compiler_lib_search_path_CXX"; then
10483 compiler_lib_search_path_CXX="${prev}${p}"
10484 else
10485 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10486 fi
10487 ;;
10488 # The "-l" case would never come before the object being
10489 # linked, so don't bother handling this case.
10490 esac
10491 else
10492 if test -z "$postdeps_CXX"; then
10493 postdeps_CXX="${prev}${p}"
10494 else
10495 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10496 fi
10497 fi
10498 ;;
10499
10500 *.$objext)
10501 # This assumes that the test object file only shows up
10502 # once in the compiler output.
10503 if test "$p" = "conftest.$objext"; then
10504 pre_test_object_deps_done=yes
10505 continue
10506 fi
10507
10508 if test "$pre_test_object_deps_done" = no; then
10509 if test -z "$predep_objects_CXX"; then
10510 predep_objects_CXX="$p"
10511 else
10512 predep_objects_CXX="$predep_objects_CXX $p"
10513 fi
10514 else
10515 if test -z "$postdep_objects_CXX"; then
10516 postdep_objects_CXX="$p"
10517 else
10518 postdep_objects_CXX="$postdep_objects_CXX $p"
10519 fi
10520 fi
10521 ;;
10522
10523 *) ;; # Ignore the rest.
10524
10525 esac
10526 done
10527
10528 # Clean up.
10529 rm -f a.out a.exe
10530else
10531 echo "libtool.m4: error: problem compiling CXX test program"
10532fi
10533
10534$rm -f confest.$objext
10535
10536case " $postdeps_CXX " in
10537*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10538esac
10539
10540lt_prog_compiler_wl_CXX=
10541lt_prog_compiler_pic_CXX=
10542lt_prog_compiler_static_CXX=
10543
10544echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10545echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10546
10547 # C++ specific cases for pic, static, wl, etc.
10548 if test "$GXX" = yes; then
10549 lt_prog_compiler_wl_CXX='-Wl,'
10550 lt_prog_compiler_static_CXX='-static'
10551
10552 case $host_os in
10553 aix*)
10554 # All AIX code is PIC.
10555 if test "$host_cpu" = ia64; then
10556 # AIX 5 now supports IA64 processor
10557 lt_prog_compiler_static_CXX='-Bstatic'
10558 fi
10559 ;;
10560 amigaos*)
10561 # FIXME: we need at least 68020 code to build shared libraries, but
10562 # adding the `-m68020' flag to GCC prevents building anything better,
10563 # like `-m68040'.
10564 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10565 ;;
10566 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10567 # PIC is the default for these OSes.
10568 ;;
10569 mingw* | os2* | pw32*)
10570 # This hack is so that the source file can tell whether it is being
10571 # built for inclusion in a dll (and should export symbols for example).
10572 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10573 ;;
10574 darwin* | rhapsody*)
10575 # PIC is the default on this platform
10576 # Common symbols not allowed in MH_DYLIB files
10577 lt_prog_compiler_pic_CXX='-fno-common'
10578 ;;
10579 *djgpp*)
10580 # DJGPP does not support shared libraries at all
10581 lt_prog_compiler_pic_CXX=
10582 ;;
10583 sysv4*MP*)
10584 if test -d /usr/nec; then
10585 lt_prog_compiler_pic_CXX=-Kconform_pic
10586 fi
10587 ;;
10588 hpux*)
10589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10590 # not for PA HP-UX.
10591 case "$host_cpu" in
10592 hppa*64*|ia64*)
10593 ;;
10594 *)
10595 lt_prog_compiler_pic_CXX='-fPIC'
10596 ;;
10597 esac
10598 ;;
10599 *)
10600 lt_prog_compiler_pic_CXX='-fPIC'
10601 ;;
10602 esac
10603 else
10604 case $host_os in
10605 aix4* | aix5*)
10606 # All AIX code is PIC.
10607 if test "$host_cpu" = ia64; then
10608 # AIX 5 now supports IA64 processor
10609 lt_prog_compiler_static_CXX='-Bstatic'
10610 else
10611 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10612 fi
10613 ;;
10614 chorus*)
10615 case $cc_basename in
10616 cxch68)
10617 # Green Hills C++ Compiler
10618 # _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"
10619 ;;
10620 esac
10621 ;;
10622 dgux*)
10623 case $cc_basename in
10624 ec++)
10625 lt_prog_compiler_pic_CXX='-KPIC'
10626 ;;
10627 ghcx)
10628 # Green Hills C++ Compiler
10629 lt_prog_compiler_pic_CXX='-pic'
10630 ;;
10631 *)
10632 ;;
10633 esac
10634 ;;
10635 freebsd*)
10636 # FreeBSD uses GNU C++
10637 ;;
10638 hpux9* | hpux10* | hpux11*)
10639 case $cc_basename in
10640 CC)
10641 lt_prog_compiler_wl_CXX='-Wl,'
10642 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10643 if test "$host_cpu" != ia64; then
10644 lt_prog_compiler_pic_CXX='+Z'
10645 fi
10646 ;;
10647 aCC)
10648 lt_prog_compiler_wl_CXX='-Wl,'
10649 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10650 case "$host_cpu" in
10651 hppa*64*|ia64*)
10652 # +Z the default
10653 ;;
10654 *)
10655 lt_prog_compiler_pic_CXX='+Z'
10656 ;;
10657 esac
10658 ;;
10659 *)
10660 ;;
10661 esac
10662 ;;
10663 irix5* | irix6* | nonstopux*)
10664 case $cc_basename in
10665 CC)
10666 lt_prog_compiler_wl_CXX='-Wl,'
10667 lt_prog_compiler_static_CXX='-non_shared'
10668 # CC pic flag -KPIC is the default.
10669 ;;
10670 *)
10671 ;;
10672 esac
10673 ;;
10674 linux*)
10675 case $cc_basename in
10676 KCC)
10677 # KAI C++ Compiler
10678 lt_prog_compiler_wl_CXX='--backend -Wl,'
10679 lt_prog_compiler_pic_CXX='-fPIC'
10680 ;;
10681 icpc)
10682 # Intel C++
10683 lt_prog_compiler_wl_CXX='-Wl,'
10684 lt_prog_compiler_pic_CXX='-KPIC'
10685 lt_prog_compiler_static_CXX='-static'
10686 ;;
10687 cxx)
10688 # Compaq C++
10689 # Make sure the PIC flag is empty. It appears that all Alpha
10690 # Linux and Compaq Tru64 Unix objects are PIC.
10691 lt_prog_compiler_pic_CXX=
10692 lt_prog_compiler_static_CXX='-non_shared'
10693 ;;
10694 *)
10695 ;;
10696 esac
10697 ;;
10698 lynxos*)
10699 ;;
10700 m88k*)
10701 ;;
10702 mvs*)
10703 case $cc_basename in
10704 cxx)
10705 lt_prog_compiler_pic_CXX='-W c,exportall'
10706 ;;
10707 *)
10708 ;;
10709 esac
10710 ;;
10711 netbsd*)
10712 ;;
10713 osf3* | osf4* | osf5*)
10714 case $cc_basename in
10715 KCC)
10716 lt_prog_compiler_wl_CXX='--backend -Wl,'
10717 ;;
10718 RCC)
10719 # Rational C++ 2.4.1
10720 lt_prog_compiler_pic_CXX='-pic'
10721 ;;
10722 cxx)
10723 # Digital/Compaq C++
10724 lt_prog_compiler_wl_CXX='-Wl,'
10725 # Make sure the PIC flag is empty. It appears that all Alpha
10726 # Linux and Compaq Tru64 Unix objects are PIC.
10727 lt_prog_compiler_pic_CXX=
10728 lt_prog_compiler_static_CXX='-non_shared'
10729 ;;
10730 *)
10731 ;;
10732 esac
10733 ;;
10734 psos*)
10735 ;;
10736 sco*)
10737 case $cc_basename in
10738 CC)
10739 lt_prog_compiler_pic_CXX='-fPIC'
10740 ;;
10741 *)
10742 ;;
10743 esac
10744 ;;
10745 solaris*)
10746 case $cc_basename in
10747 CC)
10748 # Sun C++ 4.2, 5.x and Centerline C++
10749 lt_prog_compiler_pic_CXX='-KPIC'
10750 lt_prog_compiler_static_CXX='-Bstatic'
10751 lt_prog_compiler_wl_CXX='-Qoption ld '
10752 ;;
10753 gcx)
10754 # Green Hills C++ Compiler
10755 lt_prog_compiler_pic_CXX='-PIC'
10756 ;;
10757 *)
10758 ;;
10759 esac
10760 ;;
10761 sunos4*)
10762 case $cc_basename in
10763 CC)
10764 # Sun C++ 4.x
10765 lt_prog_compiler_pic_CXX='-pic'
10766 lt_prog_compiler_static_CXX='-Bstatic'
10767 ;;
10768 lcc)
10769 # Lucid
10770 lt_prog_compiler_pic_CXX='-pic'
10771 ;;
10772 *)
10773 ;;
10774 esac
10775 ;;
10776 tandem*)
10777 case $cc_basename in
10778 NCC)
10779 # NonStop-UX NCC 3.20
10780 lt_prog_compiler_pic_CXX='-KPIC'
10781 ;;
10782 *)
10783 ;;
10784 esac
10785 ;;
10786 unixware*)
10787 ;;
10788 vxworks*)
10789 ;;
10790 *)
10791 lt_prog_compiler_can_build_shared_CXX=no
10792 ;;
10793 esac
10794 fi
10795
10796echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10797echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10798
10799#
10800# Check to make sure the PIC flag actually works.
10801#
10802if test -n "$lt_prog_compiler_pic_CXX"; then
10803 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10804echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10805if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807else
10808 lt_prog_compiler_pic_works_CXX=no
10809 ac_outfile=conftest.$ac_objext
10810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10811 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10812 # Insert the option either (1) after the last *FLAGS variable, or
10813 # (2) before a word containing "conftest.", or (3) at the end.
10814 # Note that $ac_compile itself does not contain backslashes and begins
10815 # with a dollar sign (not a hyphen), so the echo should work correctly.
10816 # The option is referenced via a variable to avoid confusing sed.
10817 lt_compile=`echo "$ac_compile" | $SED \
10818 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10820 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +000010821 (eval echo "\"\$as_me:10821: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010822 (eval "$lt_compile" 2>conftest.err)
10823 ac_status=$?
10824 cat conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +000010825 echo "$as_me:10825: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010826 if (exit $ac_status) && test -s "$ac_outfile"; then
10827 # The compiler can only warn and ignore the option if not recognized
10828 # So say no if there are warnings
10829 if test ! -s conftest.err; then
10830 lt_prog_compiler_pic_works_CXX=yes
10831 fi
10832 fi
10833 $rm conftest*
10834
10835fi
10836echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10837echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10838
10839if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10840 case $lt_prog_compiler_pic_CXX in
10841 "" | " "*) ;;
10842 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10843 esac
10844else
10845 lt_prog_compiler_pic_CXX=
10846 lt_prog_compiler_can_build_shared_CXX=no
10847fi
10848
10849fi
10850case "$host_os" in
10851 # For platforms which do not support PIC, -DPIC is meaningless:
10852 *djgpp*)
10853 lt_prog_compiler_pic_CXX=
10854 ;;
10855 *)
10856 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10857 ;;
10858esac
10859
10860echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10861echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10862if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865 lt_cv_prog_compiler_c_o_CXX=no
10866 $rm -r conftest 2>/dev/null
10867 mkdir conftest
10868 cd conftest
10869 mkdir out
10870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10871
10872 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10873 # that will create temporary files in the current directory regardless of
10874 # the output directory. Thus, making CWD read-only will cause this test
10875 # to fail, enabling locking or at least warning the user not to do parallel
10876 # builds.
10877 chmod -w .
10878
10879 lt_compiler_flag="-o out/conftest2.$ac_objext"
10880 # Insert the option either (1) after the last *FLAGS variable, or
10881 # (2) before a word containing "conftest.", or (3) at the end.
10882 # Note that $ac_compile itself does not contain backslashes and begins
10883 # with a dollar sign (not a hyphen), so the echo should work correctly.
10884 lt_compile=`echo "$ac_compile" | $SED \
10885 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10887 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +000010888 (eval echo "\"\$as_me:10888: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010889 (eval "$lt_compile" 2>out/conftest.err)
10890 ac_status=$?
10891 cat out/conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +000010892 echo "$as_me:10892: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10894 then
10895 # The compiler can only warn and ignore the option if not recognized
10896 # So say no if there are warnings
10897 if test ! -s out/conftest.err; then
10898 lt_cv_prog_compiler_c_o_CXX=yes
10899 fi
10900 fi
10901 chmod u+w .
10902 $rm conftest* out/*
10903 rmdir out
10904 cd ..
10905 rmdir conftest
10906 $rm conftest*
10907
10908fi
10909echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10910echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10911
10912
10913hard_links="nottested"
10914if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10915 # do not overwrite the value of need_locks provided by the user
10916 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10917echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10918 hard_links=yes
10919 $rm conftest*
10920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10921 touch conftest.a
10922 ln conftest.a conftest.b 2>&5 || hard_links=no
10923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10924 echo "$as_me:$LINENO: result: $hard_links" >&5
10925echo "${ECHO_T}$hard_links" >&6
10926 if test "$hard_links" = no; then
10927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10928echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10929 need_locks=warn
10930 fi
10931else
10932 need_locks=no
10933fi
10934
10935echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10936echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10937
10938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10939 case $host_os in
10940 aix4* | aix5*)
10941 # If we're using GNU nm, then we don't want the "-C" option.
10942 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10943 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10944 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'
10945 else
10946 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'
10947 fi
10948 ;;
10949 pw32*)
10950 export_symbols_cmds_CXX="$ltdll_cmds"
10951 ;;
10952 cygwin* | mingw*)
10953 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10954 ;;
10955 *)
10956 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10957 ;;
10958 esac
10959
10960echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10961echo "${ECHO_T}$ld_shlibs_CXX" >&6
10962test "$ld_shlibs_CXX" = no && can_build_shared=no
10963
10964variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10965if test "$GCC" = yes; then
10966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10967fi
10968
10969#
10970# Do we need to explicitly link libc?
10971#
10972case "x$archive_cmds_need_lc_CXX" in
10973x|xyes)
10974 # Assume -lc should be added
10975 archive_cmds_need_lc_CXX=yes
10976
10977 if test "$enable_shared" = yes && test "$GCC" = yes; then
10978 case $archive_cmds_CXX in
10979 *'~'*)
10980 # FIXME: we may have to deal with multi-command sequences.
10981 ;;
10982 '$CC '*)
10983 # Test whether the compiler implicitly links with -lc since on some
10984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10985 # to ld, don't add -lc before -lgcc.
10986 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10987echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10988 $rm conftest*
10989 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10990
10991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992 (eval $ac_compile) 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } 2>conftest.err; then
10996 soname=conftest
10997 lib=conftest
10998 libobjs=conftest.$ac_objext
10999 deplibs=
11000 wl=$lt_prog_compiler_wl_CXX
11001 compiler_flags=-v
11002 linker_flags=-v
11003 verstring=
11004 output_objdir=.
11005 libname=conftest
11006 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11007 allow_undefined_flag_CXX=
11008 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11009 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }
11013 then
11014 archive_cmds_need_lc_CXX=no
11015 else
11016 archive_cmds_need_lc_CXX=yes
11017 fi
11018 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11019 else
11020 cat conftest.err 1>&5
11021 fi
11022 $rm conftest*
11023 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11024echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11025 ;;
11026 esac
11027 fi
11028 ;;
11029esac
11030
11031echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11032echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11033hardcode_action_CXX=
11034if test -n "$hardcode_libdir_flag_spec_CXX" || \
11035 test -n "$runpath_var CXX" || \
11036 test "X$hardcode_automatic_CXX"="Xyes" ; then
11037
11038 # We can hardcode non-existant directories.
11039 if test "$hardcode_direct_CXX" != no &&
11040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11041 # have to relink, otherwise we might link with an installed library
11042 # when we should be linking with a yet-to-be-installed one
11043 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11044 test "$hardcode_minus_L_CXX" != no; then
11045 # Linking always hardcodes the temporary library directory.
11046 hardcode_action_CXX=relink
11047 else
11048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11049 hardcode_action_CXX=immediate
11050 fi
11051else
11052 # We cannot hardcode anything, or else we can only hardcode existing
11053 # directories.
11054 hardcode_action_CXX=unsupported
11055fi
11056echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11057echo "${ECHO_T}$hardcode_action_CXX" >&6
11058
11059if test "$hardcode_action_CXX" = relink; then
11060 # Fast installation is not supported
11061 enable_fast_install=no
11062elif test "$shlibpath_overrides_runpath" = yes ||
11063 test "$enable_shared" = no; then
11064 # Fast installation is not necessary
11065 enable_fast_install=needless
11066fi
11067
11068striplib=
11069old_striplib=
11070echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11071echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11072if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11073 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11074 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11075 echo "$as_me:$LINENO: result: yes" >&5
11076echo "${ECHO_T}yes" >&6
11077else
11078# FIXME - insert some real tests, host_os isn't really good enough
11079 case $host_os in
11080 darwin*)
11081 if test -n "$STRIP" ; then
11082 striplib="$STRIP -x"
11083 echo "$as_me:$LINENO: result: yes" >&5
11084echo "${ECHO_T}yes" >&6
11085 else
11086 echo "$as_me:$LINENO: result: no" >&5
11087echo "${ECHO_T}no" >&6
11088fi
11089 ;;
11090 *)
11091 echo "$as_me:$LINENO: result: no" >&5
11092echo "${ECHO_T}no" >&6
11093 ;;
11094 esac
11095fi
11096
11097echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11098echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11099library_names_spec=
11100libname_spec='lib$name'
11101soname_spec=
11102shrext=".so"
11103postinstall_cmds=
11104postuninstall_cmds=
11105finish_cmds=
11106finish_eval=
11107shlibpath_var=
11108shlibpath_overrides_runpath=unknown
11109version_type=none
11110dynamic_linker="$host_os ld.so"
11111sys_lib_dlsearch_path_spec="/lib /usr/lib"
11112if test "$GCC" = yes; then
11113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11114 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11115 # if the path contains ";" then we assume it to be the separator
11116 # otherwise default to the standard path separator (i.e. ":") - it is
11117 # assumed that no part of a normal pathname contains ";" but that should
11118 # okay in the real world where ";" in dirpaths is itself problematic.
11119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11120 else
11121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11122 fi
11123else
11124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11125fi
11126need_lib_prefix=unknown
11127hardcode_into_libs=no
11128
11129# when you set need_version to no, make sure it does not cause -set_version
11130# flags to be left without arguments
11131need_version=unknown
11132
11133case $host_os in
11134aix3*)
11135 version_type=linux
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11137 shlibpath_var=LIBPATH
11138
11139 # AIX 3 has no versioning support, so we append a major version to the name.
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 ;;
11142
11143aix4* | aix5*)
11144 version_type=linux
11145 need_lib_prefix=no
11146 need_version=no
11147 hardcode_into_libs=yes
11148 if test "$host_cpu" = ia64; then
11149 # AIX 5 supports IA64
11150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 else
11153 # With GCC up to 2.95.x, collect2 would create an import file
11154 # for dependence libraries. The import file would start with
11155 # the line `#! .'. This would cause the generated library to
11156 # depend on `.', always an invalid library. This was fixed in
11157 # development snapshots of GCC prior to 3.0.
11158 case $host_os in
11159 aix4 | aix4.[01] | aix4.[01].*)
11160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11161 echo ' yes '
11162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11163 :
11164 else
11165 can_build_shared=no
11166 fi
11167 ;;
11168 esac
11169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11170 # soname into executable. Probably we can add versioning support to
11171 # collect2, so additional links can be useful in future.
11172 if test "$aix_use_runtimelinking" = yes; then
11173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11174 # instead of lib<name>.a to let people know that these are not
11175 # typical AIX shared libraries.
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 else
11178 # We preserve .a as extension for shared libraries through AIX4.2
11179 # and later when we are not doing run time linking.
11180 library_names_spec='${libname}${release}.a $libname.a'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 fi
11183 shlibpath_var=LIBPATH
11184 fi
11185 ;;
11186
11187amigaos*)
11188 library_names_spec='$libname.ixlibrary $libname.a'
11189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11190 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'
11191 ;;
11192
11193beos*)
11194 library_names_spec='${libname}${shared_ext}'
11195 dynamic_linker="$host_os ld.so"
11196 shlibpath_var=LIBRARY_PATH
11197 ;;
11198
11199bsdi4*)
11200 version_type=linux
11201 need_version=no
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11208 # the default ld.so.conf also contains /usr/contrib/lib and
11209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11210 # libtool to hard-code these into programs
11211 ;;
11212
11213cygwin* | mingw* | pw32*)
11214 version_type=windows
11215 shrext=".dll"
11216 need_version=no
11217 need_lib_prefix=no
11218
11219 case $GCC,$host_os in
11220 yes,cygwin* | yes,mingw* | yes,pw32*)
11221 library_names_spec='$libname.dll.a'
11222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11223 postinstall_cmds='base_file=`basename \${file}`~
11224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11225 dldir=$destdir/`dirname \$dlpath`~
11226 test -d \$dldir || mkdir -p \$dldir~
11227 $install_prog $dir/$dlname \$dldir/$dlname'
11228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11229 dlpath=$dir/\$dldll~
11230 $rm \$dlpath'
11231 shlibpath_overrides_runpath=yes
11232
11233 case $host_os in
11234 cygwin*)
11235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11238 ;;
11239 mingw*)
11240 # MinGW DLLs use traditional 'lib' prefix
11241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11243 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11244 # It is most probably a Windows format PATH printed by
11245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11246 # path with ; separators, and with drive letters. We can handle the
11247 # drive letters (cygwin fileutils understands them), so leave them,
11248 # especially as we might pass files found there to a mingw objdump,
11249 # which wouldn't understand a cygwinified path. Ahh.
11250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11251 else
11252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11253 fi
11254 ;;
11255 pw32*)
11256 # pw32 DLLs use 'pw' prefix rather than 'lib'
11257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11258 ;;
11259 esac
11260 ;;
11261
11262 *)
11263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11264 ;;
11265 esac
11266 dynamic_linker='Win32 ld.exe'
11267 # FIXME: first we should search . and the directory the executable is in
11268 shlibpath_var=PATH
11269 ;;
11270
11271darwin* | rhapsody*)
11272 dynamic_linker="$host_os dyld"
11273 version_type=darwin
11274 need_lib_prefix=no
11275 need_version=no
11276 # FIXME: Relying on posixy $() will cause problems for
11277 # cross-compilation, but unfortunately the echo tests do not
11278 # yet detect zsh echo's removal of \ escapes.
11279 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11280 soname_spec='${libname}${release}${major}$shared_ext'
11281 shlibpath_overrides_runpath=yes
11282 shlibpath_var=DYLD_LIBRARY_PATH
11283 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11284 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11285 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11286 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"`
11287 fi
11288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11289 ;;
11290
11291dgux*)
11292 version_type=linux
11293 need_lib_prefix=no
11294 need_version=no
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 ;;
11299
11300freebsd1*)
11301 dynamic_linker=no
11302 ;;
11303
11304freebsd*)
11305 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11306 version_type=freebsd-$objformat
11307 case $version_type in
11308 freebsd-elf*)
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11310 need_version=no
11311 need_lib_prefix=no
11312 ;;
11313 freebsd-*)
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11315 need_version=yes
11316 ;;
11317 esac
11318 shlibpath_var=LD_LIBRARY_PATH
11319 case $host_os in
11320 freebsd2*)
11321 shlibpath_overrides_runpath=yes
11322 ;;
11323 freebsd3.01* | freebsdelf3.01*)
11324 shlibpath_overrides_runpath=yes
11325 hardcode_into_libs=yes
11326 ;;
11327 *) # from 3.2 on
11328 shlibpath_overrides_runpath=no
11329 hardcode_into_libs=yes
11330 ;;
11331 esac
11332 ;;
11333
11334gnu*)
11335 version_type=linux
11336 need_lib_prefix=no
11337 need_version=no
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 hardcode_into_libs=yes
11342 ;;
11343
11344hpux9* | hpux10* | hpux11*)
11345 # Give a soname corresponding to the major version so that dld.sl refuses to
11346 # link against other versions.
11347 version_type=sunos
11348 need_lib_prefix=no
11349 need_version=no
11350 case "$host_cpu" in
11351 ia64*)
11352 shrext='.so'
11353 hardcode_into_libs=yes
11354 dynamic_linker="$host_os dld.so"
11355 shlibpath_var=LD_LIBRARY_PATH
11356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 if test "X$HPUX_IA64_MODE" = X32; then
11360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11361 else
11362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11363 fi
11364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11365 ;;
11366 hppa*64*)
11367 shrext='.sl'
11368 hardcode_into_libs=yes
11369 dynamic_linker="$host_os dld.sl"
11370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373 soname_spec='${libname}${release}${shared_ext}$major'
11374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11376 ;;
11377 *)
11378 shrext='.sl'
11379 dynamic_linker="$host_os dld.sl"
11380 shlibpath_var=SHLIB_PATH
11381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 ;;
11385 esac
11386 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11387 postinstall_cmds='chmod 555 $lib'
11388 ;;
11389
11390irix5* | irix6* | nonstopux*)
11391 case $host_os in
11392 nonstopux*) version_type=nonstopux ;;
11393 *)
11394 if test "$lt_cv_prog_gnu_ld" = yes; then
11395 version_type=linux
11396 else
11397 version_type=irix
11398 fi ;;
11399 esac
11400 need_lib_prefix=no
11401 need_version=no
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11404 case $host_os in
11405 irix5* | nonstopux*)
11406 libsuff= shlibsuff=
11407 ;;
11408 *)
11409 case $LD in # libtool.m4 will add one of these switches to LD
11410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11411 libsuff= shlibsuff= libmagic=32-bit;;
11412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11413 libsuff=32 shlibsuff=N32 libmagic=N32;;
11414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11416 *) libsuff= shlibsuff= libmagic=never-match;;
11417 esac
11418 ;;
11419 esac
11420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11421 shlibpath_overrides_runpath=no
11422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11424 hardcode_into_libs=yes
11425 ;;
11426
11427# No shared lib support for Linux oldld, aout, or coff.
11428linux*oldld* | linux*aout* | linux*coff*)
11429 dynamic_linker=no
11430 ;;
11431
11432# This must be Linux ELF.
11433linux*)
11434 version_type=linux
11435 need_lib_prefix=no
11436 need_version=no
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=no
11442 # This implies no fast_install, which is unacceptable.
11443 # Some rework will be needed to allow for fast_install
11444 # before this can be enabled.
11445 hardcode_into_libs=yes
11446
11447 # We used to test for /lib/ld.so.1 and disable shared libraries on
11448 # powerpc, because MkLinux only supported shared libraries with the
11449 # GNU dynamic linker. Since this was broken with cross compilers,
11450 # most powerpc-linux boxes support dynamic linking these days and
11451 # people can always --disable-shared, the test was removed, and we
11452 # assume the GNU/Linux dynamic linker is in use.
11453 dynamic_linker='GNU/Linux ld.so'
11454 ;;
11455
11456netbsd*)
11457 version_type=sunos
11458 need_lib_prefix=no
11459 need_version=no
11460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11463 dynamic_linker='NetBSD (a.out) ld.so'
11464 else
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 dynamic_linker='NetBSD ld.elf_so'
11468 fi
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=yes
11471 hardcode_into_libs=yes
11472 ;;
11473
11474newsos6)
11475 version_type=linux
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=yes
11479 ;;
11480
11481nto-qnx)
11482 version_type=linux
11483 need_lib_prefix=no
11484 need_version=no
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=yes
11489 ;;
11490
11491openbsd*)
11492 version_type=sunos
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11499 case $host_os in
11500 openbsd2.[89] | openbsd2.[89].*)
11501 shlibpath_overrides_runpath=no
11502 ;;
11503 *)
11504 shlibpath_overrides_runpath=yes
11505 ;;
11506 esac
11507 else
11508 shlibpath_overrides_runpath=yes
11509 fi
11510 ;;
11511
11512os2*)
11513 libname_spec='$name'
11514 shrext=".dll"
11515 need_lib_prefix=no
11516 library_names_spec='$libname${shared_ext} $libname.a'
11517 dynamic_linker='OS/2 ld.exe'
11518 shlibpath_var=LIBPATH
11519 ;;
11520
11521osf3* | osf4* | osf5*)
11522 version_type=osf
11523 need_lib_prefix=no
11524 need_version=no
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11530 ;;
11531
11532sco3.2v5*)
11533 version_type=osf
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 ;;
11538
11539solaris*)
11540 version_type=linux
11541 need_lib_prefix=no
11542 need_version=no
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11547 hardcode_into_libs=yes
11548 # ldd complains unless libraries are executable
11549 postinstall_cmds='chmod +x $lib'
11550 ;;
11551
11552sunos4*)
11553 version_type=sunos
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 shlibpath_overrides_runpath=yes
11558 if test "$with_gnu_ld" = yes; then
11559 need_lib_prefix=no
11560 fi
11561 need_version=yes
11562 ;;
11563
11564sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11565 version_type=linux
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 case $host_vendor in
11570 sni)
11571 shlibpath_overrides_runpath=no
11572 need_lib_prefix=no
11573 export_dynamic_flag_spec='${wl}-Blargedynsym'
11574 runpath_var=LD_RUN_PATH
11575 ;;
11576 siemens)
11577 need_lib_prefix=no
11578 ;;
11579 motorola)
11580 need_lib_prefix=no
11581 need_version=no
11582 shlibpath_overrides_runpath=no
11583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11584 ;;
11585 esac
11586 ;;
11587
11588sysv4*MP*)
11589 if test -d /usr/nec ;then
11590 version_type=linux
11591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11592 soname_spec='$libname${shared_ext}.$major'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 fi
11595 ;;
11596
11597uts4*)
11598 version_type=linux
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 ;;
11603
11604*)
11605 dynamic_linker=no
11606 ;;
11607esac
11608echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11609echo "${ECHO_T}$dynamic_linker" >&6
11610test "$dynamic_linker" = no && can_build_shared=no
11611
11612if test "x$enable_dlopen" != xyes; then
11613 enable_dlopen=unknown
11614 enable_dlopen_self=unknown
11615 enable_dlopen_self_static=unknown
11616else
11617 lt_cv_dlopen=no
11618 lt_cv_dlopen_libs=
11619
11620 case $host_os in
11621 beos*)
11622 lt_cv_dlopen="load_add_on"
11623 lt_cv_dlopen_libs=
11624 lt_cv_dlopen_self=yes
11625 ;;
11626
11627 mingw* | pw32*)
11628 lt_cv_dlopen="LoadLibrary"
11629 lt_cv_dlopen_libs=
11630 ;;
11631
11632 cygwin*)
11633 lt_cv_dlopen="dlopen"
11634 lt_cv_dlopen_libs=
11635 ;;
11636
11637 darwin*)
11638 # if libdl is installed we need to link against it
11639 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11640echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11641if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 ac_check_lib_save_LIBS=$LIBS
11645LIBS="-ldl $LIBS"
11646cat >conftest.$ac_ext <<_ACEOF
11647#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011648/* confdefs.h. */
11649_ACEOF
11650cat confdefs.h >>conftest.$ac_ext
11651cat >>conftest.$ac_ext <<_ACEOF
11652/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011653
11654/* Override any gcc2 internal prototype to avoid an error. */
11655#ifdef __cplusplus
11656extern "C"
11657#endif
11658/* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11660char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011661int
11662main ()
11663{
11664dlopen ();
11665 ;
11666 return 0;
11667}
11668_ACEOF
11669rm -f conftest.$ac_objext conftest$ac_exeext
11670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671 (eval $ac_link) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_lib_dl_dlopen=yes
11682else
11683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011684sed 's/^/| /' conftest.$ac_ext >&5
11685
John Criswell47fdd832003-07-14 16:52:07 +000011686ac_cv_lib_dl_dlopen=no
11687fi
11688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11689LIBS=$ac_check_lib_save_LIBS
11690fi
11691echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11692echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11693if test $ac_cv_lib_dl_dlopen = yes; then
11694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11695else
11696
11697 lt_cv_dlopen="dyld"
11698 lt_cv_dlopen_libs=
11699 lt_cv_dlopen_self=yes
11700
11701fi
11702
11703 ;;
11704
11705 *)
11706 echo "$as_me:$LINENO: checking for shl_load" >&5
11707echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11708if test "${ac_cv_func_shl_load+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011713/* confdefs.h. */
11714_ACEOF
11715cat confdefs.h >>conftest.$ac_ext
11716cat >>conftest.$ac_ext <<_ACEOF
11717/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011718/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011719 which can conflict with char shl_load (); below.
11720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11721 <limits.h> exists even on freestanding compilers. */
11722#ifdef __STDC__
11723# include <limits.h>
11724#else
11725# include <assert.h>
11726#endif
John Criswell47fdd832003-07-14 16:52:07 +000011727/* Override any gcc2 internal prototype to avoid an error. */
11728#ifdef __cplusplus
11729extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011730{
John Criswell47fdd832003-07-14 16:52:07 +000011731#endif
11732/* We use char because int might match the return type of a gcc2
11733 builtin and then its argument prototype would still apply. */
11734char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011735/* The GNU C library defines this for functions which it implements
11736 to always fail with ENOSYS. Some functions are actually named
11737 something starting with __ and the normal name is an alias. */
11738#if defined (__stub_shl_load) || defined (__stub___shl_load)
11739choke me
11740#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011741char (*f) () = shl_load;
11742#endif
11743#ifdef __cplusplus
11744}
John Criswell47fdd832003-07-14 16:52:07 +000011745#endif
11746
John Criswell0c38eaf2003-09-10 15:17:25 +000011747int
11748main ()
11749{
11750return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011751 ;
11752 return 0;
11753}
11754_ACEOF
11755rm -f conftest.$ac_objext conftest$ac_exeext
11756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757 (eval $ac_link) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_cv_func_shl_load=yes
11768else
11769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011770sed 's/^/| /' conftest.$ac_ext >&5
11771
John Criswell47fdd832003-07-14 16:52:07 +000011772ac_cv_func_shl_load=no
11773fi
11774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11775fi
11776echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11777echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11778if test $ac_cv_func_shl_load = yes; then
11779 lt_cv_dlopen="shl_load"
11780else
11781 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11782echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11783if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785else
11786 ac_check_lib_save_LIBS=$LIBS
11787LIBS="-ldld $LIBS"
11788cat >conftest.$ac_ext <<_ACEOF
11789#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011795
11796/* Override any gcc2 internal prototype to avoid an error. */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800/* We use char because int might match the return type of a gcc2
11801 builtin and then its argument prototype would still apply. */
11802char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011803int
11804main ()
11805{
11806shl_load ();
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext conftest$ac_exeext
11812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813 (eval $ac_link) 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 ac_cv_lib_dld_shl_load=yes
11824else
11825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011826sed 's/^/| /' conftest.$ac_ext >&5
11827
John Criswell47fdd832003-07-14 16:52:07 +000011828ac_cv_lib_dld_shl_load=no
11829fi
11830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11831LIBS=$ac_check_lib_save_LIBS
11832fi
11833echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11834echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11835if test $ac_cv_lib_dld_shl_load = yes; then
11836 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11837else
11838 echo "$as_me:$LINENO: checking for dlopen" >&5
11839echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11840if test "${ac_cv_func_dlopen+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
11843 cat >conftest.$ac_ext <<_ACEOF
11844#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011845/* confdefs.h. */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011850/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011851 which can conflict with char dlopen (); below.
11852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11853 <limits.h> exists even on freestanding compilers. */
11854#ifdef __STDC__
11855# include <limits.h>
11856#else
11857# include <assert.h>
11858#endif
John Criswell47fdd832003-07-14 16:52:07 +000011859/* Override any gcc2 internal prototype to avoid an error. */
11860#ifdef __cplusplus
11861extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011862{
John Criswell47fdd832003-07-14 16:52:07 +000011863#endif
11864/* We use char because int might match the return type of a gcc2
11865 builtin and then its argument prototype would still apply. */
11866char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011867/* The GNU C library defines this for functions which it implements
11868 to always fail with ENOSYS. Some functions are actually named
11869 something starting with __ and the normal name is an alias. */
11870#if defined (__stub_dlopen) || defined (__stub___dlopen)
11871choke me
11872#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011873char (*f) () = dlopen;
11874#endif
11875#ifdef __cplusplus
11876}
John Criswell47fdd832003-07-14 16:52:07 +000011877#endif
11878
John Criswell0c38eaf2003-09-10 15:17:25 +000011879int
11880main ()
11881{
11882return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011883 ;
11884 return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext conftest$ac_exeext
11888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_dlopen=yes
11900else
11901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011902sed 's/^/| /' conftest.$ac_ext >&5
11903
John Criswell47fdd832003-07-14 16:52:07 +000011904ac_cv_func_dlopen=no
11905fi
11906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11907fi
11908echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11909echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11910if test $ac_cv_func_dlopen = yes; then
11911 lt_cv_dlopen="dlopen"
11912else
11913 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11914echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11915if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917else
11918 ac_check_lib_save_LIBS=$LIBS
11919LIBS="-ldl $LIBS"
11920cat >conftest.$ac_ext <<_ACEOF
11921#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011927
11928/* Override any gcc2 internal prototype to avoid an error. */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932/* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11934char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011935int
11936main ()
11937{
11938dlopen ();
11939 ;
11940 return 0;
11941}
11942_ACEOF
11943rm -f conftest.$ac_objext conftest$ac_exeext
11944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_lib_dl_dlopen=yes
11956else
11957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011958sed 's/^/| /' conftest.$ac_ext >&5
11959
John Criswell47fdd832003-07-14 16:52:07 +000011960ac_cv_lib_dl_dlopen=no
11961fi
11962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11963LIBS=$ac_check_lib_save_LIBS
11964fi
11965echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11966echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11967if test $ac_cv_lib_dl_dlopen = yes; then
11968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11969else
11970 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11971echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11972if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 ac_check_lib_save_LIBS=$LIBS
11976LIBS="-lsvld $LIBS"
11977cat >conftest.$ac_ext <<_ACEOF
11978#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011979/* confdefs.h. */
11980_ACEOF
11981cat confdefs.h >>conftest.$ac_ext
11982cat >>conftest.$ac_ext <<_ACEOF
11983/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011984
11985/* Override any gcc2 internal prototype to avoid an error. */
11986#ifdef __cplusplus
11987extern "C"
11988#endif
11989/* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011992int
11993main ()
11994{
11995dlopen ();
11996 ;
11997 return 0;
11998}
11999_ACEOF
12000rm -f conftest.$ac_objext conftest$ac_exeext
12001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -s conftest$ac_exeext'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 ac_cv_lib_svld_dlopen=yes
12013else
12014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012015sed 's/^/| /' conftest.$ac_ext >&5
12016
John Criswell47fdd832003-07-14 16:52:07 +000012017ac_cv_lib_svld_dlopen=no
12018fi
12019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12020LIBS=$ac_check_lib_save_LIBS
12021fi
12022echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12023echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12024if test $ac_cv_lib_svld_dlopen = yes; then
12025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12026else
12027 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12028echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12029if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 ac_check_lib_save_LIBS=$LIBS
12033LIBS="-ldld $LIBS"
12034cat >conftest.$ac_ext <<_ACEOF
12035#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012036/* confdefs.h. */
12037_ACEOF
12038cat confdefs.h >>conftest.$ac_ext
12039cat >>conftest.$ac_ext <<_ACEOF
12040/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012041
12042/* Override any gcc2 internal prototype to avoid an error. */
12043#ifdef __cplusplus
12044extern "C"
12045#endif
12046/* We use char because int might match the return type of a gcc2
12047 builtin and then its argument prototype would still apply. */
12048char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012049int
12050main ()
12051{
12052dld_link ();
12053 ;
12054 return 0;
12055}
12056_ACEOF
12057rm -f conftest.$ac_objext conftest$ac_exeext
12058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059 (eval $ac_link) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -s conftest$ac_exeext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 ac_cv_lib_dld_dld_link=yes
12070else
12071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012072sed 's/^/| /' conftest.$ac_ext >&5
12073
John Criswell47fdd832003-07-14 16:52:07 +000012074ac_cv_lib_dld_dld_link=no
12075fi
12076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12077LIBS=$ac_check_lib_save_LIBS
12078fi
12079echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12080echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12081if test $ac_cv_lib_dld_dld_link = yes; then
12082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12083fi
12084
12085
12086fi
12087
12088
12089fi
12090
12091
12092fi
12093
12094
12095fi
12096
12097
12098fi
12099
12100 ;;
12101 esac
12102
12103 if test "x$lt_cv_dlopen" != xno; then
12104 enable_dlopen=yes
12105 else
12106 enable_dlopen=no
12107 fi
12108
12109 case $lt_cv_dlopen in
12110 dlopen)
12111 save_CPPFLAGS="$CPPFLAGS"
12112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12113
12114 save_LDFLAGS="$LDFLAGS"
12115 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12116
12117 save_LIBS="$LIBS"
12118 LIBS="$lt_cv_dlopen_libs $LIBS"
12119
12120 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12121echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12122if test "${lt_cv_dlopen_self+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125 if test "$cross_compiling" = yes; then :
12126 lt_cv_dlopen_self=cross
12127else
12128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129 lt_status=$lt_dlunknown
12130 cat > conftest.$ac_ext <<EOF
John Criswellf424d742003-10-07 21:13:47 +000012131#line 12131 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012132#include "confdefs.h"
12133
12134#if HAVE_DLFCN_H
12135#include <dlfcn.h>
12136#endif
12137
12138#include <stdio.h>
12139
12140#ifdef RTLD_GLOBAL
12141# define LT_DLGLOBAL RTLD_GLOBAL
12142#else
12143# ifdef DL_GLOBAL
12144# define LT_DLGLOBAL DL_GLOBAL
12145# else
12146# define LT_DLGLOBAL 0
12147# endif
12148#endif
12149
12150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151 find out it does not work in some platform. */
12152#ifndef LT_DLLAZY_OR_NOW
12153# ifdef RTLD_LAZY
12154# define LT_DLLAZY_OR_NOW RTLD_LAZY
12155# else
12156# ifdef DL_LAZY
12157# define LT_DLLAZY_OR_NOW DL_LAZY
12158# else
12159# ifdef RTLD_NOW
12160# define LT_DLLAZY_OR_NOW RTLD_NOW
12161# else
12162# ifdef DL_NOW
12163# define LT_DLLAZY_OR_NOW DL_NOW
12164# else
12165# define LT_DLLAZY_OR_NOW 0
12166# endif
12167# endif
12168# endif
12169# endif
12170#endif
12171
12172#ifdef __cplusplus
12173extern "C" void exit (int);
12174#endif
12175
12176void fnord() { int i=42;}
12177int main ()
12178{
12179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180 int status = $lt_dlunknown;
12181
12182 if (self)
12183 {
12184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12185 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12186 /* dlclose (self); */
12187 }
12188
12189 exit (status);
12190}
12191EOF
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12197 (./conftest; exit; ) 2>/dev/null
12198 lt_status=$?
12199 case x$lt_status in
12200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12202 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12203 esac
12204 else :
12205 # compilation failed
12206 lt_cv_dlopen_self=no
12207 fi
12208fi
12209rm -fr conftest*
12210
12211
12212fi
12213echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12214echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12215
12216 if test "x$lt_cv_dlopen_self" = xyes; then
12217 LDFLAGS="$LDFLAGS $link_static_flag"
12218 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12219echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12220if test "${lt_cv_dlopen_self_static+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222else
12223 if test "$cross_compiling" = yes; then :
12224 lt_cv_dlopen_self_static=cross
12225else
12226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12227 lt_status=$lt_dlunknown
12228 cat > conftest.$ac_ext <<EOF
John Criswellf424d742003-10-07 21:13:47 +000012229#line 12229 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012230#include "confdefs.h"
12231
12232#if HAVE_DLFCN_H
12233#include <dlfcn.h>
12234#endif
12235
12236#include <stdio.h>
12237
12238#ifdef RTLD_GLOBAL
12239# define LT_DLGLOBAL RTLD_GLOBAL
12240#else
12241# ifdef DL_GLOBAL
12242# define LT_DLGLOBAL DL_GLOBAL
12243# else
12244# define LT_DLGLOBAL 0
12245# endif
12246#endif
12247
12248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12249 find out it does not work in some platform. */
12250#ifndef LT_DLLAZY_OR_NOW
12251# ifdef RTLD_LAZY
12252# define LT_DLLAZY_OR_NOW RTLD_LAZY
12253# else
12254# ifdef DL_LAZY
12255# define LT_DLLAZY_OR_NOW DL_LAZY
12256# else
12257# ifdef RTLD_NOW
12258# define LT_DLLAZY_OR_NOW RTLD_NOW
12259# else
12260# ifdef DL_NOW
12261# define LT_DLLAZY_OR_NOW DL_NOW
12262# else
12263# define LT_DLLAZY_OR_NOW 0
12264# endif
12265# endif
12266# endif
12267# endif
12268#endif
12269
12270#ifdef __cplusplus
12271extern "C" void exit (int);
12272#endif
12273
12274void fnord() { int i=42;}
12275int main ()
12276{
12277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12278 int status = $lt_dlunknown;
12279
12280 if (self)
12281 {
12282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12284 /* dlclose (self); */
12285 }
12286
12287 exit (status);
12288}
12289EOF
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291 (eval $ac_link) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12295 (./conftest; exit; ) 2>/dev/null
12296 lt_status=$?
12297 case x$lt_status in
12298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12300 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12301 esac
12302 else :
12303 # compilation failed
12304 lt_cv_dlopen_self_static=no
12305 fi
12306fi
12307rm -fr conftest*
12308
12309
12310fi
12311echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12312echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12313 fi
12314
12315 CPPFLAGS="$save_CPPFLAGS"
12316 LDFLAGS="$save_LDFLAGS"
12317 LIBS="$save_LIBS"
12318 ;;
12319 esac
12320
12321 case $lt_cv_dlopen_self in
12322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12323 *) enable_dlopen_self=unknown ;;
12324 esac
12325
12326 case $lt_cv_dlopen_self_static in
12327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12328 *) enable_dlopen_self_static=unknown ;;
12329 esac
12330fi
12331
12332
12333# The else clause should only fire when bootstrapping the
12334# libtool distribution, otherwise you forgot to ship ltmain.sh
12335# with your package, and you will get complaints that there are
12336# no rules to generate ltmain.sh.
12337if test -f "$ltmain"; then
12338 # See if we are running on zsh, and set the options which allow our commands through
12339 # without removal of \ escapes.
12340 if test -n "${ZSH_VERSION+set}" ; then
12341 setopt NO_GLOB_SUBST
12342 fi
12343 # Now quote all the things that may contain metacharacters while being
12344 # careful not to overquote the AC_SUBSTed values. We take copies of the
12345 # variables and quote the copies for generation of the libtool script.
12346 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12347 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12348 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12349 deplibs_check_method reload_flag reload_cmds need_locks \
12350 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12351 lt_cv_sys_global_symbol_to_c_name_address \
12352 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12353 old_postinstall_cmds old_postuninstall_cmds \
12354 compiler_CXX \
12355 CC_CXX \
12356 LD_CXX \
12357 lt_prog_compiler_wl_CXX \
12358 lt_prog_compiler_pic_CXX \
12359 lt_prog_compiler_static_CXX \
12360 lt_prog_compiler_no_builtin_flag_CXX \
12361 export_dynamic_flag_spec_CXX \
12362 thread_safe_flag_spec_CXX \
12363 whole_archive_flag_spec_CXX \
12364 enable_shared_with_static_runtimes_CXX \
12365 old_archive_cmds_CXX \
12366 old_archive_from_new_cmds_CXX \
12367 predep_objects_CXX \
12368 postdep_objects_CXX \
12369 predeps_CXX \
12370 postdeps_CXX \
12371 compiler_lib_search_path_CXX \
12372 archive_cmds_CXX \
12373 archive_expsym_cmds_CXX \
12374 postinstall_cmds_CXX \
12375 postuninstall_cmds_CXX \
12376 old_archive_from_expsyms_cmds_CXX \
12377 allow_undefined_flag_CXX \
12378 no_undefined_flag_CXX \
12379 export_symbols_cmds_CXX \
12380 hardcode_libdir_flag_spec_CXX \
12381 hardcode_libdir_flag_spec_ld_CXX \
12382 hardcode_libdir_separator_CXX \
12383 hardcode_automatic_CXX \
12384 module_cmds_CXX \
12385 module_expsym_cmds_CXX \
12386 lt_cv_prog_compiler_c_o_CXX \
12387 exclude_expsyms_CXX \
12388 include_expsyms_CXX; do
12389
12390 case $var in
12391 old_archive_cmds_CXX | \
12392 old_archive_from_new_cmds_CXX | \
12393 archive_cmds_CXX | \
12394 archive_expsym_cmds_CXX | \
12395 module_cmds_CXX | \
12396 module_expsym_cmds_CXX | \
12397 old_archive_from_expsyms_cmds_CXX | \
12398 export_symbols_cmds_CXX | \
12399 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12400 postinstall_cmds | postuninstall_cmds | \
12401 old_postinstall_cmds | old_postuninstall_cmds | \
12402 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12403 # Double-quote double-evaled strings.
12404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12405 ;;
12406 *)
12407 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12408 ;;
12409 esac
12410 done
12411
12412 case $lt_echo in
12413 *'\$0 --fallback-echo"')
12414 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12415 ;;
12416 esac
12417
12418cfgfile="$ofile"
12419
12420 cat <<__EOF__ >> "$cfgfile"
12421# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12422
12423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12424
12425# Shell to use when invoking shell scripts.
12426SHELL=$lt_SHELL
12427
12428# Whether or not to build shared libraries.
12429build_libtool_libs=$enable_shared
12430
12431# Whether or not to build static libraries.
12432build_old_libs=$enable_static
12433
12434# Whether or not to add -lc for building shared libraries.
12435build_libtool_need_lc=$archive_cmds_need_lc_CXX
12436
12437# Whether or not to disallow shared libs when runtime libs are static
12438allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12439
12440# Whether or not to optimize for fast installation.
12441fast_install=$enable_fast_install
12442
12443# The host system.
12444host_alias=$host_alias
12445host=$host
12446
12447# An echo program that does not interpret backslashes.
12448echo=$lt_echo
12449
12450# The archiver.
12451AR=$lt_AR
12452AR_FLAGS=$lt_AR_FLAGS
12453
12454# A C compiler.
12455LTCC=$lt_LTCC
12456
12457# A language-specific compiler.
12458CC=$lt_compiler_CXX
12459
12460# Is the compiler the GNU C compiler?
12461with_gcc=$GCC_CXX
12462
12463# An ERE matcher.
12464EGREP=$lt_EGREP
12465
12466# The linker used to build libraries.
12467LD=$lt_LD_CXX
12468
12469# Whether we need hard or soft links.
12470LN_S=$lt_LN_S
12471
12472# A BSD-compatible nm program.
12473NM=$lt_NM
12474
12475# A symbol stripping program
12476STRIP=$STRIP
12477
12478# Used to examine libraries when file_magic_cmd begins "file"
12479MAGIC_CMD=$MAGIC_CMD
12480
12481# Used on cygwin: DLL creation program.
12482DLLTOOL="$DLLTOOL"
12483
12484# Used on cygwin: object dumper.
12485OBJDUMP="$OBJDUMP"
12486
12487# Used on cygwin: assembler.
12488AS="$AS"
12489
12490# The name of the directory that contains temporary libtool files.
12491objdir=$objdir
12492
12493# How to create reloadable object files.
12494reload_flag=$lt_reload_flag
12495reload_cmds=$lt_reload_cmds
12496
12497# How to pass a linker flag through the compiler.
12498wl=$lt_lt_prog_compiler_wl_CXX
12499
12500# Object file suffix (normally "o").
12501objext="$ac_objext"
12502
12503# Old archive suffix (normally "a").
12504libext="$libext"
12505
12506# Shared library suffix (normally ".so").
12507shrext='$shrext'
12508
12509# Executable file suffix (normally "").
12510exeext="$exeext"
12511
12512# Additional compiler flags for building library objects.
12513pic_flag=$lt_lt_prog_compiler_pic_CXX
12514pic_mode=$pic_mode
12515
12516# What is the maximum length of a command?
12517max_cmd_len=$lt_cv_sys_max_cmd_len
12518
12519# Does compiler simultaneously support -c and -o options?
12520compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12521
12522# Must we lock files when doing compilation ?
12523need_locks=$lt_need_locks
12524
12525# Do we need the lib prefix for modules?
12526need_lib_prefix=$need_lib_prefix
12527
12528# Do we need a version for libraries?
12529need_version=$need_version
12530
12531# Whether dlopen is supported.
12532dlopen_support=$enable_dlopen
12533
12534# Whether dlopen of programs is supported.
12535dlopen_self=$enable_dlopen_self
12536
12537# Whether dlopen of statically linked programs is supported.
12538dlopen_self_static=$enable_dlopen_self_static
12539
12540# Compiler flag to prevent dynamic linking.
12541link_static_flag=$lt_lt_prog_compiler_static_CXX
12542
12543# Compiler flag to turn off builtin functions.
12544no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12545
12546# Compiler flag to allow reflexive dlopens.
12547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12548
12549# Compiler flag to generate shared objects directly from archives.
12550whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12551
12552# Compiler flag to generate thread-safe objects.
12553thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12554
12555# Library versioning type.
12556version_type=$version_type
12557
12558# Format of library name prefix.
12559libname_spec=$lt_libname_spec
12560
12561# List of archive names. First name is the real one, the rest are links.
12562# The last name is the one that the linker finds with -lNAME.
12563library_names_spec=$lt_library_names_spec
12564
12565# The coded name of the library, if different from the real name.
12566soname_spec=$lt_soname_spec
12567
12568# Commands used to build and install an old-style archive.
12569RANLIB=$lt_RANLIB
12570old_archive_cmds=$lt_old_archive_cmds_CXX
12571old_postinstall_cmds=$lt_old_postinstall_cmds
12572old_postuninstall_cmds=$lt_old_postuninstall_cmds
12573
12574# Create an old-style archive from a shared archive.
12575old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12576
12577# Create a temporary old-style archive to link instead of a shared archive.
12578old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12579
12580# Commands used to build and install a shared archive.
12581archive_cmds=$lt_archive_cmds_CXX
12582archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12583postinstall_cmds=$lt_postinstall_cmds
12584postuninstall_cmds=$lt_postuninstall_cmds
12585
12586# Commands used to build a loadable module (assumed same as above if empty)
12587module_cmds=$lt_module_cmds_CXX
12588module_expsym_cmds=$lt_module_expsym_cmds_CXX
12589
12590# Commands to strip libraries.
12591old_striplib=$lt_old_striplib
12592striplib=$lt_striplib
12593
12594# Dependencies to place before the objects being linked to create a
12595# shared library.
12596predep_objects=$lt_predep_objects_CXX
12597
12598# Dependencies to place after the objects being linked to create a
12599# shared library.
12600postdep_objects=$lt_postdep_objects_CXX
12601
12602# Dependencies to place before the objects being linked to create a
12603# shared library.
12604predeps=$lt_predeps_CXX
12605
12606# Dependencies to place after the objects being linked to create a
12607# shared library.
12608postdeps=$lt_postdeps_CXX
12609
12610# The library search path used internally by the compiler when linking
12611# a shared library.
12612compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12613
12614# Method to check whether dependent libraries are shared objects.
12615deplibs_check_method=$lt_deplibs_check_method
12616
12617# Command to use when deplibs_check_method == file_magic.
12618file_magic_cmd=$lt_file_magic_cmd
12619
12620# Flag that allows shared libraries with undefined symbols to be built.
12621allow_undefined_flag=$lt_allow_undefined_flag_CXX
12622
12623# Flag that forces no undefined symbols.
12624no_undefined_flag=$lt_no_undefined_flag_CXX
12625
12626# Commands used to finish a libtool library installation in a directory.
12627finish_cmds=$lt_finish_cmds
12628
12629# Same as above, but a single script fragment to be evaled but not shown.
12630finish_eval=$lt_finish_eval
12631
12632# Take the output of nm and produce a listing of raw symbols and C names.
12633global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12634
12635# Transform the output of nm in a proper C declaration
12636global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12637
12638# Transform the output of nm in a C name address pair
12639global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12640
12641# This is the shared library runtime path variable.
12642runpath_var=$runpath_var
12643
12644# This is the shared library path variable.
12645shlibpath_var=$shlibpath_var
12646
12647# Is shlibpath searched before the hard-coded library search path?
12648shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12649
12650# How to hardcode a shared library path into an executable.
12651hardcode_action=$hardcode_action_CXX
12652
12653# Whether we should hardcode library paths into libraries.
12654hardcode_into_libs=$hardcode_into_libs
12655
12656# Flag to hardcode \$libdir into a binary during linking.
12657# This must work even if \$libdir does not exist.
12658hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12659
12660# If ld is used when linking, flag to hardcode \$libdir into
12661# a binary during linking. This must work even if \$libdir does
12662# not exist.
12663hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12664
12665# Whether we need a single -rpath flag with a separated argument.
12666hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12667
12668# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12669# resulting binary.
12670hardcode_direct=$hardcode_direct_CXX
12671
12672# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12673# resulting binary.
12674hardcode_minus_L=$hardcode_minus_L_CXX
12675
12676# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12677# the resulting binary.
12678hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12679
12680# Set to yes if building a shared library automatically hardcodes DIR into the library
12681# and all subsequent libraries and executables linked against it.
12682hardcode_automatic=$hardcode_automatic_CXX
12683
12684# Variables whose values should be saved in libtool wrapper scripts and
12685# restored at relink time.
12686variables_saved_for_relink="$variables_saved_for_relink"
12687
12688# Whether libtool must link a program against all its dependency libraries.
12689link_all_deplibs=$link_all_deplibs_CXX
12690
12691# Compile-time system search path for libraries
12692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12693
12694# Run-time system search path for libraries
12695sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12696
12697# Fix the shell variable \$srcfile for the compiler.
12698fix_srcfile_path="$fix_srcfile_path_CXX"
12699
12700# Set to yes if exported symbols are required.
12701always_export_symbols=$always_export_symbols_CXX
12702
12703# The commands to list exported symbols.
12704export_symbols_cmds=$lt_export_symbols_cmds_CXX
12705
12706# The commands to extract the exported symbol list from a shared archive.
12707extract_expsyms_cmds=$lt_extract_expsyms_cmds
12708
12709# Symbols that should not be listed in the preloaded symbols.
12710exclude_expsyms=$lt_exclude_expsyms_CXX
12711
12712# Symbols that must always be exported.
12713include_expsyms=$lt_include_expsyms_CXX
12714
12715# ### END LIBTOOL TAG CONFIG: $tagname
12716
12717__EOF__
12718
12719
12720else
12721 # If there is no Makefile yet, we rely on a make rule to execute
12722 # `config.status --recheck' to rerun these tests and create the
12723 # libtool script then.
12724 test -f Makefile && make "$ltmain"
12725fi
12726
12727
12728ac_ext=c
12729ac_cpp='$CPP $CPPFLAGS'
12730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732ac_compiler_gnu=$ac_cv_c_compiler_gnu
12733
12734CC=$lt_save_CC
12735LDCXX=$LD
12736LD=$lt_save_LD
12737GCC=$lt_save_GCC
12738with_gnu_ldcxx=$with_gnu_ld
12739with_gnu_ld=$lt_save_with_gnu_ld
12740lt_cv_path_LDCXX=$lt_cv_path_LD
12741lt_cv_path_LD=$lt_save_path_LD
12742lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12743lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12744
12745 else
12746 tagname=""
12747 fi
12748 ;;
12749
12750 F77)
12751 if test -n "$F77" && test "X$F77" != "Xno"; then
12752
12753ac_ext=f
12754ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12755ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12757
12758
12759archive_cmds_need_lc_F77=no
12760allow_undefined_flag_F77=
12761always_export_symbols_F77=no
12762archive_expsym_cmds_F77=
12763export_dynamic_flag_spec_F77=
12764hardcode_direct_F77=no
12765hardcode_libdir_flag_spec_F77=
12766hardcode_libdir_flag_spec_ld_F77=
12767hardcode_libdir_separator_F77=
12768hardcode_minus_L_F77=no
12769hardcode_automatic_F77=no
12770module_cmds_F77=
12771module_expsym_cmds_F77=
12772link_all_deplibs_F77=unknown
12773old_archive_cmds_F77=$old_archive_cmds
12774no_undefined_flag_F77=
12775whole_archive_flag_spec_F77=
12776enable_shared_with_static_runtimes_F77=no
12777
12778# Source file extension for f77 test sources.
12779ac_ext=f
12780
12781# Object file extension for compiled f77 test sources.
12782objext=o
12783objext_F77=$objext
12784
12785# Code to be used in simple compile tests
12786lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12787
12788# Code to be used in simple link tests
12789lt_simple_link_test_code=" program t\n end\n"
12790
12791# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12792
12793# If no C compiler was specified, use CC.
12794LTCC=${LTCC-"$CC"}
12795
12796# Allow CC to be a program name with arguments.
12797compiler=$CC
12798
12799
12800# Allow CC to be a program name with arguments.
12801lt_save_CC="$CC"
12802CC=${F77-"f77"}
12803compiler=$CC
12804compiler_F77=$CC
12805cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12806
12807echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12808echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12809echo "$as_me:$LINENO: result: $can_build_shared" >&5
12810echo "${ECHO_T}$can_build_shared" >&6
12811
12812echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12813echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12814test "$can_build_shared" = "no" && enable_shared=no
12815
12816# On AIX, shared libraries and static libraries use the same namespace, and
12817# are all built from PIC.
12818case "$host_os" in
12819aix3*)
12820 test "$enable_shared" = yes && enable_static=no
12821 if test -n "$RANLIB"; then
12822 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12823 postinstall_cmds='$RANLIB $lib'
12824 fi
12825 ;;
12826aix4*)
12827 test "$enable_shared" = yes && enable_static=no
12828 ;;
12829esac
12830echo "$as_me:$LINENO: result: $enable_shared" >&5
12831echo "${ECHO_T}$enable_shared" >&6
12832
12833echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12834echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12835# Make sure either enable_shared or enable_static is yes.
12836test "$enable_shared" = yes || enable_static=yes
12837echo "$as_me:$LINENO: result: $enable_static" >&5
12838echo "${ECHO_T}$enable_static" >&6
12839
12840test "$ld_shlibs_F77" = no && can_build_shared=no
12841
12842GCC_F77="$G77"
12843LD_F77="$LD"
12844
12845lt_prog_compiler_wl_F77=
12846lt_prog_compiler_pic_F77=
12847lt_prog_compiler_static_F77=
12848
12849echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12850echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12851
12852 if test "$GCC" = yes; then
12853 lt_prog_compiler_wl_F77='-Wl,'
12854 lt_prog_compiler_static_F77='-static'
12855
12856 case $host_os in
12857 aix*)
12858 # All AIX code is PIC.
12859 if test "$host_cpu" = ia64; then
12860 # AIX 5 now supports IA64 processor
12861 lt_prog_compiler_static_F77='-Bstatic'
12862 fi
12863 ;;
12864
12865 amigaos*)
12866 # FIXME: we need at least 68020 code to build shared libraries, but
12867 # adding the `-m68020' flag to GCC prevents building anything better,
12868 # like `-m68040'.
12869 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12870 ;;
12871
12872 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12873 # PIC is the default for these OSes.
12874 ;;
12875
12876 mingw* | pw32* | os2*)
12877 # This hack is so that the source file can tell whether it is being
12878 # built for inclusion in a dll (and should export symbols for example).
12879 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12880 ;;
12881
12882 darwin* | rhapsody*)
12883 # PIC is the default on this platform
12884 # Common symbols not allowed in MH_DYLIB files
12885 lt_prog_compiler_pic_F77='-fno-common'
12886 ;;
12887
12888 msdosdjgpp*)
12889 # Just because we use GCC doesn't mean we suddenly get shared libraries
12890 # on systems that don't support them.
12891 lt_prog_compiler_can_build_shared_F77=no
12892 enable_shared=no
12893 ;;
12894
12895 sysv4*MP*)
12896 if test -d /usr/nec; then
12897 lt_prog_compiler_pic_F77=-Kconform_pic
12898 fi
12899 ;;
12900
12901 hpux*)
12902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12903 # not for PA HP-UX.
12904 case "$host_cpu" in
12905 hppa*64*|ia64*)
12906 # +Z the default
12907 ;;
12908 *)
12909 lt_prog_compiler_pic_F77='-fPIC'
12910 ;;
12911 esac
12912 ;;
12913
12914 *)
12915 lt_prog_compiler_pic_F77='-fPIC'
12916 ;;
12917 esac
12918 else
12919 # PORTME Check for flag to pass linker flags through the system compiler.
12920 case $host_os in
12921 aix*)
12922 lt_prog_compiler_wl_F77='-Wl,'
12923 if test "$host_cpu" = ia64; then
12924 # AIX 5 now supports IA64 processor
12925 lt_prog_compiler_static_F77='-Bstatic'
12926 else
12927 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12928 fi
12929 ;;
12930
12931 mingw* | pw32* | os2*)
12932 # This hack is so that the source file can tell whether it is being
12933 # built for inclusion in a dll (and should export symbols for example).
12934 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12935 ;;
12936
12937 hpux9* | hpux10* | hpux11*)
12938 lt_prog_compiler_wl_F77='-Wl,'
12939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12940 # not for PA HP-UX.
12941 case "$host_cpu" in
12942 hppa*64*|ia64*)
12943 # +Z the default
12944 ;;
12945 *)
12946 lt_prog_compiler_pic_F77='+Z'
12947 ;;
12948 esac
12949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12950 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12951 ;;
12952
12953 irix5* | irix6* | nonstopux*)
12954 lt_prog_compiler_wl_F77='-Wl,'
12955 # PIC (with -KPIC) is the default.
12956 lt_prog_compiler_static_F77='-non_shared'
12957 ;;
12958
12959 newsos6)
12960 lt_prog_compiler_pic_F77='-KPIC'
12961 lt_prog_compiler_static_F77='-Bstatic'
12962 ;;
12963
12964 linux*)
12965 case $CC in
12966 icc|ecc)
12967 lt_prog_compiler_wl_F77='-Wl,'
12968 lt_prog_compiler_pic_F77='-KPIC'
12969 lt_prog_compiler_static_F77='-static'
12970 ;;
12971 ccc)
12972 lt_prog_compiler_wl_F77='-Wl,'
12973 # All Alpha code is PIC.
12974 lt_prog_compiler_static_F77='-non_shared'
12975 ;;
12976 esac
12977 ;;
12978
12979 osf3* | osf4* | osf5*)
12980 lt_prog_compiler_wl_F77='-Wl,'
12981 # All OSF/1 code is PIC.
12982 lt_prog_compiler_static_F77='-non_shared'
12983 ;;
12984
12985 sco3.2v5*)
12986 lt_prog_compiler_pic_F77='-Kpic'
12987 lt_prog_compiler_static_F77='-dn'
12988 ;;
12989
12990 solaris*)
12991 lt_prog_compiler_wl_F77='-Wl,'
12992 lt_prog_compiler_pic_F77='-KPIC'
12993 lt_prog_compiler_static_F77='-Bstatic'
12994 ;;
12995
12996 sunos4*)
12997 lt_prog_compiler_wl_F77='-Qoption ld '
12998 lt_prog_compiler_pic_F77='-PIC'
12999 lt_prog_compiler_static_F77='-Bstatic'
13000 ;;
13001
13002 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13003 lt_prog_compiler_wl_F77='-Wl,'
13004 lt_prog_compiler_pic_F77='-KPIC'
13005 lt_prog_compiler_static_F77='-Bstatic'
13006 ;;
13007
13008 sysv4*MP*)
13009 if test -d /usr/nec ;then
13010 lt_prog_compiler_pic_F77='-Kconform_pic'
13011 lt_prog_compiler_static_F77='-Bstatic'
13012 fi
13013 ;;
13014
13015 uts4*)
13016 lt_prog_compiler_pic_F77='-pic'
13017 lt_prog_compiler_static_F77='-Bstatic'
13018 ;;
13019
13020 *)
13021 lt_prog_compiler_can_build_shared_F77=no
13022 ;;
13023 esac
13024 fi
13025
13026echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13027echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13028
13029#
13030# Check to make sure the PIC flag actually works.
13031#
13032if test -n "$lt_prog_compiler_pic_F77"; then
13033 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13034echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13035if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037else
13038 lt_prog_compiler_pic_works_F77=no
13039 ac_outfile=conftest.$ac_objext
13040 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13041 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13042 # Insert the option either (1) after the last *FLAGS variable, or
13043 # (2) before a word containing "conftest.", or (3) at the end.
13044 # Note that $ac_compile itself does not contain backslashes and begins
13045 # with a dollar sign (not a hyphen), so the echo should work correctly.
13046 # The option is referenced via a variable to avoid confusing sed.
13047 lt_compile=`echo "$ac_compile" | $SED \
13048 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13050 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +000013051 (eval echo "\"\$as_me:13051: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013052 (eval "$lt_compile" 2>conftest.err)
13053 ac_status=$?
13054 cat conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +000013055 echo "$as_me:13055: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013056 if (exit $ac_status) && test -s "$ac_outfile"; then
13057 # The compiler can only warn and ignore the option if not recognized
13058 # So say no if there are warnings
13059 if test ! -s conftest.err; then
13060 lt_prog_compiler_pic_works_F77=yes
13061 fi
13062 fi
13063 $rm conftest*
13064
13065fi
13066echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13067echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13068
13069if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13070 case $lt_prog_compiler_pic_F77 in
13071 "" | " "*) ;;
13072 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13073 esac
13074else
13075 lt_prog_compiler_pic_F77=
13076 lt_prog_compiler_can_build_shared_F77=no
13077fi
13078
13079fi
13080case "$host_os" in
13081 # For platforms which do not support PIC, -DPIC is meaningless:
13082 *djgpp*)
13083 lt_prog_compiler_pic_F77=
13084 ;;
13085 *)
13086 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13087 ;;
13088esac
13089
13090echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13091echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13092if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
13095 lt_cv_prog_compiler_c_o_F77=no
13096 $rm -r conftest 2>/dev/null
13097 mkdir conftest
13098 cd conftest
13099 mkdir out
13100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13101
13102 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13103 # that will create temporary files in the current directory regardless of
13104 # the output directory. Thus, making CWD read-only will cause this test
13105 # to fail, enabling locking or at least warning the user not to do parallel
13106 # builds.
13107 chmod -w .
13108
13109 lt_compiler_flag="-o out/conftest2.$ac_objext"
13110 # Insert the option either (1) after the last *FLAGS variable, or
13111 # (2) before a word containing "conftest.", or (3) at the end.
13112 # Note that $ac_compile itself does not contain backslashes and begins
13113 # with a dollar sign (not a hyphen), so the echo should work correctly.
13114 lt_compile=`echo "$ac_compile" | $SED \
13115 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13117 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +000013118 (eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013119 (eval "$lt_compile" 2>out/conftest.err)
13120 ac_status=$?
13121 cat out/conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +000013122 echo "$as_me:13122: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13124 then
13125 # The compiler can only warn and ignore the option if not recognized
13126 # So say no if there are warnings
13127 if test ! -s out/conftest.err; then
13128 lt_cv_prog_compiler_c_o_F77=yes
13129 fi
13130 fi
13131 chmod u+w .
13132 $rm conftest* out/*
13133 rmdir out
13134 cd ..
13135 rmdir conftest
13136 $rm conftest*
13137
13138fi
13139echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13140echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13141
13142
13143hard_links="nottested"
13144if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13145 # do not overwrite the value of need_locks provided by the user
13146 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13147echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13148 hard_links=yes
13149 $rm conftest*
13150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13151 touch conftest.a
13152 ln conftest.a conftest.b 2>&5 || hard_links=no
13153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13154 echo "$as_me:$LINENO: result: $hard_links" >&5
13155echo "${ECHO_T}$hard_links" >&6
13156 if test "$hard_links" = no; then
13157 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13158echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13159 need_locks=warn
13160 fi
13161else
13162 need_locks=no
13163fi
13164
13165echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13166echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13167
13168 runpath_var=
13169 allow_undefined_flag_F77=
13170 enable_shared_with_static_runtimes_F77=no
13171 archive_cmds_F77=
13172 archive_expsym_cmds_F77=
13173 old_archive_From_new_cmds_F77=
13174 old_archive_from_expsyms_cmds_F77=
13175 export_dynamic_flag_spec_F77=
13176 whole_archive_flag_spec_F77=
13177 thread_safe_flag_spec_F77=
13178 hardcode_libdir_flag_spec_F77=
13179 hardcode_libdir_flag_spec_ld_F77=
13180 hardcode_libdir_separator_F77=
13181 hardcode_direct_F77=no
13182 hardcode_minus_L_F77=no
13183 hardcode_shlibpath_var_F77=unsupported
13184 link_all_deplibs_F77=unknown
13185 hardcode_automatic_F77=no
13186 module_cmds_F77=
13187 module_expsym_cmds_F77=
13188 always_export_symbols_F77=no
13189 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13190 # include_expsyms should be a list of space-separated symbols to be *always*
13191 # included in the symbol list
13192 include_expsyms_F77=
13193 # exclude_expsyms can be an extended regexp of symbols to exclude
13194 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13195 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13196 # as well as any symbol that contains `d'.
13197 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13198 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13199 # platforms (ab)use it in PIC code, but their linkers get confused if
13200 # the symbol is explicitly referenced. Since portable code cannot
13201 # rely on this symbol name, it's probably fine to never include it in
13202 # preloaded symbol tables.
13203 extract_expsyms_cmds=
13204
13205 case $host_os in
13206 cygwin* | mingw* | pw32*)
13207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13208 # When not using gcc, we currently assume that we are using
13209 # Microsoft Visual C++.
13210 if test "$GCC" != yes; then
13211 with_gnu_ld=no
13212 fi
13213 ;;
13214 openbsd*)
13215 with_gnu_ld=no
13216 ;;
13217 esac
13218
13219 ld_shlibs_F77=yes
13220 if test "$with_gnu_ld" = yes; then
13221 # If archive_cmds runs LD, not CC, wlarc should be empty
13222 wlarc='${wl}'
13223
13224 # See if GNU ld supports shared libraries.
13225 case $host_os in
13226 aix3* | aix4* | aix5*)
13227 # On AIX/PPC, the GNU linker is very broken
13228 if test "$host_cpu" != ia64; then
13229 ld_shlibs_F77=no
13230 cat <<EOF 1>&2
13231
13232*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13233*** to be unable to reliably create shared libraries on AIX.
13234*** Therefore, libtool is disabling shared libraries support. If you
13235*** really care for shared libraries, you may want to modify your PATH
13236*** so that a non-GNU linker is found, and then restart.
13237
13238EOF
13239 fi
13240 ;;
13241
13242 amigaos*)
13243 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)'
13244 hardcode_libdir_flag_spec_F77='-L$libdir'
13245 hardcode_minus_L_F77=yes
13246
13247 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13248 # that the semantics of dynamic libraries on AmigaOS, at least up
13249 # to version 4, is to share data among multiple programs linked
13250 # with the same dynamic library. Since this doesn't match the
13251 # behavior of shared libraries on other platforms, we can't use
13252 # them.
13253 ld_shlibs_F77=no
13254 ;;
13255
13256 beos*)
13257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13258 allow_undefined_flag_F77=unsupported
13259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13260 # support --undefined. This deserves some investigation. FIXME
13261 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262 else
13263 ld_shlibs_F77=no
13264 fi
13265 ;;
13266
13267 cygwin* | mingw* | pw32*)
13268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13269 # as there is no search path for DLLs.
13270 hardcode_libdir_flag_spec_F77='-L$libdir'
13271 allow_undefined_flag_F77=unsupported
13272 always_export_symbols_F77=no
13273 enable_shared_with_static_runtimes_F77=yes
13274 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13275
13276 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13277 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13278 # If the export-symbols file already is a .def file (1st line
13279 # is EXPORTS), use it as is; otherwise, prepend...
13280 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13281 cp $export_symbols $output_objdir/$soname.def;
13282 else
13283 echo EXPORTS > $output_objdir/$soname.def;
13284 cat $export_symbols >> $output_objdir/$soname.def;
13285 fi~
13286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13287 else
13288 ld_shlibs=no
13289 fi
13290 ;;
13291
13292 netbsd*)
13293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13294 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13295 wlarc=
13296 else
13297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13299 fi
13300 ;;
13301
13302 solaris* | sysv5*)
13303 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13304 ld_shlibs_F77=no
13305 cat <<EOF 1>&2
13306
13307*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13308*** create shared libraries on Solaris systems. Therefore, libtool
13309*** is disabling shared libraries support. We urge you to upgrade GNU
13310*** binutils to release 2.9.1 or newer. Another option is to modify
13311*** your PATH or compiler configuration so that the native linker is
13312*** used, and then restart.
13313
13314EOF
13315 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13316 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13318 else
13319 ld_shlibs_F77=no
13320 fi
13321 ;;
13322
13323 sunos4*)
13324 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13325 wlarc=
13326 hardcode_direct_F77=yes
13327 hardcode_shlibpath_var_F77=no
13328 ;;
13329
13330 *)
13331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13333 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13334 else
13335 ld_shlibs_F77=no
13336 fi
13337 ;;
13338 esac
13339
13340 if test "$ld_shlibs_F77" = yes; then
13341 runpath_var=LD_RUN_PATH
13342 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13343 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13344 # ancient GNU ld didn't support --whole-archive et. al.
13345 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13346 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13347 else
13348 whole_archive_flag_spec_F77=
13349 fi
13350 fi
13351 else
13352 # PORTME fill in a description of your system's linker (not GNU ld)
13353 case $host_os in
13354 aix3*)
13355 allow_undefined_flag_F77=unsupported
13356 always_export_symbols_F77=yes
13357 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'
13358 # Note: this linker hardcodes the directories in LIBPATH if there
13359 # are no directories specified by -L.
13360 hardcode_minus_L_F77=yes
13361 if test "$GCC" = yes && test -z "$link_static_flag"; then
13362 # Neither direct hardcoding nor static linking is supported with a
13363 # broken collect2.
13364 hardcode_direct_F77=unsupported
13365 fi
13366 ;;
13367
13368 aix4* | aix5*)
13369 if test "$host_cpu" = ia64; then
13370 # On IA64, the linker does run time linking by default, so we don't
13371 # have to do anything special.
13372 aix_use_runtimelinking=no
13373 exp_sym_flag='-Bexport'
13374 no_entry_flag=""
13375 else
13376 # If we're using GNU nm, then we don't want the "-C" option.
13377 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13378 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13379 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'
13380 else
13381 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'
13382 fi
13383 aix_use_runtimelinking=no
13384
13385 # Test if we are trying to use run time linking or normal
13386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13387 # need to do runtime linking.
13388 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13389 for ld_flag in $LDFLAGS; do
13390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13391 aix_use_runtimelinking=yes
13392 break
13393 fi
13394 done
13395 esac
13396
13397 exp_sym_flag='-bexport'
13398 no_entry_flag='-bnoentry'
13399 fi
13400
13401 # When large executables or shared objects are built, AIX ld can
13402 # have problems creating the table of contents. If linking a library
13403 # or program results in "error TOC overflow" add -mminimal-toc to
13404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13406
13407 archive_cmds_F77=''
13408 hardcode_direct_F77=yes
13409 hardcode_libdir_separator_F77=':'
13410 link_all_deplibs_F77=yes
13411
13412 if test "$GCC" = yes; then
13413 case $host_os in aix4.012|aix4.012.*)
13414 # We only want to do this on AIX 4.2 and lower, the check
13415 # below for broken collect2 doesn't work under 4.3+
13416 collect2name=`${CC} -print-prog-name=collect2`
13417 if test -f "$collect2name" && \
13418 strings "$collect2name" | grep resolve_lib_name >/dev/null
13419 then
13420 # We have reworked collect2
13421 hardcode_direct_F77=yes
13422 else
13423 # We have old collect2
13424 hardcode_direct_F77=unsupported
13425 # It fails to find uninstalled libraries when the uninstalled
13426 # path is not listed in the libpath. Setting hardcode_minus_L
13427 # to unsupported forces relinking
13428 hardcode_minus_L_F77=yes
13429 hardcode_libdir_flag_spec_F77='-L$libdir'
13430 hardcode_libdir_separator_F77=
13431 fi
13432 esac
13433 shared_flag='-shared'
13434 else
13435 # not using gcc
13436 if test "$host_cpu" = ia64; then
13437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13438 # chokes on -Wl,-G. The following line is correct:
13439 shared_flag='-G'
13440 else
13441 if test "$aix_use_runtimelinking" = yes; then
13442 shared_flag='${wl}-G'
13443 else
13444 shared_flag='${wl}-bM:SRE'
13445 fi
13446 fi
13447 fi
13448
13449 # It seems that -bexpall does not export symbols beginning with
13450 # underscore (_), so it is better to generate a list of symbols to export.
13451 always_export_symbols_F77=yes
13452 if test "$aix_use_runtimelinking" = yes; then
13453 # Warning - without using the other runtime loading flags (-brtl),
13454 # -berok will link without error, but may produce a broken library.
13455 allow_undefined_flag_F77='-berok'
13456 # Determine the default libpath from the value encoded in an empty executable.
13457 cat >conftest.$ac_ext <<_ACEOF
13458 program main
13459
13460 end
13461_ACEOF
13462rm -f conftest.$ac_objext conftest$ac_exeext
13463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474
13475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13476}'`
13477# Check for a 64-bit object if we didn't find anything.
13478if 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; }
13479}'`; fi
13480else
13481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013482sed 's/^/| /' conftest.$ac_ext >&5
13483
John Criswell47fdd832003-07-14 16:52:07 +000013484fi
13485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13487
13488 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13489 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"
13490 else
13491 if test "$host_cpu" = ia64; then
13492 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13493 allow_undefined_flag_F77="-z nodefs"
13494 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"
13495 else
13496 # Determine the default libpath from the value encoded in an empty executable.
13497 cat >conftest.$ac_ext <<_ACEOF
13498 program main
13499
13500 end
13501_ACEOF
13502rm -f conftest.$ac_objext conftest$ac_exeext
13503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13504 (eval $ac_link) 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } &&
13508 { ac_try='test -s conftest$ac_exeext'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; }; then
13514
13515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13516}'`
13517# Check for a 64-bit object if we didn't find anything.
13518if 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; }
13519}'`; fi
13520else
13521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013522sed 's/^/| /' conftest.$ac_ext >&5
13523
John Criswell47fdd832003-07-14 16:52:07 +000013524fi
13525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13527
13528 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13529 # Warning - without using the other run time loading flags,
13530 # -berok will link without error, but may produce a broken library.
13531 no_undefined_flag_F77=' ${wl}-bernotok'
13532 allow_undefined_flag_F77=' ${wl}-berok'
13533 # -bexpall does not export symbols beginning with underscore (_)
13534 always_export_symbols_F77=yes
13535 # Exported symbols can be pulled into shared objects from archives
13536 whole_archive_flag_spec_F77=' '
13537 archive_cmds_need_lc_F77=yes
13538 # This is similar to how AIX traditionally builds it's shared libraries.
13539 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'
13540 fi
13541 fi
13542 ;;
13543
13544 amigaos*)
13545 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)'
13546 hardcode_libdir_flag_spec_F77='-L$libdir'
13547 hardcode_minus_L_F77=yes
13548 # see comment about different semantics on the GNU ld section
13549 ld_shlibs_F77=no
13550 ;;
13551
13552 bsdi4*)
13553 export_dynamic_flag_spec_F77=-rdynamic
13554 ;;
13555
13556 cygwin* | mingw* | pw32*)
13557 # When not using gcc, we currently assume that we are using
13558 # Microsoft Visual C++.
13559 # hardcode_libdir_flag_spec is actually meaningless, as there is
13560 # no search path for DLLs.
13561 hardcode_libdir_flag_spec_F77=' '
13562 allow_undefined_flag_F77=unsupported
13563 # Tell ltmain to make .lib files, not .a files.
13564 libext=lib
13565 # Tell ltmain to make .dll files, not .so files.
13566 shrext=".dll"
13567 # FIXME: Setting linknames here is a bad hack.
13568 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13569 # The linker will automatically build a .lib file if we build a DLL.
13570 old_archive_From_new_cmds_F77='true'
13571 # FIXME: Should let the user specify the lib program.
13572 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13573 fix_srcfile_path='`cygpath -w "$srcfile"`'
13574 enable_shared_with_static_runtimes_F77=yes
13575 ;;
13576
13577 darwin* | rhapsody*)
13578 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13579 archive_cmds_need_lc_F77=no
13580 case "$host_os" in
13581 rhapsody* | darwin1.[012])
13582 allow_undefined_flag_F77='-undefined suppress'
13583 ;;
13584 *) # Darwin 1.3 on
13585 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13586 ;;
13587 esac
13588 # FIXME: Relying on posixy $() will cause problems for
13589 # cross-compilation, but unfortunately the echo tests do not
13590 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13591 # `"' quotes if we put them in here... so don't!
13592 lt_int_apple_cc_single_mod=no
13593 output_verbose_link_cmd='echo'
13594 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13595 lt_int_apple_cc_single_mod=yes
13596 fi
13597 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13598 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13599 else
13600 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'
13601 fi
13602 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13603 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13604 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13605 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}'
13606 else
13607 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}'
13608 fi
13609 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}'
13610 hardcode_direct_F77=no
13611 hardcode_automatic_F77=yes
13612 hardcode_shlibpath_var_F77=unsupported
13613 whole_archive_flag_spec_F77='-all_load $convenience'
13614 link_all_deplibs_F77=yes
13615 fi
13616 ;;
13617
13618 dgux*)
13619 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620 hardcode_libdir_flag_spec_F77='-L$libdir'
13621 hardcode_shlibpath_var_F77=no
13622 ;;
13623
13624 freebsd1*)
13625 ld_shlibs_F77=no
13626 ;;
13627
13628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13629 # support. Future versions do this automatically, but an explicit c++rt0.o
13630 # does not break anything, and helps significantly (at the cost of a little
13631 # extra space).
13632 freebsd2.2*)
13633 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13634 hardcode_libdir_flag_spec_F77='-R$libdir'
13635 hardcode_direct_F77=yes
13636 hardcode_shlibpath_var_F77=no
13637 ;;
13638
13639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13640 freebsd2*)
13641 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13642 hardcode_direct_F77=yes
13643 hardcode_minus_L_F77=yes
13644 hardcode_shlibpath_var_F77=no
13645 ;;
13646
13647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13648 freebsd*)
13649 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13650 hardcode_libdir_flag_spec_F77='-R$libdir'
13651 hardcode_direct_F77=yes
13652 hardcode_shlibpath_var_F77=no
13653 ;;
13654
13655 hpux9*)
13656 if test "$GCC" = yes; then
13657 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'
13658 else
13659 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'
13660 fi
13661 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13662 hardcode_libdir_separator_F77=:
13663 hardcode_direct_F77=yes
13664
13665 # hardcode_minus_L: Not really in the search PATH,
13666 # but as the default location of the library.
13667 hardcode_minus_L_F77=yes
13668 export_dynamic_flag_spec_F77='${wl}-E'
13669 ;;
13670
13671 hpux10* | hpux11*)
13672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13673 case "$host_cpu" in
13674 hppa*64*|ia64*)
13675 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 ;;
13677 *)
13678 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13679 ;;
13680 esac
13681 else
13682 case "$host_cpu" in
13683 hppa*64*|ia64*)
13684 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13685 ;;
13686 *)
13687 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13688 ;;
13689 esac
13690 fi
13691 if test "$with_gnu_ld" = no; then
13692 case "$host_cpu" in
13693 hppa*64*)
13694 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13695 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13696 hardcode_libdir_separator_F77=:
13697 hardcode_direct_F77=no
13698 hardcode_shlibpath_var_F77=no
13699 ;;
13700 ia64*)
13701 hardcode_libdir_flag_spec_F77='-L$libdir'
13702 hardcode_direct_F77=no
13703 hardcode_shlibpath_var_F77=no
13704
13705 # hardcode_minus_L: Not really in the search PATH,
13706 # but as the default location of the library.
13707 hardcode_minus_L_F77=yes
13708 ;;
13709 *)
13710 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13711 hardcode_libdir_separator_F77=:
13712 hardcode_direct_F77=yes
13713 export_dynamic_flag_spec_F77='${wl}-E'
13714
13715 # hardcode_minus_L: Not really in the search PATH,
13716 # but as the default location of the library.
13717 hardcode_minus_L_F77=yes
13718 ;;
13719 esac
13720 fi
13721 ;;
13722
13723 irix5* | irix6* | nonstopux*)
13724 if test "$GCC" = yes; then
13725 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'
13726 else
13727 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'
13728 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13729 fi
13730 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13731 hardcode_libdir_separator_F77=:
13732 link_all_deplibs_F77=yes
13733 ;;
13734
13735 netbsd*)
13736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13737 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13738 else
13739 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13740 fi
13741 hardcode_libdir_flag_spec_F77='-R$libdir'
13742 hardcode_direct_F77=yes
13743 hardcode_shlibpath_var_F77=no
13744 ;;
13745
13746 newsos6)
13747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13748 hardcode_direct_F77=yes
13749 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13750 hardcode_libdir_separator_F77=:
13751 hardcode_shlibpath_var_F77=no
13752 ;;
13753
13754 openbsd*)
13755 hardcode_direct_F77=yes
13756 hardcode_shlibpath_var_F77=no
13757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13758 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13759 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13760 export_dynamic_flag_spec_F77='${wl}-E'
13761 else
13762 case $host_os in
13763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13764 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13765 hardcode_libdir_flag_spec_F77='-R$libdir'
13766 ;;
13767 *)
13768 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13769 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13770 ;;
13771 esac
13772 fi
13773 ;;
13774
13775 os2*)
13776 hardcode_libdir_flag_spec_F77='-L$libdir'
13777 hardcode_minus_L_F77=yes
13778 allow_undefined_flag_F77=unsupported
13779 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'
13780 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13781 ;;
13782
13783 osf3*)
13784 if test "$GCC" = yes; then
13785 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13786 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'
13787 else
13788 allow_undefined_flag_F77=' -expect_unresolved \*'
13789 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'
13790 fi
13791 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13792 hardcode_libdir_separator_F77=:
13793 ;;
13794
13795 osf4* | osf5*) # as osf3* with the addition of -msym flag
13796 if test "$GCC" = yes; then
13797 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13798 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'
13799 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13800 else
13801 allow_undefined_flag_F77=' -expect_unresolved \*'
13802 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'
13803 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~
13804 $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'
13805
13806 # Both c and cxx compiler support -rpath directly
13807 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13808 fi
13809 hardcode_libdir_separator_F77=:
13810 ;;
13811
13812 sco3.2v5*)
13813 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13814 hardcode_shlibpath_var_F77=no
13815 export_dynamic_flag_spec_F77='${wl}-Bexport'
13816 runpath_var=LD_RUN_PATH
13817 hardcode_runpath_var=yes
13818 ;;
13819
13820 solaris*)
13821 no_undefined_flag_F77=' -z text'
13822 if test "$GCC" = yes; then
13823 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13825 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13826 else
13827 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13830 fi
13831 hardcode_libdir_flag_spec_F77='-R$libdir'
13832 hardcode_shlibpath_var_F77=no
13833 case $host_os in
13834 solaris2.[0-5] | solaris2.[0-5].*) ;;
13835 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13836 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13837 esac
13838 link_all_deplibs_F77=yes
13839 ;;
13840
13841 sunos4*)
13842 if test "x$host_vendor" = xsequent; then
13843 # Use $CC to link under sequent, because it throws in some extra .o
13844 # files that make .init and .fini sections work.
13845 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13846 else
13847 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13848 fi
13849 hardcode_libdir_flag_spec_F77='-L$libdir'
13850 hardcode_direct_F77=yes
13851 hardcode_minus_L_F77=yes
13852 hardcode_shlibpath_var_F77=no
13853 ;;
13854
13855 sysv4)
13856 case $host_vendor in
13857 sni)
13858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13859 hardcode_direct_F77=yes # is this really true???
13860 ;;
13861 siemens)
13862 ## LD is ld it makes a PLAMLIB
13863 ## CC just makes a GrossModule.
13864 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13865 reload_cmds_F77='$CC -r -o $output$reload_objs'
13866 hardcode_direct_F77=no
13867 ;;
13868 motorola)
13869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13871 ;;
13872 esac
13873 runpath_var='LD_RUN_PATH'
13874 hardcode_shlibpath_var_F77=no
13875 ;;
13876
13877 sysv4.3*)
13878 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_shlibpath_var_F77=no
13880 export_dynamic_flag_spec_F77='-Bexport'
13881 ;;
13882
13883 sysv4*MP*)
13884 if test -d /usr/nec; then
13885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_shlibpath_var_F77=no
13887 runpath_var=LD_RUN_PATH
13888 hardcode_runpath_var=yes
13889 ld_shlibs_F77=yes
13890 fi
13891 ;;
13892
13893 sysv4.2uw2*)
13894 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13895 hardcode_direct_F77=yes
13896 hardcode_minus_L_F77=no
13897 hardcode_shlibpath_var_F77=no
13898 hardcode_runpath_var=yes
13899 runpath_var=LD_RUN_PATH
13900 ;;
13901
13902 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13903 no_undefined_flag_F77='${wl}-z ${wl}text'
13904 if test "$GCC" = yes; then
13905 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13906 else
13907 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13908 fi
13909 runpath_var='LD_RUN_PATH'
13910 hardcode_shlibpath_var_F77=no
13911 ;;
13912
13913 sysv5*)
13914 no_undefined_flag_F77=' -z text'
13915 # $CC -shared without GNU ld will not create a library from C++
13916 # object files and a static libstdc++, better avoid it by now
13917 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13918 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13919 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13920 hardcode_libdir_flag_spec_F77=
13921 hardcode_shlibpath_var_F77=no
13922 runpath_var='LD_RUN_PATH'
13923 ;;
13924
13925 uts4*)
13926 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13927 hardcode_libdir_flag_spec_F77='-L$libdir'
13928 hardcode_shlibpath_var_F77=no
13929 ;;
13930
13931 *)
13932 ld_shlibs_F77=no
13933 ;;
13934 esac
13935 fi
13936
13937echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13938echo "${ECHO_T}$ld_shlibs_F77" >&6
13939test "$ld_shlibs_F77" = no && can_build_shared=no
13940
13941variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13942if test "$GCC" = yes; then
13943 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13944fi
13945
13946#
13947# Do we need to explicitly link libc?
13948#
13949case "x$archive_cmds_need_lc_F77" in
13950x|xyes)
13951 # Assume -lc should be added
13952 archive_cmds_need_lc_F77=yes
13953
13954 if test "$enable_shared" = yes && test "$GCC" = yes; then
13955 case $archive_cmds_F77 in
13956 *'~'*)
13957 # FIXME: we may have to deal with multi-command sequences.
13958 ;;
13959 '$CC '*)
13960 # Test whether the compiler implicitly links with -lc since on some
13961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13962 # to ld, don't add -lc before -lgcc.
13963 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13964echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13965 $rm conftest*
13966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13967
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969 (eval $ac_compile) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } 2>conftest.err; then
13973 soname=conftest
13974 lib=conftest
13975 libobjs=conftest.$ac_objext
13976 deplibs=
13977 wl=$lt_prog_compiler_wl_F77
13978 compiler_flags=-v
13979 linker_flags=-v
13980 verstring=
13981 output_objdir=.
13982 libname=conftest
13983 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13984 allow_undefined_flag_F77=
13985 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13986 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }
13990 then
13991 archive_cmds_need_lc_F77=no
13992 else
13993 archive_cmds_need_lc_F77=yes
13994 fi
13995 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13996 else
13997 cat conftest.err 1>&5
13998 fi
13999 $rm conftest*
14000 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14001echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14002 ;;
14003 esac
14004 fi
14005 ;;
14006esac
14007
14008echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14009echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14010hardcode_action_F77=
14011if test -n "$hardcode_libdir_flag_spec_F77" || \
14012 test -n "$runpath_var F77" || \
14013 test "X$hardcode_automatic_F77"="Xyes" ; then
14014
14015 # We can hardcode non-existant directories.
14016 if test "$hardcode_direct_F77" != no &&
14017 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14018 # have to relink, otherwise we might link with an installed library
14019 # when we should be linking with a yet-to-be-installed one
14020 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14021 test "$hardcode_minus_L_F77" != no; then
14022 # Linking always hardcodes the temporary library directory.
14023 hardcode_action_F77=relink
14024 else
14025 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14026 hardcode_action_F77=immediate
14027 fi
14028else
14029 # We cannot hardcode anything, or else we can only hardcode existing
14030 # directories.
14031 hardcode_action_F77=unsupported
14032fi
14033echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14034echo "${ECHO_T}$hardcode_action_F77" >&6
14035
14036if test "$hardcode_action_F77" = relink; then
14037 # Fast installation is not supported
14038 enable_fast_install=no
14039elif test "$shlibpath_overrides_runpath" = yes ||
14040 test "$enable_shared" = no; then
14041 # Fast installation is not necessary
14042 enable_fast_install=needless
14043fi
14044
14045striplib=
14046old_striplib=
14047echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14048echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14049if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14051 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14052 echo "$as_me:$LINENO: result: yes" >&5
14053echo "${ECHO_T}yes" >&6
14054else
14055# FIXME - insert some real tests, host_os isn't really good enough
14056 case $host_os in
14057 darwin*)
14058 if test -n "$STRIP" ; then
14059 striplib="$STRIP -x"
14060 echo "$as_me:$LINENO: result: yes" >&5
14061echo "${ECHO_T}yes" >&6
14062 else
14063 echo "$as_me:$LINENO: result: no" >&5
14064echo "${ECHO_T}no" >&6
14065fi
14066 ;;
14067 *)
14068 echo "$as_me:$LINENO: result: no" >&5
14069echo "${ECHO_T}no" >&6
14070 ;;
14071 esac
14072fi
14073
14074echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14076library_names_spec=
14077libname_spec='lib$name'
14078soname_spec=
14079shrext=".so"
14080postinstall_cmds=
14081postuninstall_cmds=
14082finish_cmds=
14083finish_eval=
14084shlibpath_var=
14085shlibpath_overrides_runpath=unknown
14086version_type=none
14087dynamic_linker="$host_os ld.so"
14088sys_lib_dlsearch_path_spec="/lib /usr/lib"
14089if test "$GCC" = yes; then
14090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14091 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14092 # if the path contains ";" then we assume it to be the separator
14093 # otherwise default to the standard path separator (i.e. ":") - it is
14094 # assumed that no part of a normal pathname contains ";" but that should
14095 # okay in the real world where ";" in dirpaths is itself problematic.
14096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14097 else
14098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14099 fi
14100else
14101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14102fi
14103need_lib_prefix=unknown
14104hardcode_into_libs=no
14105
14106# when you set need_version to no, make sure it does not cause -set_version
14107# flags to be left without arguments
14108need_version=unknown
14109
14110case $host_os in
14111aix3*)
14112 version_type=linux
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14114 shlibpath_var=LIBPATH
14115
14116 # AIX 3 has no versioning support, so we append a major version to the name.
14117 soname_spec='${libname}${release}${shared_ext}$major'
14118 ;;
14119
14120aix4* | aix5*)
14121 version_type=linux
14122 need_lib_prefix=no
14123 need_version=no
14124 hardcode_into_libs=yes
14125 if test "$host_cpu" = ia64; then
14126 # AIX 5 supports IA64
14127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 else
14130 # With GCC up to 2.95.x, collect2 would create an import file
14131 # for dependence libraries. The import file would start with
14132 # the line `#! .'. This would cause the generated library to
14133 # depend on `.', always an invalid library. This was fixed in
14134 # development snapshots of GCC prior to 3.0.
14135 case $host_os in
14136 aix4 | aix4.[01] | aix4.[01].*)
14137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14138 echo ' yes '
14139 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14140 :
14141 else
14142 can_build_shared=no
14143 fi
14144 ;;
14145 esac
14146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14147 # soname into executable. Probably we can add versioning support to
14148 # collect2, so additional links can be useful in future.
14149 if test "$aix_use_runtimelinking" = yes; then
14150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14151 # instead of lib<name>.a to let people know that these are not
14152 # typical AIX shared libraries.
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 else
14155 # We preserve .a as extension for shared libraries through AIX4.2
14156 # and later when we are not doing run time linking.
14157 library_names_spec='${libname}${release}.a $libname.a'
14158 soname_spec='${libname}${release}${shared_ext}$major'
14159 fi
14160 shlibpath_var=LIBPATH
14161 fi
14162 ;;
14163
14164amigaos*)
14165 library_names_spec='$libname.ixlibrary $libname.a'
14166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14167 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'
14168 ;;
14169
14170beos*)
14171 library_names_spec='${libname}${shared_ext}'
14172 dynamic_linker="$host_os ld.so"
14173 shlibpath_var=LIBRARY_PATH
14174 ;;
14175
14176bsdi4*)
14177 version_type=linux
14178 need_version=no
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180 soname_spec='${libname}${release}${shared_ext}$major'
14181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14185 # the default ld.so.conf also contains /usr/contrib/lib and
14186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14187 # libtool to hard-code these into programs
14188 ;;
14189
14190cygwin* | mingw* | pw32*)
14191 version_type=windows
14192 shrext=".dll"
14193 need_version=no
14194 need_lib_prefix=no
14195
14196 case $GCC,$host_os in
14197 yes,cygwin* | yes,mingw* | yes,pw32*)
14198 library_names_spec='$libname.dll.a'
14199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14200 postinstall_cmds='base_file=`basename \${file}`~
14201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14202 dldir=$destdir/`dirname \$dlpath`~
14203 test -d \$dldir || mkdir -p \$dldir~
14204 $install_prog $dir/$dlname \$dldir/$dlname'
14205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14206 dlpath=$dir/\$dldll~
14207 $rm \$dlpath'
14208 shlibpath_overrides_runpath=yes
14209
14210 case $host_os in
14211 cygwin*)
14212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14214 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14215 ;;
14216 mingw*)
14217 # MinGW DLLs use traditional 'lib' prefix
14218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14221 # It is most probably a Windows format PATH printed by
14222 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14223 # path with ; separators, and with drive letters. We can handle the
14224 # drive letters (cygwin fileutils understands them), so leave them,
14225 # especially as we might pass files found there to a mingw objdump,
14226 # which wouldn't understand a cygwinified path. Ahh.
14227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14228 else
14229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14230 fi
14231 ;;
14232 pw32*)
14233 # pw32 DLLs use 'pw' prefix rather than 'lib'
14234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14235 ;;
14236 esac
14237 ;;
14238
14239 *)
14240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14241 ;;
14242 esac
14243 dynamic_linker='Win32 ld.exe'
14244 # FIXME: first we should search . and the directory the executable is in
14245 shlibpath_var=PATH
14246 ;;
14247
14248darwin* | rhapsody*)
14249 dynamic_linker="$host_os dyld"
14250 version_type=darwin
14251 need_lib_prefix=no
14252 need_version=no
14253 # FIXME: Relying on posixy $() will cause problems for
14254 # cross-compilation, but unfortunately the echo tests do not
14255 # yet detect zsh echo's removal of \ escapes.
14256 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14257 soname_spec='${libname}${release}${major}$shared_ext'
14258 shlibpath_overrides_runpath=yes
14259 shlibpath_var=DYLD_LIBRARY_PATH
14260 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14261 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14262 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14263 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"`
14264 fi
14265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14266 ;;
14267
14268dgux*)
14269 version_type=linux
14270 need_lib_prefix=no
14271 need_version=no
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14273 soname_spec='${libname}${release}${shared_ext}$major'
14274 shlibpath_var=LD_LIBRARY_PATH
14275 ;;
14276
14277freebsd1*)
14278 dynamic_linker=no
14279 ;;
14280
14281freebsd*)
14282 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14283 version_type=freebsd-$objformat
14284 case $version_type in
14285 freebsd-elf*)
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14287 need_version=no
14288 need_lib_prefix=no
14289 ;;
14290 freebsd-*)
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14292 need_version=yes
14293 ;;
14294 esac
14295 shlibpath_var=LD_LIBRARY_PATH
14296 case $host_os in
14297 freebsd2*)
14298 shlibpath_overrides_runpath=yes
14299 ;;
14300 freebsd3.01* | freebsdelf3.01*)
14301 shlibpath_overrides_runpath=yes
14302 hardcode_into_libs=yes
14303 ;;
14304 *) # from 3.2 on
14305 shlibpath_overrides_runpath=no
14306 hardcode_into_libs=yes
14307 ;;
14308 esac
14309 ;;
14310
14311gnu*)
14312 version_type=linux
14313 need_lib_prefix=no
14314 need_version=no
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14317 shlibpath_var=LD_LIBRARY_PATH
14318 hardcode_into_libs=yes
14319 ;;
14320
14321hpux9* | hpux10* | hpux11*)
14322 # Give a soname corresponding to the major version so that dld.sl refuses to
14323 # link against other versions.
14324 version_type=sunos
14325 need_lib_prefix=no
14326 need_version=no
14327 case "$host_cpu" in
14328 ia64*)
14329 shrext='.so'
14330 hardcode_into_libs=yes
14331 dynamic_linker="$host_os dld.so"
14332 shlibpath_var=LD_LIBRARY_PATH
14333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 if test "X$HPUX_IA64_MODE" = X32; then
14337 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14338 else
14339 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14340 fi
14341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14342 ;;
14343 hppa*64*)
14344 shrext='.sl'
14345 hardcode_into_libs=yes
14346 dynamic_linker="$host_os dld.sl"
14347 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350 soname_spec='${libname}${release}${shared_ext}$major'
14351 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14353 ;;
14354 *)
14355 shrext='.sl'
14356 dynamic_linker="$host_os dld.sl"
14357 shlibpath_var=SHLIB_PATH
14358 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14360 soname_spec='${libname}${release}${shared_ext}$major'
14361 ;;
14362 esac
14363 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14364 postinstall_cmds='chmod 555 $lib'
14365 ;;
14366
14367irix5* | irix6* | nonstopux*)
14368 case $host_os in
14369 nonstopux*) version_type=nonstopux ;;
14370 *)
14371 if test "$lt_cv_prog_gnu_ld" = yes; then
14372 version_type=linux
14373 else
14374 version_type=irix
14375 fi ;;
14376 esac
14377 need_lib_prefix=no
14378 need_version=no
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14381 case $host_os in
14382 irix5* | nonstopux*)
14383 libsuff= shlibsuff=
14384 ;;
14385 *)
14386 case $LD in # libtool.m4 will add one of these switches to LD
14387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14388 libsuff= shlibsuff= libmagic=32-bit;;
14389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14390 libsuff=32 shlibsuff=N32 libmagic=N32;;
14391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14392 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14393 *) libsuff= shlibsuff= libmagic=never-match;;
14394 esac
14395 ;;
14396 esac
14397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14398 shlibpath_overrides_runpath=no
14399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14401 hardcode_into_libs=yes
14402 ;;
14403
14404# No shared lib support for Linux oldld, aout, or coff.
14405linux*oldld* | linux*aout* | linux*coff*)
14406 dynamic_linker=no
14407 ;;
14408
14409# This must be Linux ELF.
14410linux*)
14411 version_type=linux
14412 need_lib_prefix=no
14413 need_version=no
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415 soname_spec='${libname}${release}${shared_ext}$major'
14416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 shlibpath_overrides_runpath=no
14419 # This implies no fast_install, which is unacceptable.
14420 # Some rework will be needed to allow for fast_install
14421 # before this can be enabled.
14422 hardcode_into_libs=yes
14423
14424 # We used to test for /lib/ld.so.1 and disable shared libraries on
14425 # powerpc, because MkLinux only supported shared libraries with the
14426 # GNU dynamic linker. Since this was broken with cross compilers,
14427 # most powerpc-linux boxes support dynamic linking these days and
14428 # people can always --disable-shared, the test was removed, and we
14429 # assume the GNU/Linux dynamic linker is in use.
14430 dynamic_linker='GNU/Linux ld.so'
14431 ;;
14432
14433netbsd*)
14434 version_type=sunos
14435 need_lib_prefix=no
14436 need_version=no
14437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14440 dynamic_linker='NetBSD (a.out) ld.so'
14441 else
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 dynamic_linker='NetBSD ld.elf_so'
14445 fi
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes
14448 hardcode_into_libs=yes
14449 ;;
14450
14451newsos6)
14452 version_type=linux
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=yes
14456 ;;
14457
14458nto-qnx)
14459 version_type=linux
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=yes
14466 ;;
14467
14468openbsd*)
14469 version_type=sunos
14470 need_lib_prefix=no
14471 need_version=no
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14476 case $host_os in
14477 openbsd2.[89] | openbsd2.[89].*)
14478 shlibpath_overrides_runpath=no
14479 ;;
14480 *)
14481 shlibpath_overrides_runpath=yes
14482 ;;
14483 esac
14484 else
14485 shlibpath_overrides_runpath=yes
14486 fi
14487 ;;
14488
14489os2*)
14490 libname_spec='$name'
14491 shrext=".dll"
14492 need_lib_prefix=no
14493 library_names_spec='$libname${shared_ext} $libname.a'
14494 dynamic_linker='OS/2 ld.exe'
14495 shlibpath_var=LIBPATH
14496 ;;
14497
14498osf3* | osf4* | osf5*)
14499 version_type=osf
14500 need_lib_prefix=no
14501 need_version=no
14502 soname_spec='${libname}${release}${shared_ext}$major'
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14507 ;;
14508
14509sco3.2v5*)
14510 version_type=osf
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 ;;
14515
14516solaris*)
14517 version_type=linux
14518 need_lib_prefix=no
14519 need_version=no
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 shlibpath_overrides_runpath=yes
14524 hardcode_into_libs=yes
14525 # ldd complains unless libraries are executable
14526 postinstall_cmds='chmod +x $lib'
14527 ;;
14528
14529sunos4*)
14530 version_type=sunos
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 shlibpath_overrides_runpath=yes
14535 if test "$with_gnu_ld" = yes; then
14536 need_lib_prefix=no
14537 fi
14538 need_version=yes
14539 ;;
14540
14541sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14542 version_type=linux
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 case $host_vendor in
14547 sni)
14548 shlibpath_overrides_runpath=no
14549 need_lib_prefix=no
14550 export_dynamic_flag_spec='${wl}-Blargedynsym'
14551 runpath_var=LD_RUN_PATH
14552 ;;
14553 siemens)
14554 need_lib_prefix=no
14555 ;;
14556 motorola)
14557 need_lib_prefix=no
14558 need_version=no
14559 shlibpath_overrides_runpath=no
14560 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14561 ;;
14562 esac
14563 ;;
14564
14565sysv4*MP*)
14566 if test -d /usr/nec ;then
14567 version_type=linux
14568 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14569 soname_spec='$libname${shared_ext}.$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14571 fi
14572 ;;
14573
14574uts4*)
14575 version_type=linux
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 ;;
14580
14581*)
14582 dynamic_linker=no
14583 ;;
14584esac
14585echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14586echo "${ECHO_T}$dynamic_linker" >&6
14587test "$dynamic_linker" = no && can_build_shared=no
14588
14589
14590# The else clause should only fire when bootstrapping the
14591# libtool distribution, otherwise you forgot to ship ltmain.sh
14592# with your package, and you will get complaints that there are
14593# no rules to generate ltmain.sh.
14594if test -f "$ltmain"; then
14595 # See if we are running on zsh, and set the options which allow our commands through
14596 # without removal of \ escapes.
14597 if test -n "${ZSH_VERSION+set}" ; then
14598 setopt NO_GLOB_SUBST
14599 fi
14600 # Now quote all the things that may contain metacharacters while being
14601 # careful not to overquote the AC_SUBSTed values. We take copies of the
14602 # variables and quote the copies for generation of the libtool script.
14603 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14604 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14605 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14606 deplibs_check_method reload_flag reload_cmds need_locks \
14607 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14608 lt_cv_sys_global_symbol_to_c_name_address \
14609 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14610 old_postinstall_cmds old_postuninstall_cmds \
14611 compiler_F77 \
14612 CC_F77 \
14613 LD_F77 \
14614 lt_prog_compiler_wl_F77 \
14615 lt_prog_compiler_pic_F77 \
14616 lt_prog_compiler_static_F77 \
14617 lt_prog_compiler_no_builtin_flag_F77 \
14618 export_dynamic_flag_spec_F77 \
14619 thread_safe_flag_spec_F77 \
14620 whole_archive_flag_spec_F77 \
14621 enable_shared_with_static_runtimes_F77 \
14622 old_archive_cmds_F77 \
14623 old_archive_from_new_cmds_F77 \
14624 predep_objects_F77 \
14625 postdep_objects_F77 \
14626 predeps_F77 \
14627 postdeps_F77 \
14628 compiler_lib_search_path_F77 \
14629 archive_cmds_F77 \
14630 archive_expsym_cmds_F77 \
14631 postinstall_cmds_F77 \
14632 postuninstall_cmds_F77 \
14633 old_archive_from_expsyms_cmds_F77 \
14634 allow_undefined_flag_F77 \
14635 no_undefined_flag_F77 \
14636 export_symbols_cmds_F77 \
14637 hardcode_libdir_flag_spec_F77 \
14638 hardcode_libdir_flag_spec_ld_F77 \
14639 hardcode_libdir_separator_F77 \
14640 hardcode_automatic_F77 \
14641 module_cmds_F77 \
14642 module_expsym_cmds_F77 \
14643 lt_cv_prog_compiler_c_o_F77 \
14644 exclude_expsyms_F77 \
14645 include_expsyms_F77; do
14646
14647 case $var in
14648 old_archive_cmds_F77 | \
14649 old_archive_from_new_cmds_F77 | \
14650 archive_cmds_F77 | \
14651 archive_expsym_cmds_F77 | \
14652 module_cmds_F77 | \
14653 module_expsym_cmds_F77 | \
14654 old_archive_from_expsyms_cmds_F77 | \
14655 export_symbols_cmds_F77 | \
14656 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14657 postinstall_cmds | postuninstall_cmds | \
14658 old_postinstall_cmds | old_postuninstall_cmds | \
14659 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14660 # Double-quote double-evaled strings.
14661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14662 ;;
14663 *)
14664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14665 ;;
14666 esac
14667 done
14668
14669 case $lt_echo in
14670 *'\$0 --fallback-echo"')
14671 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14672 ;;
14673 esac
14674
14675cfgfile="$ofile"
14676
14677 cat <<__EOF__ >> "$cfgfile"
14678# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14679
14680# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14681
14682# Shell to use when invoking shell scripts.
14683SHELL=$lt_SHELL
14684
14685# Whether or not to build shared libraries.
14686build_libtool_libs=$enable_shared
14687
14688# Whether or not to build static libraries.
14689build_old_libs=$enable_static
14690
14691# Whether or not to add -lc for building shared libraries.
14692build_libtool_need_lc=$archive_cmds_need_lc_F77
14693
14694# Whether or not to disallow shared libs when runtime libs are static
14695allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14696
14697# Whether or not to optimize for fast installation.
14698fast_install=$enable_fast_install
14699
14700# The host system.
14701host_alias=$host_alias
14702host=$host
14703
14704# An echo program that does not interpret backslashes.
14705echo=$lt_echo
14706
14707# The archiver.
14708AR=$lt_AR
14709AR_FLAGS=$lt_AR_FLAGS
14710
14711# A C compiler.
14712LTCC=$lt_LTCC
14713
14714# A language-specific compiler.
14715CC=$lt_compiler_F77
14716
14717# Is the compiler the GNU C compiler?
14718with_gcc=$GCC_F77
14719
14720# An ERE matcher.
14721EGREP=$lt_EGREP
14722
14723# The linker used to build libraries.
14724LD=$lt_LD_F77
14725
14726# Whether we need hard or soft links.
14727LN_S=$lt_LN_S
14728
14729# A BSD-compatible nm program.
14730NM=$lt_NM
14731
14732# A symbol stripping program
14733STRIP=$STRIP
14734
14735# Used to examine libraries when file_magic_cmd begins "file"
14736MAGIC_CMD=$MAGIC_CMD
14737
14738# Used on cygwin: DLL creation program.
14739DLLTOOL="$DLLTOOL"
14740
14741# Used on cygwin: object dumper.
14742OBJDUMP="$OBJDUMP"
14743
14744# Used on cygwin: assembler.
14745AS="$AS"
14746
14747# The name of the directory that contains temporary libtool files.
14748objdir=$objdir
14749
14750# How to create reloadable object files.
14751reload_flag=$lt_reload_flag
14752reload_cmds=$lt_reload_cmds
14753
14754# How to pass a linker flag through the compiler.
14755wl=$lt_lt_prog_compiler_wl_F77
14756
14757# Object file suffix (normally "o").
14758objext="$ac_objext"
14759
14760# Old archive suffix (normally "a").
14761libext="$libext"
14762
14763# Shared library suffix (normally ".so").
14764shrext='$shrext'
14765
14766# Executable file suffix (normally "").
14767exeext="$exeext"
14768
14769# Additional compiler flags for building library objects.
14770pic_flag=$lt_lt_prog_compiler_pic_F77
14771pic_mode=$pic_mode
14772
14773# What is the maximum length of a command?
14774max_cmd_len=$lt_cv_sys_max_cmd_len
14775
14776# Does compiler simultaneously support -c and -o options?
14777compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14778
14779# Must we lock files when doing compilation ?
14780need_locks=$lt_need_locks
14781
14782# Do we need the lib prefix for modules?
14783need_lib_prefix=$need_lib_prefix
14784
14785# Do we need a version for libraries?
14786need_version=$need_version
14787
14788# Whether dlopen is supported.
14789dlopen_support=$enable_dlopen
14790
14791# Whether dlopen of programs is supported.
14792dlopen_self=$enable_dlopen_self
14793
14794# Whether dlopen of statically linked programs is supported.
14795dlopen_self_static=$enable_dlopen_self_static
14796
14797# Compiler flag to prevent dynamic linking.
14798link_static_flag=$lt_lt_prog_compiler_static_F77
14799
14800# Compiler flag to turn off builtin functions.
14801no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14802
14803# Compiler flag to allow reflexive dlopens.
14804export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14805
14806# Compiler flag to generate shared objects directly from archives.
14807whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14808
14809# Compiler flag to generate thread-safe objects.
14810thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14811
14812# Library versioning type.
14813version_type=$version_type
14814
14815# Format of library name prefix.
14816libname_spec=$lt_libname_spec
14817
14818# List of archive names. First name is the real one, the rest are links.
14819# The last name is the one that the linker finds with -lNAME.
14820library_names_spec=$lt_library_names_spec
14821
14822# The coded name of the library, if different from the real name.
14823soname_spec=$lt_soname_spec
14824
14825# Commands used to build and install an old-style archive.
14826RANLIB=$lt_RANLIB
14827old_archive_cmds=$lt_old_archive_cmds_F77
14828old_postinstall_cmds=$lt_old_postinstall_cmds
14829old_postuninstall_cmds=$lt_old_postuninstall_cmds
14830
14831# Create an old-style archive from a shared archive.
14832old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14833
14834# Create a temporary old-style archive to link instead of a shared archive.
14835old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14836
14837# Commands used to build and install a shared archive.
14838archive_cmds=$lt_archive_cmds_F77
14839archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14840postinstall_cmds=$lt_postinstall_cmds
14841postuninstall_cmds=$lt_postuninstall_cmds
14842
14843# Commands used to build a loadable module (assumed same as above if empty)
14844module_cmds=$lt_module_cmds_F77
14845module_expsym_cmds=$lt_module_expsym_cmds_F77
14846
14847# Commands to strip libraries.
14848old_striplib=$lt_old_striplib
14849striplib=$lt_striplib
14850
14851# Dependencies to place before the objects being linked to create a
14852# shared library.
14853predep_objects=$lt_predep_objects_F77
14854
14855# Dependencies to place after the objects being linked to create a
14856# shared library.
14857postdep_objects=$lt_postdep_objects_F77
14858
14859# Dependencies to place before the objects being linked to create a
14860# shared library.
14861predeps=$lt_predeps_F77
14862
14863# Dependencies to place after the objects being linked to create a
14864# shared library.
14865postdeps=$lt_postdeps_F77
14866
14867# The library search path used internally by the compiler when linking
14868# a shared library.
14869compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14870
14871# Method to check whether dependent libraries are shared objects.
14872deplibs_check_method=$lt_deplibs_check_method
14873
14874# Command to use when deplibs_check_method == file_magic.
14875file_magic_cmd=$lt_file_magic_cmd
14876
14877# Flag that allows shared libraries with undefined symbols to be built.
14878allow_undefined_flag=$lt_allow_undefined_flag_F77
14879
14880# Flag that forces no undefined symbols.
14881no_undefined_flag=$lt_no_undefined_flag_F77
14882
14883# Commands used to finish a libtool library installation in a directory.
14884finish_cmds=$lt_finish_cmds
14885
14886# Same as above, but a single script fragment to be evaled but not shown.
14887finish_eval=$lt_finish_eval
14888
14889# Take the output of nm and produce a listing of raw symbols and C names.
14890global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14891
14892# Transform the output of nm in a proper C declaration
14893global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14894
14895# Transform the output of nm in a C name address pair
14896global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14897
14898# This is the shared library runtime path variable.
14899runpath_var=$runpath_var
14900
14901# This is the shared library path variable.
14902shlibpath_var=$shlibpath_var
14903
14904# Is shlibpath searched before the hard-coded library search path?
14905shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14906
14907# How to hardcode a shared library path into an executable.
14908hardcode_action=$hardcode_action_F77
14909
14910# Whether we should hardcode library paths into libraries.
14911hardcode_into_libs=$hardcode_into_libs
14912
14913# Flag to hardcode \$libdir into a binary during linking.
14914# This must work even if \$libdir does not exist.
14915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14916
14917# If ld is used when linking, flag to hardcode \$libdir into
14918# a binary during linking. This must work even if \$libdir does
14919# not exist.
14920hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14921
14922# Whether we need a single -rpath flag with a separated argument.
14923hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14924
14925# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14926# resulting binary.
14927hardcode_direct=$hardcode_direct_F77
14928
14929# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14930# resulting binary.
14931hardcode_minus_L=$hardcode_minus_L_F77
14932
14933# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14934# the resulting binary.
14935hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14936
14937# Set to yes if building a shared library automatically hardcodes DIR into the library
14938# and all subsequent libraries and executables linked against it.
14939hardcode_automatic=$hardcode_automatic_F77
14940
14941# Variables whose values should be saved in libtool wrapper scripts and
14942# restored at relink time.
14943variables_saved_for_relink="$variables_saved_for_relink"
14944
14945# Whether libtool must link a program against all its dependency libraries.
14946link_all_deplibs=$link_all_deplibs_F77
14947
14948# Compile-time system search path for libraries
14949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14950
14951# Run-time system search path for libraries
14952sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14953
14954# Fix the shell variable \$srcfile for the compiler.
14955fix_srcfile_path="$fix_srcfile_path_F77"
14956
14957# Set to yes if exported symbols are required.
14958always_export_symbols=$always_export_symbols_F77
14959
14960# The commands to list exported symbols.
14961export_symbols_cmds=$lt_export_symbols_cmds_F77
14962
14963# The commands to extract the exported symbol list from a shared archive.
14964extract_expsyms_cmds=$lt_extract_expsyms_cmds
14965
14966# Symbols that should not be listed in the preloaded symbols.
14967exclude_expsyms=$lt_exclude_expsyms_F77
14968
14969# Symbols that must always be exported.
14970include_expsyms=$lt_include_expsyms_F77
14971
14972# ### END LIBTOOL TAG CONFIG: $tagname
14973
14974__EOF__
14975
14976
14977else
14978 # If there is no Makefile yet, we rely on a make rule to execute
14979 # `config.status --recheck' to rerun these tests and create the
14980 # libtool script then.
14981 test -f Makefile && make "$ltmain"
14982fi
14983
14984
14985ac_ext=c
14986ac_cpp='$CPP $CPPFLAGS'
14987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989ac_compiler_gnu=$ac_cv_c_compiler_gnu
14990
14991CC="$lt_save_CC"
14992
14993 else
14994 tagname=""
14995 fi
14996 ;;
14997
14998 GCJ)
14999 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15000
15001
15002
15003# Source file extension for Java test sources.
15004ac_ext=java
15005
15006# Object file extension for compiled Java test sources.
15007objext=o
15008objext_GCJ=$objext
15009
15010# Code to be used in simple compile tests
15011lt_simple_compile_test_code="class foo {}\n"
15012
15013# Code to be used in simple link tests
15014lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15015
15016# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15017
15018# If no C compiler was specified, use CC.
15019LTCC=${LTCC-"$CC"}
15020
15021# Allow CC to be a program name with arguments.
15022compiler=$CC
15023
15024
15025# Allow CC to be a program name with arguments.
15026lt_save_CC="$CC"
15027CC=${GCJ-"gcj"}
15028compiler=$CC
15029compiler_GCJ=$CC
15030
15031# GCJ did not exist at the time GCC didn't implicitly link libc in.
15032archive_cmds_need_lc_GCJ=no
15033
15034## CAVEAT EMPTOR:
15035## There is no encapsulation within the following macros, do not change
15036## the running order or otherwise move them around unless you know exactly
15037## what you are doing...
15038
15039lt_prog_compiler_no_builtin_flag_GCJ=
15040
15041if test "$GCC" = yes; then
15042 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15043
15044 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15045echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15046if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048else
15049 lt_cv_prog_compiler_rtti_exceptions=no
15050 ac_outfile=conftest.$ac_objext
15051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052 lt_compiler_flag="-fno-rtti -fno-exceptions"
15053 # Insert the option either (1) after the last *FLAGS variable, or
15054 # (2) before a word containing "conftest.", or (3) at the end.
15055 # Note that $ac_compile itself does not contain backslashes and begins
15056 # with a dollar sign (not a hyphen), so the echo should work correctly.
15057 # The option is referenced via a variable to avoid confusing sed.
15058 lt_compile=`echo "$ac_compile" | $SED \
15059 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +000015062 (eval echo "\"\$as_me:15062: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015063 (eval "$lt_compile" 2>conftest.err)
15064 ac_status=$?
15065 cat conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +000015066 echo "$as_me:15066: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015067 if (exit $ac_status) && test -s "$ac_outfile"; then
15068 # The compiler can only warn and ignore the option if not recognized
15069 # So say no if there are warnings
15070 if test ! -s conftest.err; then
15071 lt_cv_prog_compiler_rtti_exceptions=yes
15072 fi
15073 fi
15074 $rm conftest*
15075
15076fi
15077echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15078echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15079
15080if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15081 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15082else
15083 :
15084fi
15085
15086fi
15087
15088lt_prog_compiler_wl_GCJ=
15089lt_prog_compiler_pic_GCJ=
15090lt_prog_compiler_static_GCJ=
15091
15092echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15093echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15094
15095 if test "$GCC" = yes; then
15096 lt_prog_compiler_wl_GCJ='-Wl,'
15097 lt_prog_compiler_static_GCJ='-static'
15098
15099 case $host_os in
15100 aix*)
15101 # All AIX code is PIC.
15102 if test "$host_cpu" = ia64; then
15103 # AIX 5 now supports IA64 processor
15104 lt_prog_compiler_static_GCJ='-Bstatic'
15105 fi
15106 ;;
15107
15108 amigaos*)
15109 # FIXME: we need at least 68020 code to build shared libraries, but
15110 # adding the `-m68020' flag to GCC prevents building anything better,
15111 # like `-m68040'.
15112 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15113 ;;
15114
15115 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15116 # PIC is the default for these OSes.
15117 ;;
15118
15119 mingw* | pw32* | os2*)
15120 # This hack is so that the source file can tell whether it is being
15121 # built for inclusion in a dll (and should export symbols for example).
15122 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15123 ;;
15124
15125 darwin* | rhapsody*)
15126 # PIC is the default on this platform
15127 # Common symbols not allowed in MH_DYLIB files
15128 lt_prog_compiler_pic_GCJ='-fno-common'
15129 ;;
15130
15131 msdosdjgpp*)
15132 # Just because we use GCC doesn't mean we suddenly get shared libraries
15133 # on systems that don't support them.
15134 lt_prog_compiler_can_build_shared_GCJ=no
15135 enable_shared=no
15136 ;;
15137
15138 sysv4*MP*)
15139 if test -d /usr/nec; then
15140 lt_prog_compiler_pic_GCJ=-Kconform_pic
15141 fi
15142 ;;
15143
15144 hpux*)
15145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15146 # not for PA HP-UX.
15147 case "$host_cpu" in
15148 hppa*64*|ia64*)
15149 # +Z the default
15150 ;;
15151 *)
15152 lt_prog_compiler_pic_GCJ='-fPIC'
15153 ;;
15154 esac
15155 ;;
15156
15157 *)
15158 lt_prog_compiler_pic_GCJ='-fPIC'
15159 ;;
15160 esac
15161 else
15162 # PORTME Check for flag to pass linker flags through the system compiler.
15163 case $host_os in
15164 aix*)
15165 lt_prog_compiler_wl_GCJ='-Wl,'
15166 if test "$host_cpu" = ia64; then
15167 # AIX 5 now supports IA64 processor
15168 lt_prog_compiler_static_GCJ='-Bstatic'
15169 else
15170 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15171 fi
15172 ;;
15173
15174 mingw* | pw32* | os2*)
15175 # This hack is so that the source file can tell whether it is being
15176 # built for inclusion in a dll (and should export symbols for example).
15177 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15178 ;;
15179
15180 hpux9* | hpux10* | hpux11*)
15181 lt_prog_compiler_wl_GCJ='-Wl,'
15182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15183 # not for PA HP-UX.
15184 case "$host_cpu" in
15185 hppa*64*|ia64*)
15186 # +Z the default
15187 ;;
15188 *)
15189 lt_prog_compiler_pic_GCJ='+Z'
15190 ;;
15191 esac
15192 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15193 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15194 ;;
15195
15196 irix5* | irix6* | nonstopux*)
15197 lt_prog_compiler_wl_GCJ='-Wl,'
15198 # PIC (with -KPIC) is the default.
15199 lt_prog_compiler_static_GCJ='-non_shared'
15200 ;;
15201
15202 newsos6)
15203 lt_prog_compiler_pic_GCJ='-KPIC'
15204 lt_prog_compiler_static_GCJ='-Bstatic'
15205 ;;
15206
15207 linux*)
15208 case $CC in
15209 icc|ecc)
15210 lt_prog_compiler_wl_GCJ='-Wl,'
15211 lt_prog_compiler_pic_GCJ='-KPIC'
15212 lt_prog_compiler_static_GCJ='-static'
15213 ;;
15214 ccc)
15215 lt_prog_compiler_wl_GCJ='-Wl,'
15216 # All Alpha code is PIC.
15217 lt_prog_compiler_static_GCJ='-non_shared'
15218 ;;
15219 esac
15220 ;;
15221
15222 osf3* | osf4* | osf5*)
15223 lt_prog_compiler_wl_GCJ='-Wl,'
15224 # All OSF/1 code is PIC.
15225 lt_prog_compiler_static_GCJ='-non_shared'
15226 ;;
15227
15228 sco3.2v5*)
15229 lt_prog_compiler_pic_GCJ='-Kpic'
15230 lt_prog_compiler_static_GCJ='-dn'
15231 ;;
15232
15233 solaris*)
15234 lt_prog_compiler_wl_GCJ='-Wl,'
15235 lt_prog_compiler_pic_GCJ='-KPIC'
15236 lt_prog_compiler_static_GCJ='-Bstatic'
15237 ;;
15238
15239 sunos4*)
15240 lt_prog_compiler_wl_GCJ='-Qoption ld '
15241 lt_prog_compiler_pic_GCJ='-PIC'
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15243 ;;
15244
15245 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15246 lt_prog_compiler_wl_GCJ='-Wl,'
15247 lt_prog_compiler_pic_GCJ='-KPIC'
15248 lt_prog_compiler_static_GCJ='-Bstatic'
15249 ;;
15250
15251 sysv4*MP*)
15252 if test -d /usr/nec ;then
15253 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15254 lt_prog_compiler_static_GCJ='-Bstatic'
15255 fi
15256 ;;
15257
15258 uts4*)
15259 lt_prog_compiler_pic_GCJ='-pic'
15260 lt_prog_compiler_static_GCJ='-Bstatic'
15261 ;;
15262
15263 *)
15264 lt_prog_compiler_can_build_shared_GCJ=no
15265 ;;
15266 esac
15267 fi
15268
15269echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15270echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15271
15272#
15273# Check to make sure the PIC flag actually works.
15274#
15275if test -n "$lt_prog_compiler_pic_GCJ"; then
15276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15277echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15278if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280else
15281 lt_prog_compiler_pic_works_GCJ=no
15282 ac_outfile=conftest.$ac_objext
15283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15284 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15285 # Insert the option either (1) after the last *FLAGS variable, or
15286 # (2) before a word containing "conftest.", or (3) at the end.
15287 # Note that $ac_compile itself does not contain backslashes and begins
15288 # with a dollar sign (not a hyphen), so the echo should work correctly.
15289 # The option is referenced via a variable to avoid confusing sed.
15290 lt_compile=`echo "$ac_compile" | $SED \
15291 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15293 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +000015294 (eval echo "\"\$as_me:15294: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015295 (eval "$lt_compile" 2>conftest.err)
15296 ac_status=$?
15297 cat conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +000015298 echo "$as_me:15298: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015299 if (exit $ac_status) && test -s "$ac_outfile"; then
15300 # The compiler can only warn and ignore the option if not recognized
15301 # So say no if there are warnings
15302 if test ! -s conftest.err; then
15303 lt_prog_compiler_pic_works_GCJ=yes
15304 fi
15305 fi
15306 $rm conftest*
15307
15308fi
15309echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15310echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15311
15312if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15313 case $lt_prog_compiler_pic_GCJ in
15314 "" | " "*) ;;
15315 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15316 esac
15317else
15318 lt_prog_compiler_pic_GCJ=
15319 lt_prog_compiler_can_build_shared_GCJ=no
15320fi
15321
15322fi
15323case "$host_os" in
15324 # For platforms which do not support PIC, -DPIC is meaningless:
15325 *djgpp*)
15326 lt_prog_compiler_pic_GCJ=
15327 ;;
15328 *)
15329 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15330 ;;
15331esac
15332
15333echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15334echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15335if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337else
15338 lt_cv_prog_compiler_c_o_GCJ=no
15339 $rm -r conftest 2>/dev/null
15340 mkdir conftest
15341 cd conftest
15342 mkdir out
15343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15344
15345 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15346 # that will create temporary files in the current directory regardless of
15347 # the output directory. Thus, making CWD read-only will cause this test
15348 # to fail, enabling locking or at least warning the user not to do parallel
15349 # builds.
15350 chmod -w .
15351
15352 lt_compiler_flag="-o out/conftest2.$ac_objext"
15353 # Insert the option either (1) after the last *FLAGS variable, or
15354 # (2) before a word containing "conftest.", or (3) at the end.
15355 # Note that $ac_compile itself does not contain backslashes and begins
15356 # with a dollar sign (not a hyphen), so the echo should work correctly.
15357 lt_compile=`echo "$ac_compile" | $SED \
15358 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15360 -e 's:$: $lt_compiler_flag:'`
John Criswellf424d742003-10-07 21:13:47 +000015361 (eval echo "\"\$as_me:15361: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015362 (eval "$lt_compile" 2>out/conftest.err)
15363 ac_status=$?
15364 cat out/conftest.err >&5
John Criswellf424d742003-10-07 21:13:47 +000015365 echo "$as_me:15365: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15367 then
15368 # The compiler can only warn and ignore the option if not recognized
15369 # So say no if there are warnings
15370 if test ! -s out/conftest.err; then
15371 lt_cv_prog_compiler_c_o_GCJ=yes
15372 fi
15373 fi
15374 chmod u+w .
15375 $rm conftest* out/*
15376 rmdir out
15377 cd ..
15378 rmdir conftest
15379 $rm conftest*
15380
15381fi
15382echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15383echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15384
15385
15386hard_links="nottested"
15387if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15388 # do not overwrite the value of need_locks provided by the user
15389 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15390echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15391 hard_links=yes
15392 $rm conftest*
15393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394 touch conftest.a
15395 ln conftest.a conftest.b 2>&5 || hard_links=no
15396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397 echo "$as_me:$LINENO: result: $hard_links" >&5
15398echo "${ECHO_T}$hard_links" >&6
15399 if test "$hard_links" = no; then
15400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15401echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15402 need_locks=warn
15403 fi
15404else
15405 need_locks=no
15406fi
15407
15408echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15409echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15410
15411 runpath_var=
15412 allow_undefined_flag_GCJ=
15413 enable_shared_with_static_runtimes_GCJ=no
15414 archive_cmds_GCJ=
15415 archive_expsym_cmds_GCJ=
15416 old_archive_From_new_cmds_GCJ=
15417 old_archive_from_expsyms_cmds_GCJ=
15418 export_dynamic_flag_spec_GCJ=
15419 whole_archive_flag_spec_GCJ=
15420 thread_safe_flag_spec_GCJ=
15421 hardcode_libdir_flag_spec_GCJ=
15422 hardcode_libdir_flag_spec_ld_GCJ=
15423 hardcode_libdir_separator_GCJ=
15424 hardcode_direct_GCJ=no
15425 hardcode_minus_L_GCJ=no
15426 hardcode_shlibpath_var_GCJ=unsupported
15427 link_all_deplibs_GCJ=unknown
15428 hardcode_automatic_GCJ=no
15429 module_cmds_GCJ=
15430 module_expsym_cmds_GCJ=
15431 always_export_symbols_GCJ=no
15432 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15433 # include_expsyms should be a list of space-separated symbols to be *always*
15434 # included in the symbol list
15435 include_expsyms_GCJ=
15436 # exclude_expsyms can be an extended regexp of symbols to exclude
15437 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15439 # as well as any symbol that contains `d'.
15440 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15442 # platforms (ab)use it in PIC code, but their linkers get confused if
15443 # the symbol is explicitly referenced. Since portable code cannot
15444 # rely on this symbol name, it's probably fine to never include it in
15445 # preloaded symbol tables.
15446 extract_expsyms_cmds=
15447
15448 case $host_os in
15449 cygwin* | mingw* | pw32*)
15450 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15451 # When not using gcc, we currently assume that we are using
15452 # Microsoft Visual C++.
15453 if test "$GCC" != yes; then
15454 with_gnu_ld=no
15455 fi
15456 ;;
15457 openbsd*)
15458 with_gnu_ld=no
15459 ;;
15460 esac
15461
15462 ld_shlibs_GCJ=yes
15463 if test "$with_gnu_ld" = yes; then
15464 # If archive_cmds runs LD, not CC, wlarc should be empty
15465 wlarc='${wl}'
15466
15467 # See if GNU ld supports shared libraries.
15468 case $host_os in
15469 aix3* | aix4* | aix5*)
15470 # On AIX/PPC, the GNU linker is very broken
15471 if test "$host_cpu" != ia64; then
15472 ld_shlibs_GCJ=no
15473 cat <<EOF 1>&2
15474
15475*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15476*** to be unable to reliably create shared libraries on AIX.
15477*** Therefore, libtool is disabling shared libraries support. If you
15478*** really care for shared libraries, you may want to modify your PATH
15479*** so that a non-GNU linker is found, and then restart.
15480
15481EOF
15482 fi
15483 ;;
15484
15485 amigaos*)
15486 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)'
15487 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15488 hardcode_minus_L_GCJ=yes
15489
15490 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15491 # that the semantics of dynamic libraries on AmigaOS, at least up
15492 # to version 4, is to share data among multiple programs linked
15493 # with the same dynamic library. Since this doesn't match the
15494 # behavior of shared libraries on other platforms, we can't use
15495 # them.
15496 ld_shlibs_GCJ=no
15497 ;;
15498
15499 beos*)
15500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15501 allow_undefined_flag_GCJ=unsupported
15502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15503 # support --undefined. This deserves some investigation. FIXME
15504 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505 else
15506 ld_shlibs_GCJ=no
15507 fi
15508 ;;
15509
15510 cygwin* | mingw* | pw32*)
15511 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15512 # as there is no search path for DLLs.
15513 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15514 allow_undefined_flag_GCJ=unsupported
15515 always_export_symbols_GCJ=no
15516 enable_shared_with_static_runtimes_GCJ=yes
15517 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15518
15519 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15520 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15521 # If the export-symbols file already is a .def file (1st line
15522 # is EXPORTS), use it as is; otherwise, prepend...
15523 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15524 cp $export_symbols $output_objdir/$soname.def;
15525 else
15526 echo EXPORTS > $output_objdir/$soname.def;
15527 cat $export_symbols >> $output_objdir/$soname.def;
15528 fi~
15529 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15530 else
15531 ld_shlibs=no
15532 fi
15533 ;;
15534
15535 netbsd*)
15536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15537 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15538 wlarc=
15539 else
15540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542 fi
15543 ;;
15544
15545 solaris* | sysv5*)
15546 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15547 ld_shlibs_GCJ=no
15548 cat <<EOF 1>&2
15549
15550*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15551*** create shared libraries on Solaris systems. Therefore, libtool
15552*** is disabling shared libraries support. We urge you to upgrade GNU
15553*** binutils to release 2.9.1 or newer. Another option is to modify
15554*** your PATH or compiler configuration so that the native linker is
15555*** used, and then restart.
15556
15557EOF
15558 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15561 else
15562 ld_shlibs_GCJ=no
15563 fi
15564 ;;
15565
15566 sunos4*)
15567 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15568 wlarc=
15569 hardcode_direct_GCJ=yes
15570 hardcode_shlibpath_var_GCJ=no
15571 ;;
15572
15573 *)
15574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15575 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15576 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15577 else
15578 ld_shlibs_GCJ=no
15579 fi
15580 ;;
15581 esac
15582
15583 if test "$ld_shlibs_GCJ" = yes; then
15584 runpath_var=LD_RUN_PATH
15585 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15586 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15587 # ancient GNU ld didn't support --whole-archive et. al.
15588 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15589 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15590 else
15591 whole_archive_flag_spec_GCJ=
15592 fi
15593 fi
15594 else
15595 # PORTME fill in a description of your system's linker (not GNU ld)
15596 case $host_os in
15597 aix3*)
15598 allow_undefined_flag_GCJ=unsupported
15599 always_export_symbols_GCJ=yes
15600 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'
15601 # Note: this linker hardcodes the directories in LIBPATH if there
15602 # are no directories specified by -L.
15603 hardcode_minus_L_GCJ=yes
15604 if test "$GCC" = yes && test -z "$link_static_flag"; then
15605 # Neither direct hardcoding nor static linking is supported with a
15606 # broken collect2.
15607 hardcode_direct_GCJ=unsupported
15608 fi
15609 ;;
15610
15611 aix4* | aix5*)
15612 if test "$host_cpu" = ia64; then
15613 # On IA64, the linker does run time linking by default, so we don't
15614 # have to do anything special.
15615 aix_use_runtimelinking=no
15616 exp_sym_flag='-Bexport'
15617 no_entry_flag=""
15618 else
15619 # If we're using GNU nm, then we don't want the "-C" option.
15620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15621 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15622 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'
15623 else
15624 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'
15625 fi
15626 aix_use_runtimelinking=no
15627
15628 # Test if we are trying to use run time linking or normal
15629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15630 # need to do runtime linking.
15631 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15632 for ld_flag in $LDFLAGS; do
15633 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15634 aix_use_runtimelinking=yes
15635 break
15636 fi
15637 done
15638 esac
15639
15640 exp_sym_flag='-bexport'
15641 no_entry_flag='-bnoentry'
15642 fi
15643
15644 # When large executables or shared objects are built, AIX ld can
15645 # have problems creating the table of contents. If linking a library
15646 # or program results in "error TOC overflow" add -mminimal-toc to
15647 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15648 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15649
15650 archive_cmds_GCJ=''
15651 hardcode_direct_GCJ=yes
15652 hardcode_libdir_separator_GCJ=':'
15653 link_all_deplibs_GCJ=yes
15654
15655 if test "$GCC" = yes; then
15656 case $host_os in aix4.012|aix4.012.*)
15657 # We only want to do this on AIX 4.2 and lower, the check
15658 # below for broken collect2 doesn't work under 4.3+
15659 collect2name=`${CC} -print-prog-name=collect2`
15660 if test -f "$collect2name" && \
15661 strings "$collect2name" | grep resolve_lib_name >/dev/null
15662 then
15663 # We have reworked collect2
15664 hardcode_direct_GCJ=yes
15665 else
15666 # We have old collect2
15667 hardcode_direct_GCJ=unsupported
15668 # It fails to find uninstalled libraries when the uninstalled
15669 # path is not listed in the libpath. Setting hardcode_minus_L
15670 # to unsupported forces relinking
15671 hardcode_minus_L_GCJ=yes
15672 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15673 hardcode_libdir_separator_GCJ=
15674 fi
15675 esac
15676 shared_flag='-shared'
15677 else
15678 # not using gcc
15679 if test "$host_cpu" = ia64; then
15680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15681 # chokes on -Wl,-G. The following line is correct:
15682 shared_flag='-G'
15683 else
15684 if test "$aix_use_runtimelinking" = yes; then
15685 shared_flag='${wl}-G'
15686 else
15687 shared_flag='${wl}-bM:SRE'
15688 fi
15689 fi
15690 fi
15691
15692 # It seems that -bexpall does not export symbols beginning with
15693 # underscore (_), so it is better to generate a list of symbols to export.
15694 always_export_symbols_GCJ=yes
15695 if test "$aix_use_runtimelinking" = yes; then
15696 # Warning - without using the other runtime loading flags (-brtl),
15697 # -berok will link without error, but may produce a broken library.
15698 allow_undefined_flag_GCJ='-berok'
15699 # Determine the default libpath from the value encoded in an empty executable.
15700 cat >conftest.$ac_ext <<_ACEOF
15701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015702/* confdefs.h. */
15703_ACEOF
15704cat confdefs.h >>conftest.$ac_ext
15705cat >>conftest.$ac_ext <<_ACEOF
15706/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015707
John Criswell47fdd832003-07-14 16:52:07 +000015708int
15709main ()
15710{
15711
15712 ;
15713 return 0;
15714}
15715_ACEOF
15716rm -f conftest.$ac_objext conftest$ac_exeext
15717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -s conftest$ac_exeext'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
15728
15729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15730}'`
15731# Check for a 64-bit object if we didn't find anything.
15732if 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; }
15733}'`; fi
15734else
15735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015736sed 's/^/| /' conftest.$ac_ext >&5
15737
John Criswell47fdd832003-07-14 16:52:07 +000015738fi
15739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15741
15742 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15743 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"
15744 else
15745 if test "$host_cpu" = ia64; then
15746 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15747 allow_undefined_flag_GCJ="-z nodefs"
15748 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"
15749 else
15750 # Determine the default libpath from the value encoded in an empty executable.
15751 cat >conftest.$ac_ext <<_ACEOF
15752#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015753/* confdefs.h. */
15754_ACEOF
15755cat confdefs.h >>conftest.$ac_ext
15756cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015758
John Criswell47fdd832003-07-14 16:52:07 +000015759int
15760main ()
15761{
15762
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext conftest$ac_exeext
15768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769 (eval $ac_link) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -s conftest$ac_exeext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779
15780aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15781}'`
15782# Check for a 64-bit object if we didn't find anything.
15783if 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; }
15784}'`; fi
15785else
15786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015787sed 's/^/| /' conftest.$ac_ext >&5
15788
John Criswell47fdd832003-07-14 16:52:07 +000015789fi
15790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15791if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15792
15793 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15794 # Warning - without using the other run time loading flags,
15795 # -berok will link without error, but may produce a broken library.
15796 no_undefined_flag_GCJ=' ${wl}-bernotok'
15797 allow_undefined_flag_GCJ=' ${wl}-berok'
15798 # -bexpall does not export symbols beginning with underscore (_)
15799 always_export_symbols_GCJ=yes
15800 # Exported symbols can be pulled into shared objects from archives
15801 whole_archive_flag_spec_GCJ=' '
15802 archive_cmds_need_lc_GCJ=yes
15803 # This is similar to how AIX traditionally builds it's shared libraries.
15804 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'
15805 fi
15806 fi
15807 ;;
15808
15809 amigaos*)
15810 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)'
15811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15812 hardcode_minus_L_GCJ=yes
15813 # see comment about different semantics on the GNU ld section
15814 ld_shlibs_GCJ=no
15815 ;;
15816
15817 bsdi4*)
15818 export_dynamic_flag_spec_GCJ=-rdynamic
15819 ;;
15820
15821 cygwin* | mingw* | pw32*)
15822 # When not using gcc, we currently assume that we are using
15823 # Microsoft Visual C++.
15824 # hardcode_libdir_flag_spec is actually meaningless, as there is
15825 # no search path for DLLs.
15826 hardcode_libdir_flag_spec_GCJ=' '
15827 allow_undefined_flag_GCJ=unsupported
15828 # Tell ltmain to make .lib files, not .a files.
15829 libext=lib
15830 # Tell ltmain to make .dll files, not .so files.
15831 shrext=".dll"
15832 # FIXME: Setting linknames here is a bad hack.
15833 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15834 # The linker will automatically build a .lib file if we build a DLL.
15835 old_archive_From_new_cmds_GCJ='true'
15836 # FIXME: Should let the user specify the lib program.
15837 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15838 fix_srcfile_path='`cygpath -w "$srcfile"`'
15839 enable_shared_with_static_runtimes_GCJ=yes
15840 ;;
15841
15842 darwin* | rhapsody*)
15843 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15844 archive_cmds_need_lc_GCJ=no
15845 case "$host_os" in
15846 rhapsody* | darwin1.[012])
15847 allow_undefined_flag_GCJ='-undefined suppress'
15848 ;;
15849 *) # Darwin 1.3 on
15850 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15851 ;;
15852 esac
15853 # FIXME: Relying on posixy $() will cause problems for
15854 # cross-compilation, but unfortunately the echo tests do not
15855 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15856 # `"' quotes if we put them in here... so don't!
15857 lt_int_apple_cc_single_mod=no
15858 output_verbose_link_cmd='echo'
15859 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15860 lt_int_apple_cc_single_mod=yes
15861 fi
15862 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15863 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15864 else
15865 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'
15866 fi
15867 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15868 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15869 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15870 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}'
15871 else
15872 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}'
15873 fi
15874 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}'
15875 hardcode_direct_GCJ=no
15876 hardcode_automatic_GCJ=yes
15877 hardcode_shlibpath_var_GCJ=unsupported
15878 whole_archive_flag_spec_GCJ='-all_load $convenience'
15879 link_all_deplibs_GCJ=yes
15880 fi
15881 ;;
15882
15883 dgux*)
15884 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15885 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15886 hardcode_shlibpath_var_GCJ=no
15887 ;;
15888
15889 freebsd1*)
15890 ld_shlibs_GCJ=no
15891 ;;
15892
15893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15894 # support. Future versions do this automatically, but an explicit c++rt0.o
15895 # does not break anything, and helps significantly (at the cost of a little
15896 # extra space).
15897 freebsd2.2*)
15898 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15899 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15900 hardcode_direct_GCJ=yes
15901 hardcode_shlibpath_var_GCJ=no
15902 ;;
15903
15904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15905 freebsd2*)
15906 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15907 hardcode_direct_GCJ=yes
15908 hardcode_minus_L_GCJ=yes
15909 hardcode_shlibpath_var_GCJ=no
15910 ;;
15911
15912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15913 freebsd*)
15914 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15916 hardcode_direct_GCJ=yes
15917 hardcode_shlibpath_var_GCJ=no
15918 ;;
15919
15920 hpux9*)
15921 if test "$GCC" = yes; then
15922 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'
15923 else
15924 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'
15925 fi
15926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15927 hardcode_libdir_separator_GCJ=:
15928 hardcode_direct_GCJ=yes
15929
15930 # hardcode_minus_L: Not really in the search PATH,
15931 # but as the default location of the library.
15932 hardcode_minus_L_GCJ=yes
15933 export_dynamic_flag_spec_GCJ='${wl}-E'
15934 ;;
15935
15936 hpux10* | hpux11*)
15937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15938 case "$host_cpu" in
15939 hppa*64*|ia64*)
15940 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 ;;
15942 *)
15943 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15944 ;;
15945 esac
15946 else
15947 case "$host_cpu" in
15948 hppa*64*|ia64*)
15949 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15950 ;;
15951 *)
15952 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15953 ;;
15954 esac
15955 fi
15956 if test "$with_gnu_ld" = no; then
15957 case "$host_cpu" in
15958 hppa*64*)
15959 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15960 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15961 hardcode_libdir_separator_GCJ=:
15962 hardcode_direct_GCJ=no
15963 hardcode_shlibpath_var_GCJ=no
15964 ;;
15965 ia64*)
15966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15967 hardcode_direct_GCJ=no
15968 hardcode_shlibpath_var_GCJ=no
15969
15970 # hardcode_minus_L: Not really in the search PATH,
15971 # but as the default location of the library.
15972 hardcode_minus_L_GCJ=yes
15973 ;;
15974 *)
15975 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15976 hardcode_libdir_separator_GCJ=:
15977 hardcode_direct_GCJ=yes
15978 export_dynamic_flag_spec_GCJ='${wl}-E'
15979
15980 # hardcode_minus_L: Not really in the search PATH,
15981 # but as the default location of the library.
15982 hardcode_minus_L_GCJ=yes
15983 ;;
15984 esac
15985 fi
15986 ;;
15987
15988 irix5* | irix6* | nonstopux*)
15989 if test "$GCC" = yes; then
15990 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'
15991 else
15992 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'
15993 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15994 fi
15995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15996 hardcode_libdir_separator_GCJ=:
15997 link_all_deplibs_GCJ=yes
15998 ;;
15999
16000 netbsd*)
16001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16003 else
16004 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16005 fi
16006 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16007 hardcode_direct_GCJ=yes
16008 hardcode_shlibpath_var_GCJ=no
16009 ;;
16010
16011 newsos6)
16012 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16013 hardcode_direct_GCJ=yes
16014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16015 hardcode_libdir_separator_GCJ=:
16016 hardcode_shlibpath_var_GCJ=no
16017 ;;
16018
16019 openbsd*)
16020 hardcode_direct_GCJ=yes
16021 hardcode_shlibpath_var_GCJ=no
16022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16023 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16025 export_dynamic_flag_spec_GCJ='${wl}-E'
16026 else
16027 case $host_os in
16028 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16029 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16030 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16031 ;;
16032 *)
16033 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16035 ;;
16036 esac
16037 fi
16038 ;;
16039
16040 os2*)
16041 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16042 hardcode_minus_L_GCJ=yes
16043 allow_undefined_flag_GCJ=unsupported
16044 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'
16045 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16046 ;;
16047
16048 osf3*)
16049 if test "$GCC" = yes; then
16050 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16051 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'
16052 else
16053 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16054 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'
16055 fi
16056 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16057 hardcode_libdir_separator_GCJ=:
16058 ;;
16059
16060 osf4* | osf5*) # as osf3* with the addition of -msym flag
16061 if test "$GCC" = yes; then
16062 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16063 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'
16064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16065 else
16066 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16067 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'
16068 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~
16069 $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'
16070
16071 # Both c and cxx compiler support -rpath directly
16072 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16073 fi
16074 hardcode_libdir_separator_GCJ=:
16075 ;;
16076
16077 sco3.2v5*)
16078 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16079 hardcode_shlibpath_var_GCJ=no
16080 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16081 runpath_var=LD_RUN_PATH
16082 hardcode_runpath_var=yes
16083 ;;
16084
16085 solaris*)
16086 no_undefined_flag_GCJ=' -z text'
16087 if test "$GCC" = yes; then
16088 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16089 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16090 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16091 else
16092 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16095 fi
16096 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16097 hardcode_shlibpath_var_GCJ=no
16098 case $host_os in
16099 solaris2.[0-5] | solaris2.[0-5].*) ;;
16100 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16101 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16102 esac
16103 link_all_deplibs_GCJ=yes
16104 ;;
16105
16106 sunos4*)
16107 if test "x$host_vendor" = xsequent; then
16108 # Use $CC to link under sequent, because it throws in some extra .o
16109 # files that make .init and .fini sections work.
16110 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16111 else
16112 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16113 fi
16114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16115 hardcode_direct_GCJ=yes
16116 hardcode_minus_L_GCJ=yes
16117 hardcode_shlibpath_var_GCJ=no
16118 ;;
16119
16120 sysv4)
16121 case $host_vendor in
16122 sni)
16123 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_direct_GCJ=yes # is this really true???
16125 ;;
16126 siemens)
16127 ## LD is ld it makes a PLAMLIB
16128 ## CC just makes a GrossModule.
16129 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16130 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16131 hardcode_direct_GCJ=no
16132 ;;
16133 motorola)
16134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16136 ;;
16137 esac
16138 runpath_var='LD_RUN_PATH'
16139 hardcode_shlibpath_var_GCJ=no
16140 ;;
16141
16142 sysv4.3*)
16143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_shlibpath_var_GCJ=no
16145 export_dynamic_flag_spec_GCJ='-Bexport'
16146 ;;
16147
16148 sysv4*MP*)
16149 if test -d /usr/nec; then
16150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_shlibpath_var_GCJ=no
16152 runpath_var=LD_RUN_PATH
16153 hardcode_runpath_var=yes
16154 ld_shlibs_GCJ=yes
16155 fi
16156 ;;
16157
16158 sysv4.2uw2*)
16159 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_direct_GCJ=yes
16161 hardcode_minus_L_GCJ=no
16162 hardcode_shlibpath_var_GCJ=no
16163 hardcode_runpath_var=yes
16164 runpath_var=LD_RUN_PATH
16165 ;;
16166
16167 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16168 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16169 if test "$GCC" = yes; then
16170 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 else
16172 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16173 fi
16174 runpath_var='LD_RUN_PATH'
16175 hardcode_shlibpath_var_GCJ=no
16176 ;;
16177
16178 sysv5*)
16179 no_undefined_flag_GCJ=' -z text'
16180 # $CC -shared without GNU ld will not create a library from C++
16181 # object files and a static libstdc++, better avoid it by now
16182 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16184 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16185 hardcode_libdir_flag_spec_GCJ=
16186 hardcode_shlibpath_var_GCJ=no
16187 runpath_var='LD_RUN_PATH'
16188 ;;
16189
16190 uts4*)
16191 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16193 hardcode_shlibpath_var_GCJ=no
16194 ;;
16195
16196 *)
16197 ld_shlibs_GCJ=no
16198 ;;
16199 esac
16200 fi
16201
16202echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16203echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16204test "$ld_shlibs_GCJ" = no && can_build_shared=no
16205
16206variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16207if test "$GCC" = yes; then
16208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16209fi
16210
16211#
16212# Do we need to explicitly link libc?
16213#
16214case "x$archive_cmds_need_lc_GCJ" in
16215x|xyes)
16216 # Assume -lc should be added
16217 archive_cmds_need_lc_GCJ=yes
16218
16219 if test "$enable_shared" = yes && test "$GCC" = yes; then
16220 case $archive_cmds_GCJ in
16221 *'~'*)
16222 # FIXME: we may have to deal with multi-command sequences.
16223 ;;
16224 '$CC '*)
16225 # Test whether the compiler implicitly links with -lc since on some
16226 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16227 # to ld, don't add -lc before -lgcc.
16228 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16229echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16230 $rm conftest*
16231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16232
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } 2>conftest.err; then
16238 soname=conftest
16239 lib=conftest
16240 libobjs=conftest.$ac_objext
16241 deplibs=
16242 wl=$lt_prog_compiler_wl_GCJ
16243 compiler_flags=-v
16244 linker_flags=-v
16245 verstring=
16246 output_objdir=.
16247 libname=conftest
16248 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16249 allow_undefined_flag_GCJ=
16250 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16251 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }
16255 then
16256 archive_cmds_need_lc_GCJ=no
16257 else
16258 archive_cmds_need_lc_GCJ=yes
16259 fi
16260 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16261 else
16262 cat conftest.err 1>&5
16263 fi
16264 $rm conftest*
16265 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16266echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16267 ;;
16268 esac
16269 fi
16270 ;;
16271esac
16272
16273echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16274echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16275hardcode_action_GCJ=
16276if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16277 test -n "$runpath_var GCJ" || \
16278 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16279
16280 # We can hardcode non-existant directories.
16281 if test "$hardcode_direct_GCJ" != no &&
16282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16283 # have to relink, otherwise we might link with an installed library
16284 # when we should be linking with a yet-to-be-installed one
16285 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16286 test "$hardcode_minus_L_GCJ" != no; then
16287 # Linking always hardcodes the temporary library directory.
16288 hardcode_action_GCJ=relink
16289 else
16290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16291 hardcode_action_GCJ=immediate
16292 fi
16293else
16294 # We cannot hardcode anything, or else we can only hardcode existing
16295 # directories.
16296 hardcode_action_GCJ=unsupported
16297fi
16298echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16299echo "${ECHO_T}$hardcode_action_GCJ" >&6
16300
16301if test "$hardcode_action_GCJ" = relink; then
16302 # Fast installation is not supported
16303 enable_fast_install=no
16304elif test "$shlibpath_overrides_runpath" = yes ||
16305 test "$enable_shared" = no; then
16306 # Fast installation is not necessary
16307 enable_fast_install=needless
16308fi
16309
16310striplib=
16311old_striplib=
16312echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16313echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16314if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16315 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16316 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16317 echo "$as_me:$LINENO: result: yes" >&5
16318echo "${ECHO_T}yes" >&6
16319else
16320# FIXME - insert some real tests, host_os isn't really good enough
16321 case $host_os in
16322 darwin*)
16323 if test -n "$STRIP" ; then
16324 striplib="$STRIP -x"
16325 echo "$as_me:$LINENO: result: yes" >&5
16326echo "${ECHO_T}yes" >&6
16327 else
16328 echo "$as_me:$LINENO: result: no" >&5
16329echo "${ECHO_T}no" >&6
16330fi
16331 ;;
16332 *)
16333 echo "$as_me:$LINENO: result: no" >&5
16334echo "${ECHO_T}no" >&6
16335 ;;
16336 esac
16337fi
16338
16339echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16340echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16341library_names_spec=
16342libname_spec='lib$name'
16343soname_spec=
16344shrext=".so"
16345postinstall_cmds=
16346postuninstall_cmds=
16347finish_cmds=
16348finish_eval=
16349shlibpath_var=
16350shlibpath_overrides_runpath=unknown
16351version_type=none
16352dynamic_linker="$host_os ld.so"
16353sys_lib_dlsearch_path_spec="/lib /usr/lib"
16354if test "$GCC" = yes; then
16355 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16356 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16357 # if the path contains ";" then we assume it to be the separator
16358 # otherwise default to the standard path separator (i.e. ":") - it is
16359 # assumed that no part of a normal pathname contains ";" but that should
16360 # okay in the real world where ";" in dirpaths is itself problematic.
16361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16362 else
16363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16364 fi
16365else
16366 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16367fi
16368need_lib_prefix=unknown
16369hardcode_into_libs=no
16370
16371# when you set need_version to no, make sure it does not cause -set_version
16372# flags to be left without arguments
16373need_version=unknown
16374
16375case $host_os in
16376aix3*)
16377 version_type=linux
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16379 shlibpath_var=LIBPATH
16380
16381 # AIX 3 has no versioning support, so we append a major version to the name.
16382 soname_spec='${libname}${release}${shared_ext}$major'
16383 ;;
16384
16385aix4* | aix5*)
16386 version_type=linux
16387 need_lib_prefix=no
16388 need_version=no
16389 hardcode_into_libs=yes
16390 if test "$host_cpu" = ia64; then
16391 # AIX 5 supports IA64
16392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 else
16395 # With GCC up to 2.95.x, collect2 would create an import file
16396 # for dependence libraries. The import file would start with
16397 # the line `#! .'. This would cause the generated library to
16398 # depend on `.', always an invalid library. This was fixed in
16399 # development snapshots of GCC prior to 3.0.
16400 case $host_os in
16401 aix4 | aix4.[01] | aix4.[01].*)
16402 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16403 echo ' yes '
16404 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16405 :
16406 else
16407 can_build_shared=no
16408 fi
16409 ;;
16410 esac
16411 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16412 # soname into executable. Probably we can add versioning support to
16413 # collect2, so additional links can be useful in future.
16414 if test "$aix_use_runtimelinking" = yes; then
16415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16416 # instead of lib<name>.a to let people know that these are not
16417 # typical AIX shared libraries.
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 else
16420 # We preserve .a as extension for shared libraries through AIX4.2
16421 # and later when we are not doing run time linking.
16422 library_names_spec='${libname}${release}.a $libname.a'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 fi
16425 shlibpath_var=LIBPATH
16426 fi
16427 ;;
16428
16429amigaos*)
16430 library_names_spec='$libname.ixlibrary $libname.a'
16431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16432 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'
16433 ;;
16434
16435beos*)
16436 library_names_spec='${libname}${shared_ext}'
16437 dynamic_linker="$host_os ld.so"
16438 shlibpath_var=LIBRARY_PATH
16439 ;;
16440
16441bsdi4*)
16442 version_type=linux
16443 need_version=no
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16450 # the default ld.so.conf also contains /usr/contrib/lib and
16451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16452 # libtool to hard-code these into programs
16453 ;;
16454
16455cygwin* | mingw* | pw32*)
16456 version_type=windows
16457 shrext=".dll"
16458 need_version=no
16459 need_lib_prefix=no
16460
16461 case $GCC,$host_os in
16462 yes,cygwin* | yes,mingw* | yes,pw32*)
16463 library_names_spec='$libname.dll.a'
16464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16465 postinstall_cmds='base_file=`basename \${file}`~
16466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16467 dldir=$destdir/`dirname \$dlpath`~
16468 test -d \$dldir || mkdir -p \$dldir~
16469 $install_prog $dir/$dlname \$dldir/$dlname'
16470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16471 dlpath=$dir/\$dldll~
16472 $rm \$dlpath'
16473 shlibpath_overrides_runpath=yes
16474
16475 case $host_os in
16476 cygwin*)
16477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16479 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16480 ;;
16481 mingw*)
16482 # MinGW DLLs use traditional 'lib' prefix
16483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16485 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16486 # It is most probably a Windows format PATH printed by
16487 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16488 # path with ; separators, and with drive letters. We can handle the
16489 # drive letters (cygwin fileutils understands them), so leave them,
16490 # especially as we might pass files found there to a mingw objdump,
16491 # which wouldn't understand a cygwinified path. Ahh.
16492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16493 else
16494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16495 fi
16496 ;;
16497 pw32*)
16498 # pw32 DLLs use 'pw' prefix rather than 'lib'
16499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16500 ;;
16501 esac
16502 ;;
16503
16504 *)
16505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16506 ;;
16507 esac
16508 dynamic_linker='Win32 ld.exe'
16509 # FIXME: first we should search . and the directory the executable is in
16510 shlibpath_var=PATH
16511 ;;
16512
16513darwin* | rhapsody*)
16514 dynamic_linker="$host_os dyld"
16515 version_type=darwin
16516 need_lib_prefix=no
16517 need_version=no
16518 # FIXME: Relying on posixy $() will cause problems for
16519 # cross-compilation, but unfortunately the echo tests do not
16520 # yet detect zsh echo's removal of \ escapes.
16521 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16522 soname_spec='${libname}${release}${major}$shared_ext'
16523 shlibpath_overrides_runpath=yes
16524 shlibpath_var=DYLD_LIBRARY_PATH
16525 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16526 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16527 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16528 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"`
16529 fi
16530 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16531 ;;
16532
16533dgux*)
16534 version_type=linux
16535 need_lib_prefix=no
16536 need_version=no
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 ;;
16541
16542freebsd1*)
16543 dynamic_linker=no
16544 ;;
16545
16546freebsd*)
16547 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16548 version_type=freebsd-$objformat
16549 case $version_type in
16550 freebsd-elf*)
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16552 need_version=no
16553 need_lib_prefix=no
16554 ;;
16555 freebsd-*)
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16557 need_version=yes
16558 ;;
16559 esac
16560 shlibpath_var=LD_LIBRARY_PATH
16561 case $host_os in
16562 freebsd2*)
16563 shlibpath_overrides_runpath=yes
16564 ;;
16565 freebsd3.01* | freebsdelf3.01*)
16566 shlibpath_overrides_runpath=yes
16567 hardcode_into_libs=yes
16568 ;;
16569 *) # from 3.2 on
16570 shlibpath_overrides_runpath=no
16571 hardcode_into_libs=yes
16572 ;;
16573 esac
16574 ;;
16575
16576gnu*)
16577 version_type=linux
16578 need_lib_prefix=no
16579 need_version=no
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 shlibpath_var=LD_LIBRARY_PATH
16583 hardcode_into_libs=yes
16584 ;;
16585
16586hpux9* | hpux10* | hpux11*)
16587 # Give a soname corresponding to the major version so that dld.sl refuses to
16588 # link against other versions.
16589 version_type=sunos
16590 need_lib_prefix=no
16591 need_version=no
16592 case "$host_cpu" in
16593 ia64*)
16594 shrext='.so'
16595 hardcode_into_libs=yes
16596 dynamic_linker="$host_os dld.so"
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 if test "X$HPUX_IA64_MODE" = X32; then
16602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16603 else
16604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16605 fi
16606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16607 ;;
16608 hppa*64*)
16609 shrext='.sl'
16610 hardcode_into_libs=yes
16611 dynamic_linker="$host_os dld.sl"
16612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16618 ;;
16619 *)
16620 shrext='.sl'
16621 dynamic_linker="$host_os dld.sl"
16622 shlibpath_var=SHLIB_PATH
16623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 ;;
16627 esac
16628 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16629 postinstall_cmds='chmod 555 $lib'
16630 ;;
16631
16632irix5* | irix6* | nonstopux*)
16633 case $host_os in
16634 nonstopux*) version_type=nonstopux ;;
16635 *)
16636 if test "$lt_cv_prog_gnu_ld" = yes; then
16637 version_type=linux
16638 else
16639 version_type=irix
16640 fi ;;
16641 esac
16642 need_lib_prefix=no
16643 need_version=no
16644 soname_spec='${libname}${release}${shared_ext}$major'
16645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16646 case $host_os in
16647 irix5* | nonstopux*)
16648 libsuff= shlibsuff=
16649 ;;
16650 *)
16651 case $LD in # libtool.m4 will add one of these switches to LD
16652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16653 libsuff= shlibsuff= libmagic=32-bit;;
16654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16655 libsuff=32 shlibsuff=N32 libmagic=N32;;
16656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16658 *) libsuff= shlibsuff= libmagic=never-match;;
16659 esac
16660 ;;
16661 esac
16662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16663 shlibpath_overrides_runpath=no
16664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16666 hardcode_into_libs=yes
16667 ;;
16668
16669# No shared lib support for Linux oldld, aout, or coff.
16670linux*oldld* | linux*aout* | linux*coff*)
16671 dynamic_linker=no
16672 ;;
16673
16674# This must be Linux ELF.
16675linux*)
16676 version_type=linux
16677 need_lib_prefix=no
16678 need_version=no
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 soname_spec='${libname}${release}${shared_ext}$major'
16681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16682 shlibpath_var=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath=no
16684 # This implies no fast_install, which is unacceptable.
16685 # Some rework will be needed to allow for fast_install
16686 # before this can be enabled.
16687 hardcode_into_libs=yes
16688
16689 # We used to test for /lib/ld.so.1 and disable shared libraries on
16690 # powerpc, because MkLinux only supported shared libraries with the
16691 # GNU dynamic linker. Since this was broken with cross compilers,
16692 # most powerpc-linux boxes support dynamic linking these days and
16693 # people can always --disable-shared, the test was removed, and we
16694 # assume the GNU/Linux dynamic linker is in use.
16695 dynamic_linker='GNU/Linux ld.so'
16696 ;;
16697
16698netbsd*)
16699 version_type=sunos
16700 need_lib_prefix=no
16701 need_version=no
16702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16705 dynamic_linker='NetBSD (a.out) ld.so'
16706 else
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 dynamic_linker='NetBSD ld.elf_so'
16710 fi
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=yes
16713 hardcode_into_libs=yes
16714 ;;
16715
16716newsos6)
16717 version_type=linux
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=yes
16721 ;;
16722
16723nto-qnx)
16724 version_type=linux
16725 need_lib_prefix=no
16726 need_version=no
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 shlibpath_overrides_runpath=yes
16731 ;;
16732
16733openbsd*)
16734 version_type=sunos
16735 need_lib_prefix=no
16736 need_version=no
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16741 case $host_os in
16742 openbsd2.[89] | openbsd2.[89].*)
16743 shlibpath_overrides_runpath=no
16744 ;;
16745 *)
16746 shlibpath_overrides_runpath=yes
16747 ;;
16748 esac
16749 else
16750 shlibpath_overrides_runpath=yes
16751 fi
16752 ;;
16753
16754os2*)
16755 libname_spec='$name'
16756 shrext=".dll"
16757 need_lib_prefix=no
16758 library_names_spec='$libname${shared_ext} $libname.a'
16759 dynamic_linker='OS/2 ld.exe'
16760 shlibpath_var=LIBPATH
16761 ;;
16762
16763osf3* | osf4* | osf5*)
16764 version_type=osf
16765 need_lib_prefix=no
16766 need_version=no
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16772 ;;
16773
16774sco3.2v5*)
16775 version_type=osf
16776 soname_spec='${libname}${release}${shared_ext}$major'
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 shlibpath_var=LD_LIBRARY_PATH
16779 ;;
16780
16781solaris*)
16782 version_type=linux
16783 need_lib_prefix=no
16784 need_version=no
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=yes
16789 hardcode_into_libs=yes
16790 # ldd complains unless libraries are executable
16791 postinstall_cmds='chmod +x $lib'
16792 ;;
16793
16794sunos4*)
16795 version_type=sunos
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 shlibpath_overrides_runpath=yes
16800 if test "$with_gnu_ld" = yes; then
16801 need_lib_prefix=no
16802 fi
16803 need_version=yes
16804 ;;
16805
16806sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16807 version_type=linux
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 case $host_vendor in
16812 sni)
16813 shlibpath_overrides_runpath=no
16814 need_lib_prefix=no
16815 export_dynamic_flag_spec='${wl}-Blargedynsym'
16816 runpath_var=LD_RUN_PATH
16817 ;;
16818 siemens)
16819 need_lib_prefix=no
16820 ;;
16821 motorola)
16822 need_lib_prefix=no
16823 need_version=no
16824 shlibpath_overrides_runpath=no
16825 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16826 ;;
16827 esac
16828 ;;
16829
16830sysv4*MP*)
16831 if test -d /usr/nec ;then
16832 version_type=linux
16833 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16834 soname_spec='$libname${shared_ext}.$major'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 fi
16837 ;;
16838
16839uts4*)
16840 version_type=linux
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 ;;
16845
16846*)
16847 dynamic_linker=no
16848 ;;
16849esac
16850echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16851echo "${ECHO_T}$dynamic_linker" >&6
16852test "$dynamic_linker" = no && can_build_shared=no
16853
16854if test "x$enable_dlopen" != xyes; then
16855 enable_dlopen=unknown
16856 enable_dlopen_self=unknown
16857 enable_dlopen_self_static=unknown
16858else
16859 lt_cv_dlopen=no
16860 lt_cv_dlopen_libs=
16861
16862 case $host_os in
16863 beos*)
16864 lt_cv_dlopen="load_add_on"
16865 lt_cv_dlopen_libs=
16866 lt_cv_dlopen_self=yes
16867 ;;
16868
16869 mingw* | pw32*)
16870 lt_cv_dlopen="LoadLibrary"
16871 lt_cv_dlopen_libs=
16872 ;;
16873
16874 cygwin*)
16875 lt_cv_dlopen="dlopen"
16876 lt_cv_dlopen_libs=
16877 ;;
16878
16879 darwin*)
16880 # if libdl is installed we need to link against it
16881 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16882echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16883if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 ac_check_lib_save_LIBS=$LIBS
16887LIBS="-ldl $LIBS"
16888cat >conftest.$ac_ext <<_ACEOF
16889#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016895
16896/* Override any gcc2 internal prototype to avoid an error. */
16897#ifdef __cplusplus
16898extern "C"
16899#endif
16900/* We use char because int might match the return type of a gcc2
16901 builtin and then its argument prototype would still apply. */
16902char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016903int
16904main ()
16905{
16906dlopen ();
16907 ;
16908 return 0;
16909}
16910_ACEOF
16911rm -f conftest.$ac_objext conftest$ac_exeext
16912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_lib_dl_dlopen=yes
16924else
16925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016926sed 's/^/| /' conftest.$ac_ext >&5
16927
John Criswell47fdd832003-07-14 16:52:07 +000016928ac_cv_lib_dl_dlopen=no
16929fi
16930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16931LIBS=$ac_check_lib_save_LIBS
16932fi
16933echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16934echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16935if test $ac_cv_lib_dl_dlopen = yes; then
16936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16937else
16938
16939 lt_cv_dlopen="dyld"
16940 lt_cv_dlopen_libs=
16941 lt_cv_dlopen_self=yes
16942
16943fi
16944
16945 ;;
16946
16947 *)
16948 echo "$as_me:$LINENO: checking for shl_load" >&5
16949echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16950if test "${ac_cv_func_shl_load+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952else
16953 cat >conftest.$ac_ext <<_ACEOF
16954#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016955/* confdefs.h. */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016960/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016961 which can conflict with char shl_load (); below.
16962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16963 <limits.h> exists even on freestanding compilers. */
16964#ifdef __STDC__
16965# include <limits.h>
16966#else
16967# include <assert.h>
16968#endif
John Criswell47fdd832003-07-14 16:52:07 +000016969/* Override any gcc2 internal prototype to avoid an error. */
16970#ifdef __cplusplus
16971extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016972{
John Criswell47fdd832003-07-14 16:52:07 +000016973#endif
16974/* We use char because int might match the return type of a gcc2
16975 builtin and then its argument prototype would still apply. */
16976char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016977/* The GNU C library defines this for functions which it implements
16978 to always fail with ENOSYS. Some functions are actually named
16979 something starting with __ and the normal name is an alias. */
16980#if defined (__stub_shl_load) || defined (__stub___shl_load)
16981choke me
16982#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016983char (*f) () = shl_load;
16984#endif
16985#ifdef __cplusplus
16986}
John Criswell47fdd832003-07-14 16:52:07 +000016987#endif
16988
John Criswell0c38eaf2003-09-10 15:17:25 +000016989int
16990main ()
16991{
16992return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016993 ;
16994 return 0;
16995}
16996_ACEOF
16997rm -f conftest.$ac_objext conftest$ac_exeext
16998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16999 (eval $ac_link) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
17003 { ac_try='test -s conftest$ac_exeext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_cv_func_shl_load=yes
17010else
17011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017012sed 's/^/| /' conftest.$ac_ext >&5
17013
John Criswell47fdd832003-07-14 16:52:07 +000017014ac_cv_func_shl_load=no
17015fi
17016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17017fi
17018echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17019echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17020if test $ac_cv_func_shl_load = yes; then
17021 lt_cv_dlopen="shl_load"
17022else
17023 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17024echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17025if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17027else
17028 ac_check_lib_save_LIBS=$LIBS
17029LIBS="-ldld $LIBS"
17030cat >conftest.$ac_ext <<_ACEOF
17031#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017037
17038/* Override any gcc2 internal prototype to avoid an error. */
17039#ifdef __cplusplus
17040extern "C"
17041#endif
17042/* We use char because int might match the return type of a gcc2
17043 builtin and then its argument prototype would still apply. */
17044char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017045int
17046main ()
17047{
17048shl_load ();
17049 ;
17050 return 0;
17051}
17052_ACEOF
17053rm -f conftest.$ac_objext conftest$ac_exeext
17054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17055 (eval $ac_link) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -s conftest$ac_exeext'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 ac_cv_lib_dld_shl_load=yes
17066else
17067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017068sed 's/^/| /' conftest.$ac_ext >&5
17069
John Criswell47fdd832003-07-14 16:52:07 +000017070ac_cv_lib_dld_shl_load=no
17071fi
17072rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17073LIBS=$ac_check_lib_save_LIBS
17074fi
17075echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17076echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17077if test $ac_cv_lib_dld_shl_load = yes; then
17078 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17079else
17080 echo "$as_me:$LINENO: checking for dlopen" >&5
17081echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17082if test "${ac_cv_func_dlopen+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084else
17085 cat >conftest.$ac_ext <<_ACEOF
17086#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017087/* confdefs.h. */
17088_ACEOF
17089cat confdefs.h >>conftest.$ac_ext
17090cat >>conftest.$ac_ext <<_ACEOF
17091/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017092/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017093 which can conflict with char dlopen (); below.
17094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17095 <limits.h> exists even on freestanding compilers. */
17096#ifdef __STDC__
17097# include <limits.h>
17098#else
17099# include <assert.h>
17100#endif
John Criswell47fdd832003-07-14 16:52:07 +000017101/* Override any gcc2 internal prototype to avoid an error. */
17102#ifdef __cplusplus
17103extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017104{
John Criswell47fdd832003-07-14 16:52:07 +000017105#endif
17106/* We use char because int might match the return type of a gcc2
17107 builtin and then its argument prototype would still apply. */
17108char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017109/* The GNU C library defines this for functions which it implements
17110 to always fail with ENOSYS. Some functions are actually named
17111 something starting with __ and the normal name is an alias. */
17112#if defined (__stub_dlopen) || defined (__stub___dlopen)
17113choke me
17114#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017115char (*f) () = dlopen;
17116#endif
17117#ifdef __cplusplus
17118}
John Criswell47fdd832003-07-14 16:52:07 +000017119#endif
17120
John Criswell0c38eaf2003-09-10 15:17:25 +000017121int
17122main ()
17123{
17124return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017125 ;
17126 return 0;
17127}
17128_ACEOF
17129rm -f conftest.$ac_objext conftest$ac_exeext
17130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17131 (eval $ac_link) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } &&
17135 { ac_try='test -s conftest$ac_exeext'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_cv_func_dlopen=yes
17142else
17143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017144sed 's/^/| /' conftest.$ac_ext >&5
17145
John Criswell47fdd832003-07-14 16:52:07 +000017146ac_cv_func_dlopen=no
17147fi
17148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17149fi
17150echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17151echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17152if test $ac_cv_func_dlopen = yes; then
17153 lt_cv_dlopen="dlopen"
17154else
17155 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17156echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17157if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17159else
17160 ac_check_lib_save_LIBS=$LIBS
17161LIBS="-ldl $LIBS"
17162cat >conftest.$ac_ext <<_ACEOF
17163#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017169
17170/* Override any gcc2 internal prototype to avoid an error. */
17171#ifdef __cplusplus
17172extern "C"
17173#endif
17174/* We use char because int might match the return type of a gcc2
17175 builtin and then its argument prototype would still apply. */
17176char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017177int
17178main ()
17179{
17180dlopen ();
17181 ;
17182 return 0;
17183}
17184_ACEOF
17185rm -f conftest.$ac_objext conftest$ac_exeext
17186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_cv_lib_dl_dlopen=yes
17198else
17199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017200sed 's/^/| /' conftest.$ac_ext >&5
17201
John Criswell47fdd832003-07-14 16:52:07 +000017202ac_cv_lib_dl_dlopen=no
17203fi
17204rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17205LIBS=$ac_check_lib_save_LIBS
17206fi
17207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17209if test $ac_cv_lib_dl_dlopen = yes; then
17210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17211else
17212 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17213echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17214if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216else
17217 ac_check_lib_save_LIBS=$LIBS
17218LIBS="-lsvld $LIBS"
17219cat >conftest.$ac_ext <<_ACEOF
17220#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017226
17227/* Override any gcc2 internal prototype to avoid an error. */
17228#ifdef __cplusplus
17229extern "C"
17230#endif
17231/* We use char because int might match the return type of a gcc2
17232 builtin and then its argument prototype would still apply. */
17233char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017234int
17235main ()
17236{
17237dlopen ();
17238 ;
17239 return 0;
17240}
17241_ACEOF
17242rm -f conftest.$ac_objext conftest$ac_exeext
17243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17244 (eval $ac_link) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17254 ac_cv_lib_svld_dlopen=yes
17255else
17256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017257sed 's/^/| /' conftest.$ac_ext >&5
17258
John Criswell47fdd832003-07-14 16:52:07 +000017259ac_cv_lib_svld_dlopen=no
17260fi
17261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17262LIBS=$ac_check_lib_save_LIBS
17263fi
17264echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17265echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17266if test $ac_cv_lib_svld_dlopen = yes; then
17267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17268else
17269 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17270echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17271if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273else
17274 ac_check_lib_save_LIBS=$LIBS
17275LIBS="-ldld $LIBS"
17276cat >conftest.$ac_ext <<_ACEOF
17277#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017278/* confdefs.h. */
17279_ACEOF
17280cat confdefs.h >>conftest.$ac_ext
17281cat >>conftest.$ac_ext <<_ACEOF
17282/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017283
17284/* Override any gcc2 internal prototype to avoid an error. */
17285#ifdef __cplusplus
17286extern "C"
17287#endif
17288/* We use char because int might match the return type of a gcc2
17289 builtin and then its argument prototype would still apply. */
17290char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017291int
17292main ()
17293{
17294dld_link ();
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext conftest$ac_exeext
17300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -s conftest$ac_exeext'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17311 ac_cv_lib_dld_dld_link=yes
17312else
17313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017314sed 's/^/| /' conftest.$ac_ext >&5
17315
John Criswell47fdd832003-07-14 16:52:07 +000017316ac_cv_lib_dld_dld_link=no
17317fi
17318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17319LIBS=$ac_check_lib_save_LIBS
17320fi
17321echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17322echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17323if test $ac_cv_lib_dld_dld_link = yes; then
17324 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17325fi
17326
17327
17328fi
17329
17330
17331fi
17332
17333
17334fi
17335
17336
17337fi
17338
17339
17340fi
17341
17342 ;;
17343 esac
17344
17345 if test "x$lt_cv_dlopen" != xno; then
17346 enable_dlopen=yes
17347 else
17348 enable_dlopen=no
17349 fi
17350
17351 case $lt_cv_dlopen in
17352 dlopen)
17353 save_CPPFLAGS="$CPPFLAGS"
17354 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17355
17356 save_LDFLAGS="$LDFLAGS"
17357 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17358
17359 save_LIBS="$LIBS"
17360 LIBS="$lt_cv_dlopen_libs $LIBS"
17361
17362 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17363echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17364if test "${lt_cv_dlopen_self+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17366else
17367 if test "$cross_compiling" = yes; then :
17368 lt_cv_dlopen_self=cross
17369else
17370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17371 lt_status=$lt_dlunknown
17372 cat > conftest.$ac_ext <<EOF
John Criswellf424d742003-10-07 21:13:47 +000017373#line 17373 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017374#include "confdefs.h"
17375
17376#if HAVE_DLFCN_H
17377#include <dlfcn.h>
17378#endif
17379
17380#include <stdio.h>
17381
17382#ifdef RTLD_GLOBAL
17383# define LT_DLGLOBAL RTLD_GLOBAL
17384#else
17385# ifdef DL_GLOBAL
17386# define LT_DLGLOBAL DL_GLOBAL
17387# else
17388# define LT_DLGLOBAL 0
17389# endif
17390#endif
17391
17392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17393 find out it does not work in some platform. */
17394#ifndef LT_DLLAZY_OR_NOW
17395# ifdef RTLD_LAZY
17396# define LT_DLLAZY_OR_NOW RTLD_LAZY
17397# else
17398# ifdef DL_LAZY
17399# define LT_DLLAZY_OR_NOW DL_LAZY
17400# else
17401# ifdef RTLD_NOW
17402# define LT_DLLAZY_OR_NOW RTLD_NOW
17403# else
17404# ifdef DL_NOW
17405# define LT_DLLAZY_OR_NOW DL_NOW
17406# else
17407# define LT_DLLAZY_OR_NOW 0
17408# endif
17409# endif
17410# endif
17411# endif
17412#endif
17413
17414#ifdef __cplusplus
17415extern "C" void exit (int);
17416#endif
17417
17418void fnord() { int i=42;}
17419int main ()
17420{
17421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17422 int status = $lt_dlunknown;
17423
17424 if (self)
17425 {
17426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17428 /* dlclose (self); */
17429 }
17430
17431 exit (status);
17432}
17433EOF
17434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17435 (eval $ac_link) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17439 (./conftest; exit; ) 2>/dev/null
17440 lt_status=$?
17441 case x$lt_status in
17442 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17443 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17444 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17445 esac
17446 else :
17447 # compilation failed
17448 lt_cv_dlopen_self=no
17449 fi
17450fi
17451rm -fr conftest*
17452
17453
17454fi
17455echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17456echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17457
17458 if test "x$lt_cv_dlopen_self" = xyes; then
17459 LDFLAGS="$LDFLAGS $link_static_flag"
17460 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17461echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17462if test "${lt_cv_dlopen_self_static+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464else
17465 if test "$cross_compiling" = yes; then :
17466 lt_cv_dlopen_self_static=cross
17467else
17468 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17469 lt_status=$lt_dlunknown
17470 cat > conftest.$ac_ext <<EOF
John Criswellf424d742003-10-07 21:13:47 +000017471#line 17471 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017472#include "confdefs.h"
17473
17474#if HAVE_DLFCN_H
17475#include <dlfcn.h>
17476#endif
17477
17478#include <stdio.h>
17479
17480#ifdef RTLD_GLOBAL
17481# define LT_DLGLOBAL RTLD_GLOBAL
17482#else
17483# ifdef DL_GLOBAL
17484# define LT_DLGLOBAL DL_GLOBAL
17485# else
17486# define LT_DLGLOBAL 0
17487# endif
17488#endif
17489
17490/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17491 find out it does not work in some platform. */
17492#ifndef LT_DLLAZY_OR_NOW
17493# ifdef RTLD_LAZY
17494# define LT_DLLAZY_OR_NOW RTLD_LAZY
17495# else
17496# ifdef DL_LAZY
17497# define LT_DLLAZY_OR_NOW DL_LAZY
17498# else
17499# ifdef RTLD_NOW
17500# define LT_DLLAZY_OR_NOW RTLD_NOW
17501# else
17502# ifdef DL_NOW
17503# define LT_DLLAZY_OR_NOW DL_NOW
17504# else
17505# define LT_DLLAZY_OR_NOW 0
17506# endif
17507# endif
17508# endif
17509# endif
17510#endif
17511
17512#ifdef __cplusplus
17513extern "C" void exit (int);
17514#endif
17515
17516void fnord() { int i=42;}
17517int main ()
17518{
17519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17520 int status = $lt_dlunknown;
17521
17522 if (self)
17523 {
17524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17525 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17526 /* dlclose (self); */
17527 }
17528
17529 exit (status);
17530}
17531EOF
17532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17533 (eval $ac_link) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17537 (./conftest; exit; ) 2>/dev/null
17538 lt_status=$?
17539 case x$lt_status in
17540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17542 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17543 esac
17544 else :
17545 # compilation failed
17546 lt_cv_dlopen_self_static=no
17547 fi
17548fi
17549rm -fr conftest*
17550
17551
17552fi
17553echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17554echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17555 fi
17556
17557 CPPFLAGS="$save_CPPFLAGS"
17558 LDFLAGS="$save_LDFLAGS"
17559 LIBS="$save_LIBS"
17560 ;;
17561 esac
17562
17563 case $lt_cv_dlopen_self in
17564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17565 *) enable_dlopen_self=unknown ;;
17566 esac
17567
17568 case $lt_cv_dlopen_self_static in
17569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17570 *) enable_dlopen_self_static=unknown ;;
17571 esac
17572fi
17573
17574
17575# The else clause should only fire when bootstrapping the
17576# libtool distribution, otherwise you forgot to ship ltmain.sh
17577# with your package, and you will get complaints that there are
17578# no rules to generate ltmain.sh.
17579if test -f "$ltmain"; then
17580 # See if we are running on zsh, and set the options which allow our commands through
17581 # without removal of \ escapes.
17582 if test -n "${ZSH_VERSION+set}" ; then
17583 setopt NO_GLOB_SUBST
17584 fi
17585 # Now quote all the things that may contain metacharacters while being
17586 # careful not to overquote the AC_SUBSTed values. We take copies of the
17587 # variables and quote the copies for generation of the libtool script.
17588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17591 deplibs_check_method reload_flag reload_cmds need_locks \
17592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17593 lt_cv_sys_global_symbol_to_c_name_address \
17594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17595 old_postinstall_cmds old_postuninstall_cmds \
17596 compiler_GCJ \
17597 CC_GCJ \
17598 LD_GCJ \
17599 lt_prog_compiler_wl_GCJ \
17600 lt_prog_compiler_pic_GCJ \
17601 lt_prog_compiler_static_GCJ \
17602 lt_prog_compiler_no_builtin_flag_GCJ \
17603 export_dynamic_flag_spec_GCJ \
17604 thread_safe_flag_spec_GCJ \
17605 whole_archive_flag_spec_GCJ \
17606 enable_shared_with_static_runtimes_GCJ \
17607 old_archive_cmds_GCJ \
17608 old_archive_from_new_cmds_GCJ \
17609 predep_objects_GCJ \
17610 postdep_objects_GCJ \
17611 predeps_GCJ \
17612 postdeps_GCJ \
17613 compiler_lib_search_path_GCJ \
17614 archive_cmds_GCJ \
17615 archive_expsym_cmds_GCJ \
17616 postinstall_cmds_GCJ \
17617 postuninstall_cmds_GCJ \
17618 old_archive_from_expsyms_cmds_GCJ \
17619 allow_undefined_flag_GCJ \
17620 no_undefined_flag_GCJ \
17621 export_symbols_cmds_GCJ \
17622 hardcode_libdir_flag_spec_GCJ \
17623 hardcode_libdir_flag_spec_ld_GCJ \
17624 hardcode_libdir_separator_GCJ \
17625 hardcode_automatic_GCJ \
17626 module_cmds_GCJ \
17627 module_expsym_cmds_GCJ \
17628 lt_cv_prog_compiler_c_o_GCJ \
17629 exclude_expsyms_GCJ \
17630 include_expsyms_GCJ; do
17631
17632 case $var in
17633 old_archive_cmds_GCJ | \
17634 old_archive_from_new_cmds_GCJ | \
17635 archive_cmds_GCJ | \
17636 archive_expsym_cmds_GCJ | \
17637 module_cmds_GCJ | \
17638 module_expsym_cmds_GCJ | \
17639 old_archive_from_expsyms_cmds_GCJ | \
17640 export_symbols_cmds_GCJ | \
17641 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17642 postinstall_cmds | postuninstall_cmds | \
17643 old_postinstall_cmds | old_postuninstall_cmds | \
17644 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17645 # Double-quote double-evaled strings.
17646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17647 ;;
17648 *)
17649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17650 ;;
17651 esac
17652 done
17653
17654 case $lt_echo in
17655 *'\$0 --fallback-echo"')
17656 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17657 ;;
17658 esac
17659
17660cfgfile="$ofile"
17661
17662 cat <<__EOF__ >> "$cfgfile"
17663# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17664
17665# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17666
17667# Shell to use when invoking shell scripts.
17668SHELL=$lt_SHELL
17669
17670# Whether or not to build shared libraries.
17671build_libtool_libs=$enable_shared
17672
17673# Whether or not to build static libraries.
17674build_old_libs=$enable_static
17675
17676# Whether or not to add -lc for building shared libraries.
17677build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17678
17679# Whether or not to disallow shared libs when runtime libs are static
17680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17681
17682# Whether or not to optimize for fast installation.
17683fast_install=$enable_fast_install
17684
17685# The host system.
17686host_alias=$host_alias
17687host=$host
17688
17689# An echo program that does not interpret backslashes.
17690echo=$lt_echo
17691
17692# The archiver.
17693AR=$lt_AR
17694AR_FLAGS=$lt_AR_FLAGS
17695
17696# A C compiler.
17697LTCC=$lt_LTCC
17698
17699# A language-specific compiler.
17700CC=$lt_compiler_GCJ
17701
17702# Is the compiler the GNU C compiler?
17703with_gcc=$GCC_GCJ
17704
17705# An ERE matcher.
17706EGREP=$lt_EGREP
17707
17708# The linker used to build libraries.
17709LD=$lt_LD_GCJ
17710
17711# Whether we need hard or soft links.
17712LN_S=$lt_LN_S
17713
17714# A BSD-compatible nm program.
17715NM=$lt_NM
17716
17717# A symbol stripping program
17718STRIP=$STRIP
17719
17720# Used to examine libraries when file_magic_cmd begins "file"
17721MAGIC_CMD=$MAGIC_CMD
17722
17723# Used on cygwin: DLL creation program.
17724DLLTOOL="$DLLTOOL"
17725
17726# Used on cygwin: object dumper.
17727OBJDUMP="$OBJDUMP"
17728
17729# Used on cygwin: assembler.
17730AS="$AS"
17731
17732# The name of the directory that contains temporary libtool files.
17733objdir=$objdir
17734
17735# How to create reloadable object files.
17736reload_flag=$lt_reload_flag
17737reload_cmds=$lt_reload_cmds
17738
17739# How to pass a linker flag through the compiler.
17740wl=$lt_lt_prog_compiler_wl_GCJ
17741
17742# Object file suffix (normally "o").
17743objext="$ac_objext"
17744
17745# Old archive suffix (normally "a").
17746libext="$libext"
17747
17748# Shared library suffix (normally ".so").
17749shrext='$shrext'
17750
17751# Executable file suffix (normally "").
17752exeext="$exeext"
17753
17754# Additional compiler flags for building library objects.
17755pic_flag=$lt_lt_prog_compiler_pic_GCJ
17756pic_mode=$pic_mode
17757
17758# What is the maximum length of a command?
17759max_cmd_len=$lt_cv_sys_max_cmd_len
17760
17761# Does compiler simultaneously support -c and -o options?
17762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17763
17764# Must we lock files when doing compilation ?
17765need_locks=$lt_need_locks
17766
17767# Do we need the lib prefix for modules?
17768need_lib_prefix=$need_lib_prefix
17769
17770# Do we need a version for libraries?
17771need_version=$need_version
17772
17773# Whether dlopen is supported.
17774dlopen_support=$enable_dlopen
17775
17776# Whether dlopen of programs is supported.
17777dlopen_self=$enable_dlopen_self
17778
17779# Whether dlopen of statically linked programs is supported.
17780dlopen_self_static=$enable_dlopen_self_static
17781
17782# Compiler flag to prevent dynamic linking.
17783link_static_flag=$lt_lt_prog_compiler_static_GCJ
17784
17785# Compiler flag to turn off builtin functions.
17786no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17787
17788# Compiler flag to allow reflexive dlopens.
17789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17790
17791# Compiler flag to generate shared objects directly from archives.
17792whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17793
17794# Compiler flag to generate thread-safe objects.
17795thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17796
17797# Library versioning type.
17798version_type=$version_type
17799
17800# Format of library name prefix.
17801libname_spec=$lt_libname_spec
17802
17803# List of archive names. First name is the real one, the rest are links.
17804# The last name is the one that the linker finds with -lNAME.
17805library_names_spec=$lt_library_names_spec
17806
17807# The coded name of the library, if different from the real name.
17808soname_spec=$lt_soname_spec
17809
17810# Commands used to build and install an old-style archive.
17811RANLIB=$lt_RANLIB
17812old_archive_cmds=$lt_old_archive_cmds_GCJ
17813old_postinstall_cmds=$lt_old_postinstall_cmds
17814old_postuninstall_cmds=$lt_old_postuninstall_cmds
17815
17816# Create an old-style archive from a shared archive.
17817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17818
17819# Create a temporary old-style archive to link instead of a shared archive.
17820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17821
17822# Commands used to build and install a shared archive.
17823archive_cmds=$lt_archive_cmds_GCJ
17824archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17825postinstall_cmds=$lt_postinstall_cmds
17826postuninstall_cmds=$lt_postuninstall_cmds
17827
17828# Commands used to build a loadable module (assumed same as above if empty)
17829module_cmds=$lt_module_cmds_GCJ
17830module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17831
17832# Commands to strip libraries.
17833old_striplib=$lt_old_striplib
17834striplib=$lt_striplib
17835
17836# Dependencies to place before the objects being linked to create a
17837# shared library.
17838predep_objects=$lt_predep_objects_GCJ
17839
17840# Dependencies to place after the objects being linked to create a
17841# shared library.
17842postdep_objects=$lt_postdep_objects_GCJ
17843
17844# Dependencies to place before the objects being linked to create a
17845# shared library.
17846predeps=$lt_predeps_GCJ
17847
17848# Dependencies to place after the objects being linked to create a
17849# shared library.
17850postdeps=$lt_postdeps_GCJ
17851
17852# The library search path used internally by the compiler when linking
17853# a shared library.
17854compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17855
17856# Method to check whether dependent libraries are shared objects.
17857deplibs_check_method=$lt_deplibs_check_method
17858
17859# Command to use when deplibs_check_method == file_magic.
17860file_magic_cmd=$lt_file_magic_cmd
17861
17862# Flag that allows shared libraries with undefined symbols to be built.
17863allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17864
17865# Flag that forces no undefined symbols.
17866no_undefined_flag=$lt_no_undefined_flag_GCJ
17867
17868# Commands used to finish a libtool library installation in a directory.
17869finish_cmds=$lt_finish_cmds
17870
17871# Same as above, but a single script fragment to be evaled but not shown.
17872finish_eval=$lt_finish_eval
17873
17874# Take the output of nm and produce a listing of raw symbols and C names.
17875global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17876
17877# Transform the output of nm in a proper C declaration
17878global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17879
17880# Transform the output of nm in a C name address pair
17881global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17882
17883# This is the shared library runtime path variable.
17884runpath_var=$runpath_var
17885
17886# This is the shared library path variable.
17887shlibpath_var=$shlibpath_var
17888
17889# Is shlibpath searched before the hard-coded library search path?
17890shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17891
17892# How to hardcode a shared library path into an executable.
17893hardcode_action=$hardcode_action_GCJ
17894
17895# Whether we should hardcode library paths into libraries.
17896hardcode_into_libs=$hardcode_into_libs
17897
17898# Flag to hardcode \$libdir into a binary during linking.
17899# This must work even if \$libdir does not exist.
17900hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17901
17902# If ld is used when linking, flag to hardcode \$libdir into
17903# a binary during linking. This must work even if \$libdir does
17904# not exist.
17905hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17906
17907# Whether we need a single -rpath flag with a separated argument.
17908hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17909
17910# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17911# resulting binary.
17912hardcode_direct=$hardcode_direct_GCJ
17913
17914# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17915# resulting binary.
17916hardcode_minus_L=$hardcode_minus_L_GCJ
17917
17918# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17919# the resulting binary.
17920hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17921
17922# Set to yes if building a shared library automatically hardcodes DIR into the library
17923# and all subsequent libraries and executables linked against it.
17924hardcode_automatic=$hardcode_automatic_GCJ
17925
17926# Variables whose values should be saved in libtool wrapper scripts and
17927# restored at relink time.
17928variables_saved_for_relink="$variables_saved_for_relink"
17929
17930# Whether libtool must link a program against all its dependency libraries.
17931link_all_deplibs=$link_all_deplibs_GCJ
17932
17933# Compile-time system search path for libraries
17934sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17935
17936# Run-time system search path for libraries
17937sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17938
17939# Fix the shell variable \$srcfile for the compiler.
17940fix_srcfile_path="$fix_srcfile_path_GCJ"
17941
17942# Set to yes if exported symbols are required.
17943always_export_symbols=$always_export_symbols_GCJ
17944
17945# The commands to list exported symbols.
17946export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17947
17948# The commands to extract the exported symbol list from a shared archive.
17949extract_expsyms_cmds=$lt_extract_expsyms_cmds
17950
17951# Symbols that should not be listed in the preloaded symbols.
17952exclude_expsyms=$lt_exclude_expsyms_GCJ
17953
17954# Symbols that must always be exported.
17955include_expsyms=$lt_include_expsyms_GCJ
17956
17957# ### END LIBTOOL TAG CONFIG: $tagname
17958
17959__EOF__
17960
17961
17962else
17963 # If there is no Makefile yet, we rely on a make rule to execute
17964 # `config.status --recheck' to rerun these tests and create the
17965 # libtool script then.
17966 test -f Makefile && make "$ltmain"
17967fi
17968
17969
17970ac_ext=c
17971ac_cpp='$CPP $CPPFLAGS'
17972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975
17976CC="$lt_save_CC"
17977
17978 else
17979 tagname=""
17980 fi
17981 ;;
17982
17983 RC)
17984
17985
17986
17987# Source file extension for RC test sources.
17988ac_ext=rc
17989
17990# Object file extension for compiled RC test sources.
17991objext=o
17992objext_RC=$objext
17993
17994# Code to be used in simple compile tests
17995lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17996
17997# Code to be used in simple link tests
17998lt_simple_link_test_code="$lt_simple_compile_test_code"
17999
18000# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18001
18002# If no C compiler was specified, use CC.
18003LTCC=${LTCC-"$CC"}
18004
18005# Allow CC to be a program name with arguments.
18006compiler=$CC
18007
18008
18009# Allow CC to be a program name with arguments.
18010lt_save_CC="$CC"
18011CC=${RC-"windres"}
18012compiler=$CC
18013compiler_RC=$CC
18014lt_cv_prog_compiler_c_o_RC=yes
18015
18016# The else clause should only fire when bootstrapping the
18017# libtool distribution, otherwise you forgot to ship ltmain.sh
18018# with your package, and you will get complaints that there are
18019# no rules to generate ltmain.sh.
18020if test -f "$ltmain"; then
18021 # See if we are running on zsh, and set the options which allow our commands through
18022 # without removal of \ escapes.
18023 if test -n "${ZSH_VERSION+set}" ; then
18024 setopt NO_GLOB_SUBST
18025 fi
18026 # Now quote all the things that may contain metacharacters while being
18027 # careful not to overquote the AC_SUBSTed values. We take copies of the
18028 # variables and quote the copies for generation of the libtool script.
18029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18030 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18031 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18032 deplibs_check_method reload_flag reload_cmds need_locks \
18033 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18034 lt_cv_sys_global_symbol_to_c_name_address \
18035 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18036 old_postinstall_cmds old_postuninstall_cmds \
18037 compiler_RC \
18038 CC_RC \
18039 LD_RC \
18040 lt_prog_compiler_wl_RC \
18041 lt_prog_compiler_pic_RC \
18042 lt_prog_compiler_static_RC \
18043 lt_prog_compiler_no_builtin_flag_RC \
18044 export_dynamic_flag_spec_RC \
18045 thread_safe_flag_spec_RC \
18046 whole_archive_flag_spec_RC \
18047 enable_shared_with_static_runtimes_RC \
18048 old_archive_cmds_RC \
18049 old_archive_from_new_cmds_RC \
18050 predep_objects_RC \
18051 postdep_objects_RC \
18052 predeps_RC \
18053 postdeps_RC \
18054 compiler_lib_search_path_RC \
18055 archive_cmds_RC \
18056 archive_expsym_cmds_RC \
18057 postinstall_cmds_RC \
18058 postuninstall_cmds_RC \
18059 old_archive_from_expsyms_cmds_RC \
18060 allow_undefined_flag_RC \
18061 no_undefined_flag_RC \
18062 export_symbols_cmds_RC \
18063 hardcode_libdir_flag_spec_RC \
18064 hardcode_libdir_flag_spec_ld_RC \
18065 hardcode_libdir_separator_RC \
18066 hardcode_automatic_RC \
18067 module_cmds_RC \
18068 module_expsym_cmds_RC \
18069 lt_cv_prog_compiler_c_o_RC \
18070 exclude_expsyms_RC \
18071 include_expsyms_RC; do
18072
18073 case $var in
18074 old_archive_cmds_RC | \
18075 old_archive_from_new_cmds_RC | \
18076 archive_cmds_RC | \
18077 archive_expsym_cmds_RC | \
18078 module_cmds_RC | \
18079 module_expsym_cmds_RC | \
18080 old_archive_from_expsyms_cmds_RC | \
18081 export_symbols_cmds_RC | \
18082 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18083 postinstall_cmds | postuninstall_cmds | \
18084 old_postinstall_cmds | old_postuninstall_cmds | \
18085 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18086 # Double-quote double-evaled strings.
18087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18088 ;;
18089 *)
18090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18091 ;;
18092 esac
18093 done
18094
18095 case $lt_echo in
18096 *'\$0 --fallback-echo"')
18097 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18098 ;;
18099 esac
18100
18101cfgfile="$ofile"
18102
18103 cat <<__EOF__ >> "$cfgfile"
18104# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18105
18106# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18107
18108# Shell to use when invoking shell scripts.
18109SHELL=$lt_SHELL
18110
18111# Whether or not to build shared libraries.
18112build_libtool_libs=$enable_shared
18113
18114# Whether or not to build static libraries.
18115build_old_libs=$enable_static
18116
18117# Whether or not to add -lc for building shared libraries.
18118build_libtool_need_lc=$archive_cmds_need_lc_RC
18119
18120# Whether or not to disallow shared libs when runtime libs are static
18121allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18122
18123# Whether or not to optimize for fast installation.
18124fast_install=$enable_fast_install
18125
18126# The host system.
18127host_alias=$host_alias
18128host=$host
18129
18130# An echo program that does not interpret backslashes.
18131echo=$lt_echo
18132
18133# The archiver.
18134AR=$lt_AR
18135AR_FLAGS=$lt_AR_FLAGS
18136
18137# A C compiler.
18138LTCC=$lt_LTCC
18139
18140# A language-specific compiler.
18141CC=$lt_compiler_RC
18142
18143# Is the compiler the GNU C compiler?
18144with_gcc=$GCC_RC
18145
18146# An ERE matcher.
18147EGREP=$lt_EGREP
18148
18149# The linker used to build libraries.
18150LD=$lt_LD_RC
18151
18152# Whether we need hard or soft links.
18153LN_S=$lt_LN_S
18154
18155# A BSD-compatible nm program.
18156NM=$lt_NM
18157
18158# A symbol stripping program
18159STRIP=$STRIP
18160
18161# Used to examine libraries when file_magic_cmd begins "file"
18162MAGIC_CMD=$MAGIC_CMD
18163
18164# Used on cygwin: DLL creation program.
18165DLLTOOL="$DLLTOOL"
18166
18167# Used on cygwin: object dumper.
18168OBJDUMP="$OBJDUMP"
18169
18170# Used on cygwin: assembler.
18171AS="$AS"
18172
18173# The name of the directory that contains temporary libtool files.
18174objdir=$objdir
18175
18176# How to create reloadable object files.
18177reload_flag=$lt_reload_flag
18178reload_cmds=$lt_reload_cmds
18179
18180# How to pass a linker flag through the compiler.
18181wl=$lt_lt_prog_compiler_wl_RC
18182
18183# Object file suffix (normally "o").
18184objext="$ac_objext"
18185
18186# Old archive suffix (normally "a").
18187libext="$libext"
18188
18189# Shared library suffix (normally ".so").
18190shrext='$shrext'
18191
18192# Executable file suffix (normally "").
18193exeext="$exeext"
18194
18195# Additional compiler flags for building library objects.
18196pic_flag=$lt_lt_prog_compiler_pic_RC
18197pic_mode=$pic_mode
18198
18199# What is the maximum length of a command?
18200max_cmd_len=$lt_cv_sys_max_cmd_len
18201
18202# Does compiler simultaneously support -c and -o options?
18203compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18204
18205# Must we lock files when doing compilation ?
18206need_locks=$lt_need_locks
18207
18208# Do we need the lib prefix for modules?
18209need_lib_prefix=$need_lib_prefix
18210
18211# Do we need a version for libraries?
18212need_version=$need_version
18213
18214# Whether dlopen is supported.
18215dlopen_support=$enable_dlopen
18216
18217# Whether dlopen of programs is supported.
18218dlopen_self=$enable_dlopen_self
18219
18220# Whether dlopen of statically linked programs is supported.
18221dlopen_self_static=$enable_dlopen_self_static
18222
18223# Compiler flag to prevent dynamic linking.
18224link_static_flag=$lt_lt_prog_compiler_static_RC
18225
18226# Compiler flag to turn off builtin functions.
18227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18228
18229# Compiler flag to allow reflexive dlopens.
18230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18231
18232# Compiler flag to generate shared objects directly from archives.
18233whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18234
18235# Compiler flag to generate thread-safe objects.
18236thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18237
18238# Library versioning type.
18239version_type=$version_type
18240
18241# Format of library name prefix.
18242libname_spec=$lt_libname_spec
18243
18244# List of archive names. First name is the real one, the rest are links.
18245# The last name is the one that the linker finds with -lNAME.
18246library_names_spec=$lt_library_names_spec
18247
18248# The coded name of the library, if different from the real name.
18249soname_spec=$lt_soname_spec
18250
18251# Commands used to build and install an old-style archive.
18252RANLIB=$lt_RANLIB
18253old_archive_cmds=$lt_old_archive_cmds_RC
18254old_postinstall_cmds=$lt_old_postinstall_cmds
18255old_postuninstall_cmds=$lt_old_postuninstall_cmds
18256
18257# Create an old-style archive from a shared archive.
18258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18259
18260# Create a temporary old-style archive to link instead of a shared archive.
18261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18262
18263# Commands used to build and install a shared archive.
18264archive_cmds=$lt_archive_cmds_RC
18265archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18266postinstall_cmds=$lt_postinstall_cmds
18267postuninstall_cmds=$lt_postuninstall_cmds
18268
18269# Commands used to build a loadable module (assumed same as above if empty)
18270module_cmds=$lt_module_cmds_RC
18271module_expsym_cmds=$lt_module_expsym_cmds_RC
18272
18273# Commands to strip libraries.
18274old_striplib=$lt_old_striplib
18275striplib=$lt_striplib
18276
18277# Dependencies to place before the objects being linked to create a
18278# shared library.
18279predep_objects=$lt_predep_objects_RC
18280
18281# Dependencies to place after the objects being linked to create a
18282# shared library.
18283postdep_objects=$lt_postdep_objects_RC
18284
18285# Dependencies to place before the objects being linked to create a
18286# shared library.
18287predeps=$lt_predeps_RC
18288
18289# Dependencies to place after the objects being linked to create a
18290# shared library.
18291postdeps=$lt_postdeps_RC
18292
18293# The library search path used internally by the compiler when linking
18294# a shared library.
18295compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18296
18297# Method to check whether dependent libraries are shared objects.
18298deplibs_check_method=$lt_deplibs_check_method
18299
18300# Command to use when deplibs_check_method == file_magic.
18301file_magic_cmd=$lt_file_magic_cmd
18302
18303# Flag that allows shared libraries with undefined symbols to be built.
18304allow_undefined_flag=$lt_allow_undefined_flag_RC
18305
18306# Flag that forces no undefined symbols.
18307no_undefined_flag=$lt_no_undefined_flag_RC
18308
18309# Commands used to finish a libtool library installation in a directory.
18310finish_cmds=$lt_finish_cmds
18311
18312# Same as above, but a single script fragment to be evaled but not shown.
18313finish_eval=$lt_finish_eval
18314
18315# Take the output of nm and produce a listing of raw symbols and C names.
18316global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18317
18318# Transform the output of nm in a proper C declaration
18319global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18320
18321# Transform the output of nm in a C name address pair
18322global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18323
18324# This is the shared library runtime path variable.
18325runpath_var=$runpath_var
18326
18327# This is the shared library path variable.
18328shlibpath_var=$shlibpath_var
18329
18330# Is shlibpath searched before the hard-coded library search path?
18331shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18332
18333# How to hardcode a shared library path into an executable.
18334hardcode_action=$hardcode_action_RC
18335
18336# Whether we should hardcode library paths into libraries.
18337hardcode_into_libs=$hardcode_into_libs
18338
18339# Flag to hardcode \$libdir into a binary during linking.
18340# This must work even if \$libdir does not exist.
18341hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18342
18343# If ld is used when linking, flag to hardcode \$libdir into
18344# a binary during linking. This must work even if \$libdir does
18345# not exist.
18346hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18347
18348# Whether we need a single -rpath flag with a separated argument.
18349hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18350
18351# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18352# resulting binary.
18353hardcode_direct=$hardcode_direct_RC
18354
18355# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18356# resulting binary.
18357hardcode_minus_L=$hardcode_minus_L_RC
18358
18359# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18360# the resulting binary.
18361hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18362
18363# Set to yes if building a shared library automatically hardcodes DIR into the library
18364# and all subsequent libraries and executables linked against it.
18365hardcode_automatic=$hardcode_automatic_RC
18366
18367# Variables whose values should be saved in libtool wrapper scripts and
18368# restored at relink time.
18369variables_saved_for_relink="$variables_saved_for_relink"
18370
18371# Whether libtool must link a program against all its dependency libraries.
18372link_all_deplibs=$link_all_deplibs_RC
18373
18374# Compile-time system search path for libraries
18375sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18376
18377# Run-time system search path for libraries
18378sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18379
18380# Fix the shell variable \$srcfile for the compiler.
18381fix_srcfile_path="$fix_srcfile_path_RC"
18382
18383# Set to yes if exported symbols are required.
18384always_export_symbols=$always_export_symbols_RC
18385
18386# The commands to list exported symbols.
18387export_symbols_cmds=$lt_export_symbols_cmds_RC
18388
18389# The commands to extract the exported symbol list from a shared archive.
18390extract_expsyms_cmds=$lt_extract_expsyms_cmds
18391
18392# Symbols that should not be listed in the preloaded symbols.
18393exclude_expsyms=$lt_exclude_expsyms_RC
18394
18395# Symbols that must always be exported.
18396include_expsyms=$lt_include_expsyms_RC
18397
18398# ### END LIBTOOL TAG CONFIG: $tagname
18399
18400__EOF__
18401
18402
18403else
18404 # If there is no Makefile yet, we rely on a make rule to execute
18405 # `config.status --recheck' to rerun these tests and create the
18406 # libtool script then.
18407 test -f Makefile && make "$ltmain"
18408fi
18409
18410
18411ac_ext=c
18412ac_cpp='$CPP $CPPFLAGS'
18413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416
18417CC="$lt_save_CC"
18418
18419 ;;
18420
18421 *)
18422 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18423echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18424 { (exit 1); exit 1; }; }
18425 ;;
18426 esac
18427
18428 # Append the new tag name to the list of available tags.
18429 if test -n "$tagname" ; then
18430 available_tags="$available_tags $tagname"
18431 fi
18432 fi
18433 done
18434 IFS="$lt_save_ifs"
18435
18436 # Now substitute the updated list of available tags.
18437 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18438 mv "${ofile}T" "$ofile"
18439 chmod +x "$ofile"
18440 else
18441 rm -f "${ofile}T"
18442 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18443echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18444 { (exit 1); exit 1; }; }
18445 fi
18446fi
John Criswell7a73b802003-06-30 21:59:07 +000018447
18448
18449
18450# This can be used to rebuild libtool when needed
18451LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18452
18453# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018454LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018455
18456# Prevent multiple expansion
18457
18458
18459
John Criswell47fdd832003-07-14 16:52:07 +000018460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
John Criswellde00db22003-08-25 16:49:54 +000018478# Extract the first word of "pwd", so it can be a program name with args.
18479set dummy pwd; ac_word=$2
18480echo "$as_me:$LINENO: checking for $ac_word" >&5
18481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18482if test "${ac_cv_path_RPWD+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18484else
18485 case $RPWD in
18486 [\\/]* | ?:[\\/]*)
18487 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18488 ;;
18489 *)
18490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18491for as_dir in $PATH
18492do
18493 IFS=$as_save_IFS
18494 test -z "$as_dir" && as_dir=.
18495 for ac_exec_ext in '' $ac_executable_extensions; do
18496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18497 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18499 break 2
18500 fi
18501done
18502done
18503
John Criswell39827c82003-09-23 15:28:52 +000018504 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018505 ;;
18506esac
18507fi
18508RPWD=$ac_cv_path_RPWD
18509
18510if test -n "$RPWD"; then
18511 echo "$as_me:$LINENO: result: $RPWD" >&5
18512echo "${ECHO_T}$RPWD" >&6
18513else
18514 echo "$as_me:$LINENO: result: no" >&5
18515echo "${ECHO_T}no" >&6
18516fi
18517
John Criswell39827c82003-09-23 15:28:52 +000018518if test ${RPWD} = "false"
18519then
18520 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18521echo "$as_me: error: pwd required but not found" >&2;}
18522 { (exit 1); exit 1; }; }
18523fi
18524
John Criswell7a73b802003-06-30 21:59:07 +000018525# Extract the first word of "ar", so it can be a program name with args.
18526set dummy ar; ac_word=$2
18527echo "$as_me:$LINENO: checking for $ac_word" >&5
18528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18529if test "${ac_cv_path_AR+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531else
18532 case $AR in
18533 [\\/]* | ?:[\\/]*)
18534 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18535 ;;
18536 *)
18537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538for as_dir in $PATH
18539do
18540 IFS=$as_save_IFS
18541 test -z "$as_dir" && as_dir=.
18542 for ac_exec_ext in '' $ac_executable_extensions; do
18543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18544 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18546 break 2
18547 fi
18548done
18549done
18550
John Criswell39827c82003-09-23 15:28:52 +000018551 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018552 ;;
18553esac
18554fi
18555AR=$ac_cv_path_AR
18556
18557if test -n "$AR"; then
18558 echo "$as_me:$LINENO: result: $AR" >&5
18559echo "${ECHO_T}$AR" >&6
18560else
18561 echo "$as_me:$LINENO: result: no" >&5
18562echo "${ECHO_T}no" >&6
18563fi
18564
John Criswell39827c82003-09-23 15:28:52 +000018565if test ${AR} = "false"
18566then
18567 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18568echo "$as_me: error: ar required but not found" >&2;}
18569 { (exit 1); exit 1; }; }
18570fi
18571
John Criswell7a73b802003-06-30 21:59:07 +000018572# Extract the first word of "sed", so it can be a program name with args.
18573set dummy sed; ac_word=$2
18574echo "$as_me:$LINENO: checking for $ac_word" >&5
18575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18576if test "${ac_cv_path_SED+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579 case $SED in
18580 [\\/]* | ?:[\\/]*)
18581 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18582 ;;
18583 *)
18584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585for as_dir in $PATH
18586do
18587 IFS=$as_save_IFS
18588 test -z "$as_dir" && as_dir=.
18589 for ac_exec_ext in '' $ac_executable_extensions; do
18590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18591 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18593 break 2
18594 fi
18595done
18596done
18597
John Criswell39827c82003-09-23 15:28:52 +000018598 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018599 ;;
18600esac
18601fi
18602SED=$ac_cv_path_SED
18603
18604if test -n "$SED"; then
18605 echo "$as_me:$LINENO: result: $SED" >&5
18606echo "${ECHO_T}$SED" >&6
18607else
18608 echo "$as_me:$LINENO: result: no" >&5
18609echo "${ECHO_T}no" >&6
18610fi
18611
John Criswell39827c82003-09-23 15:28:52 +000018612if test ${SED} = "false"
18613then
18614 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18615echo "$as_me: error: sed required but not found" >&2;}
18616 { (exit 1); exit 1; }; }
18617fi
18618
John Criswell7a73b802003-06-30 21:59:07 +000018619# Extract the first word of "rm", so it can be a program name with args.
18620set dummy rm; ac_word=$2
18621echo "$as_me:$LINENO: checking for $ac_word" >&5
18622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18623if test "${ac_cv_path_RM+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625else
18626 case $RM in
18627 [\\/]* | ?:[\\/]*)
18628 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18629 ;;
18630 *)
18631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18632for as_dir in $PATH
18633do
18634 IFS=$as_save_IFS
18635 test -z "$as_dir" && as_dir=.
18636 for ac_exec_ext in '' $ac_executable_extensions; do
18637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18638 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18640 break 2
18641 fi
18642done
18643done
18644
John Criswell39827c82003-09-23 15:28:52 +000018645 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018646 ;;
18647esac
18648fi
18649RM=$ac_cv_path_RM
18650
18651if test -n "$RM"; then
18652 echo "$as_me:$LINENO: result: $RM" >&5
18653echo "${ECHO_T}$RM" >&6
18654else
18655 echo "$as_me:$LINENO: result: no" >&5
18656echo "${ECHO_T}no" >&6
18657fi
18658
John Criswell39827c82003-09-23 15:28:52 +000018659if test ${RM} = "false"
18660then
18661 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18662echo "$as_me: error: rm required but not found" >&2;}
18663 { (exit 1); exit 1; }; }
18664fi
18665
John Criswell7a73b802003-06-30 21:59:07 +000018666# Extract the first word of "echo", so it can be a program name with args.
18667set dummy echo; ac_word=$2
18668echo "$as_me:$LINENO: checking for $ac_word" >&5
18669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670if test "${ac_cv_path_ECHO+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 case $ECHO in
18674 [\\/]* | ?:[\\/]*)
18675 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18676 ;;
18677 *)
18678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679for as_dir in $PATH
18680do
18681 IFS=$as_save_IFS
18682 test -z "$as_dir" && as_dir=.
18683 for ac_exec_ext in '' $ac_executable_extensions; do
18684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18685 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18687 break 2
18688 fi
18689done
18690done
18691
John Criswell39827c82003-09-23 15:28:52 +000018692 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018693 ;;
18694esac
18695fi
18696ECHO=$ac_cv_path_ECHO
18697
18698if test -n "$ECHO"; then
18699 echo "$as_me:$LINENO: result: $ECHO" >&5
18700echo "${ECHO_T}$ECHO" >&6
18701else
18702 echo "$as_me:$LINENO: result: no" >&5
18703echo "${ECHO_T}no" >&6
18704fi
18705
John Criswell39827c82003-09-23 15:28:52 +000018706if test ${ECHO} = "false"
18707then
18708 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18709echo "$as_me: error: echo required but not found" >&2;}
18710 { (exit 1); exit 1; }; }
18711fi
18712
John Criswell7a73b802003-06-30 21:59:07 +000018713# Extract the first word of "mkdir", so it can be a program name with args.
18714set dummy mkdir; ac_word=$2
18715echo "$as_me:$LINENO: checking for $ac_word" >&5
18716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18717if test "${ac_cv_path_MKDIR+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719else
18720 case $MKDIR in
18721 [\\/]* | ?:[\\/]*)
18722 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18723 ;;
18724 *)
18725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18726for as_dir in $PATH
18727do
18728 IFS=$as_save_IFS
18729 test -z "$as_dir" && as_dir=.
18730 for ac_exec_ext in '' $ac_executable_extensions; do
18731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18732 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18734 break 2
18735 fi
18736done
18737done
18738
John Criswell39827c82003-09-23 15:28:52 +000018739 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018740 ;;
18741esac
18742fi
18743MKDIR=$ac_cv_path_MKDIR
18744
18745if test -n "$MKDIR"; then
18746 echo "$as_me:$LINENO: result: $MKDIR" >&5
18747echo "${ECHO_T}$MKDIR" >&6
18748else
18749 echo "$as_me:$LINENO: result: no" >&5
18750echo "${ECHO_T}no" >&6
18751fi
18752
John Criswell39827c82003-09-23 15:28:52 +000018753if test ${MKDIR} = "false"
18754then
18755 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18756echo "$as_me: error: mkdir required but not found" >&2;}
18757 { (exit 1); exit 1; }; }
18758fi
18759
John Criswell7a73b802003-06-30 21:59:07 +000018760# Extract the first word of "date", so it can be a program name with args.
18761set dummy date; ac_word=$2
18762echo "$as_me:$LINENO: checking for $ac_word" >&5
18763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18764if test "${ac_cv_path_DATE+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18766else
18767 case $DATE in
18768 [\\/]* | ?:[\\/]*)
18769 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18770 ;;
18771 *)
18772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773for as_dir in $PATH
18774do
18775 IFS=$as_save_IFS
18776 test -z "$as_dir" && as_dir=.
18777 for ac_exec_ext in '' $ac_executable_extensions; do
18778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18781 break 2
18782 fi
18783done
18784done
18785
John Criswell39827c82003-09-23 15:28:52 +000018786 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018787 ;;
18788esac
18789fi
18790DATE=$ac_cv_path_DATE
18791
18792if test -n "$DATE"; then
18793 echo "$as_me:$LINENO: result: $DATE" >&5
18794echo "${ECHO_T}$DATE" >&6
18795else
18796 echo "$as_me:$LINENO: result: no" >&5
18797echo "${ECHO_T}no" >&6
18798fi
18799
John Criswell39827c82003-09-23 15:28:52 +000018800if test ${DATE} = "false"
18801then
18802 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18803echo "$as_me: error: date required but not found" >&2;}
18804 { (exit 1); exit 1; }; }
18805fi
18806
John Criswell7a73b802003-06-30 21:59:07 +000018807# Extract the first word of "mv", so it can be a program name with args.
18808set dummy mv; ac_word=$2
18809echo "$as_me:$LINENO: checking for $ac_word" >&5
18810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18811if test "${ac_cv_path_MV+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813else
18814 case $MV in
18815 [\\/]* | ?:[\\/]*)
18816 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18817 ;;
18818 *)
18819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18820for as_dir in $PATH
18821do
18822 IFS=$as_save_IFS
18823 test -z "$as_dir" && as_dir=.
18824 for ac_exec_ext in '' $ac_executable_extensions; do
18825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18826 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18828 break 2
18829 fi
18830done
18831done
18832
John Criswell39827c82003-09-23 15:28:52 +000018833 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018834 ;;
18835esac
18836fi
18837MV=$ac_cv_path_MV
18838
18839if test -n "$MV"; then
18840 echo "$as_me:$LINENO: result: $MV" >&5
18841echo "${ECHO_T}$MV" >&6
18842else
18843 echo "$as_me:$LINENO: result: no" >&5
18844echo "${ECHO_T}no" >&6
18845fi
18846
John Criswell39827c82003-09-23 15:28:52 +000018847if test ${MV} = "false"
18848then
18849 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18850echo "$as_me: error: mv required but not found" >&2;}
18851 { (exit 1); exit 1; }; }
18852fi
18853
John Criswell7a73b802003-06-30 21:59:07 +000018854# Extract the first word of "dot", so it can be a program name with args.
18855set dummy dot; ac_word=$2
18856echo "$as_me:$LINENO: checking for $ac_word" >&5
18857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18858if test "${ac_cv_path_DOT+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860else
18861 case $DOT in
18862 [\\/]* | ?:[\\/]*)
18863 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18864 ;;
18865 *)
18866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18867for as_dir in $PATH
18868do
18869 IFS=$as_save_IFS
18870 test -z "$as_dir" && as_dir=.
18871 for ac_exec_ext in '' $ac_executable_extensions; do
18872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18873 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18875 break 2
18876 fi
18877done
18878done
18879
John Criswell39827c82003-09-23 15:28:52 +000018880 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018881 ;;
18882esac
18883fi
18884DOT=$ac_cv_path_DOT
18885
18886if test -n "$DOT"; then
18887 echo "$as_me:$LINENO: result: $DOT" >&5
18888echo "${ECHO_T}$DOT" >&6
18889else
18890 echo "$as_me:$LINENO: result: no" >&5
18891echo "${ECHO_T}no" >&6
18892fi
18893
John Criswell39827c82003-09-23 15:28:52 +000018894
John Criswell7a73b802003-06-30 21:59:07 +000018895# Extract the first word of "etags", so it can be a program name with args.
18896set dummy etags; ac_word=$2
18897echo "$as_me:$LINENO: checking for $ac_word" >&5
18898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18899if test "${ac_cv_path_ETAGS+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901else
18902 case $ETAGS in
18903 [\\/]* | ?:[\\/]*)
18904 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18905 ;;
18906 *)
18907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18908for as_dir in $PATH
18909do
18910 IFS=$as_save_IFS
18911 test -z "$as_dir" && as_dir=.
18912 for ac_exec_ext in '' $ac_executable_extensions; do
18913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18914 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18916 break 2
18917 fi
18918done
18919done
18920
John Criswell39827c82003-09-23 15:28:52 +000018921 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018922 ;;
18923esac
18924fi
18925ETAGS=$ac_cv_path_ETAGS
18926
18927if test -n "$ETAGS"; then
18928 echo "$as_me:$LINENO: result: $ETAGS" >&5
18929echo "${ECHO_T}$ETAGS" >&6
18930else
18931 echo "$as_me:$LINENO: result: no" >&5
18932echo "${ECHO_T}no" >&6
18933fi
18934
John Criswell39827c82003-09-23 15:28:52 +000018935
John Criswellde00db22003-08-25 16:49:54 +000018936# Extract the first word of "python", so it can be a program name with args.
18937set dummy python; ac_word=$2
18938echo "$as_me:$LINENO: checking for $ac_word" >&5
18939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18940if test "${ac_cv_path_PYTHON+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18942else
18943 case $PYTHON in
18944 [\\/]* | ?:[\\/]*)
18945 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18946 ;;
18947 *)
18948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18949for as_dir in $PATH
18950do
18951 IFS=$as_save_IFS
18952 test -z "$as_dir" && as_dir=.
18953 for ac_exec_ext in '' $ac_executable_extensions; do
18954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18955 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18957 break 2
18958 fi
18959done
18960done
18961
John Criswell39827c82003-09-23 15:28:52 +000018962 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018963 ;;
18964esac
18965fi
18966PYTHON=$ac_cv_path_PYTHON
18967
18968if test -n "$PYTHON"; then
18969 echo "$as_me:$LINENO: result: $PYTHON" >&5
18970echo "${ECHO_T}$PYTHON" >&6
18971else
18972 echo "$as_me:$LINENO: result: no" >&5
18973echo "${ECHO_T}no" >&6
18974fi
18975
John Criswell39827c82003-09-23 15:28:52 +000018976if test ${PYTHON} = "false"
18977then
John Criswell61095982003-09-23 20:46:32 +000018978 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18979echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018980fi
18981
John Criswellde00db22003-08-25 16:49:54 +000018982# Extract the first word of "qmtest", so it can be a program name with args.
18983set dummy qmtest; ac_word=$2
18984echo "$as_me:$LINENO: checking for $ac_word" >&5
18985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18986if test "${ac_cv_path_QMTEST+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988else
18989 case $QMTEST in
18990 [\\/]* | ?:[\\/]*)
18991 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18992 ;;
18993 *)
18994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18995for as_dir in $PATH
18996do
18997 IFS=$as_save_IFS
18998 test -z "$as_dir" && as_dir=.
18999 for ac_exec_ext in '' $ac_executable_extensions; do
19000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19001 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19003 break 2
19004 fi
19005done
19006done
19007
John Criswell39827c82003-09-23 15:28:52 +000019008 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019009 ;;
19010esac
19011fi
19012QMTEST=$ac_cv_path_QMTEST
19013
19014if test -n "$QMTEST"; then
19015 echo "$as_me:$LINENO: result: $QMTEST" >&5
19016echo "${ECHO_T}$QMTEST" >&6
19017else
19018 echo "$as_me:$LINENO: result: no" >&5
19019echo "${ECHO_T}no" >&6
19020fi
19021
John Criswell39827c82003-09-23 15:28:52 +000019022if test ${QMTEST} = "false"
19023then
John Criswell61095982003-09-23 20:46:32 +000019024 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19025echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019026fi
John Criswellde00db22003-08-25 16:49:54 +000019027
19028pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19029pymajor=`echo $pyversion | cut -d. -f1`
19030pyminor=`echo $pyversion | cut -d. -f2`
19031
19032if test "$pymajor" -ge "2"
19033then
19034 if test "$pymajor" -eq "2"
19035 then
19036 if test "$pyminor" -lt "2"
19037 then
19038 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19039echo "$as_me: error: Python 2.2 or greater required" >&2;}
19040 { (exit 1); exit 1; }; }
19041 fi
19042 fi
19043else
19044 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19045echo "$as_me: error: Python 2.2 or greater required" >&2;}
19046 { (exit 1); exit 1; }; }
19047fi
John Criswell7a73b802003-06-30 21:59:07 +000019048
19049
19050
19051
19052
19053echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19054echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19055if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057else
19058 ac_check_lib_save_LIBS=$LIBS
19059LIBS="-lelf $LIBS"
19060cat >conftest.$ac_ext <<_ACEOF
19061#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019062/* confdefs.h. */
19063_ACEOF
19064cat confdefs.h >>conftest.$ac_ext
19065cat >>conftest.$ac_ext <<_ACEOF
19066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019067
19068/* Override any gcc2 internal prototype to avoid an error. */
19069#ifdef __cplusplus
19070extern "C"
19071#endif
19072/* We use char because int might match the return type of a gcc2
19073 builtin and then its argument prototype would still apply. */
19074char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019075int
19076main ()
19077{
19078elf_begin ();
19079 ;
19080 return 0;
19081}
19082_ACEOF
19083rm -f conftest.$ac_objext conftest$ac_exeext
19084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19085 (eval $ac_link) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_lib_elf_elf_begin=yes
19096else
19097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019098sed 's/^/| /' conftest.$ac_ext >&5
19099
John Criswell7a73b802003-06-30 21:59:07 +000019100ac_cv_lib_elf_elf_begin=no
19101fi
19102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19103LIBS=$ac_check_lib_save_LIBS
19104fi
19105echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19106echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19107if test $ac_cv_lib_elf_elf_begin = yes; then
19108 cat >>confdefs.h <<_ACEOF
19109#define HAVE_LIBELF 1
19110_ACEOF
19111
19112 LIBS="-lelf $LIBS"
19113
19114fi
19115
19116
19117echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19118echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19119if test "${ac_cv_search_dlopen+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121else
19122 ac_func_search_save_LIBS=$LIBS
19123ac_cv_search_dlopen=no
19124cat >conftest.$ac_ext <<_ACEOF
19125#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
19130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019131
19132/* Override any gcc2 internal prototype to avoid an error. */
19133#ifdef __cplusplus
19134extern "C"
19135#endif
19136/* We use char because int might match the return type of a gcc2
19137 builtin and then its argument prototype would still apply. */
19138char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019139int
19140main ()
19141{
19142dlopen ();
19143 ;
19144 return 0;
19145}
19146_ACEOF
19147rm -f conftest.$ac_objext conftest$ac_exeext
19148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19149 (eval $ac_link) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -s conftest$ac_exeext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 ac_cv_search_dlopen="none required"
19160else
19161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019162sed 's/^/| /' conftest.$ac_ext >&5
19163
John Criswell7a73b802003-06-30 21:59:07 +000019164fi
19165rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19166if test "$ac_cv_search_dlopen" = no; then
19167 for ac_lib in dl; do
19168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19169 cat >conftest.$ac_ext <<_ACEOF
19170#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019176
19177/* Override any gcc2 internal prototype to avoid an error. */
19178#ifdef __cplusplus
19179extern "C"
19180#endif
19181/* We use char because int might match the return type of a gcc2
19182 builtin and then its argument prototype would still apply. */
19183char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019184int
19185main ()
19186{
19187dlopen ();
19188 ;
19189 return 0;
19190}
19191_ACEOF
19192rm -f conftest.$ac_objext conftest$ac_exeext
19193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19194 (eval $ac_link) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -s conftest$ac_exeext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_search_dlopen="-l$ac_lib"
19205break
19206else
19207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019208sed 's/^/| /' conftest.$ac_ext >&5
19209
John Criswell7a73b802003-06-30 21:59:07 +000019210fi
19211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19212 done
19213fi
19214LIBS=$ac_func_search_save_LIBS
19215fi
19216echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19217echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19218if test "$ac_cv_search_dlopen" != no; then
19219 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
Brian Gaekec45be042003-10-07 06:01:34 +000019220 cat >>confdefs.h <<\_ACEOF
19221#define HAVE_DLOPEN 1
19222_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019223
19224else
Brian Gaekec45be042003-10-07 06:01:34 +000019225 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19226echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019227fi
19228
19229
19230echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19231echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19232if test "${ac_cv_search_mallinfo+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234else
19235 ac_func_search_save_LIBS=$LIBS
19236ac_cv_search_mallinfo=no
19237cat >conftest.$ac_ext <<_ACEOF
19238#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019239/* confdefs.h. */
19240_ACEOF
19241cat confdefs.h >>conftest.$ac_ext
19242cat >>conftest.$ac_ext <<_ACEOF
19243/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019244
19245/* Override any gcc2 internal prototype to avoid an error. */
19246#ifdef __cplusplus
19247extern "C"
19248#endif
19249/* We use char because int might match the return type of a gcc2
19250 builtin and then its argument prototype would still apply. */
19251char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019252int
19253main ()
19254{
19255mallinfo ();
19256 ;
19257 return 0;
19258}
19259_ACEOF
19260rm -f conftest.$ac_objext conftest$ac_exeext
19261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262 (eval $ac_link) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -s conftest$ac_exeext'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 ac_cv_search_mallinfo="none required"
19273else
19274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019275sed 's/^/| /' conftest.$ac_ext >&5
19276
John Criswell7a73b802003-06-30 21:59:07 +000019277fi
19278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19279if test "$ac_cv_search_mallinfo" = no; then
19280 for ac_lib in malloc; do
19281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19282 cat >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="-l$ac_lib"
19318break
19319else
19320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019321sed 's/^/| /' conftest.$ac_ext >&5
19322
John Criswell7a73b802003-06-30 21:59:07 +000019323fi
19324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19325 done
19326fi
19327LIBS=$ac_func_search_save_LIBS
19328fi
19329echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19330echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19331if test "$ac_cv_search_mallinfo" != no; then
19332 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19333 cat >>confdefs.h <<\_ACEOF
19334#define HAVE_MALLINFO 1
19335_ACEOF
19336
19337fi
19338
19339
19340
19341echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19342echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19343if test "${ac_cv_header_stdc+set}" = set; then
19344 echo $ECHO_N "(cached) $ECHO_C" >&6
19345else
19346 cat >conftest.$ac_ext <<_ACEOF
19347#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019353#include <stdlib.h>
19354#include <stdarg.h>
19355#include <string.h>
19356#include <float.h>
19357
John Criswell0c38eaf2003-09-10 15:17:25 +000019358int
19359main ()
19360{
19361
19362 ;
19363 return 0;
19364}
John Criswell7a73b802003-06-30 21:59:07 +000019365_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019366rm -f conftest.$ac_objext
19367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019369 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019371 (exit $ac_status); } &&
19372 { ac_try='test -s conftest.$ac_objext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019378 ac_cv_header_stdc=yes
19379else
19380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019381sed 's/^/| /' conftest.$ac_ext >&5
19382
19383ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019384fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019385rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019386
19387if test $ac_cv_header_stdc = yes; then
19388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19389 cat >conftest.$ac_ext <<_ACEOF
19390#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019391/* confdefs.h. */
19392_ACEOF
19393cat confdefs.h >>conftest.$ac_ext
19394cat >>conftest.$ac_ext <<_ACEOF
19395/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019396#include <string.h>
19397
19398_ACEOF
19399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019400 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019401 :
19402else
19403 ac_cv_header_stdc=no
19404fi
19405rm -f conftest*
19406
19407fi
19408
19409if test $ac_cv_header_stdc = yes; then
19410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19411 cat >conftest.$ac_ext <<_ACEOF
19412#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019413/* confdefs.h. */
19414_ACEOF
19415cat confdefs.h >>conftest.$ac_ext
19416cat >>conftest.$ac_ext <<_ACEOF
19417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019418#include <stdlib.h>
19419
19420_ACEOF
19421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019422 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019423 :
19424else
19425 ac_cv_header_stdc=no
19426fi
19427rm -f conftest*
19428
19429fi
19430
19431if test $ac_cv_header_stdc = yes; then
19432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19433 if test "$cross_compiling" = yes; then
19434 :
19435else
19436 cat >conftest.$ac_ext <<_ACEOF
19437#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019438/* confdefs.h. */
19439_ACEOF
19440cat confdefs.h >>conftest.$ac_ext
19441cat >>conftest.$ac_ext <<_ACEOF
19442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019443#include <ctype.h>
19444#if ((' ' & 0x0FF) == 0x020)
19445# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19446# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19447#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019448# define ISLOWER(c) \
19449 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019450 || ('j' <= (c) && (c) <= 'r') \
19451 || ('s' <= (c) && (c) <= 'z'))
19452# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19453#endif
19454
19455#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19456int
19457main ()
19458{
19459 int i;
19460 for (i = 0; i < 256; i++)
19461 if (XOR (islower (i), ISLOWER (i))
19462 || toupper (i) != TOUPPER (i))
19463 exit(2);
19464 exit (0);
19465}
19466_ACEOF
19467rm -f conftest$ac_exeext
19468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19469 (eval $ac_link) 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 :
19479else
19480 echo "$as_me: program exited with status $ac_status" >&5
19481echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019482sed 's/^/| /' conftest.$ac_ext >&5
19483
John Criswell7a73b802003-06-30 21:59:07 +000019484( exit $ac_status )
19485ac_cv_header_stdc=no
19486fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019487rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019488fi
19489fi
19490fi
19491echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19492echo "${ECHO_T}$ac_cv_header_stdc" >&6
19493if test $ac_cv_header_stdc = yes; then
19494
19495cat >>confdefs.h <<\_ACEOF
19496#define STDC_HEADERS 1
19497_ACEOF
19498
19499fi
19500
19501echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19502echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19503if test "${ac_cv_header_sys_wait_h+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506 cat >conftest.$ac_ext <<_ACEOF
19507#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019508/* confdefs.h. */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019513#include <sys/types.h>
19514#include <sys/wait.h>
19515#ifndef WEXITSTATUS
19516# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19517#endif
19518#ifndef WIFEXITED
19519# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19520#endif
19521
John Criswell7a73b802003-06-30 21:59:07 +000019522int
19523main ()
19524{
19525 int s;
19526 wait (&s);
19527 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19528 ;
19529 return 0;
19530}
19531_ACEOF
19532rm -f conftest.$ac_objext
19533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_cv_header_sys_wait_h=yes
19545else
19546 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019547sed 's/^/| /' conftest.$ac_ext >&5
19548
John Criswell7a73b802003-06-30 21:59:07 +000019549ac_cv_header_sys_wait_h=no
19550fi
19551rm -f conftest.$ac_objext conftest.$ac_ext
19552fi
19553echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19554echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19555if test $ac_cv_header_sys_wait_h = yes; then
19556
19557cat >>confdefs.h <<\_ACEOF
19558#define HAVE_SYS_WAIT_H 1
19559_ACEOF
19560
19561fi
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19573do
19574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19575if eval "test \"\${$as_ac_Header+set}\" = set"; then
19576 echo "$as_me:$LINENO: checking for $ac_header" >&5
19577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19578if eval "test \"\${$as_ac_Header+set}\" = set"; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580fi
19581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19583else
19584 # Is the header compilable?
19585echo "$as_me:$LINENO: checking $ac_header usability" >&5
19586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19587cat >conftest.$ac_ext <<_ACEOF
19588#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019589/* confdefs.h. */
19590_ACEOF
19591cat confdefs.h >>conftest.$ac_ext
19592cat >>conftest.$ac_ext <<_ACEOF
19593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019594$ac_includes_default
19595#include <$ac_header>
19596_ACEOF
19597rm -f conftest.$ac_objext
19598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599 (eval $ac_compile) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_header_compiler=yes
19610else
19611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019612sed 's/^/| /' conftest.$ac_ext >&5
19613
John Criswell7a73b802003-06-30 21:59:07 +000019614ac_header_compiler=no
19615fi
19616rm -f conftest.$ac_objext conftest.$ac_ext
19617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19618echo "${ECHO_T}$ac_header_compiler" >&6
19619
19620# Is the header present?
19621echo "$as_me:$LINENO: checking $ac_header presence" >&5
19622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19623cat >conftest.$ac_ext <<_ACEOF
19624#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019625/* confdefs.h. */
19626_ACEOF
19627cat confdefs.h >>conftest.$ac_ext
19628cat >>conftest.$ac_ext <<_ACEOF
19629/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019630#include <$ac_header>
19631_ACEOF
19632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19634 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019635 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } >/dev/null; then
19640 if test -s conftest.err; then
19641 ac_cpp_err=$ac_c_preproc_warn_flag
19642 else
19643 ac_cpp_err=
19644 fi
19645else
19646 ac_cpp_err=yes
19647fi
19648if test -z "$ac_cpp_err"; then
19649 ac_header_preproc=yes
19650else
19651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019652sed 's/^/| /' conftest.$ac_ext >&5
19653
John Criswell7a73b802003-06-30 21:59:07 +000019654 ac_header_preproc=no
19655fi
19656rm -f conftest.err conftest.$ac_ext
19657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19658echo "${ECHO_T}$ac_header_preproc" >&6
19659
19660# So? What about this header?
19661case $ac_header_compiler:$ac_header_preproc in
19662 yes:no )
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19667 (
19668 cat <<\_ASBOX
19669## ------------------------------------ ##
19670## Report this to bug-autoconf@gnu.org. ##
19671## ------------------------------------ ##
19672_ASBOX
19673 ) |
19674 sed "s/^/$as_me: WARNING: /" >&2
19675 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019676 no:yes )
19677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19683 (
19684 cat <<\_ASBOX
19685## ------------------------------------ ##
19686## Report this to bug-autoconf@gnu.org. ##
19687## ------------------------------------ ##
19688_ASBOX
19689 ) |
19690 sed "s/^/$as_me: WARNING: /" >&2
19691 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019692esac
19693echo "$as_me:$LINENO: checking for $ac_header" >&5
19694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19695if eval "test \"\${$as_ac_Header+set}\" = set"; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19697else
19698 eval "$as_ac_Header=$ac_header_preproc"
19699fi
19700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19702
19703fi
19704if test `eval echo '${'$as_ac_Header'}'` = yes; then
19705 cat >>confdefs.h <<_ACEOF
19706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19707_ACEOF
19708
19709fi
19710
19711done
19712
19713
19714
19715
19716
19717
19718for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19719do
19720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19721if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722 echo "$as_me:$LINENO: checking for $ac_header" >&5
19723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19724if eval "test \"\${$as_ac_Header+set}\" = set"; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19726fi
19727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729else
19730 # Is the header compilable?
19731echo "$as_me:$LINENO: checking $ac_header usability" >&5
19732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19733cat >conftest.$ac_ext <<_ACEOF
19734#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019735/* confdefs.h. */
19736_ACEOF
19737cat confdefs.h >>conftest.$ac_ext
19738cat >>conftest.$ac_ext <<_ACEOF
19739/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019740$ac_includes_default
19741#include <$ac_header>
19742_ACEOF
19743rm -f conftest.$ac_objext
19744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_header_compiler=yes
19756else
19757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019758sed 's/^/| /' conftest.$ac_ext >&5
19759
John Criswell7a73b802003-06-30 21:59:07 +000019760ac_header_compiler=no
19761fi
19762rm -f conftest.$ac_objext conftest.$ac_ext
19763echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19764echo "${ECHO_T}$ac_header_compiler" >&6
19765
19766# Is the header present?
19767echo "$as_me:$LINENO: checking $ac_header presence" >&5
19768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19769cat >conftest.$ac_ext <<_ACEOF
19770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019771/* confdefs.h. */
19772_ACEOF
19773cat confdefs.h >>conftest.$ac_ext
19774cat >>conftest.$ac_ext <<_ACEOF
19775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019776#include <$ac_header>
19777_ACEOF
19778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19780 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019781 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019782 rm -f conftest.er1
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } >/dev/null; then
19786 if test -s conftest.err; then
19787 ac_cpp_err=$ac_c_preproc_warn_flag
19788 else
19789 ac_cpp_err=
19790 fi
19791else
19792 ac_cpp_err=yes
19793fi
19794if test -z "$ac_cpp_err"; then
19795 ac_header_preproc=yes
19796else
19797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019798sed 's/^/| /' conftest.$ac_ext >&5
19799
John Criswell7a73b802003-06-30 21:59:07 +000019800 ac_header_preproc=no
19801fi
19802rm -f conftest.err conftest.$ac_ext
19803echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19804echo "${ECHO_T}$ac_header_preproc" >&6
19805
19806# So? What about this header?
19807case $ac_header_compiler:$ac_header_preproc in
19808 yes:no )
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19813 (
19814 cat <<\_ASBOX
19815## ------------------------------------ ##
19816## Report this to bug-autoconf@gnu.org. ##
19817## ------------------------------------ ##
19818_ASBOX
19819 ) |
19820 sed "s/^/$as_me: WARNING: /" >&2
19821 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019822 no:yes )
19823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19829 (
19830 cat <<\_ASBOX
19831## ------------------------------------ ##
19832## Report this to bug-autoconf@gnu.org. ##
19833## ------------------------------------ ##
19834_ASBOX
19835 ) |
19836 sed "s/^/$as_me: WARNING: /" >&2
19837 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019838esac
19839echo "$as_me:$LINENO: checking for $ac_header" >&5
19840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19841if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo $ECHO_N "(cached) $ECHO_C" >&6
19843else
19844 eval "$as_ac_Header=$ac_header_preproc"
19845fi
19846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19848
19849fi
19850if test `eval echo '${'$as_ac_Header'}'` = yes; then
19851 cat >>confdefs.h <<_ACEOF
19852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19853_ACEOF
19854
19855fi
19856
19857done
19858
19859
19860
19861
19862for ac_header in dlfcn.h link.h
19863do
19864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19865if eval "test \"\${$as_ac_Header+set}\" = set"; then
19866 echo "$as_me:$LINENO: checking for $ac_header" >&5
19867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19868if eval "test \"\${$as_ac_Header+set}\" = set"; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870fi
19871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19873else
19874 # Is the header compilable?
19875echo "$as_me:$LINENO: checking $ac_header usability" >&5
19876echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19877cat >conftest.$ac_ext <<_ACEOF
19878#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019879/* confdefs.h. */
19880_ACEOF
19881cat confdefs.h >>conftest.$ac_ext
19882cat >>conftest.$ac_ext <<_ACEOF
19883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019884$ac_includes_default
19885#include <$ac_header>
19886_ACEOF
19887rm -f conftest.$ac_objext
19888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19889 (eval $ac_compile) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_header_compiler=yes
19900else
19901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019902sed 's/^/| /' conftest.$ac_ext >&5
19903
John Criswell7a73b802003-06-30 21:59:07 +000019904ac_header_compiler=no
19905fi
19906rm -f conftest.$ac_objext conftest.$ac_ext
19907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19908echo "${ECHO_T}$ac_header_compiler" >&6
19909
19910# Is the header present?
19911echo "$as_me:$LINENO: checking $ac_header presence" >&5
19912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19913cat >conftest.$ac_ext <<_ACEOF
19914#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019920#include <$ac_header>
19921_ACEOF
19922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19924 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019925 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } >/dev/null; then
19930 if test -s conftest.err; then
19931 ac_cpp_err=$ac_c_preproc_warn_flag
19932 else
19933 ac_cpp_err=
19934 fi
19935else
19936 ac_cpp_err=yes
19937fi
19938if test -z "$ac_cpp_err"; then
19939 ac_header_preproc=yes
19940else
19941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019942sed 's/^/| /' conftest.$ac_ext >&5
19943
John Criswell7a73b802003-06-30 21:59:07 +000019944 ac_header_preproc=no
19945fi
19946rm -f conftest.err conftest.$ac_ext
19947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19948echo "${ECHO_T}$ac_header_preproc" >&6
19949
19950# So? What about this header?
19951case $ac_header_compiler:$ac_header_preproc in
19952 yes:no )
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19957 (
19958 cat <<\_ASBOX
19959## ------------------------------------ ##
19960## Report this to bug-autoconf@gnu.org. ##
19961## ------------------------------------ ##
19962_ASBOX
19963 ) |
19964 sed "s/^/$as_me: WARNING: /" >&2
19965 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019966 no:yes )
19967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19973 (
19974 cat <<\_ASBOX
19975## ------------------------------------ ##
19976## Report this to bug-autoconf@gnu.org. ##
19977## ------------------------------------ ##
19978_ASBOX
19979 ) |
19980 sed "s/^/$as_me: WARNING: /" >&2
19981 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019982esac
19983echo "$as_me:$LINENO: checking for $ac_header" >&5
19984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19985if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987else
19988 eval "$as_ac_Header=$ac_header_preproc"
19989fi
19990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19992
19993fi
19994if test `eval echo '${'$as_ac_Header'}'` = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19997_ACEOF
19998
19999fi
20000
20001done
20002
20003
20004
John Criswell7a73b802003-06-30 21:59:07 +000020005echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20006echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20007if test "${ac_cv_c_const+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009else
20010 cat >conftest.$ac_ext <<_ACEOF
20011#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020012/* confdefs.h. */
20013_ACEOF
20014cat confdefs.h >>conftest.$ac_ext
20015cat >>conftest.$ac_ext <<_ACEOF
20016/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020017
John Criswell7a73b802003-06-30 21:59:07 +000020018int
20019main ()
20020{
20021/* FIXME: Include the comments suggested by Paul. */
20022#ifndef __cplusplus
20023 /* Ultrix mips cc rejects this. */
20024 typedef int charset[2];
20025 const charset x;
20026 /* SunOS 4.1.1 cc rejects this. */
20027 char const *const *ccp;
20028 char **p;
20029 /* NEC SVR4.0.2 mips cc rejects this. */
20030 struct point {int x, y;};
20031 static struct point const zero = {0,0};
20032 /* AIX XL C 1.02.0.0 rejects this.
20033 It does not let you subtract one const X* pointer from another in
20034 an arm of an if-expression whose if-part is not a constant
20035 expression */
20036 const char *g = "string";
20037 ccp = &g + (g ? g-g : 0);
20038 /* HPUX 7.0 cc rejects these. */
20039 ++ccp;
20040 p = (char**) ccp;
20041 ccp = (char const *const *) p;
20042 { /* SCO 3.2v4 cc rejects this. */
20043 char *t;
20044 char const *s = 0 ? (char *) 0 : (char const *) 0;
20045
20046 *t++ = 0;
20047 }
20048 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20049 int x[] = {25, 17};
20050 const int *foo = &x[0];
20051 ++foo;
20052 }
20053 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20054 typedef const int *iptr;
20055 iptr p = 0;
20056 ++p;
20057 }
20058 { /* AIX XL C 1.02.0.0 rejects this saying
20059 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20060 struct s { int j; const int *ap[3]; };
20061 struct s *b; b->j = 5;
20062 }
20063 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20064 const int foo = 10;
20065 }
20066#endif
20067
20068 ;
20069 return 0;
20070}
20071_ACEOF
20072rm -f conftest.$ac_objext
20073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074 (eval $ac_compile) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } &&
20078 { ac_try='test -s conftest.$ac_objext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_c_const=yes
20085else
20086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020087sed 's/^/| /' conftest.$ac_ext >&5
20088
John Criswell7a73b802003-06-30 21:59:07 +000020089ac_cv_c_const=no
20090fi
20091rm -f conftest.$ac_objext conftest.$ac_ext
20092fi
20093echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20094echo "${ECHO_T}$ac_cv_c_const" >&6
20095if test $ac_cv_c_const = no; then
20096
20097cat >>confdefs.h <<\_ACEOF
20098#define const
20099_ACEOF
20100
20101fi
20102
20103echo "$as_me:$LINENO: checking for inline" >&5
20104echo $ECHO_N "checking for inline... $ECHO_C" >&6
20105if test "${ac_cv_c_inline+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107else
20108 ac_cv_c_inline=no
20109for ac_kw in inline __inline__ __inline; do
20110 cat >conftest.$ac_ext <<_ACEOF
20111#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020112/* confdefs.h. */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020117#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020118typedef int foo_t;
20119static $ac_kw foo_t static_foo () {return 0; }
20120$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020121#endif
20122
20123_ACEOF
20124rm -f conftest.$ac_objext
20125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20126 (eval $ac_compile) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
20130 { ac_try='test -s conftest.$ac_objext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_c_inline=$ac_kw; break
20137else
20138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020139sed 's/^/| /' conftest.$ac_ext >&5
20140
John Criswell7a73b802003-06-30 21:59:07 +000020141fi
20142rm -f conftest.$ac_objext conftest.$ac_ext
20143done
20144
20145fi
20146echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20147echo "${ECHO_T}$ac_cv_c_inline" >&6
20148case $ac_cv_c_inline in
20149 inline | yes) ;;
20150 no)
20151cat >>confdefs.h <<\_ACEOF
20152#define inline
20153_ACEOF
20154 ;;
20155 *) cat >>confdefs.h <<_ACEOF
20156#define inline $ac_cv_c_inline
20157_ACEOF
20158 ;;
20159esac
20160
20161
20162echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20163echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20164if test "${ac_cv_c_bigendian+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167 # See if sys/param.h defines the BYTE_ORDER macro.
20168cat >conftest.$ac_ext <<_ACEOF
20169#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020170/* confdefs.h. */
20171_ACEOF
20172cat confdefs.h >>conftest.$ac_ext
20173cat >>conftest.$ac_ext <<_ACEOF
20174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020175#include <sys/types.h>
20176#include <sys/param.h>
20177
John Criswell7a73b802003-06-30 21:59:07 +000020178int
20179main ()
20180{
20181#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20182 bogus endian macros
20183#endif
20184
20185 ;
20186 return 0;
20187}
20188_ACEOF
20189rm -f conftest.$ac_objext
20190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191 (eval $ac_compile) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
20195 { ac_try='test -s conftest.$ac_objext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 # It does; now see whether it defined to BIG_ENDIAN or not.
20202cat >conftest.$ac_ext <<_ACEOF
20203#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020204/* confdefs.h. */
20205_ACEOF
20206cat confdefs.h >>conftest.$ac_ext
20207cat >>conftest.$ac_ext <<_ACEOF
20208/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020209#include <sys/types.h>
20210#include <sys/param.h>
20211
John Criswell7a73b802003-06-30 21:59:07 +000020212int
20213main ()
20214{
20215#if BYTE_ORDER != BIG_ENDIAN
20216 not big endian
20217#endif
20218
20219 ;
20220 return 0;
20221}
20222_ACEOF
20223rm -f conftest.$ac_objext
20224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225 (eval $ac_compile) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_cv_c_bigendian=yes
20236else
20237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020238sed 's/^/| /' conftest.$ac_ext >&5
20239
John Criswell7a73b802003-06-30 21:59:07 +000020240ac_cv_c_bigendian=no
20241fi
20242rm -f conftest.$ac_objext conftest.$ac_ext
20243else
20244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020245sed 's/^/| /' conftest.$ac_ext >&5
20246
John Criswell7a73b802003-06-30 21:59:07 +000020247# It does not; compile a test program.
20248if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020249 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020250 ac_cv_c_bigendian=unknown
20251 cat >conftest.$ac_ext <<_ACEOF
20252#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020253/* confdefs.h. */
20254_ACEOF
20255cat confdefs.h >>conftest.$ac_ext
20256cat >>conftest.$ac_ext <<_ACEOF
20257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020258short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20259short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20260void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20261short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20262short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20263void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020264int
20265main ()
20266{
20267 _ascii (); _ebcdic ();
20268 ;
20269 return 0;
20270}
20271_ACEOF
20272rm -f conftest.$ac_objext
20273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20274 (eval $ac_compile) 2>&5
20275 ac_status=$?
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -s conftest.$ac_objext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020284 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020285 ac_cv_c_bigendian=yes
20286fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020287if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020288 if test "$ac_cv_c_bigendian" = unknown; then
20289 ac_cv_c_bigendian=no
20290 else
20291 # finding both strings is unlikely to happen, but who knows?
20292 ac_cv_c_bigendian=unknown
20293 fi
20294fi
20295else
20296 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020297sed 's/^/| /' conftest.$ac_ext >&5
20298
John Criswell7a73b802003-06-30 21:59:07 +000020299fi
20300rm -f conftest.$ac_objext conftest.$ac_ext
20301else
20302 cat >conftest.$ac_ext <<_ACEOF
20303#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020309int
20310main ()
20311{
20312 /* Are we little or big endian? From Harbison&Steele. */
20313 union
20314 {
20315 long l;
20316 char c[sizeof (long)];
20317 } u;
20318 u.l = 1;
20319 exit (u.c[sizeof (long) - 1] == 1);
20320}
20321_ACEOF
20322rm -f conftest$ac_exeext
20323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20324 (eval $ac_link) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_c_bigendian=no
20334else
20335 echo "$as_me: program exited with status $ac_status" >&5
20336echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020337sed 's/^/| /' conftest.$ac_ext >&5
20338
John Criswell7a73b802003-06-30 21:59:07 +000020339( exit $ac_status )
20340ac_cv_c_bigendian=yes
20341fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020342rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020343fi
20344fi
20345rm -f conftest.$ac_objext conftest.$ac_ext
20346fi
20347echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20348echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20349case $ac_cv_c_bigendian in
20350 yes)
20351 cat >>confdefs.h <<\_ACEOF
20352#define ENDIAN_BIG 1
20353_ACEOF
20354 ;;
20355 no)
20356 cat >>confdefs.h <<\_ACEOF
20357#define ENDIAN_LITTLE 1
20358_ACEOF
20359 ;;
20360 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020361 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020362presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020363echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020364presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20365 { (exit 1); exit 1; }; } ;;
20366esac
20367
20368
20369echo "$as_me:$LINENO: checking for pid_t" >&5
20370echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20371if test "${ac_cv_type_pid_t+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373else
20374 cat >conftest.$ac_ext <<_ACEOF
20375#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020381$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020382int
20383main ()
20384{
20385if ((pid_t *) 0)
20386 return 0;
20387if (sizeof (pid_t))
20388 return 0;
20389 ;
20390 return 0;
20391}
20392_ACEOF
20393rm -f conftest.$ac_objext
20394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20395 (eval $ac_compile) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -s conftest.$ac_objext'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 ac_cv_type_pid_t=yes
20406else
20407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020408sed 's/^/| /' conftest.$ac_ext >&5
20409
John Criswell7a73b802003-06-30 21:59:07 +000020410ac_cv_type_pid_t=no
20411fi
20412rm -f conftest.$ac_objext conftest.$ac_ext
20413fi
20414echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20415echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20416if test $ac_cv_type_pid_t = yes; then
20417 :
20418else
20419
20420cat >>confdefs.h <<_ACEOF
20421#define pid_t int
20422_ACEOF
20423
20424fi
20425
20426echo "$as_me:$LINENO: checking for size_t" >&5
20427echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20428if test "${ac_cv_type_size_t+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20430else
20431 cat >conftest.$ac_ext <<_ACEOF
20432#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020433/* confdefs.h. */
20434_ACEOF
20435cat confdefs.h >>conftest.$ac_ext
20436cat >>conftest.$ac_ext <<_ACEOF
20437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020438$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020439int
20440main ()
20441{
20442if ((size_t *) 0)
20443 return 0;
20444if (sizeof (size_t))
20445 return 0;
20446 ;
20447 return 0;
20448}
20449_ACEOF
20450rm -f conftest.$ac_objext
20451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452 (eval $ac_compile) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } &&
20456 { ac_try='test -s conftest.$ac_objext'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 ac_cv_type_size_t=yes
20463else
20464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020465sed 's/^/| /' conftest.$ac_ext >&5
20466
John Criswell7a73b802003-06-30 21:59:07 +000020467ac_cv_type_size_t=no
20468fi
20469rm -f conftest.$ac_objext conftest.$ac_ext
20470fi
20471echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20472echo "${ECHO_T}$ac_cv_type_size_t" >&6
20473if test $ac_cv_type_size_t = yes; then
20474 :
20475else
20476
20477cat >>confdefs.h <<_ACEOF
20478#define size_t unsigned
20479_ACEOF
20480
20481fi
20482
20483echo "$as_me:$LINENO: checking for int64_t" >&5
20484echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20485if test "${ac_cv_type_int64_t+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20487else
20488 cat >conftest.$ac_ext <<_ACEOF
20489#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020490/* confdefs.h. */
20491_ACEOF
20492cat confdefs.h >>conftest.$ac_ext
20493cat >>conftest.$ac_ext <<_ACEOF
20494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020495$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020496int
20497main ()
20498{
20499if ((int64_t *) 0)
20500 return 0;
20501if (sizeof (int64_t))
20502 return 0;
20503 ;
20504 return 0;
20505}
20506_ACEOF
20507rm -f conftest.$ac_objext
20508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20509 (eval $ac_compile) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } &&
20513 { ac_try='test -s conftest.$ac_objext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_cv_type_int64_t=yes
20520else
20521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020522sed 's/^/| /' conftest.$ac_ext >&5
20523
John Criswell7a73b802003-06-30 21:59:07 +000020524ac_cv_type_int64_t=no
20525fi
20526rm -f conftest.$ac_objext conftest.$ac_ext
20527fi
20528echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20529echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20530if test $ac_cv_type_int64_t = yes; then
20531
20532cat >>confdefs.h <<_ACEOF
20533#define HAVE_INT64_T 1
20534_ACEOF
20535
20536
20537else
20538 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20539echo "$as_me: error: Type int64_t required but not found" >&2;}
20540 { (exit 1); exit 1; }; }
20541fi
20542
20543echo "$as_me:$LINENO: checking for uint64_t" >&5
20544echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20545if test "${ac_cv_type_uint64_t+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20547else
20548 cat >conftest.$ac_ext <<_ACEOF
20549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020555$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020556int
20557main ()
20558{
20559if ((uint64_t *) 0)
20560 return 0;
20561if (sizeof (uint64_t))
20562 return 0;
20563 ;
20564 return 0;
20565}
20566_ACEOF
20567rm -f conftest.$ac_objext
20568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20569 (eval $ac_compile) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -s conftest.$ac_objext'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; }; then
20579 ac_cv_type_uint64_t=yes
20580else
20581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020582sed 's/^/| /' conftest.$ac_ext >&5
20583
John Criswell7a73b802003-06-30 21:59:07 +000020584ac_cv_type_uint64_t=no
20585fi
20586rm -f conftest.$ac_objext conftest.$ac_ext
20587fi
20588echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20589echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20590if test $ac_cv_type_uint64_t = yes; then
20591
20592cat >>confdefs.h <<_ACEOF
20593#define HAVE_UINT64_T 1
20594_ACEOF
20595
20596
20597else
20598 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20599echo "$as_me: error: Type uint64_t required but not found" >&2;}
20600 { (exit 1); exit 1; }; }
20601fi
20602
20603echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20604echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20605if test "${ac_cv_header_time+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607else
20608 cat >conftest.$ac_ext <<_ACEOF
20609#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020610/* confdefs.h. */
20611_ACEOF
20612cat confdefs.h >>conftest.$ac_ext
20613cat >>conftest.$ac_ext <<_ACEOF
20614/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020615#include <sys/types.h>
20616#include <sys/time.h>
20617#include <time.h>
20618
John Criswell7a73b802003-06-30 21:59:07 +000020619int
20620main ()
20621{
20622if ((struct tm *) 0)
20623return 0;
20624 ;
20625 return 0;
20626}
20627_ACEOF
20628rm -f conftest.$ac_objext
20629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20630 (eval $ac_compile) 2>&5
20631 ac_status=$?
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
20634 { ac_try='test -s conftest.$ac_objext'
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; }; then
20640 ac_cv_header_time=yes
20641else
20642 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020643sed 's/^/| /' conftest.$ac_ext >&5
20644
John Criswell7a73b802003-06-30 21:59:07 +000020645ac_cv_header_time=no
20646fi
20647rm -f conftest.$ac_objext conftest.$ac_ext
20648fi
20649echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20650echo "${ECHO_T}$ac_cv_header_time" >&6
20651if test $ac_cv_header_time = yes; then
20652
20653cat >>confdefs.h <<\_ACEOF
20654#define TIME_WITH_SYS_TIME 1
20655_ACEOF
20656
20657fi
20658
20659echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20660echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20661if test "${ac_cv_struct_tm+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20663else
20664 cat >conftest.$ac_ext <<_ACEOF
20665#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020666/* confdefs.h. */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020671#include <sys/types.h>
20672#include <time.h>
20673
John Criswell7a73b802003-06-30 21:59:07 +000020674int
20675main ()
20676{
20677struct tm *tp; tp->tm_sec;
20678 ;
20679 return 0;
20680}
20681_ACEOF
20682rm -f conftest.$ac_objext
20683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20684 (eval $ac_compile) 2>&5
20685 ac_status=$?
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -s conftest.$ac_objext'
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20691 ac_status=$?
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; }; then
20694 ac_cv_struct_tm=time.h
20695else
20696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020697sed 's/^/| /' conftest.$ac_ext >&5
20698
John Criswell7a73b802003-06-30 21:59:07 +000020699ac_cv_struct_tm=sys/time.h
20700fi
20701rm -f conftest.$ac_objext conftest.$ac_ext
20702fi
20703echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20704echo "${ECHO_T}$ac_cv_struct_tm" >&6
20705if test $ac_cv_struct_tm = sys/time.h; then
20706
20707cat >>confdefs.h <<\_ACEOF
20708#define TM_IN_SYS_TIME 1
20709_ACEOF
20710
20711fi
20712
20713
John Criswell7a73b802003-06-30 21:59:07 +000020714echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20715echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20716if test "${ac_cv_cxx_namespaces+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20718else
20719
20720
20721 ac_ext=cc
20722ac_cpp='$CXXCPP $CPPFLAGS'
20723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20726
20727 cat >conftest.$ac_ext <<_ACEOF
20728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020729/* confdefs.h. */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020734namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020735int
20736main ()
20737{
20738using namespace Outer::Inner; return i;
20739 ;
20740 return 0;
20741}
20742_ACEOF
20743rm -f conftest.$ac_objext
20744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745 (eval $ac_compile) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try='test -s conftest.$ac_objext'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_cv_cxx_namespaces=yes
20756else
20757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020758sed 's/^/| /' conftest.$ac_ext >&5
20759
John Criswell7a73b802003-06-30 21:59:07 +000020760ac_cv_cxx_namespaces=no
20761fi
20762rm -f conftest.$ac_objext conftest.$ac_ext
20763 ac_ext=c
20764ac_cpp='$CPP $CPPFLAGS'
20765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767ac_compiler_gnu=$ac_cv_c_compiler_gnu
20768
20769
20770fi
20771echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20772echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20773if test "$ac_cv_cxx_namespaces" = yes; then
20774
20775cat >>confdefs.h <<\_ACEOF
20776#define HAVE_NAMESPACES
20777_ACEOF
20778
20779fi
20780
20781echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20782echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20783if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20785else
20786
20787
20788
20789 ac_ext=cc
20790ac_cpp='$CXXCPP $CPPFLAGS'
20791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20794
20795 cat >conftest.$ac_ext <<_ACEOF
20796#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020797/* confdefs.h. */
20798_ACEOF
20799cat confdefs.h >>conftest.$ac_ext
20800cat >>conftest.$ac_ext <<_ACEOF
20801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020802#include <ext/hash_map>
20803#ifdef HAVE_NAMESPACES
20804using namespace std;
20805#endif
John Criswell7a73b802003-06-30 21:59:07 +000020806int
20807main ()
20808{
20809hash_map<int, int> t; return 0;
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext
20815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816 (eval $ac_compile) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } &&
20820 { ac_try='test -s conftest.$ac_objext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_cv_cxx_have_ext_hash_map=std
20827else
20828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020829sed 's/^/| /' conftest.$ac_ext >&5
20830
John Criswell7a73b802003-06-30 21:59:07 +000020831ac_cv_cxx_have_ext_hash_map=no
20832fi
20833rm -f conftest.$ac_objext conftest.$ac_ext
20834 cat >conftest.$ac_ext <<_ACEOF
20835#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020836/* confdefs.h. */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020841#include <ext/hash_map>
20842#ifdef HAVE_NAMESPACES
20843using namespace __gnu_cxx;
20844#endif
John Criswell7a73b802003-06-30 21:59:07 +000020845int
20846main ()
20847{
20848hash_map<int, int> t; return 0;
20849 ;
20850 return 0;
20851}
20852_ACEOF
20853rm -f conftest.$ac_objext
20854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20855 (eval $ac_compile) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -s conftest.$ac_objext'
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 ac_cv_cxx_have_ext_hash_map=gnu
20866else
20867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020868sed 's/^/| /' conftest.$ac_ext >&5
20869
John Criswell7a73b802003-06-30 21:59:07 +000020870ac_cv_cxx_have_ext_hash_map=no
20871fi
20872rm -f conftest.$ac_objext conftest.$ac_ext
20873 ac_ext=c
20874ac_cpp='$CPP $CPPFLAGS'
20875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20877ac_compiler_gnu=$ac_cv_c_compiler_gnu
20878
20879
20880fi
20881echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20882echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20883if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20884
20885cat >>confdefs.h <<\_ACEOF
20886#define HAVE_STD_EXT_HASH_MAP
20887_ACEOF
20888
20889fi
20890if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20891
20892cat >>confdefs.h <<\_ACEOF
20893#define HAVE_GNU_EXT_HASH_MAP
20894_ACEOF
20895
20896fi
20897
20898echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20899echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20900if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20902else
20903
20904
20905
20906 ac_ext=cc
20907ac_cpp='$CXXCPP $CPPFLAGS'
20908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20911
20912 cat >conftest.$ac_ext <<_ACEOF
20913#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020914/* confdefs.h. */
20915_ACEOF
20916cat confdefs.h >>conftest.$ac_ext
20917cat >>conftest.$ac_ext <<_ACEOF
20918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020919#include <ext/hash_set>
20920#ifdef HAVE_NAMESPACES
20921using namespace std;
20922#endif
John Criswell7a73b802003-06-30 21:59:07 +000020923int
20924main ()
20925{
20926hash_set<int> t; return 0;
20927 ;
20928 return 0;
20929}
20930_ACEOF
20931rm -f conftest.$ac_objext
20932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20933 (eval $ac_compile) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_cxx_have_ext_hash_set=std
20944else
20945 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020946sed 's/^/| /' conftest.$ac_ext >&5
20947
John Criswell7a73b802003-06-30 21:59:07 +000020948ac_cv_cxx_have_ext_hash_set=no
20949fi
20950rm -f conftest.$ac_objext conftest.$ac_ext
20951 cat >conftest.$ac_ext <<_ACEOF
20952#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020953/* confdefs.h. */
20954_ACEOF
20955cat confdefs.h >>conftest.$ac_ext
20956cat >>conftest.$ac_ext <<_ACEOF
20957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020958#include <ext/hash_set>
20959#ifdef HAVE_NAMESPACES
20960using namespace __gnu_cxx;
20961#endif
John Criswell7a73b802003-06-30 21:59:07 +000020962int
20963main ()
20964{
20965hash_set<int> t; return 0;
20966 ;
20967 return 0;
20968}
20969_ACEOF
20970rm -f conftest.$ac_objext
20971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20972 (eval $ac_compile) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } &&
20976 { ac_try='test -s conftest.$ac_objext'
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982 ac_cv_cxx_have_ext_hash_set=gnu
20983else
20984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020985sed 's/^/| /' conftest.$ac_ext >&5
20986
John Criswell7a73b802003-06-30 21:59:07 +000020987ac_cv_cxx_have_ext_hash_set=no
20988fi
20989rm -f conftest.$ac_objext conftest.$ac_ext
20990 ac_ext=c
20991ac_cpp='$CPP $CPPFLAGS'
20992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20994ac_compiler_gnu=$ac_cv_c_compiler_gnu
20995
20996
20997fi
20998echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20999echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21000if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21001
21002cat >>confdefs.h <<\_ACEOF
21003#define HAVE_STD_EXT_HASH_SET
21004_ACEOF
21005
21006fi
21007if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21008
21009cat >>confdefs.h <<\_ACEOF
21010#define HAVE_GNU_EXT_HASH_SET
21011_ACEOF
21012
21013fi
21014
21015echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21016echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21017if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21019else
21020
21021
21022
21023 ac_ext=cc
21024ac_cpp='$CXXCPP $CPPFLAGS'
21025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21028
21029 cat >conftest.$ac_ext <<_ACEOF
21030#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021031/* confdefs.h. */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021036#include <ext/slist>
21037#ifdef HAVE_NAMESPACES
21038using namespace std;
21039#endif
John Criswell7a73b802003-06-30 21:59:07 +000021040int
21041main ()
21042{
21043slist<int> s; return 0;
21044 ;
21045 return 0;
21046}
21047_ACEOF
21048rm -f conftest.$ac_objext
21049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21050 (eval $ac_compile) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try='test -s conftest.$ac_objext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_cxx_have_ext_slist=std
21061else
21062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021063sed 's/^/| /' conftest.$ac_ext >&5
21064
John Criswell7a73b802003-06-30 21:59:07 +000021065ac_cv_cxx_have_ext_slist=no
21066fi
21067rm -f conftest.$ac_objext conftest.$ac_ext
21068 cat >conftest.$ac_ext <<_ACEOF
21069#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021070/* confdefs.h. */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
21074/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021075#include <ext/slist>
21076#ifdef HAVE_NAMESPACES
21077using namespace __gnu_cxx;
21078#endif
John Criswell7a73b802003-06-30 21:59:07 +000021079int
21080main ()
21081{
21082slist<int> s; return 0;
21083 ;
21084 return 0;
21085}
21086_ACEOF
21087rm -f conftest.$ac_objext
21088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089 (eval $ac_compile) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } &&
21093 { ac_try='test -s conftest.$ac_objext'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 ac_cv_cxx_have_ext_slist=gnu
21100else
21101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021102sed 's/^/| /' conftest.$ac_ext >&5
21103
John Criswell7a73b802003-06-30 21:59:07 +000021104ac_cv_cxx_have_ext_slist=no
21105fi
21106rm -f conftest.$ac_objext conftest.$ac_ext
21107
21108 ac_ext=c
21109ac_cpp='$CPP $CPPFLAGS'
21110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21112ac_compiler_gnu=$ac_cv_c_compiler_gnu
21113
21114
21115fi
21116echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21117echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21118if test "$ac_cv_cxx_have_ext_slist" = std; then
21119
21120cat >>confdefs.h <<\_ACEOF
21121#define HAVE_EXT_SLIST std
21122_ACEOF
21123
21124fi
21125if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21126
21127cat >>confdefs.h <<\_ACEOF
21128#define HAVE_EXT_SLIST gnu
21129_ACEOF
21130
21131fi
21132
21133echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21134echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21135if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21137else
21138
21139
21140
21141 ac_ext=cc
21142ac_cpp='$CXXCPP $CPPFLAGS'
21143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21146
21147 cat >conftest.$ac_ext <<_ACEOF
21148#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021149/* confdefs.h. */
21150_ACEOF
21151cat confdefs.h >>conftest.$ac_ext
21152cat >>conftest.$ac_ext <<_ACEOF
21153/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021154#include <iterator>
21155#ifdef HAVE_NAMESPACES
21156using namespace std;
21157#endif
John Criswell7a73b802003-06-30 21:59:07 +000021158int
21159main ()
21160{
21161iterator<int,int,int> t; return 0;
21162 ;
21163 return 0;
21164}
21165_ACEOF
21166rm -f conftest.$ac_objext
21167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168 (eval $ac_compile) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; }; then
21178 ac_cv_cxx_have_std_iterator=yes
21179else
21180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021181sed 's/^/| /' conftest.$ac_ext >&5
21182
John Criswell7a73b802003-06-30 21:59:07 +000021183ac_cv_cxx_have_std_iterator=no
21184fi
21185rm -f conftest.$ac_objext conftest.$ac_ext
21186 ac_ext=c
21187ac_cpp='$CPP $CPPFLAGS'
21188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190ac_compiler_gnu=$ac_cv_c_compiler_gnu
21191
21192
21193fi
21194echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21195echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21196if test "$ac_cv_cxx_have_std_iterator" = yes; then
21197
21198cat >>confdefs.h <<\_ACEOF
21199#define HAVE_STD_ITERATOR
21200_ACEOF
21201
21202fi
21203
21204echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21205echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21206if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21208else
21209
21210
21211
21212 ac_ext=cc
21213ac_cpp='$CXXCPP $CPPFLAGS'
21214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21217
21218 cat >conftest.$ac_ext <<_ACEOF
21219#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021220/* confdefs.h. */
21221_ACEOF
21222cat confdefs.h >>conftest.$ac_ext
21223cat >>conftest.$ac_ext <<_ACEOF
21224/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021225#include <iterator>
21226#ifdef HAVE_NAMESPACES
21227using namespace std;
21228#endif
John Criswell7a73b802003-06-30 21:59:07 +000021229int
21230main ()
21231{
John Criswellc78022e2003-07-29 19:11:58 +000021232bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021233 ;
21234 return 0;
21235}
21236_ACEOF
21237rm -f conftest.$ac_objext
21238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239 (eval $ac_compile) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } &&
21243 { ac_try='test -s conftest.$ac_objext'
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; }; then
21249 ac_cv_cxx_have_bi_iterator=yes
21250else
21251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021252sed 's/^/| /' conftest.$ac_ext >&5
21253
John Criswell7a73b802003-06-30 21:59:07 +000021254ac_cv_cxx_have_bi_iterator=no
21255fi
21256rm -f conftest.$ac_objext conftest.$ac_ext
21257 ac_ext=c
21258ac_cpp='$CPP $CPPFLAGS'
21259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261ac_compiler_gnu=$ac_cv_c_compiler_gnu
21262
21263
21264fi
21265echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21266echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21267if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21268
21269cat >>confdefs.h <<\_ACEOF
21270#define HAVE_BI_ITERATOR
21271_ACEOF
21272
21273fi
21274
21275echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21276echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21277if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21279else
21280
21281
21282
21283 ac_ext=cc
21284ac_cpp='$CXXCPP $CPPFLAGS'
21285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21288
21289 cat >conftest.$ac_ext <<_ACEOF
21290#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021291/* confdefs.h. */
21292_ACEOF
21293cat confdefs.h >>conftest.$ac_ext
21294cat >>conftest.$ac_ext <<_ACEOF
21295/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021296#include <iterator>
21297#ifdef HAVE_NAMESPACES
21298using namespace std;
21299#endif
John Criswell7a73b802003-06-30 21:59:07 +000021300int
21301main ()
21302{
John Criswellc78022e2003-07-29 19:11:58 +000021303forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021304 ;
21305 return 0;
21306}
21307_ACEOF
21308rm -f conftest.$ac_objext
21309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21310 (eval $ac_compile) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -s conftest.$ac_objext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 ac_cv_cxx_have_fwd_iterator=yes
21321else
21322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021323sed 's/^/| /' conftest.$ac_ext >&5
21324
John Criswell7a73b802003-06-30 21:59:07 +000021325ac_cv_cxx_have_fwd_iterator=no
21326fi
21327rm -f conftest.$ac_objext conftest.$ac_ext
21328 ac_ext=c
21329ac_cpp='$CPP $CPPFLAGS'
21330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332ac_compiler_gnu=$ac_cv_c_compiler_gnu
21333
21334
21335fi
21336echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21337echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21338if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21339
21340cat >>confdefs.h <<\_ACEOF
21341#define HAVE_FWD_ITERATOR
21342_ACEOF
21343
21344fi
21345
21346
21347# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21348# for constant arguments. Useless!
21349echo "$as_me:$LINENO: checking for working alloca.h" >&5
21350echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21351if test "${ac_cv_working_alloca_h+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21353else
21354 cat >conftest.$ac_ext <<_ACEOF
21355#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021356/* confdefs.h. */
21357_ACEOF
21358cat confdefs.h >>conftest.$ac_ext
21359cat >>conftest.$ac_ext <<_ACEOF
21360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021361#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021362int
21363main ()
21364{
21365char *p = (char *) alloca (2 * sizeof (int));
21366 ;
21367 return 0;
21368}
21369_ACEOF
21370rm -f conftest.$ac_objext conftest$ac_exeext
21371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21372 (eval $ac_link) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } &&
21376 { ac_try='test -s conftest$ac_exeext'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 ac_cv_working_alloca_h=yes
21383else
21384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021385sed 's/^/| /' conftest.$ac_ext >&5
21386
John Criswell7a73b802003-06-30 21:59:07 +000021387ac_cv_working_alloca_h=no
21388fi
21389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21390fi
21391echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21392echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21393if test $ac_cv_working_alloca_h = yes; then
21394
21395cat >>confdefs.h <<\_ACEOF
21396#define HAVE_ALLOCA_H 1
21397_ACEOF
21398
21399fi
21400
21401echo "$as_me:$LINENO: checking for alloca" >&5
21402echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21403if test "${ac_cv_func_alloca_works+set}" = set; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21405else
21406 cat >conftest.$ac_ext <<_ACEOF
21407#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021413#ifdef __GNUC__
21414# define alloca __builtin_alloca
21415#else
21416# ifdef _MSC_VER
21417# include <malloc.h>
21418# define alloca _alloca
21419# else
21420# if HAVE_ALLOCA_H
21421# include <alloca.h>
21422# else
21423# ifdef _AIX
21424 #pragma alloca
21425# else
21426# ifndef alloca /* predefined by HP cc +Olibcalls */
21427char *alloca ();
21428# endif
21429# endif
21430# endif
21431# endif
21432#endif
21433
John Criswell7a73b802003-06-30 21:59:07 +000021434int
21435main ()
21436{
21437char *p = (char *) alloca (1);
21438 ;
21439 return 0;
21440}
21441_ACEOF
21442rm -f conftest.$ac_objext conftest$ac_exeext
21443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444 (eval $ac_link) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -s conftest$ac_exeext'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_func_alloca_works=yes
21455else
21456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021457sed 's/^/| /' conftest.$ac_ext >&5
21458
John Criswell7a73b802003-06-30 21:59:07 +000021459ac_cv_func_alloca_works=no
21460fi
21461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21462fi
21463echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21464echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21465
21466if test $ac_cv_func_alloca_works = yes; then
21467
21468cat >>confdefs.h <<\_ACEOF
21469#define HAVE_ALLOCA 1
21470_ACEOF
21471
21472else
21473 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21474# that cause trouble. Some versions do not even contain alloca or
21475# contain a buggy version. If you still want to use their alloca,
21476# use ar to extract alloca.o from them instead of compiling alloca.c.
21477
21478ALLOCA=alloca.$ac_objext
21479
21480cat >>confdefs.h <<\_ACEOF
21481#define C_ALLOCA 1
21482_ACEOF
21483
21484
21485echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21486echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21487if test "${ac_cv_os_cray+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21489else
21490 cat >conftest.$ac_ext <<_ACEOF
21491#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021492/* confdefs.h. */
21493_ACEOF
21494cat confdefs.h >>conftest.$ac_ext
21495cat >>conftest.$ac_ext <<_ACEOF
21496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021497#if defined(CRAY) && ! defined(CRAY2)
21498webecray
21499#else
21500wenotbecray
21501#endif
21502
21503_ACEOF
21504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021505 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021506 ac_cv_os_cray=yes
21507else
21508 ac_cv_os_cray=no
21509fi
21510rm -f conftest*
21511
21512fi
21513echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21514echo "${ECHO_T}$ac_cv_os_cray" >&6
21515if test $ac_cv_os_cray = yes; then
21516 for ac_func in _getb67 GETB67 getb67; do
21517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21518echo "$as_me:$LINENO: checking for $ac_func" >&5
21519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21520if eval "test \"\${$as_ac_var+set}\" = set"; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522else
21523 cat >conftest.$ac_ext <<_ACEOF
21524#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021525/* confdefs.h. */
21526_ACEOF
21527cat confdefs.h >>conftest.$ac_ext
21528cat >>conftest.$ac_ext <<_ACEOF
21529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021530/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021531 which can conflict with char $ac_func (); below.
21532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21533 <limits.h> exists even on freestanding compilers. */
21534#ifdef __STDC__
21535# include <limits.h>
21536#else
21537# include <assert.h>
21538#endif
John Criswell7a73b802003-06-30 21:59:07 +000021539/* Override any gcc2 internal prototype to avoid an error. */
21540#ifdef __cplusplus
21541extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021542{
John Criswell7a73b802003-06-30 21:59:07 +000021543#endif
21544/* We use char because int might match the return type of a gcc2
21545 builtin and then its argument prototype would still apply. */
21546char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021547/* The GNU C library defines this for functions which it implements
21548 to always fail with ENOSYS. Some functions are actually named
21549 something starting with __ and the normal name is an alias. */
21550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21551choke me
21552#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021553char (*f) () = $ac_func;
21554#endif
21555#ifdef __cplusplus
21556}
John Criswell7a73b802003-06-30 21:59:07 +000021557#endif
21558
John Criswell0c38eaf2003-09-10 15:17:25 +000021559int
21560main ()
21561{
21562return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021563 ;
21564 return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext conftest$ac_exeext
21568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21569 (eval $ac_link) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 eval "$as_ac_var=yes"
21580else
21581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021582sed 's/^/| /' conftest.$ac_ext >&5
21583
John Criswell7a73b802003-06-30 21:59:07 +000021584eval "$as_ac_var=no"
21585fi
21586rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21587fi
21588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21589echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21590if test `eval echo '${'$as_ac_var'}'` = yes; then
21591
21592cat >>confdefs.h <<_ACEOF
21593#define CRAY_STACKSEG_END $ac_func
21594_ACEOF
21595
21596 break
21597fi
21598
21599 done
21600fi
21601
21602echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21603echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21604if test "${ac_cv_c_stack_direction+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21606else
21607 if test "$cross_compiling" = yes; then
21608 ac_cv_c_stack_direction=0
21609else
21610 cat >conftest.$ac_ext <<_ACEOF
21611#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021617int
21618find_stack_direction ()
21619{
21620 static char *addr = 0;
21621 auto char dummy;
21622 if (addr == 0)
21623 {
21624 addr = &dummy;
21625 return find_stack_direction ();
21626 }
21627 else
21628 return (&dummy > addr) ? 1 : -1;
21629}
21630
21631int
21632main ()
21633{
21634 exit (find_stack_direction () < 0);
21635}
21636_ACEOF
21637rm -f conftest$ac_exeext
21638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21639 (eval $ac_link) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_cv_c_stack_direction=1
21649else
21650 echo "$as_me: program exited with status $ac_status" >&5
21651echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021652sed 's/^/| /' conftest.$ac_ext >&5
21653
John Criswell7a73b802003-06-30 21:59:07 +000021654( exit $ac_status )
21655ac_cv_c_stack_direction=-1
21656fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021657rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021658fi
21659fi
21660echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21661echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21662
21663cat >>confdefs.h <<_ACEOF
21664#define STACK_DIRECTION $ac_cv_c_stack_direction
21665_ACEOF
21666
21667
21668fi
21669
21670if test $ac_cv_c_compiler_gnu = yes; then
21671 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21672echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21673if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675else
21676 ac_pattern="Autoconf.*'x'"
21677 cat >conftest.$ac_ext <<_ACEOF
21678#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021679/* confdefs.h. */
21680_ACEOF
21681cat confdefs.h >>conftest.$ac_ext
21682cat >>conftest.$ac_ext <<_ACEOF
21683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021684#include <sgtty.h>
21685Autoconf TIOCGETP
21686_ACEOF
21687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021688 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021689 ac_cv_prog_gcc_traditional=yes
21690else
21691 ac_cv_prog_gcc_traditional=no
21692fi
21693rm -f conftest*
21694
21695
21696 if test $ac_cv_prog_gcc_traditional = no; then
21697 cat >conftest.$ac_ext <<_ACEOF
21698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021704#include <termio.h>
21705Autoconf TCGETA
21706_ACEOF
21707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021708 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021709 ac_cv_prog_gcc_traditional=yes
21710fi
21711rm -f conftest*
21712
21713 fi
21714fi
21715echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21716echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21717 if test $ac_cv_prog_gcc_traditional = yes; then
21718 CC="$CC -traditional"
21719 fi
21720fi
21721
21722echo "$as_me:$LINENO: checking for working memcmp" >&5
21723echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21724if test "${ac_cv_func_memcmp_working+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21726else
21727 if test "$cross_compiling" = yes; then
21728 ac_cv_func_memcmp_working=no
21729else
21730 cat >conftest.$ac_ext <<_ACEOF
21731#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021732/* confdefs.h. */
21733_ACEOF
21734cat confdefs.h >>conftest.$ac_ext
21735cat >>conftest.$ac_ext <<_ACEOF
21736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021737
John Criswell7a73b802003-06-30 21:59:07 +000021738int
21739main ()
21740{
21741
21742 /* Some versions of memcmp are not 8-bit clean. */
21743 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21744 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21745 exit (1);
21746
21747 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21748 or more and with at least one buffer not starting on a 4-byte boundary.
21749 William Lewis provided this test program. */
21750 {
21751 char foo[21];
21752 char bar[21];
21753 int i;
21754 for (i = 0; i < 4; i++)
21755 {
21756 char *a = foo + i;
21757 char *b = bar + i;
21758 strcpy (a, "--------01111111");
21759 strcpy (b, "--------10000000");
21760 if (memcmp (a, b, 16) >= 0)
21761 exit (1);
21762 }
21763 exit (0);
21764 }
21765
21766 ;
21767 return 0;
21768}
21769_ACEOF
21770rm -f conftest$ac_exeext
21771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21772 (eval $ac_link) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; }; then
21781 ac_cv_func_memcmp_working=yes
21782else
21783 echo "$as_me: program exited with status $ac_status" >&5
21784echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021785sed 's/^/| /' conftest.$ac_ext >&5
21786
John Criswell7a73b802003-06-30 21:59:07 +000021787( exit $ac_status )
21788ac_cv_func_memcmp_working=no
21789fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021790rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021791fi
21792fi
21793echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21794echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21795test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21796
21797
21798
21799for ac_header in stdlib.h unistd.h
21800do
21801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21802if eval "test \"\${$as_ac_Header+set}\" = set"; then
21803 echo "$as_me:$LINENO: checking for $ac_header" >&5
21804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21805if eval "test \"\${$as_ac_Header+set}\" = set"; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807fi
21808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21810else
21811 # Is the header compilable?
21812echo "$as_me:$LINENO: checking $ac_header usability" >&5
21813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21814cat >conftest.$ac_ext <<_ACEOF
21815#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021816/* confdefs.h. */
21817_ACEOF
21818cat confdefs.h >>conftest.$ac_ext
21819cat >>conftest.$ac_ext <<_ACEOF
21820/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021821$ac_includes_default
21822#include <$ac_header>
21823_ACEOF
21824rm -f conftest.$ac_objext
21825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21826 (eval $ac_compile) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); } &&
21830 { ac_try='test -s conftest.$ac_objext'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; }; then
21836 ac_header_compiler=yes
21837else
21838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021839sed 's/^/| /' conftest.$ac_ext >&5
21840
John Criswell7a73b802003-06-30 21:59:07 +000021841ac_header_compiler=no
21842fi
21843rm -f conftest.$ac_objext conftest.$ac_ext
21844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21845echo "${ECHO_T}$ac_header_compiler" >&6
21846
21847# Is the header present?
21848echo "$as_me:$LINENO: checking $ac_header presence" >&5
21849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21850cat >conftest.$ac_ext <<_ACEOF
21851#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021857#include <$ac_header>
21858_ACEOF
21859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21861 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021862 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021863 rm -f conftest.er1
21864 cat conftest.err >&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } >/dev/null; then
21867 if test -s conftest.err; then
21868 ac_cpp_err=$ac_c_preproc_warn_flag
21869 else
21870 ac_cpp_err=
21871 fi
21872else
21873 ac_cpp_err=yes
21874fi
21875if test -z "$ac_cpp_err"; then
21876 ac_header_preproc=yes
21877else
21878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021879sed 's/^/| /' conftest.$ac_ext >&5
21880
John Criswell7a73b802003-06-30 21:59:07 +000021881 ac_header_preproc=no
21882fi
21883rm -f conftest.err conftest.$ac_ext
21884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21885echo "${ECHO_T}$ac_header_preproc" >&6
21886
21887# So? What about this header?
21888case $ac_header_compiler:$ac_header_preproc in
21889 yes:no )
21890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21894 (
21895 cat <<\_ASBOX
21896## ------------------------------------ ##
21897## Report this to bug-autoconf@gnu.org. ##
21898## ------------------------------------ ##
21899_ASBOX
21900 ) |
21901 sed "s/^/$as_me: WARNING: /" >&2
21902 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021903 no:yes )
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21910 (
21911 cat <<\_ASBOX
21912## ------------------------------------ ##
21913## Report this to bug-autoconf@gnu.org. ##
21914## ------------------------------------ ##
21915_ASBOX
21916 ) |
21917 sed "s/^/$as_me: WARNING: /" >&2
21918 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021919esac
21920echo "$as_me:$LINENO: checking for $ac_header" >&5
21921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21922if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924else
21925 eval "$as_ac_Header=$ac_header_preproc"
21926fi
21927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21929
21930fi
21931if test `eval echo '${'$as_ac_Header'}'` = yes; then
21932 cat >>confdefs.h <<_ACEOF
21933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21934_ACEOF
21935
21936fi
21937
21938done
21939
21940
21941for ac_func in getpagesize
21942do
21943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21944echo "$as_me:$LINENO: checking for $ac_func" >&5
21945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21946if eval "test \"\${$as_ac_var+set}\" = set"; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948else
21949 cat >conftest.$ac_ext <<_ACEOF
21950#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021951/* confdefs.h. */
21952_ACEOF
21953cat confdefs.h >>conftest.$ac_ext
21954cat >>conftest.$ac_ext <<_ACEOF
21955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021956/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021957 which can conflict with char $ac_func (); below.
21958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21959 <limits.h> exists even on freestanding compilers. */
21960#ifdef __STDC__
21961# include <limits.h>
21962#else
21963# include <assert.h>
21964#endif
John Criswell7a73b802003-06-30 21:59:07 +000021965/* Override any gcc2 internal prototype to avoid an error. */
21966#ifdef __cplusplus
21967extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021968{
John Criswell7a73b802003-06-30 21:59:07 +000021969#endif
21970/* We use char because int might match the return type of a gcc2
21971 builtin and then its argument prototype would still apply. */
21972char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021973/* The GNU C library defines this for functions which it implements
21974 to always fail with ENOSYS. Some functions are actually named
21975 something starting with __ and the normal name is an alias. */
21976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21977choke me
21978#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021979char (*f) () = $ac_func;
21980#endif
21981#ifdef __cplusplus
21982}
John Criswell7a73b802003-06-30 21:59:07 +000021983#endif
21984
John Criswell0c38eaf2003-09-10 15:17:25 +000021985int
21986main ()
21987{
21988return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021989 ;
21990 return 0;
21991}
21992_ACEOF
21993rm -f conftest.$ac_objext conftest$ac_exeext
21994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21995 (eval $ac_link) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
21999 { ac_try='test -s conftest$ac_exeext'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22002 ac_status=$?
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; }; then
22005 eval "$as_ac_var=yes"
22006else
22007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022008sed 's/^/| /' conftest.$ac_ext >&5
22009
John Criswell7a73b802003-06-30 21:59:07 +000022010eval "$as_ac_var=no"
22011fi
22012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22013fi
22014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22016if test `eval echo '${'$as_ac_var'}'` = yes; then
22017 cat >>confdefs.h <<_ACEOF
22018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22019_ACEOF
22020
22021fi
22022done
22023
22024echo "$as_me:$LINENO: checking for working mmap" >&5
22025echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22026if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22028else
22029 if test "$cross_compiling" = yes; then
22030 ac_cv_func_mmap_fixed_mapped=no
22031else
22032 cat >conftest.$ac_ext <<_ACEOF
22033#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022034/* confdefs.h. */
22035_ACEOF
22036cat confdefs.h >>conftest.$ac_ext
22037cat >>conftest.$ac_ext <<_ACEOF
22038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022039$ac_includes_default
22040/* malloc might have been renamed as rpl_malloc. */
22041#undef malloc
22042
22043/* Thanks to Mike Haertel and Jim Avera for this test.
22044 Here is a matrix of mmap possibilities:
22045 mmap private not fixed
22046 mmap private fixed at somewhere currently unmapped
22047 mmap private fixed at somewhere already mapped
22048 mmap shared not fixed
22049 mmap shared fixed at somewhere currently unmapped
22050 mmap shared fixed at somewhere already mapped
22051 For private mappings, we should verify that changes cannot be read()
22052 back from the file, nor mmap's back from the file at a different
22053 address. (There have been systems where private was not correctly
22054 implemented like the infamous i386 svr4.0, and systems where the
22055 VM page cache was not coherent with the file system buffer cache
22056 like early versions of FreeBSD and possibly contemporary NetBSD.)
22057 For shared mappings, we should conversely verify that changes get
22058 propagated back to all the places they're supposed to be.
22059
22060 Grep wants private fixed already mapped.
22061 The main things grep needs to know about mmap are:
22062 * does it exist and is it safe to write into the mmap'd area
22063 * how to use it (BSD variants) */
22064
22065#include <fcntl.h>
22066#include <sys/mman.h>
22067
22068#if !STDC_HEADERS && !HAVE_STDLIB_H
22069char *malloc ();
22070#endif
22071
22072/* This mess was copied from the GNU getpagesize.h. */
22073#if !HAVE_GETPAGESIZE
22074/* Assume that all systems that can run configure have sys/param.h. */
22075# if !HAVE_SYS_PARAM_H
22076# define HAVE_SYS_PARAM_H 1
22077# endif
22078
22079# ifdef _SC_PAGESIZE
22080# define getpagesize() sysconf(_SC_PAGESIZE)
22081# else /* no _SC_PAGESIZE */
22082# if HAVE_SYS_PARAM_H
22083# include <sys/param.h>
22084# ifdef EXEC_PAGESIZE
22085# define getpagesize() EXEC_PAGESIZE
22086# else /* no EXEC_PAGESIZE */
22087# ifdef NBPG
22088# define getpagesize() NBPG * CLSIZE
22089# ifndef CLSIZE
22090# define CLSIZE 1
22091# endif /* no CLSIZE */
22092# else /* no NBPG */
22093# ifdef NBPC
22094# define getpagesize() NBPC
22095# else /* no NBPC */
22096# ifdef PAGESIZE
22097# define getpagesize() PAGESIZE
22098# endif /* PAGESIZE */
22099# endif /* no NBPC */
22100# endif /* no NBPG */
22101# endif /* no EXEC_PAGESIZE */
22102# else /* no HAVE_SYS_PARAM_H */
22103# define getpagesize() 8192 /* punt totally */
22104# endif /* no HAVE_SYS_PARAM_H */
22105# endif /* no _SC_PAGESIZE */
22106
22107#endif /* no HAVE_GETPAGESIZE */
22108
22109int
22110main ()
22111{
22112 char *data, *data2, *data3;
22113 int i, pagesize;
22114 int fd;
22115
22116 pagesize = getpagesize ();
22117
22118 /* First, make a file with some known garbage in it. */
22119 data = (char *) malloc (pagesize);
22120 if (!data)
22121 exit (1);
22122 for (i = 0; i < pagesize; ++i)
22123 *(data + i) = rand ();
22124 umask (0);
22125 fd = creat ("conftest.mmap", 0600);
22126 if (fd < 0)
22127 exit (1);
22128 if (write (fd, data, pagesize) != pagesize)
22129 exit (1);
22130 close (fd);
22131
22132 /* Next, try to mmap the file at a fixed address which already has
22133 something else allocated at it. If we can, also make sure that
22134 we see the same garbage. */
22135 fd = open ("conftest.mmap", O_RDWR);
22136 if (fd < 0)
22137 exit (1);
22138 data2 = (char *) malloc (2 * pagesize);
22139 if (!data2)
22140 exit (1);
22141 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22142 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22143 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22144 exit (1);
22145 for (i = 0; i < pagesize; ++i)
22146 if (*(data + i) != *(data2 + i))
22147 exit (1);
22148
22149 /* Finally, make sure that changes to the mapped area do not
22150 percolate back to the file as seen by read(). (This is a bug on
22151 some variants of i386 svr4.0.) */
22152 for (i = 0; i < pagesize; ++i)
22153 *(data2 + i) = *(data2 + i) + 1;
22154 data3 = (char *) malloc (pagesize);
22155 if (!data3)
22156 exit (1);
22157 if (read (fd, data3, pagesize) != pagesize)
22158 exit (1);
22159 for (i = 0; i < pagesize; ++i)
22160 if (*(data + i) != *(data3 + i))
22161 exit (1);
22162 close (fd);
22163 exit (0);
22164}
22165_ACEOF
22166rm -f conftest$ac_exeext
22167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22168 (eval $ac_link) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 ac_cv_func_mmap_fixed_mapped=yes
22178else
22179 echo "$as_me: program exited with status $ac_status" >&5
22180echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022181sed 's/^/| /' conftest.$ac_ext >&5
22182
John Criswell7a73b802003-06-30 21:59:07 +000022183( exit $ac_status )
22184ac_cv_func_mmap_fixed_mapped=no
22185fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022186rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022187fi
22188fi
22189echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22190echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22191if test $ac_cv_func_mmap_fixed_mapped = yes; then
22192
22193cat >>confdefs.h <<\_ACEOF
22194#define HAVE_MMAP 1
22195_ACEOF
22196
22197fi
22198rm -f conftest.mmap
22199
22200echo "$as_me:$LINENO: checking for mmap of files" >&5
22201echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22202if test "${ac_cv_func_mmap_file+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22204else
22205
22206
22207 ac_ext=c
22208ac_cpp='$CPP $CPPFLAGS'
22209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22211ac_compiler_gnu=$ac_cv_c_compiler_gnu
22212
22213 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22215See \`config.log' for more details." >&5
22216echo "$as_me: error: cannot run test program while cross compiling
22217See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022218 { (exit 1); exit 1; }; }
22219else
22220 cat >conftest.$ac_ext <<_ACEOF
22221#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022222/* confdefs.h. */
22223_ACEOF
22224cat confdefs.h >>conftest.$ac_ext
22225cat >>conftest.$ac_ext <<_ACEOF
22226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022227
22228#ifdef HAVE_SYS_MMAN_H
22229#include <sys/mman.h>
22230#endif
22231
22232#ifdef HAVE_SYS_TYPES_H
22233#include <sys/types.h>
22234#endif
22235
22236#ifdef HAVE_FCNTL_H
22237#include <fcntl.h>
22238#endif
22239
22240 int fd;
22241 int main () {
22242 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22243_ACEOF
22244rm -f conftest$ac_exeext
22245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22246 (eval $ac_link) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22252 ac_status=$?
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 ac_cv_func_mmap_file=yes
22256else
22257 echo "$as_me: program exited with status $ac_status" >&5
22258echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022259sed 's/^/| /' conftest.$ac_ext >&5
22260
John Criswell7a73b802003-06-30 21:59:07 +000022261( exit $ac_status )
22262ac_cv_func_mmap_file=no
22263fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022264rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022265fi
22266 ac_ext=c
22267ac_cpp='$CPP $CPPFLAGS'
22268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272
22273fi
22274echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22275echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22276if test "$ac_cv_func_mmap_file" = yes; then
22277 cat >>confdefs.h <<\_ACEOF
22278#define HAVE_MMAP_FILE 1
22279_ACEOF
22280
22281 MMAP_FILE=yes
22282
22283fi
22284
22285if test ${ac_cv_func_mmap_file} = "no"
22286then
22287 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22288echo "$as_me: error: mmap() of files required but not found" >&2;}
22289 { (exit 1); exit 1; }; }
22290fi
22291echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22292echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22293if test "${ac_cv_header_mmap_anon+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22295else
22296
22297
22298 ac_ext=c
22299ac_cpp='$CPP $CPPFLAGS'
22300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22302ac_compiler_gnu=$ac_cv_c_compiler_gnu
22303
22304 cat >conftest.$ac_ext <<_ACEOF
22305#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022306/* confdefs.h. */
22307_ACEOF
22308cat confdefs.h >>conftest.$ac_ext
22309cat >>conftest.$ac_ext <<_ACEOF
22310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022311#include <sys/mman.h>
22312 #include <unistd.h>
22313 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022314int
22315main ()
22316{
22317mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22318 ;
22319 return 0;
22320}
22321_ACEOF
22322rm -f conftest.$ac_objext
22323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324 (eval $ac_compile) 2>&5
22325 ac_status=$?
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } &&
22328 { ac_try='test -s conftest.$ac_objext'
22329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330 (eval $ac_try) 2>&5
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
22334 ac_cv_header_mmap_anon=yes
22335else
22336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022337sed 's/^/| /' conftest.$ac_ext >&5
22338
John Criswell7a73b802003-06-30 21:59:07 +000022339ac_cv_header_mmap_anon=no
22340fi
22341rm -f conftest.$ac_objext conftest.$ac_ext
22342 ac_ext=c
22343ac_cpp='$CPP $CPPFLAGS'
22344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22346ac_compiler_gnu=$ac_cv_c_compiler_gnu
22347
22348
22349fi
22350echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22351echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22352if test "$ac_cv_header_mmap_anon" = yes; then
22353 cat >>confdefs.h <<\_ACEOF
22354#define HAVE_MMAP_ANONYMOUS 1
22355_ACEOF
22356
22357fi
22358
22359echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22360echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22361if test "${ac_cv_type_signal+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363else
22364 cat >conftest.$ac_ext <<_ACEOF
22365#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022366/* confdefs.h. */
22367_ACEOF
22368cat confdefs.h >>conftest.$ac_ext
22369cat >>conftest.$ac_ext <<_ACEOF
22370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022371#include <sys/types.h>
22372#include <signal.h>
22373#ifdef signal
22374# undef signal
22375#endif
22376#ifdef __cplusplus
22377extern "C" void (*signal (int, void (*)(int)))(int);
22378#else
22379void (*signal ()) ();
22380#endif
22381
John Criswell7a73b802003-06-30 21:59:07 +000022382int
22383main ()
22384{
22385int i;
22386 ;
22387 return 0;
22388}
22389_ACEOF
22390rm -f conftest.$ac_objext
22391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22392 (eval $ac_compile) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } &&
22396 { ac_try='test -s conftest.$ac_objext'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; }; then
22402 ac_cv_type_signal=void
22403else
22404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022405sed 's/^/| /' conftest.$ac_ext >&5
22406
John Criswell7a73b802003-06-30 21:59:07 +000022407ac_cv_type_signal=int
22408fi
22409rm -f conftest.$ac_objext conftest.$ac_ext
22410fi
22411echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22412echo "${ECHO_T}$ac_cv_type_signal" >&6
22413
22414cat >>confdefs.h <<_ACEOF
22415#define RETSIGTYPE $ac_cv_type_signal
22416_ACEOF
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
Brian Gaekec45be042003-10-07 06:01:34 +000022428
22429
22430for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022431do
22432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22433echo "$as_me:$LINENO: checking for $ac_func" >&5
22434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22435if eval "test \"\${$as_ac_var+set}\" = set"; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22437else
22438 cat >conftest.$ac_ext <<_ACEOF
22439#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022440/* confdefs.h. */
22441_ACEOF
22442cat confdefs.h >>conftest.$ac_ext
22443cat >>conftest.$ac_ext <<_ACEOF
22444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022445/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022446 which can conflict with char $ac_func (); below.
22447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22448 <limits.h> exists even on freestanding compilers. */
22449#ifdef __STDC__
22450# include <limits.h>
22451#else
22452# include <assert.h>
22453#endif
John Criswell7a73b802003-06-30 21:59:07 +000022454/* Override any gcc2 internal prototype to avoid an error. */
22455#ifdef __cplusplus
22456extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022457{
John Criswell7a73b802003-06-30 21:59:07 +000022458#endif
22459/* We use char because int might match the return type of a gcc2
22460 builtin and then its argument prototype would still apply. */
22461char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022462/* The GNU C library defines this for functions which it implements
22463 to always fail with ENOSYS. Some functions are actually named
22464 something starting with __ and the normal name is an alias. */
22465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22466choke me
22467#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022468char (*f) () = $ac_func;
22469#endif
22470#ifdef __cplusplus
22471}
John Criswell7a73b802003-06-30 21:59:07 +000022472#endif
22473
John Criswell0c38eaf2003-09-10 15:17:25 +000022474int
22475main ()
22476{
22477return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022478 ;
22479 return 0;
22480}
22481_ACEOF
22482rm -f conftest.$ac_objext conftest$ac_exeext
22483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22484 (eval $ac_link) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } &&
22488 { ac_try='test -s conftest$ac_exeext'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 eval "$as_ac_var=yes"
22495else
22496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022497sed 's/^/| /' conftest.$ac_ext >&5
22498
John Criswell7a73b802003-06-30 21:59:07 +000022499eval "$as_ac_var=no"
22500fi
22501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22502fi
22503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22505if test `eval echo '${'$as_ac_var'}'` = yes; then
22506 cat >>confdefs.h <<_ACEOF
22507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22508_ACEOF
22509
22510fi
22511done
22512
22513
22514
22515echo "$as_me:$LINENO: checking for mmap" >&5
22516echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22517if test "${ac_cv_func_mmap+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22519else
22520 cat >conftest.$ac_ext <<_ACEOF
22521#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022522/* confdefs.h. */
22523_ACEOF
22524cat confdefs.h >>conftest.$ac_ext
22525cat >>conftest.$ac_ext <<_ACEOF
22526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022527/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022528 which can conflict with char mmap (); below.
22529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22530 <limits.h> exists even on freestanding compilers. */
22531#ifdef __STDC__
22532# include <limits.h>
22533#else
22534# include <assert.h>
22535#endif
John Criswell7a73b802003-06-30 21:59:07 +000022536/* Override any gcc2 internal prototype to avoid an error. */
22537#ifdef __cplusplus
22538extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022539{
John Criswell7a73b802003-06-30 21:59:07 +000022540#endif
22541/* We use char because int might match the return type of a gcc2
22542 builtin and then its argument prototype would still apply. */
22543char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022544/* The GNU C library defines this for functions which it implements
22545 to always fail with ENOSYS. Some functions are actually named
22546 something starting with __ and the normal name is an alias. */
22547#if defined (__stub_mmap) || defined (__stub___mmap)
22548choke me
22549#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022550char (*f) () = mmap;
22551#endif
22552#ifdef __cplusplus
22553}
John Criswell7a73b802003-06-30 21:59:07 +000022554#endif
22555
John Criswell0c38eaf2003-09-10 15:17:25 +000022556int
22557main ()
22558{
22559return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022560 ;
22561 return 0;
22562}
22563_ACEOF
22564rm -f conftest.$ac_objext conftest$ac_exeext
22565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566 (eval $ac_link) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } &&
22570 { ac_try='test -s conftest$ac_exeext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_cv_func_mmap=yes
22577else
22578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022579sed 's/^/| /' conftest.$ac_ext >&5
22580
John Criswell7a73b802003-06-30 21:59:07 +000022581ac_cv_func_mmap=no
22582fi
22583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22584fi
22585echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22586echo "${ECHO_T}$ac_cv_func_mmap" >&6
22587if test $ac_cv_func_mmap = yes; then
22588 :
22589else
22590 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22591echo "$as_me: error: Function mmap() required but not found" >&2;}
22592 { (exit 1); exit 1; }; }
22593fi
22594
22595echo "$as_me:$LINENO: checking for mprotect" >&5
22596echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22597if test "${ac_cv_func_mprotect+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22599else
22600 cat >conftest.$ac_ext <<_ACEOF
22601#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022602/* confdefs.h. */
22603_ACEOF
22604cat confdefs.h >>conftest.$ac_ext
22605cat >>conftest.$ac_ext <<_ACEOF
22606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022607/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022608 which can conflict with char mprotect (); below.
22609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22610 <limits.h> exists even on freestanding compilers. */
22611#ifdef __STDC__
22612# include <limits.h>
22613#else
22614# include <assert.h>
22615#endif
John Criswell7a73b802003-06-30 21:59:07 +000022616/* Override any gcc2 internal prototype to avoid an error. */
22617#ifdef __cplusplus
22618extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022619{
John Criswell7a73b802003-06-30 21:59:07 +000022620#endif
22621/* We use char because int might match the return type of a gcc2
22622 builtin and then its argument prototype would still apply. */
22623char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022624/* The GNU C library defines this for functions which it implements
22625 to always fail with ENOSYS. Some functions are actually named
22626 something starting with __ and the normal name is an alias. */
22627#if defined (__stub_mprotect) || defined (__stub___mprotect)
22628choke me
22629#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022630char (*f) () = mprotect;
22631#endif
22632#ifdef __cplusplus
22633}
John Criswell7a73b802003-06-30 21:59:07 +000022634#endif
22635
John Criswell0c38eaf2003-09-10 15:17:25 +000022636int
22637main ()
22638{
22639return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022640 ;
22641 return 0;
22642}
22643_ACEOF
22644rm -f conftest.$ac_objext conftest$ac_exeext
22645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22646 (eval $ac_link) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); } &&
22650 { ac_try='test -s conftest$ac_exeext'
22651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652 (eval $ac_try) 2>&5
22653 ac_status=$?
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; }; then
22656 ac_cv_func_mprotect=yes
22657else
22658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022659sed 's/^/| /' conftest.$ac_ext >&5
22660
John Criswell7a73b802003-06-30 21:59:07 +000022661ac_cv_func_mprotect=no
22662fi
22663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22664fi
22665echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22666echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22667if test $ac_cv_func_mprotect = yes; then
22668 :
22669else
22670 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22671echo "$as_me: error: Function mprotect() required but not found" >&2;}
22672 { (exit 1); exit 1; }; }
22673fi
22674
22675
John Criswellb13092b2003-07-22 21:00:24 +000022676
John Criswell7a73b802003-06-30 21:59:07 +000022677# Check whether --enable-purify or --disable-purify was given.
22678if test "${enable_purify+set}" = set; then
22679 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022680
22681else
John Criswellb13092b2003-07-22 21:00:24 +000022682 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022683fi;
John Criswellb13092b2003-07-22 21:00:24 +000022684if test ${enableval} = "no"
22685then
22686 ENABLE_PURIFY=
22687
22688else
22689 ENABLE_PURIFY=ENABLE_PURIFY=1
22690
22691fi
22692
John Criswell7a73b802003-06-30 21:59:07 +000022693# Check whether --enable-optimized or --disable-optimized was given.
22694if test "${enable_optimized+set}" = set; then
22695 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022696
22697else
John Criswellb13092b2003-07-22 21:00:24 +000022698 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022699fi;
John Criswellb13092b2003-07-22 21:00:24 +000022700if test ${enableval} = "no"
22701then
22702 ENABLE_OPTIMIZED=
22703
22704else
22705 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22706
22707fi
22708
John Criswell7a73b802003-06-30 21:59:07 +000022709# Check whether --enable-spec or --disable-spec was given.
22710if test "${enable_spec+set}" = set; then
22711 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022712
22713else
John Criswellb13092b2003-07-22 21:00:24 +000022714 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022715fi;
John Criswellb13092b2003-07-22 21:00:24 +000022716if test ${enableval} = "no"
22717then
22718 USE_SPEC=
22719
22720else
22721 USE_SPEC=USE_SPEC=1
22722
22723fi
22724
John Criswell7a73b802003-06-30 21:59:07 +000022725# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22726if test "${enable_precompiled_bytecode+set}" = set; then
22727 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022728
22729else
John Criswellb13092b2003-07-22 21:00:24 +000022730 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022731fi;
John Criswellb13092b2003-07-22 21:00:24 +000022732if test ${enableval} = "no"
22733then
22734 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022735
John Criswellb13092b2003-07-22 21:00:24 +000022736else
22737 UPB=USE_PRECOMPILED_BYTECODE=1
22738
22739fi
John Criswellf02dbf02003-07-22 20:07:49 +000022740
22741
22742# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22743if test "${enable_llc_diffs+set}" = set; then
22744 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022745
22746else
John Criswellb13092b2003-07-22 21:00:24 +000022747 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022748fi;
John Criswellb13092b2003-07-22 21:00:24 +000022749if test ${enableval} = "no"
22750then
22751 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022752
John Criswellb13092b2003-07-22 21:00:24 +000022753else
22754 DISABLE_LLC_DIFFS=
22755
22756fi
22757
22758# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022759if test "${enable_jit+set}" = set; then
22760 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022761
22762else
John Criswellc78022e2003-07-29 19:11:58 +000022763 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022764fi;
John Criswellb13092b2003-07-22 21:00:24 +000022765
22766if test ${enableval} = "no"
22767then
22768 JIT=
22769
22770else
John Criswellc78022e2003-07-29 19:11:58 +000022771 case $target in
22772 *i*86*)
22773 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022774
John Criswellc78022e2003-07-29 19:11:58 +000022775 ;;
22776 *sparc*)
22777 JIT=TARGET_HAS_JIT=1
22778
22779 ;;
22780 *)
22781 JIT=
22782
22783 ;;
22784 esac
John Criswellb13092b2003-07-22 21:00:24 +000022785fi
John Criswell7a73b802003-06-30 21:59:07 +000022786
22787
John Criswellc78022e2003-07-29 19:11:58 +000022788
John Criswell7a73b802003-06-30 21:59:07 +000022789# Check whether --with-spec or --without-spec was given.
22790if test "${with_spec+set}" = set; then
22791 withval="$with_spec"
22792 SPEC_ROOT=$withval
22793
22794else
22795 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22796
22797fi;
22798
John Criswellc78022e2003-07-29 19:11:58 +000022799
John Criswell7a73b802003-06-30 21:59:07 +000022800# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22801if test "${with_llvmgccdir+set}" = set; then
22802 withval="$with_llvmgccdir"
22803 LLVMGCCDIR=$withval
22804
22805fi;
22806
John Criswellc78022e2003-07-29 19:11:58 +000022807
John Criswell7a73b802003-06-30 21:59:07 +000022808# Check whether --with-bcrepos or --without-bcrepos was given.
22809if test "${with_bcrepos+set}" = set; then
22810 withval="$with_bcrepos"
22811 BCR=$withval
22812
22813else
22814 BCR=/home/vadve/lattner/LLVMPrograms
22815
22816fi;
22817
John Criswellc78022e2003-07-29 19:11:58 +000022818
John Criswell7a73b802003-06-30 21:59:07 +000022819# Check whether --with-papi or --without-papi was given.
22820if test "${with_papi+set}" = set; then
22821 withval="$with_papi"
22822 PAPIDIR=$withval
22823
22824else
John Criswellde00db22003-08-25 16:49:54 +000022825 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022826
22827fi;
22828
John Criswell7a73b802003-06-30 21:59:07 +000022829
22830# Check whether --with-purify or --without-purify was given.
22831if test "${with_purify+set}" = set; then
22832 withval="$with_purify"
22833 PURIFY=$withval
22834
22835fi;
22836
John Criswellde00db22003-08-25 16:49:54 +000022837
John Criswell0c38eaf2003-09-10 15:17:25 +000022838 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022839cat >confcache <<\_ACEOF
22840# This file is a shell script that caches the results of configure
22841# tests run on this system so they can be shared between configure
22842# scripts and configure runs, see configure's option --config-cache.
22843# It is not useful on other systems. If it contains results you don't
22844# want to keep, you may remove or edit it.
22845#
22846# config.status only pays attention to the cache file if you give it
22847# the --recheck option to rerun configure.
22848#
John Criswell0c38eaf2003-09-10 15:17:25 +000022849# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022850# loading this file, other *unset* `ac_cv_foo' will be assigned the
22851# following values.
22852
22853_ACEOF
22854
22855# The following way of writing the cache mishandles newlines in values,
22856# but we know of no workaround that is simple, portable, and efficient.
22857# So, don't put newlines in cache variables' values.
22858# Ultrix sh set writes to stderr and can't be redirected directly,
22859# and sets the high bit in the cache file unless we assign to the vars.
22860{
22861 (set) 2>&1 |
22862 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22863 *ac_space=\ *)
22864 # `set' does not quote correctly, so add quotes (double-quote
22865 # substitution turns \\\\ into \\, and sed turns \\ into \).
22866 sed -n \
22867 "s/'/'\\\\''/g;
22868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22869 ;;
22870 *)
22871 # `set' quotes correctly as required by POSIX, so do not add quotes.
22872 sed -n \
22873 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22874 ;;
22875 esac;
22876} |
22877 sed '
22878 t clear
22879 : clear
22880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22881 t end
22882 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22883 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022884if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022885 if test -w $cache_file; then
22886 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22887 cat confcache >$cache_file
22888 else
22889 echo "not updating unwritable cache $cache_file"
22890 fi
22891fi
22892rm -f confcache
22893
22894test "x$prefix" = xNONE && prefix=$ac_default_prefix
22895# Let make expand exec_prefix.
22896test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22897
22898# VPATH may cause trouble with some makes, so we remove $(srcdir),
22899# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22900# trailing colons and then remove the whole line if VPATH becomes empty
22901# (actually we leave an empty line to preserve line numbers).
22902if test "x$srcdir" = x.; then
22903 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22904s/:*\$(srcdir):*/:/;
22905s/:*\${srcdir}:*/:/;
22906s/:*@srcdir@:*/:/;
22907s/^\([^=]*=[ ]*\):*/\1/;
22908s/:*$//;
22909s/^[^=]*=[ ]*$//;
22910}'
22911fi
22912
22913DEFS=-DHAVE_CONFIG_H
22914
John Criswell0c38eaf2003-09-10 15:17:25 +000022915ac_libobjs=
22916ac_ltlibobjs=
22917for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22918 # 1. Remove the extension, and $U if already installed.
22919 ac_i=`echo "$ac_i" |
22920 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22921 # 2. Add them.
22922 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22923 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22924done
22925LIBOBJS=$ac_libobjs
22926
22927LTLIBOBJS=$ac_ltlibobjs
22928
22929
John Criswell7a73b802003-06-30 21:59:07 +000022930
22931: ${CONFIG_STATUS=./config.status}
22932ac_clean_files_save=$ac_clean_files
22933ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22934{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22935echo "$as_me: creating $CONFIG_STATUS" >&6;}
22936cat >$CONFIG_STATUS <<_ACEOF
22937#! $SHELL
22938# Generated by $as_me.
22939# Run this file to recreate the current configuration.
22940# Compiler output produced by configure, useful for debugging
22941# configure, is in config.log if it exists.
22942
22943debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022944ac_cs_recheck=false
22945ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022946SHELL=\${CONFIG_SHELL-$SHELL}
22947_ACEOF
22948
22949cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022950## --------------------- ##
22951## M4sh Initialization. ##
22952## --------------------- ##
22953
22954# Be Bourne compatible
22955if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22956 emulate sh
22957 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022958 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22959 # is contrary to our usage. Disable this feature.
22960 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022961elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22962 set -o posix
22963fi
22964
John Criswell7a73b802003-06-30 21:59:07 +000022965# Support unset when possible.
22966if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22967 as_unset=unset
22968else
22969 as_unset=false
22970fi
22971
John Criswell0c38eaf2003-09-10 15:17:25 +000022972
22973# Work around bugs in pre-3.0 UWIN ksh.
22974$as_unset ENV MAIL MAILPATH
22975PS1='$ '
22976PS2='> '
22977PS4='+ '
22978
22979# NLS nuisances.
22980for as_var in \
22981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22983 LC_TELEPHONE LC_TIME
22984do
22985 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22986 eval $as_var=C; export $as_var
22987 else
22988 $as_unset $as_var
22989 fi
22990done
22991
22992# Required to use basename.
22993if expr a : '\(a\)' >/dev/null 2>&1; then
22994 as_expr=expr
22995else
22996 as_expr=false
22997fi
22998
22999if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23000 as_basename=basename
23001else
23002 as_basename=false
23003fi
John Criswell7a73b802003-06-30 21:59:07 +000023004
23005
23006# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023007as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023008$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23009 X"$0" : 'X\(//\)$' \| \
23010 X"$0" : 'X\(/\)$' \| \
23011 . : '\(.\)' 2>/dev/null ||
23012echo X/"$0" |
23013 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23014 /^X\/\(\/\/\)$/{ s//\1/; q; }
23015 /^X\/\(\/\).*/{ s//\1/; q; }
23016 s/.*/./; q'`
23017
John Criswell0c38eaf2003-09-10 15:17:25 +000023018
John Criswell7a73b802003-06-30 21:59:07 +000023019# PATH needs CR, and LINENO needs CR and PATH.
23020# Avoid depending upon Character Ranges.
23021as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23022as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23023as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23024as_cr_digits='0123456789'
23025as_cr_alnum=$as_cr_Letters$as_cr_digits
23026
23027# The user is always right.
23028if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023029 echo "#! /bin/sh" >conf$$.sh
23030 echo "exit 0" >>conf$$.sh
23031 chmod +x conf$$.sh
23032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023033 PATH_SEPARATOR=';'
23034 else
23035 PATH_SEPARATOR=:
23036 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023037 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023038fi
23039
23040
23041 as_lineno_1=$LINENO
23042 as_lineno_2=$LINENO
23043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23044 test "x$as_lineno_1" != "x$as_lineno_2" &&
23045 test "x$as_lineno_3" = "x$as_lineno_2" || {
23046 # Find who we are. Look in the path if we contain no path at all
23047 # relative or not.
23048 case $0 in
23049 *[\\/]* ) as_myself=$0 ;;
23050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23051for as_dir in $PATH
23052do
23053 IFS=$as_save_IFS
23054 test -z "$as_dir" && as_dir=.
23055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23056done
23057
23058 ;;
23059 esac
23060 # We did not find ourselves, most probably we were run as `sh COMMAND'
23061 # in which case we are not to be found in the path.
23062 if test "x$as_myself" = x; then
23063 as_myself=$0
23064 fi
23065 if test ! -f "$as_myself"; then
23066 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23067echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23068 { (exit 1); exit 1; }; }
23069 fi
23070 case $CONFIG_SHELL in
23071 '')
23072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23073for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23074do
23075 IFS=$as_save_IFS
23076 test -z "$as_dir" && as_dir=.
23077 for as_base in sh bash ksh sh5; do
23078 case $as_dir in
23079 /*)
23080 if ("$as_dir/$as_base" -c '
23081 as_lineno_1=$LINENO
23082 as_lineno_2=$LINENO
23083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23084 test "x$as_lineno_1" != "x$as_lineno_2" &&
23085 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023086 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23087 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023088 CONFIG_SHELL=$as_dir/$as_base
23089 export CONFIG_SHELL
23090 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23091 fi;;
23092 esac
23093 done
23094done
23095;;
23096 esac
23097
23098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23099 # uniformly replaced by the line number. The first 'sed' inserts a
23100 # line-number line before each line; the second 'sed' does the real
23101 # work. The second script uses 'N' to pair each line-number line
23102 # with the numbered line, and appends trailing '-' during
23103 # substitution so that $LINENO is not a special case at line end.
23104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23105 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23106 sed '=' <$as_myself |
23107 sed '
23108 N
23109 s,$,-,
23110 : loop
23111 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23112 t loop
23113 s,-$,,
23114 s,^['$as_cr_digits']*\n,,
23115 ' >$as_me.lineno &&
23116 chmod +x $as_me.lineno ||
23117 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23118echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23119 { (exit 1); exit 1; }; }
23120
23121 # Don't try to exec as it changes $[0], causing all sort of problems
23122 # (the dirname of $[0] is not the place where we might find the
23123 # original and so on. Autoconf is especially sensible to this).
23124 . ./$as_me.lineno
23125 # Exit status is that of the last command.
23126 exit
23127}
23128
23129
23130case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23131 *c*,-n*) ECHO_N= ECHO_C='
23132' ECHO_T=' ' ;;
23133 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23134 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23135esac
23136
23137if expr a : '\(a\)' >/dev/null 2>&1; then
23138 as_expr=expr
23139else
23140 as_expr=false
23141fi
23142
23143rm -f conf$$ conf$$.exe conf$$.file
23144echo >conf$$.file
23145if ln -s conf$$.file conf$$ 2>/dev/null; then
23146 # We could just check for DJGPP; but this test a) works b) is more generic
23147 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23148 if test -f conf$$.exe; then
23149 # Don't use ln at all; we don't have any links
23150 as_ln_s='cp -p'
23151 else
23152 as_ln_s='ln -s'
23153 fi
23154elif ln conf$$.file conf$$ 2>/dev/null; then
23155 as_ln_s=ln
23156else
23157 as_ln_s='cp -p'
23158fi
23159rm -f conf$$ conf$$.exe conf$$.file
23160
John Criswell0c38eaf2003-09-10 15:17:25 +000023161if mkdir -p . 2>/dev/null; then
23162 as_mkdir_p=:
23163else
23164 as_mkdir_p=false
23165fi
23166
John Criswell7a73b802003-06-30 21:59:07 +000023167as_executable_p="test -f"
23168
23169# Sed expression to map a string onto a valid CPP name.
23170as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23171
23172# Sed expression to map a string onto a valid variable name.
23173as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23174
23175
23176# IFS
23177# We need space, tab and new line, in precisely that order.
23178as_nl='
23179'
23180IFS=" $as_nl"
23181
23182# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023183$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023184
23185exec 6>&1
23186
23187# Open the log real soon, to keep \$[0] and so on meaningful, and to
23188# report actual input values of CONFIG_FILES etc. instead of their
23189# values after options handling. Logging --version etc. is OK.
23190exec 5>>config.log
23191{
23192 echo
23193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23194## Running $as_me. ##
23195_ASBOX
23196} >&5
23197cat >&5 <<_CSEOF
23198
23199This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023200generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023201
23202 CONFIG_FILES = $CONFIG_FILES
23203 CONFIG_HEADERS = $CONFIG_HEADERS
23204 CONFIG_LINKS = $CONFIG_LINKS
23205 CONFIG_COMMANDS = $CONFIG_COMMANDS
23206 $ $0 $@
23207
23208_CSEOF
23209echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23210echo >&5
23211_ACEOF
23212
23213# Files that config.status was made for.
23214if test -n "$ac_config_files"; then
23215 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23216fi
23217
23218if test -n "$ac_config_headers"; then
23219 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23220fi
23221
23222if test -n "$ac_config_links"; then
23223 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23224fi
23225
23226if test -n "$ac_config_commands"; then
23227 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23228fi
23229
23230cat >>$CONFIG_STATUS <<\_ACEOF
23231
23232ac_cs_usage="\
23233\`$as_me' instantiates files from templates according to the
23234current configuration.
23235
23236Usage: $0 [OPTIONS] [FILE]...
23237
23238 -h, --help print this help, then exit
23239 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023240 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023241 -d, --debug don't remove temporary files
23242 --recheck update $as_me by reconfiguring in the same conditions
23243 --file=FILE[:TEMPLATE]
23244 instantiate the configuration file FILE
23245 --header=FILE[:TEMPLATE]
23246 instantiate the configuration header FILE
23247
23248Configuration files:
23249$config_files
23250
23251Configuration headers:
23252$config_headers
23253
John Criswellc764fbc2003-09-06 15:17:13 +000023254Configuration commands:
23255$config_commands
23256
John Criswell7a73b802003-06-30 21:59:07 +000023257Report bugs to <bug-autoconf@gnu.org>."
23258_ACEOF
23259
23260cat >>$CONFIG_STATUS <<_ACEOF
23261ac_cs_version="\\
23262[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023263configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023264 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23265
23266Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23267Free Software Foundation, Inc.
23268This config.status script is free software; the Free Software Foundation
23269gives unlimited permission to copy, distribute and modify it."
23270srcdir=$srcdir
23271INSTALL="$INSTALL"
23272_ACEOF
23273
23274cat >>$CONFIG_STATUS <<\_ACEOF
23275# If no file are specified by the user, then we need to provide default
23276# value. By we need to know if files were specified by the user.
23277ac_need_defaults=:
23278while test $# != 0
23279do
23280 case $1 in
23281 --*=*)
23282 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23283 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023284 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023285 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023286 -*)
23287 ac_option=$1
23288 ac_optarg=$2
23289 ac_shift=shift
23290 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023291 *) # This is not an option, so the user has probably given explicit
23292 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023293 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023294 ac_need_defaults=false;;
23295 esac
23296
John Criswell0c38eaf2003-09-10 15:17:25 +000023297 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023298 # Handling of the options.
23299_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023300cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23302 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023303 --version | --vers* | -V )
23304 echo "$ac_cs_version"; exit 0 ;;
23305 --he | --h)
23306 # Conflict between --help and --header
23307 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23308Try \`$0 --help' for more information." >&5
23309echo "$as_me: error: ambiguous option: $1
23310Try \`$0 --help' for more information." >&2;}
23311 { (exit 1); exit 1; }; };;
23312 --help | --hel | -h )
23313 echo "$ac_cs_usage"; exit 0 ;;
23314 --debug | --d* | -d )
23315 debug=: ;;
23316 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023317 $ac_shift
23318 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023319 ac_need_defaults=false;;
23320 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023321 $ac_shift
23322 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023323 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23326 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023327
23328 # This is an error.
23329 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23330Try \`$0 --help' for more information." >&5
23331echo "$as_me: error: unrecognized option: $1
23332Try \`$0 --help' for more information." >&2;}
23333 { (exit 1); exit 1; }; } ;;
23334
23335 *) ac_config_targets="$ac_config_targets $1" ;;
23336
23337 esac
23338 shift
23339done
23340
John Criswell0c38eaf2003-09-10 15:17:25 +000023341ac_configure_extra_args=
23342
23343if $ac_cs_silent; then
23344 exec 6>/dev/null
23345 ac_configure_extra_args="$ac_configure_extra_args --silent"
23346fi
23347
23348_ACEOF
23349cat >>$CONFIG_STATUS <<_ACEOF
23350if \$ac_cs_recheck; then
23351 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23352 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23353fi
23354
John Criswell7a73b802003-06-30 21:59:07 +000023355_ACEOF
23356
John Criswellc764fbc2003-09-06 15:17:13 +000023357cat >>$CONFIG_STATUS <<_ACEOF
23358#
23359# INIT-COMMANDS section.
23360#
John Criswell7a73b802003-06-30 21:59:07 +000023361
John Criswellc764fbc2003-09-06 15:17:13 +000023362${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23364${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23365${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023379${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023384${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023385${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023400${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023401${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023405${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023406${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023407${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023409${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023413${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023510${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023512${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023513${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023516${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023517${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023518${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023519${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023520${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023521${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023522${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023524${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023528${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23532${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23533${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23539${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23541
23542_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023543
23544
23545
23546cat >>$CONFIG_STATUS <<\_ACEOF
23547for ac_config_target in $ac_config_targets
23548do
23549 case "$ac_config_target" in
23550 # Handling of arguments.
23551 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023552 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23553 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23554 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23555 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23556 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23557 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23558 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23559 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23560 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23561 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23562 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23563 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23564 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23565 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23566 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23567 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23568 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023569 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23570 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23571 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23572 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23573 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023574 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023575 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23576 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23577 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23578 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23579 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23580 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23581 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23582 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23583 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23584 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23585 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23586 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23587 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23588 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23589 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023590 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023591 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23592 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23593 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23594 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023595 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023596 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023597 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23598 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023599 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23600 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23601 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23602 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023603 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23604 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023605 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23606 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23607 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23608 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23609 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23610 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23611 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23612 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23613 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23614 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23615 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23616 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23617 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23618 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23619 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23620 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23621 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23622 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023623 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023624 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23625 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23626 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23627 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23628 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23629 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23630 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23631 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23632 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23633 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23634 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23635 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23636 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23637 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23638 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23639 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23640 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23641 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023642 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23643 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023644 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23645 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023646 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23647 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23648 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23649 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23650 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23651 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23652 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23653 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23654 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23655 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23656 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23657 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23658 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23659 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23660 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23661 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23662 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23663 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23664 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23665 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23666 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23667 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23668 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23669 "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 +000023670 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023671 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23672 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23673 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23674 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23675 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23676 "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 +000023677 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023678 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023679 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23680 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23681 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23682 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23683 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023684 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23685 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23686 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023687 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23688 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23689 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23690 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23691 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23692 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023693 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023694 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023695 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023696 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023697 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23698 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023699 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023700 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23701 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023702 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023703 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23704 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23705 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023706 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023707 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023708 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023709 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023710 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023711 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023712 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23713 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023714 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23715 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23716 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23717 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023718 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23719 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23720 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23721 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23722 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23723 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23724 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23725 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23726 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23727 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23728 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23729 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23730 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023731 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23733echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23734 { (exit 1); exit 1; }; };;
23735 esac
23736done
23737
23738# If the user did not use the arguments to specify the items to instantiate,
23739# then the envvar interface is used. Set only those that are not.
23740# We use the long form for the default assignment because of an extremely
23741# bizarre bug on SunOS 4.1.3.
23742if $ac_need_defaults; then
23743 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23744 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023746fi
23747
John Criswell0c38eaf2003-09-10 15:17:25 +000023748# Have a temporary directory for convenience. Make it in the build tree
23749# simply because there is no reason to put it here, and in addition,
23750# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023751# Create a temporary directory, and hook for its removal unless debugging.
23752$debug ||
23753{
23754 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23755 trap '{ (exit 1); exit 1; }' 1 2 13 15
23756}
23757
23758# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023759
John Criswell7a73b802003-06-30 21:59:07 +000023760{
John Criswell0c38eaf2003-09-10 15:17:25 +000023761 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023762 test -n "$tmp" && test -d "$tmp"
23763} ||
23764{
John Criswell0c38eaf2003-09-10 15:17:25 +000023765 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023766 (umask 077 && mkdir $tmp)
23767} ||
23768{
John Criswell0c38eaf2003-09-10 15:17:25 +000023769 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023770 { (exit 1); exit 1; }
23771}
23772
23773_ACEOF
23774
23775cat >>$CONFIG_STATUS <<_ACEOF
23776
23777#
23778# CONFIG_FILES section.
23779#
23780
23781# No need to generate the scripts if there are no CONFIG_FILES.
23782# This happens for instance when ./config.status config.h
23783if test -n "\$CONFIG_FILES"; then
23784 # Protect against being on the right side of a sed subst in config.status.
23785 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23786 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23787s,@SHELL@,$SHELL,;t t
23788s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23789s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23790s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23791s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23792s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23793s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23794s,@exec_prefix@,$exec_prefix,;t t
23795s,@prefix@,$prefix,;t t
23796s,@program_transform_name@,$program_transform_name,;t t
23797s,@bindir@,$bindir,;t t
23798s,@sbindir@,$sbindir,;t t
23799s,@libexecdir@,$libexecdir,;t t
23800s,@datadir@,$datadir,;t t
23801s,@sysconfdir@,$sysconfdir,;t t
23802s,@sharedstatedir@,$sharedstatedir,;t t
23803s,@localstatedir@,$localstatedir,;t t
23804s,@libdir@,$libdir,;t t
23805s,@includedir@,$includedir,;t t
23806s,@oldincludedir@,$oldincludedir,;t t
23807s,@infodir@,$infodir,;t t
23808s,@mandir@,$mandir,;t t
23809s,@build_alias@,$build_alias,;t t
23810s,@host_alias@,$host_alias,;t t
23811s,@target_alias@,$target_alias,;t t
23812s,@DEFS@,$DEFS,;t t
23813s,@ECHO_C@,$ECHO_C,;t t
23814s,@ECHO_N@,$ECHO_N,;t t
23815s,@ECHO_T@,$ECHO_T,;t t
23816s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023817s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023818s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23819s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23820s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23821s,@build@,$build,;t t
23822s,@build_cpu@,$build_cpu,;t t
23823s,@build_vendor@,$build_vendor,;t t
23824s,@build_os@,$build_os,;t t
23825s,@host@,$host,;t t
23826s,@host_cpu@,$host_cpu,;t t
23827s,@host_vendor@,$host_vendor,;t t
23828s,@host_os@,$host_os,;t t
23829s,@target@,$target,;t t
23830s,@target_cpu@,$target_cpu,;t t
23831s,@target_vendor@,$target_vendor,;t t
23832s,@target_os@,$target_os,;t t
23833s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023834s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023835s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023836s,@CXX@,$CXX,;t t
23837s,@CXXFLAGS@,$CXXFLAGS,;t t
23838s,@LDFLAGS@,$LDFLAGS,;t t
23839s,@CPPFLAGS@,$CPPFLAGS,;t t
23840s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23841s,@EXEEXT@,$EXEEXT,;t t
23842s,@OBJEXT@,$OBJEXT,;t t
23843s,@CC@,$CC,;t t
23844s,@CFLAGS@,$CFLAGS,;t t
23845s,@ac_ct_CC@,$ac_ct_CC,;t t
23846s,@CPP@,$CPP,;t t
23847s,@ifGNUmake@,$ifGNUmake,;t t
23848s,@LEX@,$LEX,;t t
23849s,@LEXLIB@,$LEXLIB,;t t
23850s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23851s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023852s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023853s,@LN_S@,$LN_S,;t t
23854s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023855s,@AR@,$AR,;t t
23856s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023857s,@RANLIB@,$RANLIB,;t t
23858s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23859s,@STRIP@,$STRIP,;t t
23860s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023861s,@CXXCPP@,$CXXCPP,;t t
23862s,@F77@,$F77,;t t
23863s,@FFLAGS@,$FFLAGS,;t t
23864s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023865s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023866s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023867s,@SED@,$SED,;t t
23868s,@RM@,$RM,;t t
23869s,@MKDIR@,$MKDIR,;t t
23870s,@DATE@,$DATE,;t t
23871s,@MV@,$MV,;t t
23872s,@DOT@,$DOT,;t t
23873s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023874s,@PYTHON@,$PYTHON,;t t
23875s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023876s,@ALLOCA@,$ALLOCA,;t t
23877s,@LIBOBJS@,$LIBOBJS,;t t
23878s,@MMAP_FILE@,$MMAP_FILE,;t t
23879s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023880s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23881s,@USE_SPEC@,$USE_SPEC,;t t
23882s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023883s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023884s,@JIT@,$JIT,;t t
23885s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23886s,@BCR@,$BCR,;t t
23887s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023888s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023889s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023890CEOF
23891
23892_ACEOF
23893
23894 cat >>$CONFIG_STATUS <<\_ACEOF
23895 # Split the substitutions into bite-sized pieces for seds with
23896 # small command number limits, like on Digital OSF/1 and HP-UX.
23897 ac_max_sed_lines=48
23898 ac_sed_frag=1 # Number of current file.
23899 ac_beg=1 # First line for current file.
23900 ac_end=$ac_max_sed_lines # Line after last line for current file.
23901 ac_more_lines=:
23902 ac_sed_cmds=
23903 while $ac_more_lines; do
23904 if test $ac_beg -gt 1; then
23905 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23906 else
23907 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23908 fi
23909 if test ! -s $tmp/subs.frag; then
23910 ac_more_lines=false
23911 else
23912 # The purpose of the label and of the branching condition is to
23913 # speed up the sed processing (if there are no `@' at all, there
23914 # is no need to browse any of the substitutions).
23915 # These are the two extra sed commands mentioned above.
23916 (echo ':t
23917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23918 if test -z "$ac_sed_cmds"; then
23919 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23920 else
23921 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23922 fi
23923 ac_sed_frag=`expr $ac_sed_frag + 1`
23924 ac_beg=$ac_end
23925 ac_end=`expr $ac_end + $ac_max_sed_lines`
23926 fi
23927 done
23928 if test -z "$ac_sed_cmds"; then
23929 ac_sed_cmds=cat
23930 fi
23931fi # test -n "$CONFIG_FILES"
23932
23933_ACEOF
23934cat >>$CONFIG_STATUS <<\_ACEOF
23935for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23937 case $ac_file in
23938 - | *:- | *:-:* ) # input from stdin
23939 cat >$tmp/stdin
23940 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23942 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23944 * ) ac_file_in=$ac_file.in ;;
23945 esac
23946
23947 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23948 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23950 X"$ac_file" : 'X\(//\)[^/]' \| \
23951 X"$ac_file" : 'X\(//\)$' \| \
23952 X"$ac_file" : 'X\(/\)' \| \
23953 . : '\(.\)' 2>/dev/null ||
23954echo X"$ac_file" |
23955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23957 /^X\(\/\/\)$/{ s//\1/; q; }
23958 /^X\(\/\).*/{ s//\1/; q; }
23959 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023960 { if $as_mkdir_p; then
23961 mkdir -p "$ac_dir"
23962 else
23963 as_dir="$ac_dir"
23964 as_dirs=
23965 while test ! -d "$as_dir"; do
23966 as_dirs="$as_dir $as_dirs"
23967 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23969 X"$as_dir" : 'X\(//\)[^/]' \| \
23970 X"$as_dir" : 'X\(//\)$' \| \
23971 X"$as_dir" : 'X\(/\)' \| \
23972 . : '\(.\)' 2>/dev/null ||
23973echo X"$as_dir" |
23974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23976 /^X\(\/\/\)$/{ s//\1/; q; }
23977 /^X\(\/\).*/{ s//\1/; q; }
23978 s/.*/./; q'`
23979 done
23980 test ! -n "$as_dirs" || mkdir $as_dirs
23981 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23982echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23983 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023984
23985 ac_builddir=.
23986
23987if test "$ac_dir" != .; then
23988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23989 # A "../" for each directory in $ac_dir_suffix.
23990 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23991else
23992 ac_dir_suffix= ac_top_builddir=
23993fi
23994
23995case $srcdir in
23996 .) # No --srcdir option. We are building in place.
23997 ac_srcdir=.
23998 if test -z "$ac_top_builddir"; then
23999 ac_top_srcdir=.
24000 else
24001 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24002 fi ;;
24003 [\\/]* | ?:[\\/]* ) # Absolute path.
24004 ac_srcdir=$srcdir$ac_dir_suffix;
24005 ac_top_srcdir=$srcdir ;;
24006 *) # Relative path.
24007 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24008 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24009esac
24010# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24011# absolute.
24012ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024013ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024014ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24015ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24016
24017
24018 case $INSTALL in
24019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24020 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24021 esac
24022
24023 if test x"$ac_file" != x-; then
24024 { echo "$as_me:$LINENO: creating $ac_file" >&5
24025echo "$as_me: creating $ac_file" >&6;}
24026 rm -f "$ac_file"
24027 fi
24028 # Let's still pretend it is `configure' which instantiates (i.e., don't
24029 # use $as_me), people would be surprised to read:
24030 # /* config.h. Generated by config.status. */
24031 if test x"$ac_file" = x-; then
24032 configure_input=
24033 else
24034 configure_input="$ac_file. "
24035 fi
24036 configure_input=$configure_input"Generated from `echo $ac_file_in |
24037 sed 's,.*/,,'` by configure."
24038
24039 # First look for the input files in the build tree, otherwise in the
24040 # src tree.
24041 ac_file_inputs=`IFS=:
24042 for f in $ac_file_in; do
24043 case $f in
24044 -) echo $tmp/stdin ;;
24045 [\\/$]*)
24046 # Absolute (can't be DOS-style, as IFS=:)
24047 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24048echo "$as_me: error: cannot find input file: $f" >&2;}
24049 { (exit 1); exit 1; }; }
24050 echo $f;;
24051 *) # Relative
24052 if test -f "$f"; then
24053 # Build tree
24054 echo $f
24055 elif test -f "$srcdir/$f"; then
24056 # Source tree
24057 echo $srcdir/$f
24058 else
24059 # /dev/null tree
24060 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24061echo "$as_me: error: cannot find input file: $f" >&2;}
24062 { (exit 1); exit 1; }; }
24063 fi;;
24064 esac
24065 done` || { (exit 1); exit 1; }
24066_ACEOF
24067cat >>$CONFIG_STATUS <<_ACEOF
24068 sed "$ac_vpsub
24069$extrasub
24070_ACEOF
24071cat >>$CONFIG_STATUS <<\_ACEOF
24072:t
24073/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24074s,@configure_input@,$configure_input,;t t
24075s,@srcdir@,$ac_srcdir,;t t
24076s,@abs_srcdir@,$ac_abs_srcdir,;t t
24077s,@top_srcdir@,$ac_top_srcdir,;t t
24078s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24079s,@builddir@,$ac_builddir,;t t
24080s,@abs_builddir@,$ac_abs_builddir,;t t
24081s,@top_builddir@,$ac_top_builddir,;t t
24082s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24083s,@INSTALL@,$ac_INSTALL,;t t
24084" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24085 rm -f $tmp/stdin
24086 if test x"$ac_file" != x-; then
24087 mv $tmp/out $ac_file
24088 else
24089 cat $tmp/out
24090 rm -f $tmp/out
24091 fi
24092
24093done
24094_ACEOF
24095cat >>$CONFIG_STATUS <<\_ACEOF
24096
24097#
24098# CONFIG_HEADER section.
24099#
24100
24101# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24102# NAME is the cpp macro being defined and VALUE is the value it is being given.
24103#
24104# ac_d sets the value in "#define NAME VALUE" lines.
24105ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24106ac_dB='[ ].*$,\1#\2'
24107ac_dC=' '
24108ac_dD=',;t'
24109# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24110ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24111ac_uB='$,\1#\2define\3'
24112ac_uC=' '
24113ac_uD=',;t'
24114
24115for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24117 case $ac_file in
24118 - | *:- | *:-:* ) # input from stdin
24119 cat >$tmp/stdin
24120 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24122 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24124 * ) ac_file_in=$ac_file.in ;;
24125 esac
24126
24127 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24128echo "$as_me: creating $ac_file" >&6;}
24129
24130 # First look for the input files in the build tree, otherwise in the
24131 # src tree.
24132 ac_file_inputs=`IFS=:
24133 for f in $ac_file_in; do
24134 case $f in
24135 -) echo $tmp/stdin ;;
24136 [\\/$]*)
24137 # Absolute (can't be DOS-style, as IFS=:)
24138 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24139echo "$as_me: error: cannot find input file: $f" >&2;}
24140 { (exit 1); exit 1; }; }
24141 echo $f;;
24142 *) # Relative
24143 if test -f "$f"; then
24144 # Build tree
24145 echo $f
24146 elif test -f "$srcdir/$f"; then
24147 # Source tree
24148 echo $srcdir/$f
24149 else
24150 # /dev/null tree
24151 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24152echo "$as_me: error: cannot find input file: $f" >&2;}
24153 { (exit 1); exit 1; }; }
24154 fi;;
24155 esac
24156 done` || { (exit 1); exit 1; }
24157 # Remove the trailing spaces.
24158 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24159
24160_ACEOF
24161
24162# Transform confdefs.h into two sed scripts, `conftest.defines' and
24163# `conftest.undefs', that substitutes the proper values into
24164# config.h.in to produce config.h. The first handles `#define'
24165# templates, and the second `#undef' templates.
24166# And first: Protect against being on the right side of a sed subst in
24167# config.status. Protect against being in an unquoted here document
24168# in config.status.
24169rm -f conftest.defines conftest.undefs
24170# Using a here document instead of a string reduces the quoting nightmare.
24171# Putting comments in sed scripts is not portable.
24172#
24173# `end' is used to avoid that the second main sed command (meant for
24174# 0-ary CPP macros) applies to n-ary macro definitions.
24175# See the Autoconf documentation for `clear'.
24176cat >confdef2sed.sed <<\_ACEOF
24177s/[\\&,]/\\&/g
24178s,[\\$`],\\&,g
24179t clear
24180: clear
24181s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24182t end
24183s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24184: end
24185_ACEOF
24186# If some macros were called several times there might be several times
24187# the same #defines, which is useless. Nevertheless, we may not want to
24188# sort them, since we want the *last* AC-DEFINE to be honored.
24189uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24190sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24191rm -f confdef2sed.sed
24192
24193# This sed command replaces #undef with comments. This is necessary, for
24194# example, in the case of _POSIX_SOURCE, which is predefined and required
24195# on some systems where configure will not decide to define it.
24196cat >>conftest.undefs <<\_ACEOF
24197s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24198_ACEOF
24199
24200# Break up conftest.defines because some shells have a limit on the size
24201# of here documents, and old seds have small limits too (100 cmds).
24202echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024203echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024204echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24205echo ' :' >>$CONFIG_STATUS
24206rm -f conftest.tail
24207while grep . conftest.defines >/dev/null
24208do
24209 # Write a limited-size here document to $tmp/defines.sed.
24210 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24211 # Speed up: don't consider the non `#define' lines.
24212 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24213 # Work around the forget-to-reset-the-flag bug.
24214 echo 't clr' >>$CONFIG_STATUS
24215 echo ': clr' >>$CONFIG_STATUS
24216 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24217 echo 'CEOF
24218 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24219 rm -f $tmp/in
24220 mv $tmp/out $tmp/in
24221' >>$CONFIG_STATUS
24222 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24223 rm -f conftest.defines
24224 mv conftest.tail conftest.defines
24225done
24226rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024227echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024228echo >>$CONFIG_STATUS
24229
24230# Break up conftest.undefs because some shells have a limit on the size
24231# of here documents, and old seds have small limits too (100 cmds).
24232echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24233rm -f conftest.tail
24234while grep . conftest.undefs >/dev/null
24235do
24236 # Write a limited-size here document to $tmp/undefs.sed.
24237 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24238 # Speed up: don't consider the non `#undef'
24239 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24240 # Work around the forget-to-reset-the-flag bug.
24241 echo 't clr' >>$CONFIG_STATUS
24242 echo ': clr' >>$CONFIG_STATUS
24243 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24244 echo 'CEOF
24245 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24246 rm -f $tmp/in
24247 mv $tmp/out $tmp/in
24248' >>$CONFIG_STATUS
24249 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24250 rm -f conftest.undefs
24251 mv conftest.tail conftest.undefs
24252done
24253rm -f conftest.undefs
24254
24255cat >>$CONFIG_STATUS <<\_ACEOF
24256 # Let's still pretend it is `configure' which instantiates (i.e., don't
24257 # use $as_me), people would be surprised to read:
24258 # /* config.h. Generated by config.status. */
24259 if test x"$ac_file" = x-; then
24260 echo "/* Generated by configure. */" >$tmp/config.h
24261 else
24262 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24263 fi
24264 cat $tmp/in >>$tmp/config.h
24265 rm -f $tmp/in
24266 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024267 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024268 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24269echo "$as_me: $ac_file is unchanged" >&6;}
24270 else
24271 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24273 X"$ac_file" : 'X\(//\)[^/]' \| \
24274 X"$ac_file" : 'X\(//\)$' \| \
24275 X"$ac_file" : 'X\(/\)' \| \
24276 . : '\(.\)' 2>/dev/null ||
24277echo X"$ac_file" |
24278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24280 /^X\(\/\/\)$/{ s//\1/; q; }
24281 /^X\(\/\).*/{ s//\1/; q; }
24282 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024283 { if $as_mkdir_p; then
24284 mkdir -p "$ac_dir"
24285 else
24286 as_dir="$ac_dir"
24287 as_dirs=
24288 while test ! -d "$as_dir"; do
24289 as_dirs="$as_dir $as_dirs"
24290 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24292 X"$as_dir" : 'X\(//\)[^/]' \| \
24293 X"$as_dir" : 'X\(//\)$' \| \
24294 X"$as_dir" : 'X\(/\)' \| \
24295 . : '\(.\)' 2>/dev/null ||
24296echo X"$as_dir" |
24297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24299 /^X\(\/\/\)$/{ s//\1/; q; }
24300 /^X\(\/\).*/{ s//\1/; q; }
24301 s/.*/./; q'`
24302 done
24303 test ! -n "$as_dirs" || mkdir $as_dirs
24304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24305echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24306 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024307
24308 rm -f $ac_file
24309 mv $tmp/config.h $ac_file
24310 fi
24311 else
24312 cat $tmp/config.h
24313 rm -f $tmp/config.h
24314 fi
24315done
24316_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024317cat >>$CONFIG_STATUS <<\_ACEOF
24318
24319#
24320# CONFIG_COMMANDS section.
24321#
24322for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24323 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24324 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24325 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24326$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24327 X"$ac_dest" : 'X\(//\)[^/]' \| \
24328 X"$ac_dest" : 'X\(//\)$' \| \
24329 X"$ac_dest" : 'X\(/\)' \| \
24330 . : '\(.\)' 2>/dev/null ||
24331echo X"$ac_dest" |
24332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24334 /^X\(\/\/\)$/{ s//\1/; q; }
24335 /^X\(\/\).*/{ s//\1/; q; }
24336 s/.*/./; q'`
24337 ac_builddir=.
24338
24339if test "$ac_dir" != .; then
24340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24341 # A "../" for each directory in $ac_dir_suffix.
24342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24343else
24344 ac_dir_suffix= ac_top_builddir=
24345fi
24346
24347case $srcdir in
24348 .) # No --srcdir option. We are building in place.
24349 ac_srcdir=.
24350 if test -z "$ac_top_builddir"; then
24351 ac_top_srcdir=.
24352 else
24353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24354 fi ;;
24355 [\\/]* | ?:[\\/]* ) # Absolute path.
24356 ac_srcdir=$srcdir$ac_dir_suffix;
24357 ac_top_srcdir=$srcdir ;;
24358 *) # Relative path.
24359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24361esac
24362# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24363# absolute.
24364ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024365ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024366ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24367ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24368
24369
24370 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24371echo "$as_me: executing $ac_dest commands" >&6;}
24372 case $ac_dest in
24373 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24374 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24375 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24376 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24377 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24378 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24379 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24380 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24381 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24382 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24383 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24384 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24385 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24386 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24387 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24388 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24389 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 +000024390 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24391 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24392 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24393 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24394 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024395 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024396 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24397 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24398 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24399 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24400 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24401 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24402 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24403 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24404 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24405 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24406 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24407 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24408 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24409 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24410 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 +000024411 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 +000024412 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24413 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24414 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24415 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 +000024416 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 +000024417 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 +000024418 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24419 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 +000024420 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24421 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24422 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24423 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024424 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24425 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024426 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24427 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24428 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24429 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24430 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24431 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24432 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24433 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24434 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24435 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24436 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24437 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24438 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24439 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24440 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24441 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24442 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24443 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 +000024444 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 +000024445 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 ;;
24446 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 ;;
24447 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 ;;
24448 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 ;;
24449 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 ;;
24450 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 ;;
24451 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 ;;
24452 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 ;;
24453 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 ;;
24454 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 ;;
24455 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 ;;
24456 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 ;;
24457 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 ;;
24458 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 ;;
24459 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 ;;
24460 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24461 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24462 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 +000024463 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24464 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 +000024465 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 ;;
24466 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 +000024467 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24468 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 ;;
24469 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 ;;
24470 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 ;;
24471 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 ;;
24472 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 ;;
24473 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 ;;
24474 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 ;;
24475 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 ;;
24476 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 ;;
24477 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 ;;
24478 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 ;;
24479 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 ;;
24480 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 ;;
24481 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 ;;
24482 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 ;;
24483 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 ;;
24484 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 ;;
24485 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 ;;
24486 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 ;;
24487 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 ;;
24488 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 ;;
24489 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 ;;
24490 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 +000024491 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 +000024492 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 ;;
24493 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 ;;
24494 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 ;;
24495 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 ;;
24496 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 ;;
24497 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 +000024498 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 +000024499 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 +000024500 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24501 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24502 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24503 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 ;;
24504 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 +000024505 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24506 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24507 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 +000024508 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24509 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24510 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 ;;
24511 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 ;;
24512 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 ;;
24513 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 +000024514 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 +000024515 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 +000024516 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 +000024517 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 +000024518 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 ;;
24519 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 +000024520 test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024521 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24522 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024523 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024524 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24525 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24526 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024527 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024528 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024529 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024530 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 +000024531 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 +000024532 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 +000024533 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24534 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024535 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24536 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24537 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24538 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024539 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24540 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24541 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24542 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24543 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24544 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24545 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24546 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24547 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24548 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24549 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24550 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24551 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24552 esac
24553done
24554_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024555
24556cat >>$CONFIG_STATUS <<\_ACEOF
24557
24558{ (exit 0); exit 0; }
24559_ACEOF
24560chmod +x $CONFIG_STATUS
24561ac_clean_files=$ac_clean_files_save
24562
24563
24564# configure is writing to config.log, and then calls config.status.
24565# config.status does its own redirection, appending to config.log.
24566# Unfortunately, on DOS this fails, as config.log is still kept open
24567# by configure, so config.status won't be able to write to it; its
24568# output is simply discarded. So we exec the FD to /dev/null,
24569# effectively closing config.log, so it can be properly (re)opened and
24570# appended to by config.status. When coming back to configure, we
24571# need to make the FD available again.
24572if test "$no_create" != yes; then
24573 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024574 ac_config_status_args=
24575 test "$silent" = yes &&
24576 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024577 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024579 exec 5>>config.log
24580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24581 # would make configure fail if this is the last instruction.
24582 $ac_cs_success || { (exit 1); exit 1; }
24583fi
24584
John Criswell12399a12003-09-30 15:55:44 +000024585#
24586# CONFIG_SUBDIRS section.
24587#
24588if test "$no_recursion" != yes; then
24589
24590 # Remove --cache-file and --srcdir arguments so they do not pile up.
24591 ac_sub_configure_args=
24592 ac_prev=
24593 for ac_arg in $ac_configure_args; do
24594 if test -n "$ac_prev"; then
24595 ac_prev=
24596 continue
24597 fi
24598 case $ac_arg in
24599 -cache-file | --cache-file | --cache-fil | --cache-fi \
24600 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24601 ac_prev=cache_file ;;
24602 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24603 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24604 | --c=*)
24605 ;;
24606 --config-cache | -C)
24607 ;;
24608 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24609 ac_prev=srcdir ;;
24610 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24611 ;;
24612 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24613 ac_prev=prefix ;;
24614 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24615 ;;
24616 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24617 esac
24618 done
24619
24620 # Always prepend --prefix to ensure using the same prefix
24621 # in subdir configurations.
24622 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24623
24624 ac_popdir=`pwd`
24625 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24626
24627 # Do not complain, so a configure script can configure whichever
24628 # parts of a large source tree are present.
24629 test -d $srcdir/$ac_dir || continue
24630
24631 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24632echo "$as_me: configuring in $ac_dir" >&6;}
24633 { if $as_mkdir_p; then
24634 mkdir -p "$ac_dir"
24635 else
24636 as_dir="$ac_dir"
24637 as_dirs=
24638 while test ! -d "$as_dir"; do
24639 as_dirs="$as_dir $as_dirs"
24640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24642 X"$as_dir" : 'X\(//\)[^/]' \| \
24643 X"$as_dir" : 'X\(//\)$' \| \
24644 X"$as_dir" : 'X\(/\)' \| \
24645 . : '\(.\)' 2>/dev/null ||
24646echo X"$as_dir" |
24647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24649 /^X\(\/\/\)$/{ s//\1/; q; }
24650 /^X\(\/\).*/{ s//\1/; q; }
24651 s/.*/./; q'`
24652 done
24653 test ! -n "$as_dirs" || mkdir $as_dirs
24654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24655echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24656 { (exit 1); exit 1; }; }; }
24657
24658 ac_builddir=.
24659
24660if test "$ac_dir" != .; then
24661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24662 # A "../" for each directory in $ac_dir_suffix.
24663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24664else
24665 ac_dir_suffix= ac_top_builddir=
24666fi
24667
24668case $srcdir in
24669 .) # No --srcdir option. We are building in place.
24670 ac_srcdir=.
24671 if test -z "$ac_top_builddir"; then
24672 ac_top_srcdir=.
24673 else
24674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24675 fi ;;
24676 [\\/]* | ?:[\\/]* ) # Absolute path.
24677 ac_srcdir=$srcdir$ac_dir_suffix;
24678 ac_top_srcdir=$srcdir ;;
24679 *) # Relative path.
24680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24682esac
24683# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24684# absolute.
24685ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24686ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24687ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24688ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24689
24690
24691 cd $ac_dir
24692
24693 # Check for guested configure; otherwise get Cygnus style configure.
24694 if test -f $ac_srcdir/configure.gnu; then
24695 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24696 elif test -f $ac_srcdir/configure; then
24697 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24698 elif test -f $ac_srcdir/configure.in; then
24699 ac_sub_configure=$ac_configure
24700 else
24701 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24702echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24703 ac_sub_configure=
24704 fi
24705
24706 # The recursion is here.
24707 if test -n "$ac_sub_configure"; then
24708 # Make the cache file name correct relative to the subdirectory.
24709 case $cache_file in
24710 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24711 *) # Relative path.
24712 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24713 esac
24714
24715 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24716echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24717 # The eval makes quoting arguments work.
24718 eval $ac_sub_configure $ac_sub_configure_args \
24719 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24720 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24721echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24722 { (exit 1); exit 1; }; }
24723 fi
24724
24725 cd $ac_popdir
24726 done
24727fi
24728