blob: e01428ab23114d6ea9e787e84e4a58272c117b7d [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
a.rottmann84e63352003-03-24 09:42:16 +00003# Generated by GNU Autoconf 2.57.
drh75897232000-05-29 14:26:00 +00004#
a.rottmann84e63352003-03-24 09:42:16 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
drh71eb93e2001-09-28 01:34:43 +00006# Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
drh75897232000-05-29 14:26:00 +0000242
drh71eb93e2001-09-28 01:34:43 +0000243# Find the correct PATH separator. Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
a.rottmann84e63352003-03-24 09:42:16 +0000248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
drh71eb93e2001-09-28 01:34:43 +0000250 esac
a.rottmann84e63352003-03-24 09:42:16 +0000251 PATH_SEPARATOR=$lt_cv_sys_path_separator
drh71eb93e2001-09-28 01:34:43 +0000252fi
253
a.rottmann84e63352003-03-24 09:42:16 +0000254
drh71eb93e2001-09-28 01:34:43 +0000255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
a.rottmann84e63352003-03-24 09:42:16 +0000284
drh71eb93e2001-09-28 01:34:43 +0000285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
a.rottmann84e63352003-03-24 09:42:16 +0000318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000319 for dir in $PATH /usr/ucb; do
drh71eb93e2001-09-28 01:34:43 +0000320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
a.rottmann84e63352003-03-24 09:42:16 +0000328 IFS="$save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
drh71eb93e2001-09-28 01:34:43 +0000400
drh71eb93e2001-09-28 01:34:43 +0000401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
drh75897232000-05-29 14:26:00 +0000412ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000413ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000414cross_compiling=no
415subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000416MFLAGS=
417MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
a.rottmann84e63352003-03-24 09:42:16 +0000425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
drh71eb93e2001-09-28 01:34:43 +0000432ac_unique_file="src/sqlite.h.in"
a.rottmann84e63352003-03-24 09:42:16 +0000433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447# include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452# include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463# include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
paulb0208cc2003-04-13 18:26:49 +0000470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR ENCODING ALLOWATTACHMEM INCOREDB TEMPDBINCORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TARGET_TCL_LIBS TARGET_TCL_INC TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE LIBOBJS LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000471ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000472
473# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000474ac_init_help=
475ac_init_version=false
drh75897232000-05-29 14:26:00 +0000476# The variables have the same names as the options, with
477# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000478cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000479exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000480no_create=
drh75897232000-05-29 14:26:00 +0000481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
drh75897232000-05-29 14:26:00 +0000489verbose=
490x_includes=NONE
491x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
drh75897232000-05-29 14:26:00 +0000511ac_prev=
512for ac_option
513do
drh75897232000-05-29 14:26:00 +0000514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
drh71eb93e2001-09-28 01:34:43 +0000521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
drh71eb93e2001-09-28 01:34:43 +0000525 case $ac_option in
drh75897232000-05-29 14:26:00 +0000526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000530 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000531
532 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000533 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000535 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000551 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000552
553 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000555 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000561
562 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000564 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000571 *) ac_optarg=yes ;;
572 esac
drh71eb93e2001-09-28 01:34:43 +0000573 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000582 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
drh71eb93e2001-09-28 01:34:43 +0000588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000594
595 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000596 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000597 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000598 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000605 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000610 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000615 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000622 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000631 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000636 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000643 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000657 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000662 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000669 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000676 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000693 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000703 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000714 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000719 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000724 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000731 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000734 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000736 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
drh71eb93e2001-09-28 01:34:43 +0000741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000743
744 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000746 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000750 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000753 *) ac_optarg=yes ;;
754 esac
drh71eb93e2001-09-28 01:34:43 +0000755 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000756
757 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000759 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000775 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000782 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000783
drh71eb93e2001-09-28 01:34:43 +0000784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000787 ;;
788
drh71eb93e2001-09-28 01:34:43 +0000789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
drh75897232000-05-29 14:26:00 +0000799 *)
drh71eb93e2001-09-28 01:34:43 +0000800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000814fi
815
drh71eb93e2001-09-28 01:34:43 +0000816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000818do
drh71eb93e2001-09-28 01:34:43 +0000819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000823 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000824 esac
825done
826
drh71eb93e2001-09-28 01:34:43 +0000827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000835 { (exit 1); exit 1; }; };;
836 esac
837done
drh75897232000-05-29 14:26:00 +0000838
drh71eb93e2001-09-28 01:34:43 +0000839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000841# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000842build=$build_alias
843host=$host_alias
844target=$target_alias
drh75897232000-05-29 14:26:00 +0000845
a.rottmann84e63352003-03-24 09:42:16 +0000846# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000861
a.rottmann84e63352003-03-24 09:42:16 +0000862
drh75897232000-05-29 14:26:00 +0000863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
a.rottmann84e63352003-03-24 09:42:16 +0000867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +0000888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000889 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000890 else
a.rottmann84e63352003-03-24 09:42:16 +0000891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +0000892 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000893 fi
894fi
a.rottmann84e63352003-03-24 09:42:16 +0000895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +0000898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
drh75897232000-05-29 14:26:00 +0000931
drh71eb93e2001-09-28 01:34:43 +0000932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000938 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000939\`configure' configures this package to adapt to many kinds of systems.
940
941Usage: $0 [OPTION]... [VAR=VALUE]...
942
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE. See below for descriptions of some of the useful variables.
945
946Defaults for the options are specified in brackets.
947
948Configuration:
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
958
a.rottmann84e63352003-03-24 09:42:16 +0000959_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000960
a.rottmann84e63352003-03-24 09:42:16 +0000961 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000962Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
964 [$ac_default_prefix]
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 [PREFIX]
967
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
972
973For better control, use the options below.
974
975Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +0000988_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000989
a.rottmann84e63352003-03-24 09:42:16 +0000990 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000991
992System types:
993 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +0000994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000996fi
997
998if test -n "$ac_init_help"; then
999
a.rottmann84e63352003-03-24 09:42:16 +00001000 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001001
1002Optional Features:
1003 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1004 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a.rottmann84e63352003-03-24 09:42:16 +00001005 --enable-shared=PKGS build shared libraries default=yes
1006 --enable-static=PKGS build static libraries default=yes
1007 --enable-fast-install=PKGS optimize for fast installation default=yes
drh71eb93e2001-09-28 01:34:43 +00001008 --disable-libtool-lock avoid locking (might break parallel builds)
1009 --enable-utf8 Use UTF-8 encodings
paulb0208cc2003-04-13 18:26:49 +00001010 --enable-incore-db Support incore database
1011 --enable-tempdb-in-ram Use an in-ram database for temporary tables
drh71eb93e2001-09-28 01:34:43 +00001012
1013Optional Packages:
1014 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1015 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann84e63352003-03-24 09:42:16 +00001016 --with-gnu-ld assume the C compiler uses GNU ld default=no
1017 --with-pic try to use only PIC/non-PIC objects default=use both
drh71eb93e2001-09-28 01:34:43 +00001018 --with-hints=FILE Read configuration options from FILE
1019
1020Some influential environment variables:
1021 CC C compiler command
1022 CFLAGS C compiler flags
1023 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1024 nonstandard directory <lib dir>
1025 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1026 headers in a nonstandard directory <include dir>
1027 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001028
1029Use these variables to override the choices made by `configure' or to help
1030it to find libraries and programs with nonstandard names/locations.
1031
a.rottmann84e63352003-03-24 09:42:16 +00001032_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001033fi
1034
1035if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
1037 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1039 test -d $ac_dir || continue
1040 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001041
a.rottmann84e63352003-03-24 09:42:16 +00001042if test "$ac_dir" != .; then
1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046else
1047 ac_dir_suffix= ac_top_builddir=
1048fi
drh71eb93e2001-09-28 01:34:43 +00001049
a.rottmann84e63352003-03-24 09:42:16 +00001050case $srcdir in
1051 .) # No --srcdir option. We are building in place.
1052 ac_srcdir=.
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1059 ac_srcdir=$srcdir$ac_dir_suffix;
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064esac
1065# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1066# absolute.
1067ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1068ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1069ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1070ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1071
1072 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001073 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001074 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001075 echo
a.rottmann84e63352003-03-24 09:42:16 +00001076 $SHELL $ac_srcdir/configure.gnu --help=recursive
1077 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001078 echo
a.rottmann84e63352003-03-24 09:42:16 +00001079 $SHELL $ac_srcdir/configure --help=recursive
1080 elif test -f $ac_srcdir/configure.ac ||
1081 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001082 echo
1083 $ac_configure --help
1084 else
a.rottmann84e63352003-03-24 09:42:16 +00001085 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001086 fi
1087 cd $ac_popdir
1088 done
1089fi
1090
1091test -n "$ac_init_help" && exit 0
1092if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001093 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001094
a.rottmann84e63352003-03-24 09:42:16 +00001095Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
drh71eb93e2001-09-28 01:34:43 +00001096Free Software Foundation, Inc.
1097This configure script is free software; the Free Software Foundation
1098gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001099_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001100 exit 0
1101fi
1102exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001103cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001104This file contains any messages produced by compilers while
1105running configure, to aid debugging if configure makes a mistake.
1106
1107It was created by $as_me, which was
a.rottmann84e63352003-03-24 09:42:16 +00001108generated by GNU Autoconf 2.57. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001109
1110 $ $0 $@
1111
a.rottmann84e63352003-03-24 09:42:16 +00001112_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001113{
1114cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001115## --------- ##
1116## Platform. ##
1117## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001118
1119hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1120uname -m = `(uname -m) 2>/dev/null || echo unknown`
1121uname -r = `(uname -r) 2>/dev/null || echo unknown`
1122uname -s = `(uname -s) 2>/dev/null || echo unknown`
1123uname -v = `(uname -v) 2>/dev/null || echo unknown`
1124
1125/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1126/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1127
1128/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1129/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1130/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1131hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1132/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1133/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1134/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1135
drh71eb93e2001-09-28 01:34:43 +00001136_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001137
1138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1139for as_dir in $PATH
1140do
1141 IFS=$as_save_IFS
1142 test -z "$as_dir" && as_dir=.
1143 echo "PATH: $as_dir"
1144done
1145
drh71eb93e2001-09-28 01:34:43 +00001146} >&5
1147
a.rottmann84e63352003-03-24 09:42:16 +00001148cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001149
a.rottmann84e63352003-03-24 09:42:16 +00001150
1151## ----------- ##
1152## Core tests. ##
1153## ----------- ##
1154
1155_ACEOF
1156
drh71eb93e2001-09-28 01:34:43 +00001157
1158# Keep a trace of the command line.
1159# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001160# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001161# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001162# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001163ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001164ac_configure_args0=
1165ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001166ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001167ac_must_keep_next=false
1168for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001169do
a.rottmann84e63352003-03-24 09:42:16 +00001170 for ac_arg
1171 do
1172 case $ac_arg in
1173 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 continue ;;
1177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1178 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1179 esac
1180 case $ac_pass in
1181 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1182 2)
1183 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1184 if test $ac_must_keep_next = true; then
1185 ac_must_keep_next=false # Got value, back to normal.
1186 else
1187 case $ac_arg in
1188 *=* | --config-cache | -C | -disable-* | --disable-* \
1189 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1190 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1191 | -with-* | --with-* | -without-* | --without-* | --x)
1192 case "$ac_configure_args0 " in
1193 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1194 esac
1195 ;;
1196 -* ) ac_must_keep_next=true ;;
1197 esac
1198 fi
1199 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1200 # Get rid of the leading space.
1201 ac_sep=" "
1202 ;;
1203 esac
1204 done
drh71eb93e2001-09-28 01:34:43 +00001205done
a.rottmann84e63352003-03-24 09:42:16 +00001206$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1207$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001208
1209# When interrupted or exit'd, cleanup temporary files, and complete
1210# config.log. We remove comments because anyway the quotes in there
1211# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001212# WARNING: Be sure not to use single quotes in there, as some shells,
1213# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001214trap 'exit_status=$?
1215 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001216 {
1217 echo
1218
1219 cat <<\_ASBOX
1220## ---------------- ##
1221## Cache variables. ##
1222## ---------------- ##
1223_ASBOX
1224 echo
1225 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001226{
1227 (set) 2>&1 |
1228 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1229 *ac_space=\ *)
1230 sed -n \
1231 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1233 ;;
1234 *)
1235 sed -n \
1236 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1237 ;;
1238 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001239}
1240 echo
1241
1242 cat <<\_ASBOX
1243## ----------------- ##
1244## Output variables. ##
1245## ----------------- ##
1246_ASBOX
1247 echo
1248 for ac_var in $ac_subst_vars
1249 do
1250 eval ac_val=$`echo $ac_var`
1251 echo "$ac_var='"'"'$ac_val'"'"'"
1252 done | sort
1253 echo
1254
1255 if test -n "$ac_subst_files"; then
1256 cat <<\_ASBOX
1257## ------------- ##
1258## Output files. ##
1259## ------------- ##
1260_ASBOX
1261 echo
1262 for ac_var in $ac_subst_files
1263 do
1264 eval ac_val=$`echo $ac_var`
1265 echo "$ac_var='"'"'$ac_val'"'"'"
1266 done | sort
1267 echo
1268 fi
1269
1270 if test -s confdefs.h; then
1271 cat <<\_ASBOX
1272## ----------- ##
1273## confdefs.h. ##
1274## ----------- ##
1275_ASBOX
1276 echo
1277 sed "/^$/d" confdefs.h | sort
1278 echo
1279 fi
1280 test "$ac_signal" != 0 &&
1281 echo "$as_me: caught signal $ac_signal"
1282 echo "$as_me: exit $exit_status"
1283 } >&5
1284 rm -f core core.* *.core &&
1285 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001286 exit $exit_status
1287 ' 0
1288for ac_signal in 1 2 13 15; do
1289 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1290done
1291ac_signal=0
1292
1293# confdefs.h avoids OS command line length limits that DEFS can exceed.
1294rm -rf conftest* confdefs.h
1295# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1296echo >confdefs.h
1297
a.rottmann84e63352003-03-24 09:42:16 +00001298# Predefined preprocessor variables.
1299
1300cat >>confdefs.h <<_ACEOF
1301#define PACKAGE_NAME "$PACKAGE_NAME"
1302_ACEOF
1303
1304
1305cat >>confdefs.h <<_ACEOF
1306#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1307_ACEOF
1308
1309
1310cat >>confdefs.h <<_ACEOF
1311#define PACKAGE_VERSION "$PACKAGE_VERSION"
1312_ACEOF
1313
1314
1315cat >>confdefs.h <<_ACEOF
1316#define PACKAGE_STRING "$PACKAGE_STRING"
1317_ACEOF
1318
1319
1320cat >>confdefs.h <<_ACEOF
1321#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1322_ACEOF
1323
1324
drh71eb93e2001-09-28 01:34:43 +00001325# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001326# Prefer explicitly selected file to automatically selected ones.
1327if test -z "$CONFIG_SITE"; then
1328 if test "x$prefix" != xNONE; then
1329 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1330 else
1331 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1332 fi
1333fi
1334for ac_site_file in $CONFIG_SITE; do
1335 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001336 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001337echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001338 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001339 . "$ac_site_file"
1340 fi
1341done
1342
1343if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001344 # Some versions of bash will fail to source /dev/null (special
1345 # files actually), so we avoid doing that.
1346 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001347 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001348echo "$as_me: loading cache $cache_file" >&6;}
1349 case $cache_file in
1350 [\\/]* | ?:[\\/]* ) . $cache_file;;
1351 *) . ./$cache_file;;
1352 esac
1353 fi
drh75897232000-05-29 14:26:00 +00001354else
a.rottmann84e63352003-03-24 09:42:16 +00001355 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001356echo "$as_me: creating cache $cache_file" >&6;}
1357 >$cache_file
1358fi
1359
1360# Check that the precious variables saved in the cache have kept the same
1361# value.
1362ac_cache_corrupted=false
1363for ac_var in `(set) 2>&1 |
1364 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1365 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1366 eval ac_new_set=\$ac_env_${ac_var}_set
1367 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1368 eval ac_new_val="\$ac_env_${ac_var}_value"
1369 case $ac_old_set,$ac_new_set in
1370 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001371 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001372echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1373 ac_cache_corrupted=: ;;
1374 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001375 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001376echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1377 ac_cache_corrupted=: ;;
1378 ,);;
1379 *)
1380 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann84e63352003-03-24 09:42:16 +00001381 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001382echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001383 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001384echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001385 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001386echo "$as_me: current value: $ac_new_val" >&2;}
1387 ac_cache_corrupted=:
1388 fi;;
1389 esac
a.rottmann84e63352003-03-24 09:42:16 +00001390 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001391 if test "$ac_new_set" = set; then
1392 case $ac_new_val in
1393 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001394 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1395 *) ac_arg=$ac_var=$ac_new_val ;;
1396 esac
1397 case " $ac_configure_args " in
1398 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1399 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001400 esac
1401 fi
1402done
1403if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001404 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001405echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001406 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001407echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1408 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001409fi
1410
1411ac_ext=c
drh75897232000-05-29 14:26:00 +00001412ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001416
a.rottmann84e63352003-03-24 09:42:16 +00001417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
drh75897232000-05-29 14:26:00 +00001435
1436# The following RCS revision string applies to configure.in
paulb0208cc2003-04-13 18:26:49 +00001437# $Revision: 1.14 $
drh75897232000-05-29 14:26:00 +00001438
1439#########
drh71eb93e2001-09-28 01:34:43 +00001440# Programs needed
drh75897232000-05-29 14:26:00 +00001441#
drh71eb93e2001-09-28 01:34:43 +00001442# Check whether --enable-shared or --disable-shared was given.
1443if test "${enable_shared+set}" = set; then
1444 enableval="$enable_shared"
1445 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001446case $enableval in
1447yes) enable_shared=yes ;;
1448no) enable_shared=no ;;
1449*)
1450 enable_shared=no
1451 # Look at the argument we got. We use all the common list separators.
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1453 for pkg in $enableval; do
1454 if test "X$pkg" = "X$p"; then
1455 enable_shared=yes
1456 fi
1457 done
1458 IFS="$ac_save_ifs"
1459 ;;
1460esac
drh71eb93e2001-09-28 01:34:43 +00001461else
1462 enable_shared=yes
1463fi;
drh71eb93e2001-09-28 01:34:43 +00001464# Check whether --enable-static or --disable-static was given.
1465if test "${enable_static+set}" = set; then
1466 enableval="$enable_static"
1467 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001468case $enableval in
1469yes) enable_static=yes ;;
1470no) enable_static=no ;;
1471*)
1472 enable_static=no
1473 # Look at the argument we got. We use all the common list separators.
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1475 for pkg in $enableval; do
1476 if test "X$pkg" = "X$p"; then
1477 enable_static=yes
1478 fi
1479 done
1480 IFS="$ac_save_ifs"
1481 ;;
1482esac
drh71eb93e2001-09-28 01:34:43 +00001483else
1484 enable_static=yes
1485fi;
drh71eb93e2001-09-28 01:34:43 +00001486# Check whether --enable-fast-install or --disable-fast-install was given.
1487if test "${enable_fast_install+set}" = set; then
1488 enableval="$enable_fast_install"
1489 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001490case $enableval in
1491yes) enable_fast_install=yes ;;
1492no) enable_fast_install=no ;;
1493*)
1494 enable_fast_install=no
1495 # Look at the argument we got. We use all the common list separators.
1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1497 for pkg in $enableval; do
1498 if test "X$pkg" = "X$p"; then
1499 enable_fast_install=yes
1500 fi
1501 done
1502 IFS="$ac_save_ifs"
1503 ;;
1504esac
drh71eb93e2001-09-28 01:34:43 +00001505else
1506 enable_fast_install=yes
1507fi;
drh71eb93e2001-09-28 01:34:43 +00001508ac_aux_dir=
1509for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1510 if test -f $ac_dir/install-sh; then
1511 ac_aux_dir=$ac_dir
1512 ac_install_sh="$ac_aux_dir/install-sh -c"
1513 break
1514 elif test -f $ac_dir/install.sh; then
1515 ac_aux_dir=$ac_dir
1516 ac_install_sh="$ac_aux_dir/install.sh -c"
1517 break
1518 elif test -f $ac_dir/shtool; then
1519 ac_aux_dir=$ac_dir
1520 ac_install_sh="$ac_aux_dir/shtool install -c"
1521 break
1522 fi
1523done
1524if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001525 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001526echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1527 { (exit 1); exit 1; }; }
1528fi
1529ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
1533# Make sure we can run config.sub.
1534$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001535 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001536echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1537 { (exit 1); exit 1; }; }
1538
a.rottmann84e63352003-03-24 09:42:16 +00001539echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001540echo $ECHO_N "checking build system type... $ECHO_C" >&6
1541if test "${ac_cv_build+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543else
1544 ac_cv_build_alias=$build_alias
1545test -z "$ac_cv_build_alias" &&
1546 ac_cv_build_alias=`$ac_config_guess`
1547test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001548 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001549echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1550 { (exit 1); exit 1; }; }
1551ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1553echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001554 { (exit 1); exit 1; }; }
1555
1556fi
a.rottmann84e63352003-03-24 09:42:16 +00001557echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001558echo "${ECHO_T}$ac_cv_build" >&6
1559build=$ac_cv_build
1560build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
a.rottmann84e63352003-03-24 09:42:16 +00001564
1565echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001566echo $ECHO_N "checking host system type... $ECHO_C" >&6
1567if test "${ac_cv_host+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 ac_cv_host_alias=$host_alias
1571test -z "$ac_cv_host_alias" &&
1572 ac_cv_host_alias=$ac_cv_build_alias
1573ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001575echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578fi
a.rottmann84e63352003-03-24 09:42:16 +00001579echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001580echo "${ECHO_T}$ac_cv_host" >&6
1581host=$ac_cv_host
1582host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
a.rottmann84e63352003-03-24 09:42:16 +00001586
drh71eb93e2001-09-28 01:34:43 +00001587ac_ext=c
1588ac_cpp='$CPP $CPPFLAGS'
1589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1591ac_compiler_gnu=$ac_cv_c_compiler_gnu
1592if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1594set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001595echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602else
a.rottmann84e63352003-03-24 09:42:16 +00001603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604for as_dir in $PATH
1605do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1613 fi
1614done
drh71eb93e2001-09-28 01:34:43 +00001615done
1616
1617fi
1618fi
1619CC=$ac_cv_prog_CC
1620if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001621 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001622echo "${ECHO_T}$CC" >&6
1623else
a.rottmann84e63352003-03-24 09:42:16 +00001624 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001625echo "${ECHO_T}no" >&6
1626fi
1627
1628fi
1629if test -z "$ac_cv_prog_CC"; then
1630 ac_ct_CC=$CC
1631 # Extract the first word of "gcc", so it can be a program name with args.
1632set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001633echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640else
a.rottmann84e63352003-03-24 09:42:16 +00001641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_CC="gcc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652done
drh71eb93e2001-09-28 01:34:43 +00001653done
1654
1655fi
1656fi
1657ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001660echo "${ECHO_T}$ac_ct_CC" >&6
1661else
a.rottmann84e63352003-03-24 09:42:16 +00001662 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001663echo "${ECHO_T}no" >&6
1664fi
1665
1666 CC=$ac_ct_CC
1667else
1668 CC="$ac_cv_prog_CC"
1669fi
1670
1671if test -z "$CC"; then
1672 if test -n "$ac_tool_prefix"; then
1673 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1674set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001675echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679else
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1682else
a.rottmann84e63352003-03-24 09:42:16 +00001683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684for as_dir in $PATH
1685do
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_CC="${ac_tool_prefix}cc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1693 fi
1694done
drh71eb93e2001-09-28 01:34:43 +00001695done
1696
1697fi
1698fi
1699CC=$ac_cv_prog_CC
1700if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001701 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001702echo "${ECHO_T}$CC" >&6
1703else
a.rottmann84e63352003-03-24 09:42:16 +00001704 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001705echo "${ECHO_T}no" >&6
1706fi
1707
1708fi
1709if test -z "$ac_cv_prog_CC"; then
1710 ac_ct_CC=$CC
1711 # Extract the first word of "cc", so it can be a program name with args.
1712set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001713echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718 if test -n "$ac_ct_CC"; then
1719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1720else
a.rottmann84e63352003-03-24 09:42:16 +00001721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722for as_dir in $PATH
1723do
1724 IFS=$as_save_IFS
1725 test -z "$as_dir" && as_dir=.
1726 for ac_exec_ext in '' $ac_executable_extensions; do
1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728 ac_cv_prog_ac_ct_CC="cc"
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 break 2
1731 fi
1732done
drh71eb93e2001-09-28 01:34:43 +00001733done
1734
1735fi
1736fi
1737ac_ct_CC=$ac_cv_prog_ac_ct_CC
1738if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001739 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001740echo "${ECHO_T}$ac_ct_CC" >&6
1741else
a.rottmann84e63352003-03-24 09:42:16 +00001742 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001743echo "${ECHO_T}no" >&6
1744fi
1745
1746 CC=$ac_ct_CC
1747else
1748 CC="$ac_cv_prog_CC"
1749fi
1750
1751fi
1752if test -z "$CC"; then
1753 # Extract the first word of "cc", so it can be a program name with args.
1754set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001755echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1762else
1763 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765for as_dir in $PATH
1766do
1767 IFS=$as_save_IFS
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1772 ac_prog_rejected=yes
1773 continue
1774 fi
1775 ac_cv_prog_CC="cc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779done
drh71eb93e2001-09-28 01:34:43 +00001780done
1781
1782if test $ac_prog_rejected = yes; then
1783 # We found a bogon in the path, so make sure we never use it.
1784 set dummy $ac_cv_prog_CC
1785 shift
1786 if test $# != 0; then
1787 # We chose a different compiler from the bogus one.
1788 # However, it has the same basename, so the bogon will be chosen
1789 # first if we set CC to just the basename; use the full file name.
1790 shift
a.rottmann84e63352003-03-24 09:42:16 +00001791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001792 fi
1793fi
1794fi
1795fi
1796CC=$ac_cv_prog_CC
1797if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001798 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001799echo "${ECHO_T}$CC" >&6
1800else
a.rottmann84e63352003-03-24 09:42:16 +00001801 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001802echo "${ECHO_T}no" >&6
1803fi
1804
1805fi
1806if test -z "$CC"; then
1807 if test -n "$ac_tool_prefix"; then
1808 for ac_prog in cl
1809 do
1810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001812echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816else
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1819else
a.rottmann84e63352003-03-24 09:42:16 +00001820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821for as_dir in $PATH
1822do
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 break 2
1830 fi
1831done
drh71eb93e2001-09-28 01:34:43 +00001832done
1833
1834fi
1835fi
1836CC=$ac_cv_prog_CC
1837if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001838 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001839echo "${ECHO_T}$CC" >&6
1840else
a.rottmann84e63352003-03-24 09:42:16 +00001841 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001842echo "${ECHO_T}no" >&6
1843fi
1844
1845 test -n "$CC" && break
1846 done
1847fi
1848if test -z "$CC"; then
1849 ac_ct_CC=$CC
1850 for ac_prog in cl
1851do
1852 # Extract the first word of "$ac_prog", so it can be a program name with args.
1853set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001854echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 if test -n "$ac_ct_CC"; then
1860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861else
a.rottmann84e63352003-03-24 09:42:16 +00001862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_CC="$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873done
drh71eb93e2001-09-28 01:34:43 +00001874done
1875
1876fi
1877fi
1878ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001880 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001881echo "${ECHO_T}$ac_ct_CC" >&6
1882else
a.rottmann84e63352003-03-24 09:42:16 +00001883 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001884echo "${ECHO_T}no" >&6
1885fi
1886
1887 test -n "$ac_ct_CC" && break
1888done
1889
1890 CC=$ac_ct_CC
1891fi
1892
1893fi
1894
a.rottmann84e63352003-03-24 09:42:16 +00001895
1896test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1897See \`config.log' for more details." >&5
1898echo "$as_me: error: no acceptable C compiler found in \$PATH
1899See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001900 { (exit 1); exit 1; }; }
1901
1902# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001903echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001904 "checking for C compiler version" >&5
1905ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001906{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001907 (eval $ac_compiler --version </dev/null >&5) 2>&5
1908 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001910 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001912 (eval $ac_compiler -v </dev/null >&5) 2>&5
1913 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001915 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001917 (eval $ac_compiler -V </dev/null >&5) 2>&5
1918 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001920 (exit $ac_status); }
1921
1922cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001923#line $LINENO "configure"
1924/* confdefs.h. */
1925_ACEOF
1926cat confdefs.h >>conftest.$ac_ext
1927cat >>conftest.$ac_ext <<_ACEOF
1928/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001929
1930int
1931main ()
1932{
1933
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00001939ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00001940# Try to create an executable without -o first, disregard a.out.
1941# It will help us diagnose broken compilers, and finding out an intuition
1942# of exeext.
a.rottmann84e63352003-03-24 09:42:16 +00001943echo "$as_me:$LINENO: checking for C compiler default output" >&5
drh71eb93e2001-09-28 01:34:43 +00001944echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1945ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00001946if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001947 (eval $ac_link_default) 2>&5
1948 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001950 (exit $ac_status); }; then
1951 # Find the output, starting from the most likely. This scheme is
1952# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1953# resort.
a.rottmann84e63352003-03-24 09:42:16 +00001954
1955# Be careful to initialize this variable, since it used to be cached.
1956# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1957ac_cv_exeext=
1958# b.out is created by i960 compilers.
1959for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1960do
1961 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00001962 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00001963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1964 ;;
1965 conftest.$ac_ext )
1966 # This is the source file.
1967 ;;
1968 [ab].out )
1969 # We found the default executable, but exeext='' is most
1970 # certainly right.
1971 break;;
1972 *.* )
1973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1974 # FIXME: I believe we export ac_cv_exeext for Libtool,
1975 # but it would be cool to find out if it's true. Does anybody
1976 # maintain Libtool? --akim.
1977 export ac_cv_exeext
1978 break;;
1979 * )
1980 break;;
drh71eb93e2001-09-28 01:34:43 +00001981 esac
1982done
1983else
1984 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001985sed 's/^/| /' conftest.$ac_ext >&5
1986
1987{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1988See \`config.log' for more details." >&5
1989echo "$as_me: error: C compiler cannot create executables
1990See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001991 { (exit 77); exit 77; }; }
1992fi
1993
1994ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00001995echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001996echo "${ECHO_T}$ac_file" >&6
1997
1998# Check the compiler produces executables we can run. If not, either
1999# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002000echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002001echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2002# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2003# If not cross compiling, check that we can run a simple program.
2004if test "$cross_compiling" != yes; then
2005 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002007 (eval $ac_try) 2>&5
2008 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002010 (exit $ac_status); }; }; then
2011 cross_compiling=no
2012 else
2013 if test "$cross_compiling" = maybe; then
2014 cross_compiling=yes
2015 else
a.rottmann84e63352003-03-24 09:42:16 +00002016 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2017If you meant to cross compile, use \`--host'.
2018See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002019echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002020If you meant to cross compile, use \`--host'.
2021See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002022 { (exit 1); exit 1; }; }
2023 fi
2024 fi
2025fi
a.rottmann84e63352003-03-24 09:42:16 +00002026echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002027echo "${ECHO_T}yes" >&6
2028
a.rottmann84e63352003-03-24 09:42:16 +00002029rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002030ac_clean_files=$ac_clean_files_save
2031# Check the compiler produces executables we can run. If not, either
2032# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002033echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002034echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002035echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002036echo "${ECHO_T}$cross_compiling" >&6
2037
a.rottmann84e63352003-03-24 09:42:16 +00002038echo "$as_me:$LINENO: checking for suffix of executables" >&5
2039echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002041 (eval $ac_link) 2>&5
2042 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002044 (exit $ac_status); }; then
2045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2046# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2047# work properly (i.e., refer to `conftest.exe'), while it won't with
2048# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002049for ac_file in conftest.exe conftest conftest.*; do
2050 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002051 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2054 export ac_cv_exeext
2055 break;;
2056 * ) break;;
2057 esac
2058done
2059else
a.rottmann84e63352003-03-24 09:42:16 +00002060 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2061See \`config.log' for more details." >&5
2062echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2063See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002064 { (exit 1); exit 1; }; }
2065fi
2066
2067rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002068echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002069echo "${ECHO_T}$ac_cv_exeext" >&6
2070
2071rm -f conftest.$ac_ext
2072EXEEXT=$ac_cv_exeext
2073ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002074echo "$as_me:$LINENO: checking for suffix of object files" >&5
2075echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002076if test "${ac_cv_objext+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002080#line $LINENO "configure"
2081/* confdefs.h. */
2082_ACEOF
2083cat confdefs.h >>conftest.$ac_ext
2084cat >>conftest.$ac_ext <<_ACEOF
2085/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002086
2087int
2088main ()
2089{
2090
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002097 (eval $ac_compile) 2>&5
2098 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002100 (exit $ac_status); }; then
2101 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2102 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2105 break;;
2106 esac
2107done
2108else
2109 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: cannot compute suffix of object files: cannot compile
2115See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002116 { (exit 1); exit 1; }; }
2117fi
2118
2119rm -f conftest.$ac_cv_objext conftest.$ac_ext
2120fi
a.rottmann84e63352003-03-24 09:42:16 +00002121echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002122echo "${ECHO_T}$ac_cv_objext" >&6
2123OBJEXT=$ac_cv_objext
2124ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002125echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002126echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2127if test "${ac_cv_c_compiler_gnu+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002131#line $LINENO "configure"
2132/* confdefs.h. */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002137
2138int
2139main ()
2140{
2141#ifndef __GNUC__
2142 choke me
2143#endif
2144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002151 (eval $ac_compile) 2>&5
2152 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002157 (eval $ac_try) 2>&5
2158 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002160 (exit $ac_status); }; }; then
2161 ac_compiler_gnu=yes
2162else
2163 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002164sed 's/^/| /' conftest.$ac_ext >&5
2165
drh71eb93e2001-09-28 01:34:43 +00002166ac_compiler_gnu=no
2167fi
2168rm -f conftest.$ac_objext conftest.$ac_ext
2169ac_cv_c_compiler_gnu=$ac_compiler_gnu
2170
2171fi
a.rottmann84e63352003-03-24 09:42:16 +00002172echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002173echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2174GCC=`test $ac_compiler_gnu = yes && echo yes`
2175ac_test_CFLAGS=${CFLAGS+set}
2176ac_save_CFLAGS=$CFLAGS
2177CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002178echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002179echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2180if test "${ac_cv_prog_cc_g+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002184#line $LINENO "configure"
2185/* confdefs.h. */
2186_ACEOF
2187cat confdefs.h >>conftest.$ac_ext
2188cat >>conftest.$ac_ext <<_ACEOF
2189/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002190
2191int
2192main ()
2193{
2194
2195 ;
2196 return 0;
2197}
2198_ACEOF
2199rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002201 (eval $ac_compile) 2>&5
2202 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002204 (exit $ac_status); } &&
2205 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002207 (eval $ac_try) 2>&5
2208 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002210 (exit $ac_status); }; }; then
2211 ac_cv_prog_cc_g=yes
2212else
2213 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002214sed 's/^/| /' conftest.$ac_ext >&5
2215
drh71eb93e2001-09-28 01:34:43 +00002216ac_cv_prog_cc_g=no
2217fi
2218rm -f conftest.$ac_objext conftest.$ac_ext
2219fi
a.rottmann84e63352003-03-24 09:42:16 +00002220echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002221echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2222if test "$ac_test_CFLAGS" = set; then
2223 CFLAGS=$ac_save_CFLAGS
2224elif test $ac_cv_prog_cc_g = yes; then
2225 if test "$GCC" = yes; then
2226 CFLAGS="-g -O2"
2227 else
2228 CFLAGS="-g"
2229 fi
2230else
2231 if test "$GCC" = yes; then
2232 CFLAGS="-O2"
2233 else
2234 CFLAGS=
2235 fi
2236fi
a.rottmann84e63352003-03-24 09:42:16 +00002237echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2238echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2239if test "${ac_cv_prog_cc_stdc+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 ac_cv_prog_cc_stdc=no
2243ac_save_CC=$CC
2244cat >conftest.$ac_ext <<_ACEOF
2245#line $LINENO "configure"
2246/* confdefs.h. */
2247_ACEOF
2248cat confdefs.h >>conftest.$ac_ext
2249cat >>conftest.$ac_ext <<_ACEOF
2250/* end confdefs.h. */
2251#include <stdarg.h>
2252#include <stdio.h>
2253#include <sys/types.h>
2254#include <sys/stat.h>
2255/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2256struct buf { int x; };
2257FILE * (*rcsopen) (struct buf *, struct stat *, int);
2258static char *e (p, i)
2259 char **p;
2260 int i;
2261{
2262 return p[i];
2263}
2264static char *f (char * (*g) (char **, int), char **p, ...)
2265{
2266 char *s;
2267 va_list v;
2268 va_start (v,p);
2269 s = g (p, va_arg (v,int));
2270 va_end (v);
2271 return s;
2272}
2273int test (int i, double x);
2274struct s1 {int (*f) (int a);};
2275struct s2 {int (*f) (double a);};
2276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2277int argc;
2278char **argv;
2279int
2280main ()
2281{
2282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2283 ;
2284 return 0;
2285}
2286_ACEOF
2287# Don't try gcc -ansi; that turns off useful extensions and
2288# breaks some systems' header files.
2289# AIX -qlanglvl=ansi
2290# Ultrix and OSF/1 -std1
2291# HP-UX 10.20 and later -Ae
2292# HP-UX older versions -Aa -D_HPUX_SOURCE
2293# SVR4 -Xc -D__EXTENSIONS__
2294for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2295do
2296 CC="$ac_save_CC $ac_arg"
2297 rm -f conftest.$ac_objext
2298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2309 ac_cv_prog_cc_stdc=$ac_arg
2310break
2311else
2312 echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315fi
2316rm -f conftest.$ac_objext
2317done
2318rm -f conftest.$ac_ext conftest.$ac_objext
2319CC=$ac_save_CC
2320
2321fi
2322
2323case "x$ac_cv_prog_cc_stdc" in
2324 x|xno)
2325 echo "$as_me:$LINENO: result: none needed" >&5
2326echo "${ECHO_T}none needed" >&6 ;;
2327 *)
2328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2329echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2330 CC="$CC $ac_cv_prog_cc_stdc" ;;
2331esac
2332
drh71eb93e2001-09-28 01:34:43 +00002333# Some people use a C++ compiler to compile C. Since we use `exit',
2334# in C++ we need to declare it. In case someone uses the same compiler
2335# for both compiling C and C++ we need to have the C++ compiler decide
2336# the declaration of exit, since it's the most demanding environment.
2337cat >conftest.$ac_ext <<_ACEOF
2338#ifndef __cplusplus
2339 choke me
2340#endif
2341_ACEOF
2342rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002344 (eval $ac_compile) 2>&5
2345 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002347 (exit $ac_status); } &&
2348 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002350 (eval $ac_try) 2>&5
2351 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002353 (exit $ac_status); }; }; then
2354 for ac_declaration in \
2355 ''\
2356 '#include <stdlib.h>' \
2357 'extern "C" void std::exit (int) throw (); using std::exit;' \
2358 'extern "C" void std::exit (int); using std::exit;' \
2359 'extern "C" void exit (int) throw ();' \
2360 'extern "C" void exit (int);' \
2361 'void exit (int);'
2362do
2363 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002364#line $LINENO "configure"
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002370#include <stdlib.h>
2371$ac_declaration
2372int
2373main ()
2374{
2375exit (42);
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002382 (eval $ac_compile) 2>&5
2383 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002385 (exit $ac_status); } &&
2386 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002388 (eval $ac_try) 2>&5
2389 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002391 (exit $ac_status); }; }; then
2392 :
2393else
2394 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002395sed 's/^/| /' conftest.$ac_ext >&5
2396
drh71eb93e2001-09-28 01:34:43 +00002397continue
2398fi
2399rm -f conftest.$ac_objext conftest.$ac_ext
2400 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002401#line $LINENO "configure"
2402/* confdefs.h. */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002407$ac_declaration
2408int
2409main ()
2410{
2411exit (42);
2412 ;
2413 return 0;
2414}
2415_ACEOF
2416rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002418 (eval $ac_compile) 2>&5
2419 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002421 (exit $ac_status); } &&
2422 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002424 (eval $ac_try) 2>&5
2425 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002427 (exit $ac_status); }; }; then
2428 break
2429else
2430 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002431sed 's/^/| /' conftest.$ac_ext >&5
2432
drh71eb93e2001-09-28 01:34:43 +00002433fi
2434rm -f conftest.$ac_objext conftest.$ac_ext
2435done
2436rm -f conftest*
2437if test -n "$ac_declaration"; then
2438 echo '#ifdef __cplusplus' >>confdefs.h
2439 echo $ac_declaration >>confdefs.h
2440 echo '#endif' >>confdefs.h
2441fi
2442
2443else
2444 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002445sed 's/^/| /' conftest.$ac_ext >&5
2446
drh71eb93e2001-09-28 01:34:43 +00002447fi
2448rm -f conftest.$ac_objext conftest.$ac_ext
2449ac_ext=c
2450ac_cpp='$CPP $CPPFLAGS'
2451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454
a.rottmann84e63352003-03-24 09:42:16 +00002455# Find the correct PATH separator. Usually this is `:', but
2456# DJGPP uses `;' like DOS.
2457if test "X${PATH_SEPARATOR+set}" != Xset; then
2458 UNAME=${UNAME-`uname 2>/dev/null`}
2459 case X$UNAME in
2460 *-DOS) lt_cv_sys_path_separator=';' ;;
2461 *) lt_cv_sys_path_separator=':' ;;
2462 esac
2463 PATH_SEPARATOR=$lt_cv_sys_path_separator
2464fi
2465
2466
drh71eb93e2001-09-28 01:34:43 +00002467# Check whether --with-gnu-ld or --without-gnu-ld was given.
2468if test "${with_gnu_ld+set}" = set; then
2469 withval="$with_gnu_ld"
2470 test "$withval" = no || with_gnu_ld=yes
2471else
2472 with_gnu_ld=no
2473fi;
2474ac_prog=ld
2475if test "$GCC" = yes; then
2476 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann84e63352003-03-24 09:42:16 +00002477 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
drh71eb93e2001-09-28 01:34:43 +00002478echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2479 case $host in
2480 *-*-mingw*)
2481 # gcc leaves a trailing carriage return which upsets mingw
2482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2483 *)
2484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2485 esac
2486 case $ac_prog in
2487 # Accept absolute paths.
a.rottmann84e63352003-03-24 09:42:16 +00002488 [\\/]* | [A-Za-z]:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002489 re_direlt='/[^/][^/]*/\.\./'
2490 # Canonicalize the path of ld
2491 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2492 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2493 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2494 done
2495 test -z "$LD" && LD="$ac_prog"
2496 ;;
2497 "")
2498 # If it fails, then pretend we aren't using GCC.
2499 ac_prog=ld
2500 ;;
2501 *)
2502 # If it is relative, then search for the first ld in PATH.
2503 with_gnu_ld=unknown
2504 ;;
2505 esac
2506elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002507 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002508echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2509else
a.rottmann84e63352003-03-24 09:42:16 +00002510 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002511echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2512fi
2513if test "${lt_cv_path_LD+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516 if test -z "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002518 for ac_dir in $PATH; do
drh71eb93e2001-09-28 01:34:43 +00002519 test -z "$ac_dir" && ac_dir=.
2520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2521 lt_cv_path_LD="$ac_dir/$ac_prog"
2522 # Check to see if the program is GNU ld. I'd rather use --version,
2523 # but apparently some GNU ld's only accept -v.
2524 # Break only if it was the GNU/non-GNU ld that we prefer.
2525 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2526 test "$with_gnu_ld" != no && break
2527 else
2528 test "$with_gnu_ld" != yes && break
2529 fi
2530 fi
2531 done
a.rottmann84e63352003-03-24 09:42:16 +00002532 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002533else
2534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2535fi
2536fi
2537
2538LD="$lt_cv_path_LD"
2539if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002540 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002541echo "${ECHO_T}$LD" >&6
2542else
a.rottmann84e63352003-03-24 09:42:16 +00002543 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002544echo "${ECHO_T}no" >&6
2545fi
a.rottmann84e63352003-03-24 09:42:16 +00002546test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002547echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2548 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002549echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002550echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2551if test "${lt_cv_prog_gnu_ld+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2555if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2556 lt_cv_prog_gnu_ld=yes
2557else
2558 lt_cv_prog_gnu_ld=no
2559fi
2560fi
a.rottmann84e63352003-03-24 09:42:16 +00002561echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002562echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2563with_gnu_ld=$lt_cv_prog_gnu_ld
2564
a.rottmann84e63352003-03-24 09:42:16 +00002565
2566echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002567echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2568if test "${lt_cv_ld_reload_flag+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 lt_cv_ld_reload_flag='-r'
2572fi
a.rottmann84e63352003-03-24 09:42:16 +00002573echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002574echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2575reload_flag=$lt_cv_ld_reload_flag
a.rottmann84e63352003-03-24 09:42:16 +00002576test -n "$reload_flag" && reload_flag=" $reload_flag"
drh71eb93e2001-09-28 01:34:43 +00002577
a.rottmann84e63352003-03-24 09:42:16 +00002578echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002579echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2580if test "${lt_cv_path_NM+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583 if test -n "$NM"; then
2584 # Let the user override the test.
2585 lt_cv_path_NM="$NM"
2586else
a.rottmann84e63352003-03-24 09:42:16 +00002587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002588 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
drh71eb93e2001-09-28 01:34:43 +00002589 test -z "$ac_dir" && ac_dir=.
2590 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2591 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2592 # Check to see if the nm accepts a BSD-compat flag.
2593 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2594 # nm: unknown option "B" ignored
2595 # Tru64's nm complains that /dev/null is an invalid object file
2596 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2597 lt_cv_path_NM="$tmp_nm -B"
2598 break
2599 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2600 lt_cv_path_NM="$tmp_nm -p"
2601 break
2602 else
2603 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2604 continue # so that we can try to find one that supports BSD flags
2605 fi
2606 fi
2607 done
a.rottmann84e63352003-03-24 09:42:16 +00002608 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002609 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2610fi
2611fi
drh71eb93e2001-09-28 01:34:43 +00002612
a.rottmann84e63352003-03-24 09:42:16 +00002613NM="$lt_cv_path_NM"
2614echo "$as_me:$LINENO: result: $NM" >&5
2615echo "${ECHO_T}$NM" >&6
2616
2617echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2618echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2619if test "${lt_cv_path_SED+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622 # Loop through the user's path and test for sed and gsed.
2623# Then use that list of sed's as ones to test for truncation.
2624as_executable_p="test -f"
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_prog in sed gsed; do
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2633 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2634 fi
2635 done
2636 done
2637done
2638
2639 # Create a temporary directory, and hook for its removal unless debugging.
2640$debug ||
2641{
2642 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2643 trap '{ (exit 1); exit 1; }' 1 2 13 15
2644}
2645
2646# Create a (secure) tmp directory for tmp files.
2647: ${TMPDIR=/tmp}
2648{
2649 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2650 test -n "$tmp" && test -d "$tmp"
2651} ||
2652{
2653 tmp=$TMPDIR/sed$$-$RANDOM
2654 (umask 077 && mkdir $tmp)
2655} ||
2656{
2657 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2658 { (exit 1); exit 1; }
2659}
2660 _max=0
2661 _count=0
2662 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2663 # along with /bin/sed that truncates output.
2664 for _sed in $_sed_list /usr/xpg4/bin/sed; do
2665 test ! -f ${_sed} && break
2666 cat /dev/null > "$tmp/sed.in"
2667 _count=0
2668 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2669 # Check for GNU sed and select it if it is found.
2670 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
2671 lt_cv_path_SED=${_sed}
2672 break
2673 fi
2674 while true; do
2675 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2676 mv "$tmp/sed.tmp" "$tmp/sed.in"
2677 cp "$tmp/sed.in" "$tmp/sed.nl"
2678 echo >>"$tmp/sed.nl"
2679 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
2680 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
2681 # 40000 chars as input seems more than enough
2682 test $_count -gt 10 && break
2683 _count=`expr $_count + 1`
2684 if test $_count -gt $_max; then
2685 _max=$_count
2686 lt_cv_path_SED=$_sed
2687 fi
2688 done
2689 done
2690 rm -rf "$tmp"
2691
2692fi
2693
2694if test "X$SED" != "X"; then
2695 lt_cv_path_SED=$SED
2696else
2697 SED=$lt_cv_path_SED
2698fi
2699echo "$as_me:$LINENO: result: $SED" >&5
2700echo "${ECHO_T}$SED" >&6
2701
2702echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002703echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2704LN_S=$as_ln_s
2705if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002706 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002707echo "${ECHO_T}yes" >&6
2708else
a.rottmann84e63352003-03-24 09:42:16 +00002709 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002710echo "${ECHO_T}no, using $LN_S" >&6
2711fi
2712
a.rottmann84e63352003-03-24 09:42:16 +00002713echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2714echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002715if test "${lt_cv_deplibs_check_method+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 lt_cv_file_magic_cmd='$MAGIC_CMD'
2719lt_cv_file_magic_test_file=
2720lt_cv_deplibs_check_method='unknown'
2721# Need to set the preceding variable on all platforms that support
2722# interlibrary dependencies.
2723# 'none' -- dependencies not supported.
2724# `unknown' -- same as none, but documents that we really don't know.
2725# 'pass_all' -- all dependencies passed with no checks.
2726# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002727# 'file_magic [[regex]]' -- check by looking for files in library path
drh71eb93e2001-09-28 01:34:43 +00002728# which responds to the $file_magic_cmd with a given egrep regex.
2729# If you have `file' or equivalent on your system and you're not sure
2730# whether `pass_all' will *always* work, you probably want this one.
2731
2732case $host_os in
2733aix4* | aix5*)
2734 lt_cv_deplibs_check_method=pass_all
2735 ;;
2736
2737beos*)
2738 lt_cv_deplibs_check_method=pass_all
2739 ;;
2740
2741bsdi4*)
2742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2743 lt_cv_file_magic_cmd='/usr/bin/file -L'
2744 lt_cv_file_magic_test_file=/shlib/libc.so
2745 ;;
2746
2747cygwin* | mingw* | pw32*)
2748 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2749 lt_cv_file_magic_cmd='$OBJDUMP -f'
2750 ;;
2751
2752darwin* | rhapsody*)
2753 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2754 lt_cv_file_magic_cmd='/usr/bin/file -L'
2755 case "$host_os" in
a.rottmann84e63352003-03-24 09:42:16 +00002756 rhapsody* | darwin1.[012])
2757 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
drh71eb93e2001-09-28 01:34:43 +00002758 ;;
2759 *) # Darwin 1.3 on
2760 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2761 ;;
2762 esac
2763 ;;
2764
2765freebsd*)
2766 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2767 case $host_cpu in
2768 i*86 )
2769 # Not sure whether the presence of OpenBSD here was a mistake.
2770 # Let's accept both of them until this is cleared up.
2771 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2772 lt_cv_file_magic_cmd=/usr/bin/file
2773 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2774 ;;
2775 esac
2776 else
2777 lt_cv_deplibs_check_method=pass_all
2778 fi
2779 ;;
2780
2781gnu*)
2782 lt_cv_deplibs_check_method=pass_all
2783 ;;
2784
a.rottmann84e63352003-03-24 09:42:16 +00002785hpux10.20*|hpux11*)
2786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
drh71eb93e2001-09-28 01:34:43 +00002787 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann84e63352003-03-24 09:42:16 +00002788 lt_cv_file_magic_test_file=/usr/lib/libc.sl
drh71eb93e2001-09-28 01:34:43 +00002789 ;;
2790
a.rottmann84e63352003-03-24 09:42:16 +00002791irix5* | irix6* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002792 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00002793 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002794 # this will be overridden with pass_all, but let us keep it just in case
2795 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2796 ;;
2797 *)
2798 case $LD in
2799 *-32|*"-32 ") libmagic=32-bit;;
2800 *-n32|*"-n32 ") libmagic=N32;;
2801 *-64|*"-64 ") libmagic=64-bit;;
2802 *) libmagic=never-match;;
2803 esac
2804 # this will be overridden with pass_all, but let us keep it just in case
2805 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2806 ;;
2807 esac
2808 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2809 lt_cv_deplibs_check_method=pass_all
2810 ;;
2811
2812# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00002813linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00002814 case $host_cpu in
a.rottmann84e63352003-03-24 09:42:16 +00002815 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
drh71eb93e2001-09-28 01:34:43 +00002816 lt_cv_deplibs_check_method=pass_all ;;
2817 *)
2818 # glibc up to 2.1.1 does not perform some relocations on ARM
2819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2820 esac
2821 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2822 ;;
2823
2824netbsd*)
2825 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2826 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2827 else
2828 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2829 fi
2830 ;;
2831
2832newos6*)
2833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2834 lt_cv_file_magic_cmd=/usr/bin/file
2835 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2836 ;;
2837
a.rottmann84e63352003-03-24 09:42:16 +00002838openbsd*)
2839 lt_cv_file_magic_cmd=/usr/bin/file
2840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2843 else
2844 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2845 fi
drh71eb93e2001-09-28 01:34:43 +00002846 ;;
2847
2848osf3* | osf4* | osf5*)
2849 # this will be overridden with pass_all, but let us keep it just in case
2850 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2851 lt_cv_file_magic_test_file=/shlib/libc.so
2852 lt_cv_deplibs_check_method=pass_all
2853 ;;
2854
2855sco3.2v5*)
2856 lt_cv_deplibs_check_method=pass_all
2857 ;;
2858
2859solaris*)
2860 lt_cv_deplibs_check_method=pass_all
2861 lt_cv_file_magic_test_file=/lib/libc.so
2862 ;;
2863
a.rottmann84e63352003-03-24 09:42:16 +00002864sysv5uw[78]* | sysv4*uw2*)
2865 lt_cv_deplibs_check_method=pass_all
2866 ;;
2867
drh71eb93e2001-09-28 01:34:43 +00002868sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2869 case $host_vendor in
2870 motorola)
2871 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]'
2872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2873 ;;
2874 ncr)
2875 lt_cv_deplibs_check_method=pass_all
2876 ;;
2877 sequent)
2878 lt_cv_file_magic_cmd='/bin/file'
2879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2880 ;;
2881 sni)
2882 lt_cv_file_magic_cmd='/bin/file'
2883 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2884 lt_cv_file_magic_test_file=/lib/libc.so
2885 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002886 siemens)
2887 lt_cv_deplibs_check_method=pass_all
2888 ;;
drh71eb93e2001-09-28 01:34:43 +00002889 esac
2890 ;;
drh71eb93e2001-09-28 01:34:43 +00002891esac
2892
2893fi
a.rottmann84e63352003-03-24 09:42:16 +00002894echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00002895echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2896file_magic_cmd=$lt_cv_file_magic_cmd
2897deplibs_check_method=$lt_cv_deplibs_check_method
drh71eb93e2001-09-28 01:34:43 +00002898
drh71eb93e2001-09-28 01:34:43 +00002899
drh71eb93e2001-09-28 01:34:43 +00002900
drh71eb93e2001-09-28 01:34:43 +00002901
drh71eb93e2001-09-28 01:34:43 +00002902
drh71eb93e2001-09-28 01:34:43 +00002903
drh71eb93e2001-09-28 01:34:43 +00002904
drh71eb93e2001-09-28 01:34:43 +00002905
2906# Check for command to grab the raw symbol name followed by C symbol from nm.
a.rottmann84e63352003-03-24 09:42:16 +00002907echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2908echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002909if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912
2913# These are sane defaults that work on at least a few old systems.
2914# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2915
2916# Character class describing NM global symbol codes.
2917symcode='[BCDEGRST]'
2918
2919# Regexp to match symbols that can be accessed directly from C.
2920sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2921
2922# Transform the above into a raw symbol and a C symbol.
2923symxfrm='\1 \2\3 \3'
2924
2925# Transform an extracted symbol line into a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00002926lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
drh71eb93e2001-09-28 01:34:43 +00002927
2928# Transform an extracted symbol line into symbol name and symbol address
a.rottmann84e63352003-03-24 09:42:16 +00002929lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
drh71eb93e2001-09-28 01:34:43 +00002930
2931# Define system-specific variables.
2932case $host_os in
2933aix*)
2934 symcode='[BCDT]'
2935 ;;
2936cygwin* | mingw* | pw32*)
2937 symcode='[ABCDGISTW]'
2938 ;;
2939hpux*) # Its linker distinguishes data from code symbols
a.rottmann84e63352003-03-24 09:42:16 +00002940 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2941 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
drh71eb93e2001-09-28 01:34:43 +00002942 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002943irix* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002944 symcode='[BCDEGRST]'
2945 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002946osf*)
2947 symcode='[BCDEGQRST]'
2948 ;;
drh71eb93e2001-09-28 01:34:43 +00002949solaris* | sysv5*)
2950 symcode='[BDT]'
2951 ;;
2952sysv4)
2953 symcode='[DFNSTU]'
2954 ;;
2955esac
2956
2957# Handle CRLF in mingw tool chain
2958opt_cr=
2959case $host_os in
2960mingw*)
2961 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2962 ;;
2963esac
2964
2965# If we're using GNU nm, then use its standard symbol codes.
2966if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2967 symcode='[ABCDGISTW]'
2968fi
2969
2970# Try without a prefix undercore, then with it.
2971for ac_symprfx in "" "_"; do
2972
2973 # Write the raw and C identifiers.
2974lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2975
2976 # Check to see that the pipe works correctly.
2977 pipe_works=no
drh71eb93e2001-09-28 01:34:43 +00002978 rm -f conftest*
2979 cat > conftest.$ac_ext <<EOF
2980#ifdef __cplusplus
2981extern "C" {
2982#endif
2983char nm_test_var;
2984void nm_test_func(){}
2985#ifdef __cplusplus
2986}
2987#endif
2988int main(){nm_test_var='a';nm_test_func();return(0);}
2989EOF
2990
a.rottmann84e63352003-03-24 09:42:16 +00002991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002992 (eval $ac_compile) 2>&5
2993 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002995 (exit $ac_status); }; then
2996 # Now try to grab the symbols.
2997 nlist=conftest.nm
a.rottmann84e63352003-03-24 09:42:16 +00002998 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002999 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3000 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003002 (exit $ac_status); } && test -s "$nlist"; then
3003 # Try sorting and uniquifying the output.
3004 if sort "$nlist" | uniq > "$nlist"T; then
3005 mv -f "$nlist"T "$nlist"
3006 else
3007 rm -f "$nlist"T
3008 fi
3009
3010 # Make sure that we snagged all the symbols we need.
3011 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3012 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3013 cat <<EOF > conftest.$ac_ext
3014#ifdef __cplusplus
3015extern "C" {
3016#endif
3017
3018EOF
3019 # Now generate the symbol file.
a.rottmann84e63352003-03-24 09:42:16 +00003020 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
drh71eb93e2001-09-28 01:34:43 +00003021
3022 cat <<EOF >> conftest.$ac_ext
3023#if defined (__STDC__) && __STDC__
a.rottmann84e63352003-03-24 09:42:16 +00003024# define lt_ptr void *
drh71eb93e2001-09-28 01:34:43 +00003025#else
a.rottmann84e63352003-03-24 09:42:16 +00003026# define lt_ptr char *
drh71eb93e2001-09-28 01:34:43 +00003027# define const
3028#endif
3029
3030/* The mapping between symbol names and symbols. */
3031const struct {
3032 const char *name;
a.rottmann84e63352003-03-24 09:42:16 +00003033 lt_ptr address;
drh71eb93e2001-09-28 01:34:43 +00003034}
3035lt_preloaded_symbols[] =
3036{
3037EOF
a.rottmann84e63352003-03-24 09:42:16 +00003038 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003039 cat <<\EOF >> conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003040 {0, (lt_ptr) 0}
drh71eb93e2001-09-28 01:34:43 +00003041};
3042
3043#ifdef __cplusplus
3044}
3045#endif
3046EOF
3047 # Now try linking the two files.
3048 mv conftest.$ac_objext conftstm.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00003049 save_LIBS="$LIBS"
3050 save_CFLAGS="$CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003051 LIBS="conftstm.$ac_objext"
a.rottmann84e63352003-03-24 09:42:16 +00003052 CFLAGS="$CFLAGS$no_builtin_flag"
3053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003054 (eval $ac_link) 2>&5
3055 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } && test -s conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00003058 pipe_works=yes
3059 fi
a.rottmann84e63352003-03-24 09:42:16 +00003060 LIBS="$save_LIBS"
3061 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003062 else
3063 echo "cannot find nm_test_func in $nlist" >&5
3064 fi
3065 else
3066 echo "cannot find nm_test_var in $nlist" >&5
3067 fi
3068 else
3069 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3070 fi
3071 else
3072 echo "$progname: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3074 fi
3075 rm -f conftest* conftst*
3076
3077 # Do not use the global_symbol_pipe unless it works.
3078 if test "$pipe_works" = yes; then
3079 break
3080 else
3081 lt_cv_sys_global_symbol_pipe=
3082 fi
3083done
3084
3085fi
3086
a.rottmann84e63352003-03-24 09:42:16 +00003087global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
drh71eb93e2001-09-28 01:34:43 +00003088if test -z "$lt_cv_sys_global_symbol_pipe"; then
a.rottmann84e63352003-03-24 09:42:16 +00003089 global_symbol_to_cdecl=
3090 global_symbol_to_c_name_address=
3091else
3092 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3093 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
drh71eb93e2001-09-28 01:34:43 +00003094fi
a.rottmann84e63352003-03-24 09:42:16 +00003095if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3096then
3097 echo "$as_me:$LINENO: result: failed" >&5
drh71eb93e2001-09-28 01:34:43 +00003098echo "${ECHO_T}failed" >&6
3099else
a.rottmann84e63352003-03-24 09:42:16 +00003100 echo "$as_me:$LINENO: result: ok" >&5
drh71eb93e2001-09-28 01:34:43 +00003101echo "${ECHO_T}ok" >&6
3102fi
3103
a.rottmann84e63352003-03-24 09:42:16 +00003104ac_ext=c
3105ac_cpp='$CPP $CPPFLAGS'
3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3110echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3111# On Suns, sometimes $CPP names a directory.
3112if test -n "$CPP" && test -d "$CPP"; then
3113 CPP=
3114fi
3115if test -z "$CPP"; then
3116 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
a.rottmann84e63352003-03-24 09:42:16 +00003119 # Double quotes because CPP needs to be expanded
3120 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3121 do
3122 ac_preproc_ok=false
3123for ac_c_preproc_warn_flag in '' yes
3124do
3125 # Use a header file that comes with gcc, so configuring glibc
3126 # with a fresh cross-compiler works.
3127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3128 # <limits.h> exists even on freestanding compilers.
3129 # On the NeXT, cc -E runs the code through the compiler's parser,
3130 # not just through cpp. "Syntax error" is here to catch this case.
3131 cat >conftest.$ac_ext <<_ACEOF
3132#line $LINENO "configure"
3133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
3138#ifdef __STDC__
3139# include <limits.h>
3140#else
3141# include <assert.h>
3142#endif
3143 Syntax error
3144_ACEOF
3145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3155 else
3156 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003157 fi
a.rottmann84e63352003-03-24 09:42:16 +00003158else
3159 ac_cpp_err=yes
3160fi
3161if test -z "$ac_cpp_err"; then
3162 :
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 # Broken: fails on valid input.
3168continue
3169fi
3170rm -f conftest.err conftest.$ac_ext
3171
3172 # OK, works on sane cases. Now check whether non-existent headers
3173 # can be detected and how.
3174 cat >conftest.$ac_ext <<_ACEOF
3175#line $LINENO "configure"
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181#include <ac_nonexistent.h>
3182_ACEOF
3183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 else
3194 ac_cpp_err=
3195 fi
3196else
3197 ac_cpp_err=yes
3198fi
3199if test -z "$ac_cpp_err"; then
3200 # Broken: success on invalid input.
3201continue
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 # Passes both tests.
3207ac_preproc_ok=:
3208break
3209fi
3210rm -f conftest.err conftest.$ac_ext
3211
3212done
3213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3214rm -f conftest.err conftest.$ac_ext
3215if $ac_preproc_ok; then
3216 break
3217fi
3218
3219 done
3220 ac_cv_prog_CPP=$CPP
3221
3222fi
3223 CPP=$ac_cv_prog_CPP
3224else
3225 ac_cv_prog_CPP=$CPP
3226fi
3227echo "$as_me:$LINENO: result: $CPP" >&5
3228echo "${ECHO_T}$CPP" >&6
3229ac_preproc_ok=false
3230for ac_c_preproc_warn_flag in '' yes
3231do
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat >conftest.$ac_ext <<_ACEOF
3239#line $LINENO "configure"
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245#ifdef __STDC__
3246# include <limits.h>
3247#else
3248# include <assert.h>
3249#endif
3250 Syntax error
3251_ACEOF
3252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 else
3263 ac_cpp_err=
3264 fi
3265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 # Broken: fails on valid input.
3275continue
3276fi
3277rm -f conftest.err conftest.$ac_ext
3278
3279 # OK, works on sane cases. Now check whether non-existent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3282#line $LINENO "configure"
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
3288#include <ac_nonexistent.h>
3289_ACEOF
3290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
3300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3308continue
3309else
3310 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
3317rm -f conftest.err conftest.$ac_ext
3318
3319done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.err conftest.$ac_ext
3322if $ac_preproc_ok; then
3323 :
3324else
3325 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3326See \`config.log' for more details." >&5
3327echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3328See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }
3330fi
3331
3332ac_ext=c
3333ac_cpp='$CPP $CPPFLAGS'
3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337
3338
3339echo "$as_me:$LINENO: checking for egrep" >&5
3340echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3341if test "${ac_cv_prog_egrep+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
3344 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3345 then ac_cv_prog_egrep='grep -E'
3346 else ac_cv_prog_egrep='egrep'
3347 fi
3348fi
3349echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3350echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3351 EGREP=$ac_cv_prog_egrep
3352
3353
3354echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3355echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3356if test "${ac_cv_header_stdc+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359 cat >conftest.$ac_ext <<_ACEOF
3360#line $LINENO "configure"
3361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#include <stdlib.h>
3367#include <stdarg.h>
3368#include <string.h>
3369#include <float.h>
3370
3371int
3372main ()
3373{
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_header_stdc=yes
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396ac_cv_header_stdc=no
3397fi
3398rm -f conftest.$ac_objext conftest.$ac_ext
3399
3400if test $ac_cv_header_stdc = yes; then
3401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3402 cat >conftest.$ac_ext <<_ACEOF
3403#line $LINENO "configure"
3404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
3409#include <string.h>
3410
3411_ACEOF
3412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 $EGREP "memchr" >/dev/null 2>&1; then
3414 :
3415else
3416 ac_cv_header_stdc=no
3417fi
3418rm -f conftest*
3419
3420fi
3421
3422if test $ac_cv_header_stdc = yes; then
3423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3424 cat >conftest.$ac_ext <<_ACEOF
3425#line $LINENO "configure"
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
3431#include <stdlib.h>
3432
3433_ACEOF
3434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435 $EGREP "free" >/dev/null 2>&1; then
3436 :
3437else
3438 ac_cv_header_stdc=no
3439fi
3440rm -f conftest*
3441
3442fi
3443
3444if test $ac_cv_header_stdc = yes; then
3445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3446 if test "$cross_compiling" = yes; then
3447 :
3448else
3449 cat >conftest.$ac_ext <<_ACEOF
3450#line $LINENO "configure"
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456#include <ctype.h>
3457#if ((' ' & 0x0FF) == 0x020)
3458# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3459# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3460#else
3461# define ISLOWER(c) \
3462 (('a' <= (c) && (c) <= 'i') \
3463 || ('j' <= (c) && (c) <= 'r') \
3464 || ('s' <= (c) && (c) <= 'z'))
3465# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3466#endif
3467
3468#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3469int
3470main ()
3471{
3472 int i;
3473 for (i = 0; i < 256; i++)
3474 if (XOR (islower (i), ISLOWER (i))
3475 || toupper (i) != TOUPPER (i))
3476 exit(2);
3477 exit (0);
3478}
3479_ACEOF
3480rm -f conftest$ac_exeext
3481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3482 (eval $ac_link) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3491 :
3492else
3493 echo "$as_me: program exited with status $ac_status" >&5
3494echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497( exit $ac_status )
3498ac_cv_header_stdc=no
3499fi
3500rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3501fi
3502fi
3503fi
3504echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3505echo "${ECHO_T}$ac_cv_header_stdc" >&6
3506if test $ac_cv_header_stdc = yes; then
3507
3508cat >>confdefs.h <<\_ACEOF
3509#define STDC_HEADERS 1
3510_ACEOF
3511
3512fi
3513
3514# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3525 inttypes.h stdint.h unistd.h
3526do
3527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3528echo "$as_me:$LINENO: checking for $ac_header" >&5
3529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3530if eval "test \"\${$as_ac_Header+set}\" = set"; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533 cat >conftest.$ac_ext <<_ACEOF
3534#line $LINENO "configure"
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540$ac_includes_default
3541
3542#include <$ac_header>
3543_ACEOF
3544rm -f conftest.$ac_objext
3545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 eval "$as_ac_Header=yes"
3557else
3558 echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561eval "$as_ac_Header=no"
3562fi
3563rm -f conftest.$ac_objext conftest.$ac_ext
3564fi
3565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3567if test `eval echo '${'$as_ac_Header'}'` = yes; then
3568 cat >>confdefs.h <<_ACEOF
3569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3570_ACEOF
3571
3572fi
3573
3574done
3575
3576
3577
3578for ac_header in dlfcn.h
3579do
3580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3581if eval "test \"\${$as_ac_Header+set}\" = set"; then
3582 echo "$as_me:$LINENO: checking for $ac_header" >&5
3583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3584if eval "test \"\${$as_ac_Header+set}\" = set"; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586fi
3587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3589else
3590 # Is the header compilable?
3591echo "$as_me:$LINENO: checking $ac_header usability" >&5
3592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3593cat >conftest.$ac_ext <<_ACEOF
3594#line $LINENO "configure"
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600$ac_includes_default
3601#include <$ac_header>
3602_ACEOF
3603rm -f conftest.$ac_objext
3604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 ac_header_compiler=yes
3616else
3617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620ac_header_compiler=no
3621fi
3622rm -f conftest.$ac_objext conftest.$ac_ext
3623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3624echo "${ECHO_T}$ac_header_compiler" >&6
3625
3626# Is the header present?
3627echo "$as_me:$LINENO: checking $ac_header presence" >&5
3628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3629cat >conftest.$ac_ext <<_ACEOF
3630#line $LINENO "configure"
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636#include <$ac_header>
3637_ACEOF
3638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null; then
3646 if test -s conftest.err; then
3647 ac_cpp_err=$ac_c_preproc_warn_flag
3648 else
3649 ac_cpp_err=
3650 fi
3651else
3652 ac_cpp_err=yes
3653fi
3654if test -z "$ac_cpp_err"; then
3655 ac_header_preproc=yes
3656else
3657 echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660 ac_header_preproc=no
3661fi
3662rm -f conftest.err conftest.$ac_ext
3663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3664echo "${ECHO_T}$ac_header_preproc" >&6
3665
3666# So? What about this header?
3667case $ac_header_compiler:$ac_header_preproc in
3668 yes:no )
3669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3673 (
3674 cat <<\_ASBOX
3675## ------------------------------------ ##
3676## Report this to bug-autoconf@gnu.org. ##
3677## ------------------------------------ ##
3678_ASBOX
3679 ) |
3680 sed "s/^/$as_me: WARNING: /" >&2
3681 ;;
3682 no:yes )
3683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3689 (
3690 cat <<\_ASBOX
3691## ------------------------------------ ##
3692## Report this to bug-autoconf@gnu.org. ##
3693## ------------------------------------ ##
3694_ASBOX
3695 ) |
3696 sed "s/^/$as_me: WARNING: /" >&2
3697 ;;
drh71eb93e2001-09-28 01:34:43 +00003698esac
a.rottmann84e63352003-03-24 09:42:16 +00003699echo "$as_me:$LINENO: checking for $ac_header" >&5
3700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
a.rottmann84e63352003-03-24 09:42:16 +00003704 eval "$as_ac_Header=$ac_header_preproc"
3705fi
3706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3708
3709fi
3710if test `eval echo '${'$as_ac_Header'}'` = yes; then
3711 cat >>confdefs.h <<_ACEOF
3712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3713_ACEOF
3714
3715fi
3716
drh71eb93e2001-09-28 01:34:43 +00003717done
3718
drh71eb93e2001-09-28 01:34:43 +00003719
drh71eb93e2001-09-28 01:34:43 +00003720
drh71eb93e2001-09-28 01:34:43 +00003721
drh71eb93e2001-09-28 01:34:43 +00003722
drh71eb93e2001-09-28 01:34:43 +00003723
3724# Only perform the check for file, if the check method requires it
3725case $deplibs_check_method in
3726file_magic*)
3727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
a.rottmann84e63352003-03-24 09:42:16 +00003728 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh71eb93e2001-09-28 01:34:43 +00003729echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3730if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003734 /*)
drh71eb93e2001-09-28 01:34:43 +00003735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3736 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003737 ?:/*)
3738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3739 ;;
3740 *)
3741 ac_save_MAGIC_CMD="$MAGIC_CMD"
3742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3743 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003744 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003745 test -z "$ac_dir" && ac_dir=.
3746 if test -f $ac_dir/${ac_tool_prefix}file; then
3747 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3748 if test -n "$file_magic_test_file"; then
3749 case $deplibs_check_method in
3750 "file_magic "*)
3751 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3753 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3754 egrep "$file_magic_regex" > /dev/null; then
3755 :
3756 else
3757 cat <<EOF 1>&2
3758
3759*** Warning: the command libtool uses to detect shared libraries,
3760*** $file_magic_cmd, produces output that libtool cannot recognize.
3761*** The result is that libtool may fail to recognize shared libraries
3762*** as such. This will affect the creation of libtool libraries that
3763*** depend on shared libraries, but programs linked with such libtool
3764*** libraries will work regardless of this problem. Nevertheless, you
3765*** may want to report the problem to your system manager and/or to
3766*** bug-libtool@gnu.org
3767
3768EOF
3769 fi ;;
3770 esac
3771 fi
3772 break
3773 fi
3774 done
a.rottmann84e63352003-03-24 09:42:16 +00003775 IFS="$ac_save_ifs"
3776 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003777 ;;
3778esac
3779fi
3780
3781MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3782if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003783 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003784echo "${ECHO_T}$MAGIC_CMD" >&6
3785else
a.rottmann84e63352003-03-24 09:42:16 +00003786 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003787echo "${ECHO_T}no" >&6
3788fi
3789
3790if test -z "$lt_cv_path_MAGIC_CMD"; then
3791 if test -n "$ac_tool_prefix"; then
a.rottmann84e63352003-03-24 09:42:16 +00003792 echo "$as_me:$LINENO: checking for file" >&5
drh71eb93e2001-09-28 01:34:43 +00003793echo $ECHO_N "checking for file... $ECHO_C" >&6
3794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003798 /*)
drh71eb93e2001-09-28 01:34:43 +00003799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3800 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003801 ?:/*)
3802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3803 ;;
3804 *)
3805 ac_save_MAGIC_CMD="$MAGIC_CMD"
3806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3807 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003808 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003809 test -z "$ac_dir" && ac_dir=.
3810 if test -f $ac_dir/file; then
3811 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3812 if test -n "$file_magic_test_file"; then
3813 case $deplibs_check_method in
3814 "file_magic "*)
3815 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3818 egrep "$file_magic_regex" > /dev/null; then
3819 :
3820 else
3821 cat <<EOF 1>&2
3822
3823*** Warning: the command libtool uses to detect shared libraries,
3824*** $file_magic_cmd, produces output that libtool cannot recognize.
3825*** The result is that libtool may fail to recognize shared libraries
3826*** as such. This will affect the creation of libtool libraries that
3827*** depend on shared libraries, but programs linked with such libtool
3828*** libraries will work regardless of this problem. Nevertheless, you
3829*** may want to report the problem to your system manager and/or to
3830*** bug-libtool@gnu.org
3831
3832EOF
3833 fi ;;
3834 esac
3835 fi
3836 break
3837 fi
3838 done
a.rottmann84e63352003-03-24 09:42:16 +00003839 IFS="$ac_save_ifs"
3840 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003841 ;;
3842esac
3843fi
3844
3845MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3846if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003847 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003848echo "${ECHO_T}$MAGIC_CMD" >&6
3849else
a.rottmann84e63352003-03-24 09:42:16 +00003850 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003851echo "${ECHO_T}no" >&6
3852fi
3853
3854 else
3855 MAGIC_CMD=:
3856 fi
3857fi
3858
3859 fi
3860 ;;
3861esac
3862
a.rottmann84e63352003-03-24 09:42:16 +00003863if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3866echo "$as_me:$LINENO: checking for $ac_word" >&5
3867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868if test "${ac_cv_prog_RANLIB+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 if test -n "$RANLIB"; then
3872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885done
3886done
3887
3888fi
3889fi
3890RANLIB=$ac_cv_prog_RANLIB
3891if test -n "$RANLIB"; then
3892 echo "$as_me:$LINENO: result: $RANLIB" >&5
3893echo "${ECHO_T}$RANLIB" >&6
3894else
3895 echo "$as_me:$LINENO: result: no" >&5
3896echo "${ECHO_T}no" >&6
3897fi
3898
3899fi
3900if test -z "$ac_cv_prog_RANLIB"; then
3901 ac_ct_RANLIB=$RANLIB
3902 # Extract the first word of "ranlib", so it can be a program name with args.
3903set dummy ranlib; ac_word=$2
3904echo "$as_me:$LINENO: checking for $ac_word" >&5
3905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 if test -n "$ac_ct_RANLIB"; then
3910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_ac_ct_RANLIB="ranlib"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924done
3925
3926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3927fi
3928fi
3929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3930if test -n "$ac_ct_RANLIB"; then
3931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3932echo "${ECHO_T}$ac_ct_RANLIB" >&6
3933else
3934 echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
3936fi
3937
3938 RANLIB=$ac_ct_RANLIB
3939else
3940 RANLIB="$ac_cv_prog_RANLIB"
3941fi
3942
3943if test -n "$ac_tool_prefix"; then
3944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3945set dummy ${ac_tool_prefix}strip; ac_word=$2
3946echo "$as_me:$LINENO: checking for $ac_word" >&5
3947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948if test "${ac_cv_prog_STRIP+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 if test -n "$STRIP"; then
3952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3953else
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965done
3966done
3967
3968fi
3969fi
3970STRIP=$ac_cv_prog_STRIP
3971if test -n "$STRIP"; then
3972 echo "$as_me:$LINENO: result: $STRIP" >&5
3973echo "${ECHO_T}$STRIP" >&6
3974else
3975 echo "$as_me:$LINENO: result: no" >&5
3976echo "${ECHO_T}no" >&6
3977fi
3978
3979fi
3980if test -z "$ac_cv_prog_STRIP"; then
3981 ac_ct_STRIP=$STRIP
3982 # Extract the first word of "strip", so it can be a program name with args.
3983set dummy strip; ac_word=$2
3984echo "$as_me:$LINENO: checking for $ac_word" >&5
3985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989 if test -n "$ac_ct_STRIP"; then
3990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_prog_ac_ct_STRIP="strip"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003done
4004done
4005
4006 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4007fi
4008fi
4009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4010if test -n "$ac_ct_STRIP"; then
4011 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4012echo "${ECHO_T}$ac_ct_STRIP" >&6
4013else
4014 echo "$as_me:$LINENO: result: no" >&5
4015echo "${ECHO_T}no" >&6
4016fi
4017
4018 STRIP=$ac_ct_STRIP
4019else
4020 STRIP="$ac_cv_prog_STRIP"
4021fi
4022
4023
drh71eb93e2001-09-28 01:34:43 +00004024enable_dlopen=no
4025enable_win32_dll=no
4026
4027# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4028if test "${enable_libtool_lock+set}" = set; then
4029 enableval="$enable_libtool_lock"
4030
4031fi;
4032test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4033
a.rottmann84e63352003-03-24 09:42:16 +00004034# Some flags need to be propagated to the compiler or linker for good
4035# libtool support.
4036case $host in
4037*-*-irix6*)
4038 # Find out which ABI we are using.
paulb0208cc2003-04-13 18:26:49 +00004039 echo '#line 4039 "configure"' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; then
4045 case `/usr/bin/file conftest.$ac_objext` in
4046 *32-bit*)
4047 LD="${LD-ld} -32"
4048 ;;
4049 *N32*)
4050 LD="${LD-ld} -n32"
4051 ;;
4052 *64-bit*)
4053 LD="${LD-ld} -64"
4054 ;;
4055 esac
4056 fi
4057 rm -rf conftest*
4058 ;;
4059
4060*-*-sco3.2v5*)
4061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4062 SAVE_CFLAGS="$CFLAGS"
4063 CFLAGS="$CFLAGS -belf"
4064 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4065echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4066if test "${lt_cv_cc_needs_belf+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069
4070
4071 ac_ext=c
4072ac_cpp='$CPP $CPPFLAGS'
4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077 cat >conftest.$ac_ext <<_ACEOF
4078#line $LINENO "configure"
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084
4085int
4086main ()
4087{
4088
4089 ;
4090 return 0;
4091}
4092_ACEOF
4093rm -f conftest.$ac_objext conftest$ac_exeext
4094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095 (eval $ac_link) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -s conftest$ac_exeext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 lt_cv_cc_needs_belf=yes
4106else
4107 echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110lt_cv_cc_needs_belf=no
4111fi
4112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4113 ac_ext=c
4114ac_cpp='$CPP $CPPFLAGS'
4115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118
4119fi
4120echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4121echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4122 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4123 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4124 CFLAGS="$SAVE_CFLAGS"
4125 fi
4126 ;;
4127
4128
4129esac
4130
4131# Sed substitution that helps us do robust quoting. It backslashifies
4132# metacharacters that are still active within double-quoted strings.
4133Xsed='sed -e s/^X//'
4134sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4135
4136# Same as above, but do not quote variable references.
4137double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4138
4139# Sed substitution to delay expansion of an escaped shell variable in a
4140# double_quote_subst'ed string.
4141delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4142
4143# Constants:
4144rm="rm -f"
4145
4146# Global variables:
4147default_ofile=libtool
4148can_build_shared=yes
4149
4150# All known linkers require a `.a' archive for static linking (except M$VC,
4151# which needs '.lib').
4152libext=a
4153ltmain="$ac_aux_dir/ltmain.sh"
4154ofile="$default_ofile"
4155with_gnu_ld="$lt_cv_prog_gnu_ld"
4156need_locks="$enable_libtool_lock"
4157
4158old_CC="$CC"
4159old_CFLAGS="$CFLAGS"
4160
4161# Set sane defaults for various variables
4162test -z "$AR" && AR=ar
4163test -z "$AR_FLAGS" && AR_FLAGS=cru
4164test -z "$AS" && AS=as
4165test -z "$CC" && CC=cc
4166test -z "$DLLTOOL" && DLLTOOL=dlltool
4167test -z "$LD" && LD=ld
4168test -z "$LN_S" && LN_S="ln -s"
4169test -z "$MAGIC_CMD" && MAGIC_CMD=file
4170test -z "$NM" && NM=nm
4171test -z "$OBJDUMP" && OBJDUMP=objdump
4172test -z "$RANLIB" && RANLIB=:
4173test -z "$STRIP" && STRIP=:
4174test -z "$ac_objext" && ac_objext=o
4175
4176if test x"$host" != x"$build"; then
4177 ac_tool_prefix=${host_alias}-
4178else
4179 ac_tool_prefix=
4180fi
4181
4182# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4183case $host_os in
4184linux-gnu*) ;;
4185linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4186esac
4187
4188case $host_os in
4189aix3*)
4190 # AIX sometimes has problems with the GCC collect2 program. For some
4191 # reason, if we set the COLLECT_NAMES environment variable, the problems
4192 # vanish in a puff of smoke.
4193 if test "X${COLLECT_NAMES+set}" != Xset; then
4194 COLLECT_NAMES=
4195 export COLLECT_NAMES
4196 fi
4197 ;;
4198esac
4199
4200# Determine commands to create old-style static archives.
4201old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4202old_postinstall_cmds='chmod 644 $oldlib'
4203old_postuninstall_cmds=
4204
4205if test -n "$RANLIB"; then
4206 case $host_os in
4207 openbsd*)
4208 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4209 ;;
4210 *)
4211 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4212 ;;
4213 esac
4214 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4215fi
4216
4217# Allow CC to be a program name with arguments.
4218set dummy $CC
4219compiler="$2"
4220
4221echo "$as_me:$LINENO: checking for objdir" >&5
4222echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4223rm -f .libs 2>/dev/null
4224mkdir .libs 2>/dev/null
4225if test -d .libs; then
4226 objdir=.libs
4227else
4228 # MS-DOS does not allow filenames that begin with a dot.
4229 objdir=_libs
4230fi
4231rmdir .libs 2>/dev/null
4232echo "$as_me:$LINENO: result: $objdir" >&5
4233echo "${ECHO_T}$objdir" >&6
4234
4235
4236
drh71eb93e2001-09-28 01:34:43 +00004237# Check whether --with-pic or --without-pic was given.
4238if test "${with_pic+set}" = set; then
4239 withval="$with_pic"
4240 pic_mode="$withval"
4241else
4242 pic_mode=default
4243fi;
4244test -z "$pic_mode" && pic_mode=default
4245
a.rottmann84e63352003-03-24 09:42:16 +00004246# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4247# in isolation, and that seeing it set (from the cache) indicates that
4248# the associated values are set (in the cache) correctly too.
4249echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh71eb93e2001-09-28 01:34:43 +00004250echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004251if test "${lt_cv_prog_cc_pic+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254 lt_cv_prog_cc_pic=
4255 lt_cv_prog_cc_shlib=
4256 lt_cv_prog_cc_wl=
4257 lt_cv_prog_cc_static=
4258 lt_cv_prog_cc_no_builtin=
4259 lt_cv_prog_cc_can_build_shared=$can_build_shared
4260
drh71eb93e2001-09-28 01:34:43 +00004261 if test "$GCC" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00004262 lt_cv_prog_cc_wl='-Wl,'
4263 lt_cv_prog_cc_static='-static'
drh71eb93e2001-09-28 01:34:43 +00004264
4265 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004266 aix*)
4267 # Below there is a dirty hack to force normal static linking with -ldl
4268 # The problem is because libdl dynamically linked with both libc and
4269 # libC (AIX C++ library), which obviously doesn't included in libraries
4270 # list by gcc. This cause undefined symbols with -static flags.
4271 # This hack allows C programs to be linked with "-static -ldl", but
4272 # not sure about C++ programs.
4273 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
drh71eb93e2001-09-28 01:34:43 +00004274 ;;
drh71eb93e2001-09-28 01:34:43 +00004275 amigaos*)
4276 # FIXME: we need at least 68020 code to build shared libraries, but
4277 # adding the `-m68020' flag to GCC prevents building anything better,
4278 # like `-m68040'.
a.rottmann84e63352003-03-24 09:42:16 +00004279 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00004280 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004281 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004282 # PIC is the default for these OSes.
4283 ;;
drh71eb93e2001-09-28 01:34:43 +00004284 darwin* | rhapsody*)
4285 # PIC is the default on this platform
4286 # Common symbols not allowed in MH_DYLIB files
a.rottmann84e63352003-03-24 09:42:16 +00004287 lt_cv_prog_cc_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00004288 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004289 cygwin* | mingw* | pw32* | os2*)
4290 # This hack is so that the source file can tell whether it is being
4291 # built for inclusion in a dll (and should export symbols for example).
4292 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004293 ;;
drh71eb93e2001-09-28 01:34:43 +00004294 sysv4*MP*)
4295 if test -d /usr/nec; then
a.rottmann84e63352003-03-24 09:42:16 +00004296 lt_cv_prog_cc_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00004297 fi
4298 ;;
drh71eb93e2001-09-28 01:34:43 +00004299 *)
a.rottmann84e63352003-03-24 09:42:16 +00004300 lt_cv_prog_cc_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00004301 ;;
4302 esac
4303 else
a.rottmann84e63352003-03-24 09:42:16 +00004304 # PORTME Check for PIC flags for the system compiler.
drh71eb93e2001-09-28 01:34:43 +00004305 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004306 aix3* | aix4* | aix5*)
4307 lt_cv_prog_cc_wl='-Wl,'
4308 # All AIX code is PIC.
drh71eb93e2001-09-28 01:34:43 +00004309 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00004310 # AIX 5 now supports IA64 processor
4311 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004312 else
a.rottmann84e63352003-03-24 09:42:16 +00004313 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00004314 fi
4315 ;;
4316
a.rottmann84e63352003-03-24 09:42:16 +00004317 hpux9* | hpux10* | hpux11*)
4318 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4319 lt_cv_prog_cc_wl='-Wl,'
4320 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4321 lt_cv_prog_cc_pic='+Z'
4322 ;;
4323
4324 irix5* | irix6* | nonstopux*)
4325 lt_cv_prog_cc_wl='-Wl,'
4326 lt_cv_prog_cc_static='-non_shared'
4327 # PIC (with -KPIC) is the default.
4328 ;;
4329
drh71eb93e2001-09-28 01:34:43 +00004330 cygwin* | mingw* | pw32* | os2*)
4331 # This hack is so that the source file can tell whether it is being
4332 # built for inclusion in a dll (and should export symbols for example).
a.rottmann84e63352003-03-24 09:42:16 +00004333 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004334 ;;
4335
4336 newsos6)
a.rottmann84e63352003-03-24 09:42:16 +00004337 lt_cv_prog_cc_pic='-KPIC'
4338 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004339 ;;
4340
4341 osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004342 # All OSF/1 code is PIC.
a.rottmann84e63352003-03-24 09:42:16 +00004343 lt_cv_prog_cc_wl='-Wl,'
4344 lt_cv_prog_cc_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00004345 ;;
4346
4347 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00004348 lt_cv_prog_cc_pic='-Kpic'
4349 lt_cv_prog_cc_static='-dn'
4350 lt_cv_prog_cc_shlib='-belf'
drh71eb93e2001-09-28 01:34:43 +00004351 ;;
4352
4353 solaris*)
a.rottmann84e63352003-03-24 09:42:16 +00004354 lt_cv_prog_cc_pic='-KPIC'
4355 lt_cv_prog_cc_static='-Bstatic'
4356 lt_cv_prog_cc_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00004357 ;;
4358
4359 sunos4*)
a.rottmann84e63352003-03-24 09:42:16 +00004360 lt_cv_prog_cc_pic='-PIC'
4361 lt_cv_prog_cc_static='-Bstatic'
4362 lt_cv_prog_cc_wl='-Qoption ld '
drh71eb93e2001-09-28 01:34:43 +00004363 ;;
4364
4365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann84e63352003-03-24 09:42:16 +00004366 lt_cv_prog_cc_pic='-KPIC'
4367 lt_cv_prog_cc_static='-Bstatic'
4368 lt_cv_prog_cc_wl='-Wl,'
4369 ;;
4370
4371 uts4*)
4372 lt_cv_prog_cc_pic='-pic'
4373 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004374 ;;
4375
4376 sysv4*MP*)
4377 if test -d /usr/nec ;then
a.rottmann84e63352003-03-24 09:42:16 +00004378 lt_cv_prog_cc_pic='-Kconform_pic'
4379 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004380 fi
4381 ;;
4382
drh71eb93e2001-09-28 01:34:43 +00004383 *)
a.rottmann84e63352003-03-24 09:42:16 +00004384 lt_cv_prog_cc_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00004385 ;;
4386 esac
4387 fi
4388
a.rottmann84e63352003-03-24 09:42:16 +00004389fi
drh71eb93e2001-09-28 01:34:43 +00004390
a.rottmann84e63352003-03-24 09:42:16 +00004391if test -z "$lt_cv_prog_cc_pic"; then
4392 echo "$as_me:$LINENO: result: none" >&5
4393echo "${ECHO_T}none" >&6
4394else
4395 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4396echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4397
4398 # Check to make sure the pic_flag actually works.
4399 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4400echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4401 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
a.rottmann84e63352003-03-24 09:42:16 +00004404 save_CFLAGS="$CFLAGS"
4405 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4406 cat >conftest.$ac_ext <<_ACEOF
4407#line $LINENO "configure"
4408/* confdefs.h. */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
4412/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004413
a.rottmann84e63352003-03-24 09:42:16 +00004414int
4415main ()
4416{
drh71eb93e2001-09-28 01:34:43 +00004417
a.rottmann84e63352003-03-24 09:42:16 +00004418 ;
4419 return 0;
4420}
4421_ACEOF
4422rm -f conftest.$ac_objext
4423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 case $host_os in
4435 hpux9* | hpux10* | hpux11*)
4436 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4437 # they create non-PIC objects. So, if there were any warnings, we
4438 # assume that PIC is not supported.
4439 if test -s conftest.err; then
4440 lt_cv_prog_cc_pic_works=no
4441 else
4442 lt_cv_prog_cc_pic_works=yes
4443 fi
4444 ;;
4445 *)
4446 lt_cv_prog_cc_pic_works=yes
4447 ;;
4448 esac
4449
drh71eb93e2001-09-28 01:34:43 +00004450else
a.rottmann84e63352003-03-24 09:42:16 +00004451 echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 lt_cv_prog_cc_pic_works=no
drh71eb93e2001-09-28 01:34:43 +00004455
4456fi
a.rottmann84e63352003-03-24 09:42:16 +00004457rm -f conftest.$ac_objext conftest.$ac_ext
4458 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00004459
a.rottmann84e63352003-03-24 09:42:16 +00004460fi
4461
4462
4463 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4464 lt_cv_prog_cc_pic=
4465 lt_cv_prog_cc_can_build_shared=no
4466 else
4467 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4468 fi
4469
4470 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4471echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4472fi
4473
4474# Check for any special shared library compilation flags.
4475if test -n "$lt_cv_prog_cc_shlib"; then
4476 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4477echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4478 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4479 else
4480 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4481echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4482 lt_cv_prog_cc_can_build_shared=no
4483 fi
4484fi
4485
4486echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4487echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4488if test "${lt_cv_prog_cc_static_works+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 lt_cv_prog_cc_static_works=no
4492 save_LDFLAGS="$LDFLAGS"
4493 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4494 cat >conftest.$ac_ext <<_ACEOF
4495#line $LINENO "configure"
4496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510rm -f conftest.$ac_objext conftest$ac_exeext
4511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 lt_cv_prog_cc_static_works=yes
4523else
4524 echo "$as_me: failed program was:" >&5
4525sed 's/^/| /' conftest.$ac_ext >&5
4526
4527fi
4528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529 LDFLAGS="$save_LDFLAGS"
4530
4531fi
4532
4533
4534# Belt *and* braces to stop my trousers falling down:
4535test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4536echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4537echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4538
4539pic_flag="$lt_cv_prog_cc_pic"
4540special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4541wl="$lt_cv_prog_cc_wl"
4542link_static_flag="$lt_cv_prog_cc_static"
4543no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4544can_build_shared="$lt_cv_prog_cc_can_build_shared"
4545
4546
4547# Check to see if options -o and -c are simultaneously supported by compiler
4548echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00004549echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004550if test "${lt_cv_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
drh71eb93e2001-09-28 01:34:43 +00004553
a.rottmann84e63352003-03-24 09:42:16 +00004554$rm -r conftest 2>/dev/null
4555mkdir conftest
4556cd conftest
4557echo "int some_variable = 0;" > conftest.$ac_ext
4558mkdir out
4559# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4560# that will create temporary files in the current directory regardless of
4561# the output directory. Thus, making CWD read-only will cause this test
4562# to fail, enabling locking or at least warning the user not to do parallel
4563# builds.
4564chmod -w .
4565save_CFLAGS="$CFLAGS"
4566CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4567compiler_c_o=no
paulb0208cc2003-04-13 18:26:49 +00004568if { (eval echo configure:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004569 # The compiler can only warn and ignore the option if not recognized
4570 # So say no if there are warnings
4571 if test -s out/conftest.err; then
4572 lt_cv_compiler_c_o=no
4573 else
4574 lt_cv_compiler_c_o=yes
4575 fi
4576else
4577 # Append any errors to the config.log.
4578 cat out/conftest.err 1>&5
4579 lt_cv_compiler_c_o=no
4580fi
4581CFLAGS="$save_CFLAGS"
4582chmod u+w .
4583$rm conftest* out/*
4584rmdir out
4585cd ..
4586rmdir conftest
4587$rm -r conftest 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00004588
4589fi
drh71eb93e2001-09-28 01:34:43 +00004590
a.rottmann84e63352003-03-24 09:42:16 +00004591compiler_c_o=$lt_cv_compiler_c_o
4592echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4593echo "${ECHO_T}$compiler_c_o" >&6
4594
4595if test x"$compiler_c_o" = x"yes"; then
4596 # Check to see if we can write to a .lo
4597 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4598echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4599 if test "${lt_cv_compiler_o_lo+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602
4603 lt_cv_compiler_o_lo=no
4604 save_CFLAGS="$CFLAGS"
4605 CFLAGS="$CFLAGS -c -o conftest.lo"
4606 save_objext="$ac_objext"
4607 ac_objext=lo
4608 cat >conftest.$ac_ext <<_ACEOF
4609#line $LINENO "configure"
4610/* confdefs.h. */
4611_ACEOF
4612cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h. */
4615
4616int
4617main ()
4618{
4619int some_variable = 0;
4620 ;
4621 return 0;
4622}
4623_ACEOF
4624rm -f conftest.$ac_objext
4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 # The compiler can only warn and ignore the option if not recognized
4637 # So say no if there are warnings
4638 if test -s conftest.err; then
4639 lt_cv_compiler_o_lo=no
4640 else
4641 lt_cv_compiler_o_lo=yes
4642 fi
4643
4644else
4645 echo "$as_me: failed program was:" >&5
4646sed 's/^/| /' conftest.$ac_ext >&5
4647
4648fi
4649rm -f conftest.$ac_objext conftest.$ac_ext
4650 ac_objext="$save_objext"
4651 CFLAGS="$save_CFLAGS"
4652
4653fi
4654
4655 compiler_o_lo=$lt_cv_compiler_o_lo
4656 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4657echo "${ECHO_T}$compiler_o_lo" >&6
4658else
4659 compiler_o_lo=no
4660fi
4661
4662# Check to see if we can do hard links to lock some files if needed
drh71eb93e2001-09-28 01:34:43 +00004663hard_links="nottested"
a.rottmann84e63352003-03-24 09:42:16 +00004664if test "$compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00004665 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00004666 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00004667echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4668 hard_links=yes
4669 $rm conftest*
4670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4671 touch conftest.a
4672 ln conftest.a conftest.b 2>&5 || hard_links=no
4673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00004674 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00004675echo "${ECHO_T}$hard_links" >&6
4676 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00004677 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00004678echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4679 need_locks=warn
4680 fi
4681else
4682 need_locks=no
4683fi
4684
a.rottmann84e63352003-03-24 09:42:16 +00004685if test "$GCC" = yes; then
4686 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4687 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4688echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4689 echo "int some_variable = 0;" > conftest.$ac_ext
4690 save_CFLAGS="$CFLAGS"
4691 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4692 compiler_rtti_exceptions=no
4693 cat >conftest.$ac_ext <<_ACEOF
4694#line $LINENO "configure"
4695/* confdefs.h. */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004700
a.rottmann84e63352003-03-24 09:42:16 +00004701int
4702main ()
4703{
4704int some_variable = 0;
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709rm -f conftest.$ac_objext
4710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 # The compiler can only warn and ignore the option if not recognized
4722 # So say no if there are warnings
4723 if test -s conftest.err; then
4724 compiler_rtti_exceptions=no
4725 else
4726 compiler_rtti_exceptions=yes
drh71eb93e2001-09-28 01:34:43 +00004727 fi
a.rottmann84e63352003-03-24 09:42:16 +00004728
4729else
4730 echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733fi
4734rm -f conftest.$ac_objext conftest.$ac_ext
4735 CFLAGS="$save_CFLAGS"
4736 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4737echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4738
4739 if test "$compiler_rtti_exceptions" = "yes"; then
4740 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4741 else
4742 no_builtin_flag=' -fno-builtin'
4743 fi
4744fi
4745
4746# See if the linker supports building shared libraries.
4747echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4748echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4749
4750allow_undefined_flag=
4751no_undefined_flag=
4752need_lib_prefix=unknown
4753need_version=unknown
4754# when you set need_version to no, make sure it does not cause -set_version
4755# flags to be left without arguments
4756archive_cmds=
4757archive_expsym_cmds=
4758old_archive_from_new_cmds=
4759old_archive_from_expsyms_cmds=
4760export_dynamic_flag_spec=
4761whole_archive_flag_spec=
4762thread_safe_flag_spec=
4763hardcode_into_libs=no
4764hardcode_libdir_flag_spec=
4765hardcode_libdir_separator=
4766hardcode_direct=no
4767hardcode_minus_L=no
4768hardcode_shlibpath_var=unsupported
4769runpath_var=
4770link_all_deplibs=unknown
4771always_export_symbols=no
4772export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4773# include_expsyms should be a list of space-separated symbols to be *always*
4774# included in the symbol list
4775include_expsyms=
4776# exclude_expsyms can be an egrep regular expression of symbols to exclude
4777# it will be wrapped by ` (' and `)$', so one must not match beginning or
4778# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4779# as well as any symbol that contains `d'.
4780exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4781# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4782# platforms (ab)use it in PIC code, but their linkers get confused if
4783# the symbol is explicitly referenced. Since portable code cannot
4784# rely on this symbol name, it's probably fine to never include it in
4785# preloaded symbol tables.
4786extract_expsyms_cmds=
4787
4788case $host_os in
4789cygwin* | mingw* | pw32*)
4790 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4791 # When not using gcc, we currently assume that we are using
4792 # Microsoft Visual C++.
4793 if test "$GCC" != yes; then
drh71eb93e2001-09-28 01:34:43 +00004794 with_gnu_ld=no
a.rottmann84e63352003-03-24 09:42:16 +00004795 fi
4796 ;;
4797openbsd*)
4798 with_gnu_ld=no
4799 ;;
4800esac
drh71eb93e2001-09-28 01:34:43 +00004801
a.rottmann84e63352003-03-24 09:42:16 +00004802ld_shlibs=yes
4803if test "$with_gnu_ld" = yes; then
4804 # If archive_cmds runs LD, not CC, wlarc should be empty
4805 wlarc='${wl}'
drh71eb93e2001-09-28 01:34:43 +00004806
a.rottmann84e63352003-03-24 09:42:16 +00004807 # See if GNU ld supports shared libraries.
4808 case $host_os in
4809 aix3* | aix4* | aix5*)
4810 # On AIX, the GNU linker is very broken
4811 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4812 ld_shlibs=no
4813 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00004814
4815*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4816*** to be unable to reliably create shared libraries on AIX.
4817*** Therefore, libtool is disabling shared libraries support. If you
4818*** really care for shared libraries, you may want to modify your PATH
4819*** so that a non-GNU linker is found, and then restart.
4820
4821EOF
a.rottmann84e63352003-03-24 09:42:16 +00004822 ;;
drh71eb93e2001-09-28 01:34:43 +00004823
a.rottmann84e63352003-03-24 09:42:16 +00004824 amigaos*)
4825 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)'
4826 hardcode_libdir_flag_spec='-L$libdir'
4827 hardcode_minus_L=yes
drh71eb93e2001-09-28 01:34:43 +00004828
a.rottmann84e63352003-03-24 09:42:16 +00004829 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4830 # that the semantics of dynamic libraries on AmigaOS, at least up
4831 # to version 4, is to share data among multiple programs linked
4832 # with the same dynamic library. Since this doesn't match the
4833 # behavior of shared libraries on other platforms, we can use
4834 # them.
4835 ld_shlibs=no
4836 ;;
drh71eb93e2001-09-28 01:34:43 +00004837
a.rottmann84e63352003-03-24 09:42:16 +00004838 beos*)
4839 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004840 allow_undefined_flag=unsupported
a.rottmann84e63352003-03-24 09:42:16 +00004841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4842 # support --undefined. This deserves some investigation. FIXME
4843 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4844 else
4845 ld_shlibs=no
4846 fi
4847 ;;
drh71eb93e2001-09-28 01:34:43 +00004848
a.rottmann84e63352003-03-24 09:42:16 +00004849 cygwin* | mingw* | pw32*)
4850 # hardcode_libdir_flag_spec is actually meaningless, as there is
4851 # no search path for DLLs.
4852 hardcode_libdir_flag_spec='-L$libdir'
4853 allow_undefined_flag=unsupported
4854 always_export_symbols=yes
drh71eb93e2001-09-28 01:34:43 +00004855
a.rottmann84e63352003-03-24 09:42:16 +00004856 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4857 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4858 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4859 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4860 else $CC -o impgen impgen.c ; fi)~
4861 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
drh71eb93e2001-09-28 01:34:43 +00004862
a.rottmann84e63352003-03-24 09:42:16 +00004863 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
drh71eb93e2001-09-28 01:34:43 +00004864
a.rottmann84e63352003-03-24 09:42:16 +00004865 # cygwin and mingw dlls have different entry points and sets of symbols
4866 # to exclude.
4867 # FIXME: what about values for MSVC?
4868 dll_entry=__cygwin_dll_entry@12
4869 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4870 case $host_os in
4871 mingw*)
4872 # mingw values
4873 dll_entry=_DllMainCRTStartup@12
4874 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4875 ;;
4876 esac
drh71eb93e2001-09-28 01:34:43 +00004877
a.rottmann84e63352003-03-24 09:42:16 +00004878 # mingw and cygwin differ, and it's simplest to just exclude the union
4879 # of the two symbol sets.
4880 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4881
4882 # recent cygwin and mingw systems supply a stub DllMain which the user
4883 # can override, but on older systems we have to supply one (in ltdll.c)
4884 if test "x$lt_cv_need_dllmain" = "xyes"; then
4885 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4886 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4887 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4888 else
4889 ltdll_obj=
4890 ltdll_cmds=
4891 fi
4892
4893 # Extract the symbol export list from an `--export-all' def file,
4894 # then regenerate the def file from the symbol export list, so that
4895 # the compiled dll only exports the symbol export list.
4896 # Be careful not to strip the DATA tag left be newer dlltools.
4897 export_symbols_cmds="$ltdll_cmds"'
4898 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4899 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4900
4901 # If the export-symbols file already is a .def file (1st line
4902 # is EXPORTS), use it as is.
4903 # If DATA tags from a recent dlltool are present, honour them!
4904 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
4905 cp $export_symbols $output_objdir/$soname-def;
drh71eb93e2001-09-28 01:34:43 +00004906 else
a.rottmann84e63352003-03-24 09:42:16 +00004907 echo EXPORTS > $output_objdir/$soname-def;
4908 _lt_hint=1;
4909 cat $export_symbols | while read symbol; do
4910 set dummy \$symbol;
4911 case \$# in
4912 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4913 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
4914 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4915 esac;
4916 _lt_hint=`expr 1 + \$_lt_hint`;
4917 done;
4918 fi~
4919 '"$ltdll_cmds"'
4920 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4921 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4922 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4923 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4924 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4925 ;;
drh71eb93e2001-09-28 01:34:43 +00004926
a.rottmann84e63352003-03-24 09:42:16 +00004927 netbsd*)
4928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4930 wlarc=
4931 else
4932 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4933 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4934 fi
4935 ;;
drh71eb93e2001-09-28 01:34:43 +00004936
a.rottmann84e63352003-03-24 09:42:16 +00004937 solaris* | sysv5*)
4938 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4939 ld_shlibs=no
4940 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00004941
4942*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4943*** create shared libraries on Solaris systems. Therefore, libtool
4944*** is disabling shared libraries support. We urge you to upgrade GNU
4945*** binutils to release 2.9.1 or newer. Another option is to modify
4946*** your PATH or compiler configuration so that the native linker is
4947*** used, and then restart.
4948
4949EOF
a.rottmann84e63352003-03-24 09:42:16 +00004950 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4953 else
4954 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00004955 fi
a.rottmann84e63352003-03-24 09:42:16 +00004956 ;;
4957
4958 sunos4*)
4959 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4960 wlarc=
4961 hardcode_direct=yes
4962 hardcode_shlibpath_var=no
4963 ;;
4964
4965 *)
4966 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4969 else
4970 ld_shlibs=no
4971 fi
4972 ;;
4973 esac
4974
4975 if test "$ld_shlibs" = yes; then
4976 runpath_var=LD_RUN_PATH
4977 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4978 export_dynamic_flag_spec='${wl}--export-dynamic'
drh71eb93e2001-09-28 01:34:43 +00004979 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00004980 cygwin* | mingw* | pw32*)
a.rottmann84e63352003-03-24 09:42:16 +00004981 # dlltool doesn't understand --whole-archive et. al.
4982 whole_archive_flag_spec=
drh71eb93e2001-09-28 01:34:43 +00004983 ;;
drh71eb93e2001-09-28 01:34:43 +00004984 *)
a.rottmann84e63352003-03-24 09:42:16 +00004985 # ancient GNU ld didn't support --whole-archive et. al.
4986 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4987 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4988 else
4989 whole_archive_flag_spec=
4990 fi
drh71eb93e2001-09-28 01:34:43 +00004991 ;;
4992 esac
4993 fi
a.rottmann84e63352003-03-24 09:42:16 +00004994else
4995 # PORTME fill in a description of your system's linker (not GNU ld)
4996 case $host_os in
4997 aix3*)
4998 allow_undefined_flag=unsupported
4999 always_export_symbols=yes
5000 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'
5001 # Note: this linker hardcodes the directories in LIBPATH if there
5002 # are no directories specified by -L.
5003 hardcode_minus_L=yes
5004 if test "$GCC" = yes && test -z "$link_static_flag"; then
5005 # Neither direct hardcoding nor static linking is supported with a
5006 # broken collect2.
5007 hardcode_direct=unsupported
drh71eb93e2001-09-28 01:34:43 +00005008 fi
a.rottmann84e63352003-03-24 09:42:16 +00005009 ;;
5010
5011 aix4* | aix5*)
5012 if test "$host_cpu" = ia64; then
5013 # On IA64, the linker does run time linking by default, so we don't
5014 # have to do anything special.
5015 aix_use_runtimelinking=no
5016 exp_sym_flag='-Bexport'
5017 no_entry_flag=""
5018 else
5019 aix_use_runtimelinking=no
5020
5021 # Test if we are trying to use run time linking or normal
5022 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5023 # need to do runtime linking.
5024 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5025 for ld_flag in $LDFLAGS; do
5026 case $ld_flag in
5027 *-brtl*)
5028 aix_use_runtimelinking=yes
5029 break
5030 ;;
5031 esac
5032 done
5033 esac
5034
5035 exp_sym_flag='-bexport'
5036 no_entry_flag='-bnoentry'
5037 fi
5038
5039 # When large executables or shared objects are built, AIX ld can
5040 # have problems creating the table of contents. If linking a library
5041 # or program results in "error TOC overflow" add -mminimal-toc to
5042 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5043 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5044
5045 hardcode_direct=yes
5046 archive_cmds=''
5047 hardcode_libdir_separator=':'
5048 if test "$GCC" = yes; then
5049 case $host_os in aix4.[012]|aix4.[012].*)
5050 collect2name=`${CC} -print-prog-name=collect2`
5051 if test -f "$collect2name" && \
5052 strings "$collect2name" | grep resolve_lib_name >/dev/null
5053 then
5054 # We have reworked collect2
5055 hardcode_direct=yes
5056 else
5057 # We have old collect2
5058 hardcode_direct=unsupported
5059 # It fails to find uninstalled libraries when the uninstalled
5060 # path is not listed in the libpath. Setting hardcode_minus_L
5061 # to unsupported forces relinking
5062 hardcode_minus_L=yes
5063 hardcode_libdir_flag_spec='-L$libdir'
5064 hardcode_libdir_separator=
5065 fi
5066 esac
5067
5068 shared_flag='-shared'
5069 else
5070 # not using gcc
5071 if test "$host_cpu" = ia64; then
5072 shared_flag='${wl}-G'
5073 else
5074 if test "$aix_use_runtimelinking" = yes; then
5075 shared_flag='${wl}-G'
5076 else
5077 shared_flag='${wl}-bM:SRE'
5078 fi
5079 fi
5080 fi
5081
5082 # It seems that -bexpall can do strange things, so it is better to
5083 # generate a list of symbols to export.
5084 always_export_symbols=yes
5085 if test "$aix_use_runtimelinking" = yes; then
5086 # Warning - without using the other runtime loading flags (-brtl),
5087 # -berok will link without error, but may produce a broken library.
5088 allow_undefined_flag='-berok'
5089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5090 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"
5091 else
5092 if test "$host_cpu" = ia64; then
5093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5094 allow_undefined_flag="-z nodefs"
5095 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5096 else
5097 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5098 # Warning - without using the other run time loading flags,
5099 # -berok will link without error, but may produce a broken library.
5100 allow_undefined_flag='${wl}-berok'
5101 # This is a bit strange, but is similar to how AIX traditionally builds
5102 # it's shared libraries.
5103 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
5104 fi
5105 fi
5106 ;;
5107
5108 amigaos*)
5109 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)'
5110 hardcode_libdir_flag_spec='-L$libdir'
5111 hardcode_minus_L=yes
5112 # see comment about different semantics on the GNU ld section
5113 ld_shlibs=no
5114 ;;
5115
5116 cygwin* | mingw* | pw32*)
5117 # When not using gcc, we currently assume that we are using
5118 # Microsoft Visual C++.
5119 # hardcode_libdir_flag_spec is actually meaningless, as there is
5120 # no search path for DLLs.
5121 hardcode_libdir_flag_spec=' '
5122 allow_undefined_flag=unsupported
5123 # Tell ltmain to make .lib files, not .a files.
5124 libext=lib
5125 # FIXME: Setting linknames here is a bad hack.
5126 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5127 # The linker will automatically build a .lib file if we build a DLL.
5128 old_archive_from_new_cmds='true'
5129 # FIXME: Should let the user specify the lib program.
5130 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5131 fix_srcfile_path='`cygpath -w "$srcfile"`'
5132 ;;
5133
5134 darwin* | rhapsody*)
5135 case "$host_os" in
5136 rhapsody* | darwin1.[012])
5137 allow_undefined_flag='-undefined suppress'
5138 ;;
5139 *) # Darwin 1.3 on
5140 allow_undefined_flag='-flat_namespace -undefined suppress'
5141 ;;
5142 esac
5143 # FIXME: Relying on posixy $() will cause problems for
5144 # cross-compilation, but unfortunately the echo tests do not
5145 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5146 # `"' quotes if we put them in here... so don't!
5147 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5148 # We need to add '_' to the symbols in $export_symbols first
5149 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5150 hardcode_direct=yes
5151 hardcode_shlibpath_var=no
5152 whole_archive_flag_spec='-all_load $convenience'
5153 ;;
5154
5155 freebsd1*)
5156 ld_shlibs=no
5157 ;;
5158
5159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5160 # support. Future versions do this automatically, but an explicit c++rt0.o
5161 # does not break anything, and helps significantly (at the cost of a little
5162 # extra space).
5163 freebsd2.2*)
5164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5165 hardcode_libdir_flag_spec='-R$libdir'
5166 hardcode_direct=yes
5167 hardcode_shlibpath_var=no
5168 ;;
5169
5170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5171 freebsd2*)
5172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5173 hardcode_direct=yes
5174 hardcode_minus_L=yes
5175 hardcode_shlibpath_var=no
5176 ;;
5177
5178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5179 freebsd*)
5180 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5181 hardcode_libdir_flag_spec='-R$libdir'
5182 hardcode_direct=yes
5183 hardcode_shlibpath_var=no
5184 ;;
5185
5186 hpux9* | hpux10* | hpux11*)
5187 case $host_os in
5188 hpux9*) 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' ;;
5189 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5190 esac
5191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5192 hardcode_libdir_separator=:
5193 hardcode_direct=yes
5194 hardcode_minus_L=yes # Not in the search PATH, but as the default
5195 # location of the library.
5196 export_dynamic_flag_spec='${wl}-E'
5197 ;;
5198
5199 irix5* | irix6* | nonstopux*)
5200 if test "$GCC" = yes; then
5201 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'
5202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5203 else
5204 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'
5205 hardcode_libdir_flag_spec='-rpath $libdir'
5206 fi
5207 hardcode_libdir_separator=:
5208 link_all_deplibs=yes
5209 ;;
5210
5211 netbsd*)
5212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5214 else
5215 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5216 fi
5217 hardcode_libdir_flag_spec='-R$libdir'
5218 hardcode_direct=yes
5219 hardcode_shlibpath_var=no
5220 ;;
5221
5222 newsos6)
5223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5224 hardcode_direct=yes
5225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5226 hardcode_libdir_separator=:
5227 hardcode_shlibpath_var=no
5228 ;;
5229
5230 openbsd*)
5231 hardcode_direct=yes
5232 hardcode_shlibpath_var=no
5233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5236 export_dynamic_flag_spec='${wl}-E'
5237 else
5238 case "$host_os" in
5239 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5241 hardcode_libdir_flag_spec='-R$libdir'
5242 ;;
5243 *)
5244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5245 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5246 ;;
5247 esac
5248 fi
5249 ;;
5250
5251 os2*)
5252 hardcode_libdir_flag_spec='-L$libdir'
5253 hardcode_minus_L=yes
5254 allow_undefined_flag=unsupported
5255 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'
5256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5257 ;;
5258
5259 osf3*)
5260 if test "$GCC" = yes; then
5261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5262 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'
5263 else
5264 allow_undefined_flag=' -expect_unresolved \*'
5265 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'
5266 fi
5267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5268 hardcode_libdir_separator=:
5269 ;;
5270
5271 osf4* | osf5*) # as osf3* with the addition of -msym flag
5272 if test "$GCC" = yes; then
5273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5274 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'
5275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5276 else
5277 allow_undefined_flag=' -expect_unresolved \*'
5278 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'
5279 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5280 $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'
5281
5282 #Both c and cxx compiler support -rpath directly
5283 hardcode_libdir_flag_spec='-rpath $libdir'
5284 fi
5285 hardcode_libdir_separator=:
5286 ;;
5287
5288 sco3.2v5*)
5289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5290 hardcode_shlibpath_var=no
5291 runpath_var=LD_RUN_PATH
5292 hardcode_runpath_var=yes
5293 export_dynamic_flag_spec='${wl}-Bexport'
5294 ;;
5295
5296 solaris*)
5297 # gcc --version < 3.0 without binutils cannot create self contained
5298 # shared libraries reliably, requiring libgcc.a to resolve some of
5299 # the object symbols generated in some cases. Libraries that use
5300 # assert need libgcc.a to resolve __eprintf, for example. Linking
5301 # a copy of libgcc.a into every shared library to guarantee resolving
5302 # such symbols causes other problems: According to Tim Van Holder
5303 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5304 # (to the application) exception stack for one thing.
5305 no_undefined_flag=' -z defs'
5306 if test "$GCC" = yes; then
5307 case `$CC --version 2>/dev/null` in
5308 [12].*)
5309 cat <<EOF 1>&2
5310
5311*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5312*** create self contained shared libraries on Solaris systems, without
5313*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5314*** -no-undefined support, which will at least allow you to build shared
5315*** libraries. However, you may find that when you link such libraries
5316*** into an application without using GCC, you have to manually add
5317*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5318*** upgrade to a newer version of GCC. Another option is to rebuild your
5319*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5320
5321EOF
5322 no_undefined_flag=
5323 ;;
5324 esac
5325 fi
5326 # $CC -shared without GNU ld will not create a library from C++
5327 # object files and a static libstdc++, better avoid it by now
5328 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5329 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5330 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5331 hardcode_libdir_flag_spec='-R$libdir'
5332 hardcode_shlibpath_var=no
5333 case $host_os in
5334 solaris2.[0-5] | solaris2.[0-5].*) ;;
5335 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5336 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5337 esac
5338 link_all_deplibs=yes
5339 ;;
5340
5341 sunos4*)
5342 if test "x$host_vendor" = xsequent; then
5343 # Use $CC to link under sequent, because it throws in some extra .o
5344 # files that make .init and .fini sections work.
5345 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5346 else
5347 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5348 fi
5349 hardcode_libdir_flag_spec='-L$libdir'
5350 hardcode_direct=yes
5351 hardcode_minus_L=yes
5352 hardcode_shlibpath_var=no
5353 ;;
5354
5355 sysv4)
5356 case $host_vendor in
5357 sni)
5358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5359 hardcode_direct=yes # is this really true???
5360 ;;
5361 siemens)
5362 ## LD is ld it makes a PLAMLIB
5363 ## CC just makes a GrossModule.
5364 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5365 reload_cmds='$CC -r -o $output$reload_objs'
5366 hardcode_direct=no
5367 ;;
5368 motorola)
5369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5370 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5371 ;;
5372 esac
5373 runpath_var='LD_RUN_PATH'
5374 hardcode_shlibpath_var=no
5375 ;;
5376
5377 sysv4.3*)
5378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5379 hardcode_shlibpath_var=no
5380 export_dynamic_flag_spec='-Bexport'
5381 ;;
5382
5383 sysv5*)
5384 no_undefined_flag=' -z text'
5385 # $CC -shared without GNU ld will not create a library from C++
5386 # object files and a static libstdc++, better avoid it by now
5387 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5388 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5390 hardcode_libdir_flag_spec=
5391 hardcode_shlibpath_var=no
5392 runpath_var='LD_RUN_PATH'
5393 ;;
5394
5395 uts4*)
5396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5397 hardcode_libdir_flag_spec='-L$libdir'
5398 hardcode_shlibpath_var=no
5399 ;;
5400
5401 dgux*)
5402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5403 hardcode_libdir_flag_spec='-L$libdir'
5404 hardcode_shlibpath_var=no
5405 ;;
5406
5407 sysv4*MP*)
5408 if test -d /usr/nec; then
5409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5410 hardcode_shlibpath_var=no
5411 runpath_var=LD_RUN_PATH
5412 hardcode_runpath_var=yes
5413 ld_shlibs=yes
5414 fi
5415 ;;
5416
5417 sysv4.2uw2*)
5418 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5419 hardcode_direct=yes
5420 hardcode_minus_L=no
5421 hardcode_shlibpath_var=no
5422 hardcode_runpath_var=yes
5423 runpath_var=LD_RUN_PATH
5424 ;;
5425
5426 sysv5uw7* | unixware7*)
5427 no_undefined_flag='${wl}-z ${wl}text'
5428 if test "$GCC" = yes; then
5429 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5430 else
5431 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5432 fi
5433 runpath_var='LD_RUN_PATH'
5434 hardcode_shlibpath_var=no
5435 ;;
5436
5437 *)
5438 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00005439 ;;
5440 esac
5441fi
a.rottmann84e63352003-03-24 09:42:16 +00005442echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5443echo "${ECHO_T}$ld_shlibs" >&6
5444test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005445
a.rottmann84e63352003-03-24 09:42:16 +00005446# Check hardcoding attributes.
5447echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh71eb93e2001-09-28 01:34:43 +00005448echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5449hardcode_action=
5450if test -n "$hardcode_libdir_flag_spec" || \
a.rottmann84e63352003-03-24 09:42:16 +00005451 test -n "$runpath_var"; then
drh71eb93e2001-09-28 01:34:43 +00005452
5453 # We can hardcode non-existant directories.
5454 if test "$hardcode_direct" != no &&
5455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5456 # have to relink, otherwise we might link with an installed library
5457 # when we should be linking with a yet-to-be-installed one
a.rottmann84e63352003-03-24 09:42:16 +00005458 ## test "$hardcode_shlibpath_var" != no &&
drh71eb93e2001-09-28 01:34:43 +00005459 test "$hardcode_minus_L" != no; then
5460 # Linking always hardcodes the temporary library directory.
5461 hardcode_action=relink
5462 else
5463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5464 hardcode_action=immediate
5465 fi
5466else
5467 # We cannot hardcode anything, or else we can only hardcode existing
5468 # directories.
5469 hardcode_action=unsupported
5470fi
a.rottmann84e63352003-03-24 09:42:16 +00005471echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh71eb93e2001-09-28 01:34:43 +00005472echo "${ECHO_T}$hardcode_action" >&6
5473
drh71eb93e2001-09-28 01:34:43 +00005474striplib=
5475old_striplib=
a.rottmann84e63352003-03-24 09:42:16 +00005476echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh71eb93e2001-09-28 01:34:43 +00005477echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5478if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
a.rottmann84e63352003-03-24 09:42:16 +00005481 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00005482echo "${ECHO_T}yes" >&6
5483else
a.rottmann84e63352003-03-24 09:42:16 +00005484 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00005485echo "${ECHO_T}no" >&6
5486fi
5487
a.rottmann84e63352003-03-24 09:42:16 +00005488reload_cmds='$LD$reload_flag -o $output$reload_objs'
5489test -z "$deplibs_check_method" && deplibs_check_method=unknown
5490
5491# PORTME Fill in your ld.so characteristics
5492echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00005493echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5494library_names_spec=
5495libname_spec='lib$name'
5496soname_spec=
5497postinstall_cmds=
5498postuninstall_cmds=
5499finish_cmds=
5500finish_eval=
5501shlibpath_var=
5502shlibpath_overrides_runpath=unknown
5503version_type=none
5504dynamic_linker="$host_os ld.so"
5505sys_lib_dlsearch_path_spec="/lib /usr/lib"
5506sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
drh71eb93e2001-09-28 01:34:43 +00005507
5508case $host_os in
5509aix3*)
5510 version_type=linux
5511 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5512 shlibpath_var=LIBPATH
5513
a.rottmann84e63352003-03-24 09:42:16 +00005514 # AIX has no versioning support, so we append a major version to the name.
drh71eb93e2001-09-28 01:34:43 +00005515 soname_spec='${libname}${release}.so$major'
5516 ;;
5517
5518aix4* | aix5*)
5519 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00005520 need_lib_prefix=no
5521 need_version=no
5522 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005523 if test "$host_cpu" = ia64; then
5524 # AIX 5 supports IA64
5525 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5526 shlibpath_var=LD_LIBRARY_PATH
5527 else
5528 # With GCC up to 2.95.x, collect2 would create an import file
5529 # for dependence libraries. The import file would start with
5530 # the line `#! .'. This would cause the generated library to
5531 # depend on `.', always an invalid library. This was fixed in
5532 # development snapshots of GCC prior to 3.0.
5533 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005534 aix4 | aix4.[01] | aix4.[01].*)
5535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5536 echo ' yes '
5537 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5538 :
5539 else
5540 can_build_shared=no
5541 fi
5542 ;;
drh71eb93e2001-09-28 01:34:43 +00005543 esac
a.rottmann84e63352003-03-24 09:42:16 +00005544 # AIX (on Power*) has no versioning support, so currently we can
5545 # not hardcode correct soname into executable. Probably we can
5546 # add versioning support to collect2, so additional links can
5547 # be useful in future.
drh71eb93e2001-09-28 01:34:43 +00005548 if test "$aix_use_runtimelinking" = yes; then
5549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5550 # instead of lib<name>.a to let people know that these are not
5551 # typical AIX shared libraries.
5552 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5553 else
5554 # We preserve .a as extension for shared libraries through AIX4.2
5555 # and later when we are not doing run time linking.
5556 library_names_spec='${libname}${release}.a $libname.a'
5557 soname_spec='${libname}${release}.so$major'
5558 fi
5559 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00005560 fi
a.rottmann84e63352003-03-24 09:42:16 +00005561 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005562 ;;
5563
5564amigaos*)
5565 library_names_spec='$libname.ixlibrary $libname.a'
5566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5567 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'
5568 ;;
5569
5570beos*)
5571 library_names_spec='${libname}.so'
5572 dynamic_linker="$host_os ld.so"
5573 shlibpath_var=LIBRARY_PATH
5574 ;;
5575
5576bsdi4*)
5577 version_type=linux
5578 need_version=no
5579 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5580 soname_spec='${libname}${release}.so$major'
5581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5582 shlibpath_var=LD_LIBRARY_PATH
5583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
a.rottmann84e63352003-03-24 09:42:16 +00005585 export_dynamic_flag_spec=-rdynamic
drh71eb93e2001-09-28 01:34:43 +00005586 # the default ld.so.conf also contains /usr/contrib/lib and
5587 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5588 # libtool to hard-code these into programs
5589 ;;
5590
5591cygwin* | mingw* | pw32*)
5592 version_type=windows
5593 need_version=no
5594 need_lib_prefix=no
5595 case $GCC,$host_os in
5596 yes,cygwin*)
5597 library_names_spec='$libname.dll.a'
drh71eb93e2001-09-28 01:34:43 +00005598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5599 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5600 dldir=$destdir/`dirname \$dlpath`~
5601 test -d \$dldir || mkdir -p \$dldir~
5602 $install_prog .libs/$dlname \$dldir/$dlname'
5603 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5604 dlpath=$dir/\$dldll~
5605 $rm \$dlpath'
5606 ;;
5607 yes,mingw*)
5608 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
a.rottmann84e63352003-03-24 09:42:16 +00005609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
drh71eb93e2001-09-28 01:34:43 +00005610 ;;
5611 yes,pw32*)
5612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5613 ;;
5614 *)
5615 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5616 ;;
5617 esac
5618 dynamic_linker='Win32 ld.exe'
5619 # FIXME: first we should search . and the directory the executable is in
5620 shlibpath_var=PATH
5621 ;;
5622
5623darwin* | rhapsody*)
5624 dynamic_linker="$host_os dyld"
5625 version_type=darwin
5626 need_lib_prefix=no
5627 need_version=no
5628 # FIXME: Relying on posixy $() will cause problems for
5629 # cross-compilation, but unfortunately the echo tests do not
5630 # yet detect zsh echo's removal of \ escapes.
5631 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5632 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5633 shlibpath_overrides_runpath=yes
5634 shlibpath_var=DYLD_LIBRARY_PATH
5635 ;;
5636
a.rottmann84e63352003-03-24 09:42:16 +00005637freebsd1*)
5638 dynamic_linker=no
5639 ;;
5640
5641freebsd*-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005642 version_type=linux
5643 need_lib_prefix=no
5644 need_version=no
5645 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5646 soname_spec='${libname}${release}.so$major'
5647 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00005648 shlibpath_overrides_runpath=no
5649 hardcode_into_libs=yes
5650 dynamic_linker='GNU/FreeBSD ld.so'
drh71eb93e2001-09-28 01:34:43 +00005651 ;;
5652
5653freebsd*)
5654 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5655 version_type=freebsd-$objformat
5656 case $version_type in
5657 freebsd-elf*)
5658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5659 need_version=no
5660 need_lib_prefix=no
5661 ;;
5662 freebsd-*)
5663 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5664 need_version=yes
5665 ;;
5666 esac
5667 shlibpath_var=LD_LIBRARY_PATH
5668 case $host_os in
5669 freebsd2*)
5670 shlibpath_overrides_runpath=yes
5671 ;;
a.rottmann84e63352003-03-24 09:42:16 +00005672 *)
drh71eb93e2001-09-28 01:34:43 +00005673 shlibpath_overrides_runpath=no
5674 hardcode_into_libs=yes
5675 ;;
5676 esac
5677 ;;
5678
5679gnu*)
5680 version_type=linux
5681 need_lib_prefix=no
5682 need_version=no
5683 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5684 soname_spec='${libname}${release}.so$major'
5685 shlibpath_var=LD_LIBRARY_PATH
5686 hardcode_into_libs=yes
5687 ;;
5688
5689hpux9* | hpux10* | hpux11*)
5690 # Give a soname corresponding to the major version so that dld.sl refuses to
5691 # link against other versions.
a.rottmann84e63352003-03-24 09:42:16 +00005692 dynamic_linker="$host_os dld.sl"
drh71eb93e2001-09-28 01:34:43 +00005693 version_type=sunos
5694 need_lib_prefix=no
5695 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005696 shlibpath_var=SHLIB_PATH
5697 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5698 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5699 soname_spec='${libname}${release}.sl$major'
drh71eb93e2001-09-28 01:34:43 +00005700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5701 postinstall_cmds='chmod 555 $lib'
5702 ;;
5703
a.rottmann84e63352003-03-24 09:42:16 +00005704irix5* | irix6* | nonstopux*)
5705 case $host_os in
5706 nonstopux*) version_type=nonstopux ;;
5707 *) version_type=irix ;;
5708 esac
drh71eb93e2001-09-28 01:34:43 +00005709 need_lib_prefix=no
5710 need_version=no
5711 soname_spec='${libname}${release}.so$major'
5712 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5713 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005714 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00005715 libsuff= shlibsuff=
5716 ;;
5717 *)
5718 case $LD in # libtool.m4 will add one of these switches to LD
5719 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5720 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5721 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5722 *) libsuff= shlibsuff= libmagic=never-match;;
5723 esac
5724 ;;
5725 esac
5726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5727 shlibpath_overrides_runpath=no
5728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5730 ;;
5731
5732# No shared lib support for Linux oldld, aout, or coff.
a.rottmann84e63352003-03-24 09:42:16 +00005733linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
drh71eb93e2001-09-28 01:34:43 +00005734 dynamic_linker=no
5735 ;;
5736
5737# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00005738linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005739 version_type=linux
5740 need_lib_prefix=no
5741 need_version=no
5742 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5743 soname_spec='${libname}${release}.so$major'
5744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5745 shlibpath_var=LD_LIBRARY_PATH
5746 shlibpath_overrides_runpath=no
5747 # This implies no fast_install, which is unacceptable.
5748 # Some rework will be needed to allow for fast_install
5749 # before this can be enabled.
5750 hardcode_into_libs=yes
5751
5752 # We used to test for /lib/ld.so.1 and disable shared libraries on
5753 # powerpc, because MkLinux only supported shared libraries with the
5754 # GNU dynamic linker. Since this was broken with cross compilers,
5755 # most powerpc-linux boxes support dynamic linking these days and
5756 # people can always --disable-shared, the test was removed, and we
5757 # assume the GNU/Linux dynamic linker is in use.
5758 dynamic_linker='GNU/Linux ld.so'
5759 ;;
5760
5761netbsd*)
5762 version_type=sunos
5763 need_lib_prefix=no
5764 need_version=no
5765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5766 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5768 dynamic_linker='NetBSD (a.out) ld.so'
5769 else
5770 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5771 soname_spec='${libname}${release}.so$major'
5772 dynamic_linker='NetBSD ld.elf_so'
5773 fi
5774 shlibpath_var=LD_LIBRARY_PATH
5775 shlibpath_overrides_runpath=yes
5776 hardcode_into_libs=yes
5777 ;;
5778
5779newsos6)
5780 version_type=linux
5781 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5782 shlibpath_var=LD_LIBRARY_PATH
5783 shlibpath_overrides_runpath=yes
5784 ;;
5785
drh71eb93e2001-09-28 01:34:43 +00005786openbsd*)
5787 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00005788 need_lib_prefix=no
5789 need_version=no
5790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5791 case "$host_os" in
5792 openbsd2.[89] | openbsd2.[89].*)
5793 shlibpath_overrides_runpath=no
5794 ;;
5795 *)
5796 shlibpath_overrides_runpath=yes
5797 ;;
5798 esac
5799 else
5800 shlibpath_overrides_runpath=yes
5801 fi
drh71eb93e2001-09-28 01:34:43 +00005802 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5804 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00005805 ;;
5806
5807os2*)
5808 libname_spec='$name'
5809 need_lib_prefix=no
5810 library_names_spec='$libname.dll $libname.a'
5811 dynamic_linker='OS/2 ld.exe'
5812 shlibpath_var=LIBPATH
5813 ;;
5814
5815osf3* | osf4* | osf5*)
5816 version_type=osf
5817 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005818 need_lib_prefix=no
5819 soname_spec='${libname}${release}.so$major'
5820 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
drh71eb93e2001-09-28 01:34:43 +00005821 shlibpath_var=LD_LIBRARY_PATH
5822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
a.rottmann84e63352003-03-24 09:42:16 +00005824 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005825 ;;
5826
5827sco3.2v5*)
5828 version_type=osf
5829 soname_spec='${libname}${release}.so$major'
5830 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5831 shlibpath_var=LD_LIBRARY_PATH
5832 ;;
5833
5834solaris*)
5835 version_type=linux
5836 need_lib_prefix=no
5837 need_version=no
5838 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5839 soname_spec='${libname}${release}.so$major'
5840 shlibpath_var=LD_LIBRARY_PATH
5841 shlibpath_overrides_runpath=yes
5842 hardcode_into_libs=yes
5843 # ldd complains unless libraries are executable
5844 postinstall_cmds='chmod +x $lib'
5845 ;;
5846
5847sunos4*)
5848 version_type=sunos
5849 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5851 shlibpath_var=LD_LIBRARY_PATH
5852 shlibpath_overrides_runpath=yes
5853 if test "$with_gnu_ld" = yes; then
5854 need_lib_prefix=no
5855 fi
5856 need_version=yes
5857 ;;
5858
5859sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5860 version_type=linux
5861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5862 soname_spec='${libname}${release}.so$major'
5863 shlibpath_var=LD_LIBRARY_PATH
5864 case $host_vendor in
5865 sni)
5866 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00005867 need_lib_prefix=no
5868 export_dynamic_flag_spec='${wl}-Blargedynsym'
5869 runpath_var=LD_RUN_PATH
5870 ;;
5871 siemens)
5872 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00005873 ;;
5874 motorola)
5875 need_lib_prefix=no
5876 need_version=no
5877 shlibpath_overrides_runpath=no
5878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5879 ;;
5880 esac
5881 ;;
5882
a.rottmann84e63352003-03-24 09:42:16 +00005883uts4*)
5884 version_type=linux
5885 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5886 soname_spec='${libname}${release}.so$major'
5887 shlibpath_var=LD_LIBRARY_PATH
5888 ;;
5889
5890dgux*)
5891 version_type=linux
5892 need_lib_prefix=no
5893 need_version=no
5894 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5895 soname_spec='${libname}${release}.so$major'
5896 shlibpath_var=LD_LIBRARY_PATH
5897 ;;
5898
drh71eb93e2001-09-28 01:34:43 +00005899sysv4*MP*)
5900 if test -d /usr/nec ;then
5901 version_type=linux
5902 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5903 soname_spec='$libname.so.$major'
5904 shlibpath_var=LD_LIBRARY_PATH
5905 fi
5906 ;;
5907
drh71eb93e2001-09-28 01:34:43 +00005908*)
5909 dynamic_linker=no
5910 ;;
5911esac
a.rottmann84e63352003-03-24 09:42:16 +00005912echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00005913echo "${ECHO_T}$dynamic_linker" >&6
5914test "$dynamic_linker" = no && can_build_shared=no
5915
a.rottmann84e63352003-03-24 09:42:16 +00005916# Report the final consequences.
5917echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5918echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5919echo "$as_me:$LINENO: result: $can_build_shared" >&5
5920echo "${ECHO_T}$can_build_shared" >&6
5921
5922echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5923echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5924test "$can_build_shared" = "no" && enable_shared=no
5925
5926# On AIX, shared libraries and static libraries use the same namespace, and
5927# are all built from PIC.
5928case "$host_os" in
5929aix3*)
5930 test "$enable_shared" = yes && enable_static=no
5931 if test -n "$RANLIB"; then
5932 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5933 postinstall_cmds='$RANLIB $lib'
5934 fi
5935 ;;
5936
5937aix4*)
5938 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5939 test "$enable_shared" = yes && enable_static=no
5940 fi
5941 ;;
5942esac
5943echo "$as_me:$LINENO: result: $enable_shared" >&5
5944echo "${ECHO_T}$enable_shared" >&6
5945
5946echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5947echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5948# Make sure either enable_shared or enable_static is yes.
5949test "$enable_shared" = yes || enable_static=yes
5950echo "$as_me:$LINENO: result: $enable_static" >&5
5951echo "${ECHO_T}$enable_static" >&6
5952
5953if test "$hardcode_action" = relink; then
5954 # Fast installation is not supported
5955 enable_fast_install=no
5956elif test "$shlibpath_overrides_runpath" = yes ||
5957 test "$enable_shared" = no; then
5958 # Fast installation is not necessary
5959 enable_fast_install=needless
5960fi
5961
5962variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5963if test "$GCC" = yes; then
5964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5965fi
5966
drh71eb93e2001-09-28 01:34:43 +00005967if test "x$enable_dlopen" != xyes; then
5968 enable_dlopen=unknown
5969 enable_dlopen_self=unknown
5970 enable_dlopen_self_static=unknown
5971else
5972 lt_cv_dlopen=no
5973 lt_cv_dlopen_libs=
5974
5975 case $host_os in
5976 beos*)
5977 lt_cv_dlopen="load_add_on"
5978 lt_cv_dlopen_libs=
5979 lt_cv_dlopen_self=yes
5980 ;;
5981
5982 cygwin* | mingw* | pw32*)
5983 lt_cv_dlopen="LoadLibrary"
5984 lt_cv_dlopen_libs=
5985 ;;
5986
5987 *)
a.rottmann84e63352003-03-24 09:42:16 +00005988 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00005989echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5990if test "${ac_cv_func_shl_load+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005994#line $LINENO "configure"
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
5999/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006000/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00006001 which can conflict with char shl_load (); below.
6002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6003 <limits.h> exists even on freestanding compilers. */
6004#ifdef __STDC__
6005# include <limits.h>
6006#else
6007# include <assert.h>
6008#endif
drh71eb93e2001-09-28 01:34:43 +00006009/* Override any gcc2 internal prototype to avoid an error. */
6010#ifdef __cplusplus
6011extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00006012{
drh71eb93e2001-09-28 01:34:43 +00006013#endif
6014/* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6016char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00006017/* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020#if defined (__stub_shl_load) || defined (__stub___shl_load)
6021choke me
6022#else
a.rottmann84e63352003-03-24 09:42:16 +00006023char (*f) () = shl_load;
6024#endif
6025#ifdef __cplusplus
6026}
drh71eb93e2001-09-28 01:34:43 +00006027#endif
6028
a.rottmann84e63352003-03-24 09:42:16 +00006029int
6030main ()
6031{
6032return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00006033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006039 (eval $ac_link) 2>&5
6040 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006042 (exit $ac_status); } &&
6043 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006045 (eval $ac_try) 2>&5
6046 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006048 (exit $ac_status); }; }; then
6049 ac_cv_func_shl_load=yes
6050else
6051 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006052sed 's/^/| /' conftest.$ac_ext >&5
6053
drh71eb93e2001-09-28 01:34:43 +00006054ac_cv_func_shl_load=no
6055fi
6056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057fi
a.rottmann84e63352003-03-24 09:42:16 +00006058echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006059echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6060if test $ac_cv_func_shl_load = yes; then
6061 lt_cv_dlopen="shl_load"
6062else
a.rottmann84e63352003-03-24 09:42:16 +00006063 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00006064echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6065if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068 ac_check_lib_save_LIBS=$LIBS
6069LIBS="-ldld $LIBS"
6070cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006071#line $LINENO "configure"
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006077
6078/* Override any gcc2 internal prototype to avoid an error. */
6079#ifdef __cplusplus
6080extern "C"
6081#endif
6082/* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084char shl_load ();
6085int
6086main ()
6087{
6088shl_load ();
6089 ;
6090 return 0;
6091}
6092_ACEOF
6093rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006095 (eval $ac_link) 2>&5
6096 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006098 (exit $ac_status); } &&
6099 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006101 (eval $ac_try) 2>&5
6102 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006104 (exit $ac_status); }; }; then
6105 ac_cv_lib_dld_shl_load=yes
6106else
6107 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006108sed 's/^/| /' conftest.$ac_ext >&5
6109
drh71eb93e2001-09-28 01:34:43 +00006110ac_cv_lib_dld_shl_load=no
6111fi
6112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6113LIBS=$ac_check_lib_save_LIBS
6114fi
a.rottmann84e63352003-03-24 09:42:16 +00006115echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006116echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6117if test $ac_cv_lib_dld_shl_load = yes; then
6118 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6119else
a.rottmann84e63352003-03-24 09:42:16 +00006120 echo "$as_me:$LINENO: checking for dlopen" >&5
6121echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6122if test "${ac_cv_func_dlopen+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125 cat >conftest.$ac_ext <<_ACEOF
6126#line $LINENO "configure"
6127/* confdefs.h. */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h. */
6132/* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char dlopen (); below.
6134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135 <limits.h> exists even on freestanding compilers. */
6136#ifdef __STDC__
6137# include <limits.h>
6138#else
6139# include <assert.h>
6140#endif
6141/* Override any gcc2 internal prototype to avoid an error. */
6142#ifdef __cplusplus
6143extern "C"
6144{
6145#endif
6146/* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6148char dlopen ();
6149/* The GNU C library defines this for functions which it implements
6150 to always fail with ENOSYS. Some functions are actually named
6151 something starting with __ and the normal name is an alias. */
6152#if defined (__stub_dlopen) || defined (__stub___dlopen)
6153choke me
6154#else
6155char (*f) () = dlopen;
6156#endif
6157#ifdef __cplusplus
6158}
6159#endif
6160
6161int
6162main ()
6163{
6164return f != dlopen;
6165 ;
6166 return 0;
6167}
6168_ACEOF
6169rm -f conftest.$ac_objext conftest$ac_exeext
6170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_func_dlopen=yes
6182else
6183 echo "$as_me: failed program was:" >&5
6184sed 's/^/| /' conftest.$ac_ext >&5
6185
6186ac_cv_func_dlopen=no
6187fi
6188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189fi
6190echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6191echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6192if test $ac_cv_func_dlopen = yes; then
6193 lt_cv_dlopen="dlopen"
6194else
6195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00006196echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6197if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 ac_check_lib_save_LIBS=$LIBS
6201LIBS="-ldl $LIBS"
6202cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006203#line $LINENO "configure"
6204/* confdefs.h. */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006209
6210/* Override any gcc2 internal prototype to avoid an error. */
6211#ifdef __cplusplus
6212extern "C"
6213#endif
6214/* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6216char dlopen ();
6217int
6218main ()
6219{
6220dlopen ();
6221 ;
6222 return 0;
6223}
6224_ACEOF
6225rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006227 (eval $ac_link) 2>&5
6228 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006230 (exit $ac_status); } &&
6231 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006233 (eval $ac_try) 2>&5
6234 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006236 (exit $ac_status); }; }; then
6237 ac_cv_lib_dl_dlopen=yes
6238else
6239 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006240sed 's/^/| /' conftest.$ac_ext >&5
6241
drh71eb93e2001-09-28 01:34:43 +00006242ac_cv_lib_dl_dlopen=no
6243fi
6244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6245LIBS=$ac_check_lib_save_LIBS
6246fi
a.rottmann84e63352003-03-24 09:42:16 +00006247echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006248echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6249if test $ac_cv_lib_dl_dlopen = yes; then
6250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6251else
a.rottmann84e63352003-03-24 09:42:16 +00006252 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00006253echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6254if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256else
6257 ac_check_lib_save_LIBS=$LIBS
6258LIBS="-lsvld $LIBS"
6259cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006260#line $LINENO "configure"
6261/* confdefs.h. */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006266
6267/* Override any gcc2 internal prototype to avoid an error. */
6268#ifdef __cplusplus
6269extern "C"
6270#endif
6271/* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */
6273char dlopen ();
6274int
6275main ()
6276{
6277dlopen ();
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006284 (eval $ac_link) 2>&5
6285 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006287 (exit $ac_status); } &&
6288 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006290 (eval $ac_try) 2>&5
6291 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006293 (exit $ac_status); }; }; then
6294 ac_cv_lib_svld_dlopen=yes
6295else
6296 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006297sed 's/^/| /' conftest.$ac_ext >&5
6298
drh71eb93e2001-09-28 01:34:43 +00006299ac_cv_lib_svld_dlopen=no
6300fi
6301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302LIBS=$ac_check_lib_save_LIBS
6303fi
a.rottmann84e63352003-03-24 09:42:16 +00006304echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006305echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6306if test $ac_cv_lib_svld_dlopen = yes; then
6307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00006308else
6309 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6310echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6311if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314 ac_check_lib_save_LIBS=$LIBS
6315LIBS="-ldld $LIBS"
6316cat >conftest.$ac_ext <<_ACEOF
6317#line $LINENO "configure"
6318/* confdefs.h. */
6319_ACEOF
6320cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */
6323
6324/* Override any gcc2 internal prototype to avoid an error. */
6325#ifdef __cplusplus
6326extern "C"
6327#endif
6328/* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6330char dld_link ();
6331int
6332main ()
6333{
6334dld_link ();
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -s conftest$ac_exeext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_cv_lib_dld_dld_link=yes
6352else
6353 echo "$as_me: failed program was:" >&5
6354sed 's/^/| /' conftest.$ac_ext >&5
6355
6356ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00006357fi
a.rottmann84e63352003-03-24 09:42:16 +00006358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6359LIBS=$ac_check_lib_save_LIBS
6360fi
6361echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6362echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6363if test $ac_cv_lib_dld_dld_link = yes; then
6364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6365fi
6366
drh71eb93e2001-09-28 01:34:43 +00006367
6368fi
6369
drh71eb93e2001-09-28 01:34:43 +00006370
6371fi
6372
a.rottmann84e63352003-03-24 09:42:16 +00006373
6374fi
6375
6376
6377fi
6378
6379
drh71eb93e2001-09-28 01:34:43 +00006380fi
6381
6382 ;;
6383 esac
6384
6385 if test "x$lt_cv_dlopen" != xno; then
6386 enable_dlopen=yes
6387 else
6388 enable_dlopen=no
6389 fi
6390
6391 case $lt_cv_dlopen in
6392 dlopen)
6393 save_CPPFLAGS="$CPPFLAGS"
a.rottmann84e63352003-03-24 09:42:16 +00006394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00006395
6396 save_LDFLAGS="$LDFLAGS"
6397 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6398
6399 save_LIBS="$LIBS"
6400 LIBS="$lt_cv_dlopen_libs $LIBS"
6401
a.rottmann84e63352003-03-24 09:42:16 +00006402 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006403echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6404if test "${lt_cv_dlopen_self+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 if test "$cross_compiling" = yes; then :
6408 lt_cv_dlopen_self=cross
6409else
a.rottmann84e63352003-03-24 09:42:16 +00006410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006411 lt_status=$lt_dlunknown
6412 cat > conftest.$ac_ext <<EOF
paulb0208cc2003-04-13 18:26:49 +00006413#line 6413 "configure"
drh71eb93e2001-09-28 01:34:43 +00006414#include "confdefs.h"
6415
6416#if HAVE_DLFCN_H
6417#include <dlfcn.h>
6418#endif
6419
6420#include <stdio.h>
6421
6422#ifdef RTLD_GLOBAL
6423# define LT_DLGLOBAL RTLD_GLOBAL
6424#else
6425# ifdef DL_GLOBAL
6426# define LT_DLGLOBAL DL_GLOBAL
6427# else
6428# define LT_DLGLOBAL 0
6429# endif
6430#endif
6431
6432/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6433 find out it does not work in some platform. */
6434#ifndef LT_DLLAZY_OR_NOW
6435# ifdef RTLD_LAZY
6436# define LT_DLLAZY_OR_NOW RTLD_LAZY
6437# else
6438# ifdef DL_LAZY
6439# define LT_DLLAZY_OR_NOW DL_LAZY
6440# else
6441# ifdef RTLD_NOW
6442# define LT_DLLAZY_OR_NOW RTLD_NOW
6443# else
6444# ifdef DL_NOW
6445# define LT_DLLAZY_OR_NOW DL_NOW
6446# else
6447# define LT_DLLAZY_OR_NOW 0
6448# endif
6449# endif
6450# endif
6451# endif
6452#endif
6453
6454#ifdef __cplusplus
6455extern "C" void exit (int);
6456#endif
6457
6458void fnord() { int i=42;}
6459int main ()
6460{
6461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6462 int status = $lt_dlunknown;
6463
6464 if (self)
6465 {
6466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6468 /* dlclose (self); */
6469 }
6470
6471 exit (status);
6472}
6473EOF
a.rottmann84e63352003-03-24 09:42:16 +00006474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006475 (eval $ac_link) 2>&5
6476 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006478 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6479 (./conftest; exit; ) 2>/dev/null
6480 lt_status=$?
6481 case x$lt_status in
6482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6484 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6485 esac
6486 else :
6487 # compilation failed
6488 lt_cv_dlopen_self=no
6489 fi
6490fi
6491rm -fr conftest*
6492
a.rottmann84e63352003-03-24 09:42:16 +00006493
drh71eb93e2001-09-28 01:34:43 +00006494fi
a.rottmann84e63352003-03-24 09:42:16 +00006495echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00006496echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6497
6498 if test "x$lt_cv_dlopen_self" = xyes; then
6499 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00006500 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006501echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6502if test "${lt_cv_dlopen_self_static+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 if test "$cross_compiling" = yes; then :
6506 lt_cv_dlopen_self_static=cross
6507else
a.rottmann84e63352003-03-24 09:42:16 +00006508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006509 lt_status=$lt_dlunknown
6510 cat > conftest.$ac_ext <<EOF
paulb0208cc2003-04-13 18:26:49 +00006511#line 6511 "configure"
drh71eb93e2001-09-28 01:34:43 +00006512#include "confdefs.h"
6513
6514#if HAVE_DLFCN_H
6515#include <dlfcn.h>
6516#endif
6517
6518#include <stdio.h>
6519
6520#ifdef RTLD_GLOBAL
6521# define LT_DLGLOBAL RTLD_GLOBAL
6522#else
6523# ifdef DL_GLOBAL
6524# define LT_DLGLOBAL DL_GLOBAL
6525# else
6526# define LT_DLGLOBAL 0
6527# endif
6528#endif
6529
6530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6531 find out it does not work in some platform. */
6532#ifndef LT_DLLAZY_OR_NOW
6533# ifdef RTLD_LAZY
6534# define LT_DLLAZY_OR_NOW RTLD_LAZY
6535# else
6536# ifdef DL_LAZY
6537# define LT_DLLAZY_OR_NOW DL_LAZY
6538# else
6539# ifdef RTLD_NOW
6540# define LT_DLLAZY_OR_NOW RTLD_NOW
6541# else
6542# ifdef DL_NOW
6543# define LT_DLLAZY_OR_NOW DL_NOW
6544# else
6545# define LT_DLLAZY_OR_NOW 0
6546# endif
6547# endif
6548# endif
6549# endif
6550#endif
6551
6552#ifdef __cplusplus
6553extern "C" void exit (int);
6554#endif
6555
6556void fnord() { int i=42;}
6557int main ()
6558{
6559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6560 int status = $lt_dlunknown;
6561
6562 if (self)
6563 {
6564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6565 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6566 /* dlclose (self); */
6567 }
6568
6569 exit (status);
6570}
6571EOF
a.rottmann84e63352003-03-24 09:42:16 +00006572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006573 (eval $ac_link) 2>&5
6574 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006576 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6577 (./conftest; exit; ) 2>/dev/null
6578 lt_status=$?
6579 case x$lt_status in
6580 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6581 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6582 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6583 esac
6584 else :
6585 # compilation failed
6586 lt_cv_dlopen_self_static=no
6587 fi
6588fi
6589rm -fr conftest*
6590
a.rottmann84e63352003-03-24 09:42:16 +00006591
drh71eb93e2001-09-28 01:34:43 +00006592fi
a.rottmann84e63352003-03-24 09:42:16 +00006593echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00006594echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6595 fi
6596
6597 CPPFLAGS="$save_CPPFLAGS"
6598 LDFLAGS="$save_LDFLAGS"
6599 LIBS="$save_LIBS"
6600 ;;
6601 esac
6602
6603 case $lt_cv_dlopen_self in
6604 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6605 *) enable_dlopen_self=unknown ;;
6606 esac
6607
6608 case $lt_cv_dlopen_self_static in
6609 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6610 *) enable_dlopen_self_static=unknown ;;
6611 esac
6612fi
6613
drh71eb93e2001-09-28 01:34:43 +00006614
a.rottmann84e63352003-03-24 09:42:16 +00006615if test "$enable_shared" = yes && test "$GCC" = yes; then
6616 case $archive_cmds in
6617 *'~'*)
6618 # FIXME: we may have to deal with multi-command sequences.
6619 ;;
6620 '$CC '*)
6621 # Test whether the compiler implicitly links with -lc since on some
6622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6623 # to ld, don't add -lc before -lgcc.
6624 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6625echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6626 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 $rm conftest*
6630 echo 'static int dummy;' > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006631
a.rottmann84e63352003-03-24 09:42:16 +00006632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; then
6637 soname=conftest
6638 lib=conftest
6639 libobjs=conftest.$ac_objext
6640 deplibs=
6641 wl=$lt_cv_prog_cc_wl
6642 compiler_flags=-v
6643 linker_flags=-v
6644 verstring=
6645 output_objdir=.
6646 libname=conftest
6647 save_allow_undefined_flag=$allow_undefined_flag
6648 allow_undefined_flag=
6649 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6650 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }
6654 then
6655 lt_cv_archive_cmds_need_lc=no
6656 else
6657 lt_cv_archive_cmds_need_lc=yes
6658 fi
6659 allow_undefined_flag=$save_allow_undefined_flag
6660 else
6661 cat conftest.err 1>&5
6662 fi
6663fi
drh71eb93e2001-09-28 01:34:43 +00006664
a.rottmann84e63352003-03-24 09:42:16 +00006665 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6666echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6667 ;;
6668 esac
6669fi
6670need_lc=${lt_cv_archive_cmds_need_lc-yes}
drh71eb93e2001-09-28 01:34:43 +00006671
a.rottmann84e63352003-03-24 09:42:16 +00006672# The second clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00006673# libtool distribution, otherwise you forgot to ship ltmain.sh
6674# with your package, and you will get complaints that there are
6675# no rules to generate ltmain.sh.
6676if test -f "$ltmain"; then
a.rottmann84e63352003-03-24 09:42:16 +00006677 :
6678else
6679 # If there is no Makefile yet, we rely on a make rule to execute
6680 # `config.status --recheck' to rerun these tests and create the
6681 # libtool script then.
6682 test -f Makefile && make "$ltmain"
6683fi
6684
6685if test -f "$ltmain"; then
6686 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6687 $rm -f "${ofile}T"
6688
6689 echo creating $ofile
6690
drh71eb93e2001-09-28 01:34:43 +00006691 # Now quote all the things that may contain metacharacters while being
6692 # careful not to overquote the AC_SUBSTed values. We take copies of the
6693 # variables and quote the copies for generation of the libtool script.
a.rottmann84e63352003-03-24 09:42:16 +00006694 for var in echo old_CC old_CFLAGS SED \
6695 AR AR_FLAGS CC LD LN_S NM SHELL \
6696 reload_flag reload_cmds wl \
6697 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6698 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6699 library_names_spec soname_spec \
6700 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6701 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6702 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6703 old_striplib striplib file_magic_cmd export_symbols_cmds \
6704 deplibs_check_method allow_undefined_flag no_undefined_flag \
6705 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6706 global_symbol_to_c_name_address \
6707 hardcode_libdir_flag_spec hardcode_libdir_separator \
drh71eb93e2001-09-28 01:34:43 +00006708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann84e63352003-03-24 09:42:16 +00006709 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00006710
6711 case $var in
a.rottmann84e63352003-03-24 09:42:16 +00006712 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
drh71eb93e2001-09-28 01:34:43 +00006713 old_postinstall_cmds | old_postuninstall_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00006714 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6715 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6716 postinstall_cmds | postuninstall_cmds | \
6717 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00006718 # Double-quote double-evaled strings.
6719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6720 ;;
6721 *)
6722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6723 ;;
6724 esac
6725 done
6726
a.rottmann84e63352003-03-24 09:42:16 +00006727 cat <<__EOF__ > "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00006728#! $SHELL
6729
a.rottmann84e63352003-03-24 09:42:16 +00006730# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00006731# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6732# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6733#
a.rottmann84e63352003-03-24 09:42:16 +00006734# Copyright (C) 1996-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00006735# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6736#
6737# This program is free software; you can redistribute it and/or modify
6738# it under the terms of the GNU General Public License as published by
6739# the Free Software Foundation; either version 2 of the License, or
6740# (at your option) any later version.
6741#
6742# This program is distributed in the hope that it will be useful, but
6743# WITHOUT ANY WARRANTY; without even the implied warranty of
6744# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6745# General Public License for more details.
6746#
6747# You should have received a copy of the GNU General Public License
6748# along with this program; if not, write to the Free Software
6749# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6750#
6751# As a special exception to the GNU General Public License, if you
6752# distribute this file as part of a program that contains a
6753# configuration script generated by Autoconf, you may include it under
6754# the same distribution terms that you use for the rest of that program.
6755
a.rottmann84e63352003-03-24 09:42:16 +00006756# A sed that does not truncate output.
6757SED=$lt_SED
6758
drh71eb93e2001-09-28 01:34:43 +00006759# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann84e63352003-03-24 09:42:16 +00006760Xsed="${SED} -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00006761
6762# The HP-UX ksh and POSIX shell print the target directory to stdout
6763# if CDPATH is set.
6764if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6765
drh71eb93e2001-09-28 01:34:43 +00006766# ### BEGIN LIBTOOL CONFIG
6767
6768# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6769
6770# Shell to use when invoking shell scripts.
6771SHELL=$lt_SHELL
6772
6773# Whether or not to build shared libraries.
6774build_libtool_libs=$enable_shared
6775
6776# Whether or not to build static libraries.
6777build_old_libs=$enable_static
6778
6779# Whether or not to add -lc for building shared libraries.
a.rottmann84e63352003-03-24 09:42:16 +00006780build_libtool_need_lc=$need_lc
drh71eb93e2001-09-28 01:34:43 +00006781
6782# Whether or not to optimize for fast installation.
6783fast_install=$enable_fast_install
6784
6785# The host system.
6786host_alias=$host_alias
6787host=$host
6788
6789# An echo program that does not interpret backslashes.
6790echo=$lt_echo
6791
6792# The archiver.
6793AR=$lt_AR
6794AR_FLAGS=$lt_AR_FLAGS
6795
a.rottmann84e63352003-03-24 09:42:16 +00006796# The default C compiler.
6797CC=$lt_CC
drh71eb93e2001-09-28 01:34:43 +00006798
6799# Is the compiler the GNU C compiler?
6800with_gcc=$GCC
6801
6802# The linker used to build libraries.
6803LD=$lt_LD
6804
6805# Whether we need hard or soft links.
6806LN_S=$lt_LN_S
6807
6808# A BSD-compatible nm program.
6809NM=$lt_NM
6810
6811# A symbol stripping program
6812STRIP=$STRIP
6813
6814# Used to examine libraries when file_magic_cmd begins "file"
6815MAGIC_CMD=$MAGIC_CMD
6816
6817# Used on cygwin: DLL creation program.
6818DLLTOOL="$DLLTOOL"
6819
6820# Used on cygwin: object dumper.
6821OBJDUMP="$OBJDUMP"
6822
6823# Used on cygwin: assembler.
6824AS="$AS"
6825
6826# The name of the directory that contains temporary libtool files.
6827objdir=$objdir
6828
6829# How to create reloadable object files.
6830reload_flag=$lt_reload_flag
6831reload_cmds=$lt_reload_cmds
6832
6833# How to pass a linker flag through the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00006834wl=$lt_wl
drh71eb93e2001-09-28 01:34:43 +00006835
6836# Object file suffix (normally "o").
6837objext="$ac_objext"
6838
6839# Old archive suffix (normally "a").
6840libext="$libext"
6841
6842# Executable file suffix (normally "").
6843exeext="$exeext"
6844
6845# Additional compiler flags for building library objects.
a.rottmann84e63352003-03-24 09:42:16 +00006846pic_flag=$lt_pic_flag
drh71eb93e2001-09-28 01:34:43 +00006847pic_mode=$pic_mode
6848
drh71eb93e2001-09-28 01:34:43 +00006849# Does compiler simultaneously support -c and -o options?
a.rottmann84e63352003-03-24 09:42:16 +00006850compiler_c_o=$lt_compiler_c_o
6851
6852# Can we write directly to a .lo ?
6853compiler_o_lo=$lt_compiler_o_lo
drh71eb93e2001-09-28 01:34:43 +00006854
6855# Must we lock files when doing compilation ?
6856need_locks=$lt_need_locks
6857
6858# Do we need the lib prefix for modules?
6859need_lib_prefix=$need_lib_prefix
6860
6861# Do we need a version for libraries?
6862need_version=$need_version
6863
6864# Whether dlopen is supported.
6865dlopen_support=$enable_dlopen
6866
6867# Whether dlopen of programs is supported.
6868dlopen_self=$enable_dlopen_self
6869
6870# Whether dlopen of statically linked programs is supported.
6871dlopen_self_static=$enable_dlopen_self_static
6872
6873# Compiler flag to prevent dynamic linking.
a.rottmann84e63352003-03-24 09:42:16 +00006874link_static_flag=$lt_link_static_flag
drh71eb93e2001-09-28 01:34:43 +00006875
6876# Compiler flag to turn off builtin functions.
a.rottmann84e63352003-03-24 09:42:16 +00006877no_builtin_flag=$lt_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00006878
6879# Compiler flag to allow reflexive dlopens.
6880export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6881
6882# Compiler flag to generate shared objects directly from archives.
6883whole_archive_flag_spec=$lt_whole_archive_flag_spec
6884
6885# Compiler flag to generate thread-safe objects.
6886thread_safe_flag_spec=$lt_thread_safe_flag_spec
6887
6888# Library versioning type.
6889version_type=$version_type
6890
6891# Format of library name prefix.
6892libname_spec=$lt_libname_spec
6893
6894# List of archive names. First name is the real one, the rest are links.
6895# The last name is the one that the linker finds with -lNAME.
6896library_names_spec=$lt_library_names_spec
6897
6898# The coded name of the library, if different from the real name.
6899soname_spec=$lt_soname_spec
6900
6901# Commands used to build and install an old-style archive.
6902RANLIB=$lt_RANLIB
6903old_archive_cmds=$lt_old_archive_cmds
6904old_postinstall_cmds=$lt_old_postinstall_cmds
6905old_postuninstall_cmds=$lt_old_postuninstall_cmds
6906
6907# Create an old-style archive from a shared archive.
6908old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6909
6910# Create a temporary old-style archive to link instead of a shared archive.
6911old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6912
6913# Commands used to build and install a shared archive.
6914archive_cmds=$lt_archive_cmds
6915archive_expsym_cmds=$lt_archive_expsym_cmds
6916postinstall_cmds=$lt_postinstall_cmds
6917postuninstall_cmds=$lt_postuninstall_cmds
6918
6919# Commands to strip libraries.
6920old_striplib=$lt_old_striplib
6921striplib=$lt_striplib
6922
drh71eb93e2001-09-28 01:34:43 +00006923# Method to check whether dependent libraries are shared objects.
6924deplibs_check_method=$lt_deplibs_check_method
6925
6926# Command to use when deplibs_check_method == file_magic.
6927file_magic_cmd=$lt_file_magic_cmd
6928
6929# Flag that allows shared libraries with undefined symbols to be built.
6930allow_undefined_flag=$lt_allow_undefined_flag
6931
6932# Flag that forces no undefined symbols.
6933no_undefined_flag=$lt_no_undefined_flag
6934
6935# Commands used to finish a libtool library installation in a directory.
6936finish_cmds=$lt_finish_cmds
6937
6938# Same as above, but a single script fragment to be evaled but not shown.
6939finish_eval=$lt_finish_eval
6940
6941# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann84e63352003-03-24 09:42:16 +00006942global_symbol_pipe=$lt_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00006943
6944# Transform the output of nm in a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00006945global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00006946
6947# Transform the output of nm in a C name address pair
a.rottmann84e63352003-03-24 09:42:16 +00006948global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00006949
6950# This is the shared library runtime path variable.
6951runpath_var=$runpath_var
6952
6953# This is the shared library path variable.
6954shlibpath_var=$shlibpath_var
6955
6956# Is shlibpath searched before the hard-coded library search path?
6957shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6958
6959# How to hardcode a shared library path into an executable.
6960hardcode_action=$hardcode_action
6961
6962# Whether we should hardcode library paths into libraries.
6963hardcode_into_libs=$hardcode_into_libs
6964
6965# Flag to hardcode \$libdir into a binary during linking.
6966# This must work even if \$libdir does not exist.
6967hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6968
6969# Whether we need a single -rpath flag with a separated argument.
6970hardcode_libdir_separator=$lt_hardcode_libdir_separator
6971
6972# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6973# resulting binary.
6974hardcode_direct=$hardcode_direct
6975
6976# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6977# resulting binary.
6978hardcode_minus_L=$hardcode_minus_L
6979
6980# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6981# the resulting binary.
6982hardcode_shlibpath_var=$hardcode_shlibpath_var
6983
6984# Variables whose values should be saved in libtool wrapper scripts and
6985# restored at relink time.
6986variables_saved_for_relink="$variables_saved_for_relink"
6987
6988# Whether libtool must link a program against all its dependency libraries.
6989link_all_deplibs=$link_all_deplibs
6990
6991# Compile-time system search path for libraries
6992sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6993
6994# Run-time system search path for libraries
6995sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6996
6997# Fix the shell variable \$srcfile for the compiler.
6998fix_srcfile_path="$fix_srcfile_path"
6999
7000# Set to yes if exported symbols are required.
7001always_export_symbols=$always_export_symbols
7002
7003# The commands to list exported symbols.
7004export_symbols_cmds=$lt_export_symbols_cmds
7005
7006# The commands to extract the exported symbol list from a shared archive.
7007extract_expsyms_cmds=$lt_extract_expsyms_cmds
7008
7009# Symbols that should not be listed in the preloaded symbols.
7010exclude_expsyms=$lt_exclude_expsyms
7011
7012# Symbols that must always be exported.
7013include_expsyms=$lt_include_expsyms
7014
7015# ### END LIBTOOL CONFIG
7016
7017__EOF__
7018
7019 case $host_os in
7020 aix3*)
a.rottmann84e63352003-03-24 09:42:16 +00007021 cat <<\EOF >> "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00007022
7023# AIX sometimes has problems with the GCC collect2 program. For some
7024# reason, if we set the COLLECT_NAMES environment variable, the problems
7025# vanish in a puff of smoke.
7026if test "X${COLLECT_NAMES+set}" != Xset; then
7027 COLLECT_NAMES=
7028 export COLLECT_NAMES
7029fi
7030EOF
7031 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007032 esac
drh71eb93e2001-09-28 01:34:43 +00007033
a.rottmann84e63352003-03-24 09:42:16 +00007034 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00007035 cygwin* | mingw* | pw32* | os2*)
a.rottmann84e63352003-03-24 09:42:16 +00007036 cat <<'EOF' >> "${ofile}T"
7037 # This is a source program that is used to create dlls on Windows
7038 # Don't remove nor modify the starting and closing comments
7039# /* ltdll.c starts here */
drh71eb93e2001-09-28 01:34:43 +00007040# #define WIN32_LEAN_AND_MEAN
7041# #include <windows.h>
7042# #undef WIN32_LEAN_AND_MEAN
7043# #include <stdio.h>
7044#
7045# #ifndef __CYGWIN__
7046# # ifdef __CYGWIN32__
7047# # define __CYGWIN__ __CYGWIN32__
7048# # endif
7049# #endif
7050#
7051# #ifdef __cplusplus
7052# extern "C" {
7053# #endif
7054# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7055# #ifdef __cplusplus
7056# }
7057# #endif
7058#
7059# #ifdef __CYGWIN__
7060# #include <cygwin/cygwin_dll.h>
7061# DECLARE_CYGWIN_DLL( DllMain );
7062# #endif
7063# HINSTANCE __hDllInstance_base;
7064#
7065# BOOL APIENTRY
7066# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7067# {
7068# __hDllInstance_base = hInst;
7069# return TRUE;
7070# }
7071# /* ltdll.c ends here */
a.rottmann84e63352003-03-24 09:42:16 +00007072 # This is a source program that is used to create import libraries
7073 # on Windows for dlls which lack them. Don't remove nor modify the
7074 # starting and closing comments
7075# /* impgen.c starts here */
7076# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00007077#
7078# This file is part of GNU libtool.
7079#
7080# This program is free software; you can redistribute it and/or modify
7081# it under the terms of the GNU General Public License as published by
7082# the Free Software Foundation; either version 2 of the License, or
7083# (at your option) any later version.
7084#
7085# This program is distributed in the hope that it will be useful,
7086# but WITHOUT ANY WARRANTY; without even the implied warranty of
7087# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7088# GNU General Public License for more details.
7089#
7090# You should have received a copy of the GNU General Public License
7091# along with this program; if not, write to the Free Software
7092# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7093# */
7094#
7095# #include <stdio.h> /* for printf() */
7096# #include <unistd.h> /* for open(), lseek(), read() */
7097# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7098# #include <string.h> /* for strdup() */
7099#
7100# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7101# #ifndef O_BINARY
7102# #define O_BINARY 0
7103# #endif
7104#
7105# static unsigned int
7106# pe_get16 (fd, offset)
7107# int fd;
7108# int offset;
7109# {
7110# unsigned char b[2];
7111# lseek (fd, offset, SEEK_SET);
7112# read (fd, b, 2);
7113# return b[0] + (b[1]<<8);
7114# }
7115#
7116# static unsigned int
7117# pe_get32 (fd, offset)
7118# int fd;
7119# int offset;
7120# {
7121# unsigned char b[4];
7122# lseek (fd, offset, SEEK_SET);
7123# read (fd, b, 4);
7124# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7125# }
7126#
7127# static unsigned int
7128# pe_as32 (ptr)
7129# void *ptr;
7130# {
7131# unsigned char *b = ptr;
7132# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7133# }
7134#
7135# int
7136# main (argc, argv)
7137# int argc;
7138# char *argv[];
7139# {
7140# int dll;
7141# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7142# unsigned long export_rva, export_size, nsections, secptr, expptr;
7143# unsigned long name_rvas, nexp;
7144# unsigned char *expdata, *erva;
7145# char *filename, *dll_name;
7146#
7147# filename = argv[1];
7148#
7149# dll = open(filename, O_RDONLY|O_BINARY);
7150# if (dll < 1)
7151# return 1;
7152#
7153# dll_name = filename;
7154#
7155# for (i=0; filename[i]; i++)
7156# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7157# dll_name = filename + i +1;
7158#
7159# pe_header_offset = pe_get32 (dll, 0x3c);
7160# opthdr_ofs = pe_header_offset + 4 + 20;
7161# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7162#
7163# if (num_entries < 1) /* no exports */
7164# return 1;
7165#
7166# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7167# export_size = pe_get32 (dll, opthdr_ofs + 100);
7168# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7169# secptr = (pe_header_offset + 4 + 20 +
7170# pe_get16 (dll, pe_header_offset + 4 + 16));
7171#
7172# expptr = 0;
7173# for (i = 0; i < nsections; i++)
7174# {
7175# char sname[8];
7176# unsigned long secptr1 = secptr + 40 * i;
7177# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7178# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7179# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7180# lseek(dll, secptr1, SEEK_SET);
7181# read(dll, sname, 8);
7182# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7183# {
7184# expptr = fptr + (export_rva - vaddr);
7185# if (export_rva + export_size > vaddr + vsize)
7186# export_size = vsize - (export_rva - vaddr);
7187# break;
7188# }
7189# }
7190#
7191# expdata = (unsigned char*)malloc(export_size);
7192# lseek (dll, expptr, SEEK_SET);
7193# read (dll, expdata, export_size);
7194# erva = expdata - export_rva;
7195#
7196# nexp = pe_as32 (expdata+24);
7197# name_rvas = pe_as32 (expdata+32);
7198#
7199# printf ("EXPORTS\n");
7200# for (i = 0; i<nexp; i++)
7201# {
7202# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7203# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7204# }
7205#
7206# return 0;
7207# }
7208# /* impgen.c ends here */
7209
7210EOF
7211 ;;
7212 esac
7213
7214 # We use sed instead of cat because bash on DJGPP gets confused if
7215 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7216 # text mode, it properly converts lines to CR/LF. This bash problem
7217 # is reportedly fixed, but why not run on old versions too?
a.rottmann84e63352003-03-24 09:42:16 +00007218 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00007219
a.rottmann84e63352003-03-24 09:42:16 +00007220 mv -f "${ofile}T" "$ofile" || \
7221 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
drh71eb93e2001-09-28 01:34:43 +00007222 chmod +x "$ofile"
drh71eb93e2001-09-28 01:34:43 +00007223fi
7224
drh71eb93e2001-09-28 01:34:43 +00007225
drh71eb93e2001-09-28 01:34:43 +00007226
drh71eb93e2001-09-28 01:34:43 +00007227
drh71eb93e2001-09-28 01:34:43 +00007228
7229# This can be used to rebuild libtool when needed
7230LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7231
7232# Always use our own libtool.
7233LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7234
7235# Prevent multiple expansion
7236
a.rottmann84e63352003-03-24 09:42:16 +00007237
drh71eb93e2001-09-28 01:34:43 +00007238# Find a good install program. We prefer a C program (faster),
7239# so one script is as good as another. But avoid the broken or
7240# incompatible versions:
7241# SysV /etc/install, /usr/sbin/install
7242# SunOS /usr/etc/install
7243# IRIX /sbin/install
7244# AIX /bin/install
7245# AmigaOS /C/install, which installs bootblocks on floppy discs
7246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7247# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7248# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7249# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +00007250echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7251echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00007252if test -z "$INSTALL"; then
7253if test "${ac_cv_path_install+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
a.rottmann84e63352003-03-24 09:42:16 +00007256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 # Account for people who put trailing slashes in PATH elements.
7262case $as_dir/ in
7263 ./ | .// | /cC/* | \
7264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7265 /usr/ucb/* ) ;;
7266 *)
7267 # OSF1 and SCO ODT 3.0 have their own names for install.
7268 # Don't use installbsd from OSF since it installs stuff as root
7269 # by default.
7270 for ac_prog in ginstall scoinst install; do
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7273 if test $ac_prog = install &&
7274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7275 # AIX install. It has an incompatible calling convention.
7276 :
7277 elif test $ac_prog = install &&
7278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7279 # program-specific install script used by HP pwplus--don't use.
7280 :
7281 else
7282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7283 break 3
7284 fi
7285 fi
drh71eb93e2001-09-28 01:34:43 +00007286 done
a.rottmann84e63352003-03-24 09:42:16 +00007287 done
7288 ;;
7289esac
7290done
7291
drh71eb93e2001-09-28 01:34:43 +00007292
7293fi
7294 if test "${ac_cv_path_install+set}" = set; then
7295 INSTALL=$ac_cv_path_install
7296 else
7297 # As a last resort, use the slow shell script. We don't cache a
7298 # path for INSTALL within a source directory, because that will
7299 # break other packages using the cache if that directory is
7300 # removed, or if the path is relative.
7301 INSTALL=$ac_install_sh
7302 fi
7303fi
a.rottmann84e63352003-03-24 09:42:16 +00007304echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +00007305echo "${ECHO_T}$INSTALL" >&6
7306
7307# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7308# It thinks the first close brace ends the variable substitution.
7309test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7310
7311test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7312
7313test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7314
a.rottmann84e63352003-03-24 09:42:16 +00007315
drh75897232000-05-29 14:26:00 +00007316#########
7317# Set up an appropriate program prefix
7318#
7319if test "$program_prefix" = "NONE"; then
7320 program_prefix=""
7321fi
7322
a.rottmann84e63352003-03-24 09:42:16 +00007323
7324if test -f VERSION; then
7325 VERSION=`cat VERSION`
7326 echo "Version set to $VERSION"
7327fi
7328
7329
drh75897232000-05-29 14:26:00 +00007330#########
7331# Check to see if the --with-hints=FILE option is used. If there is none,
7332# then check for a files named "$host.hints" and ../$hosts.hints where
7333# $host is the hostname of the build system. If still no hints are
7334# found, try looking in $system.hints and ../$system.hints where
7335# $system is the result of uname -s.
7336#
drh71eb93e2001-09-28 01:34:43 +00007337
drh75897232000-05-29 14:26:00 +00007338# Check whether --with-hints or --without-hints was given.
7339if test "${with_hints+set}" = set; then
7340 withval="$with_hints"
7341 hints=$withval
drh71eb93e2001-09-28 01:34:43 +00007342fi;
drh75897232000-05-29 14:26:00 +00007343if test "$hints" = ""; then
7344 host=`hostname | sed 's/\..*//'`
7345 if test -r $host.hints; then
7346 hints=$host.hints
7347 else
7348 if test -r ../$host.hints; then
7349 hints=../$host.hints
7350 fi
7351 fi
7352fi
7353if test "$hints" = ""; then
7354 sys=`uname -s`
7355 if test -r $sys.hints; then
7356 hints=$sys.hints
7357 else
7358 if test -r ../$sys.hints; then
7359 hints=../$sys.hints
7360 fi
7361 fi
7362fi
7363if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +00007364 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +00007365echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +00007366 . $hints
7367fi
7368
7369#########
7370# Locate a compiler for the build machine. This compiler should
7371# generate command-line programs that run on the build machine.
7372#
7373default_build_cflags="-g"
7374if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +00007375 ac_ext=c
7376ac_cpp='$CPP $CPPFLAGS'
7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380if test -n "$ac_tool_prefix"; then
7381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7382set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007383echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7385if test "${ac_cv_prog_CC+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007387else
7388 if test -n "$CC"; then
7389 ac_cv_prog_CC="$CC" # Let the user override the test.
7390else
a.rottmann84e63352003-03-24 09:42:16 +00007391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
drh71eb93e2001-09-28 01:34:43 +00007403done
7404
drh75897232000-05-29 14:26:00 +00007405fi
7406fi
drh71eb93e2001-09-28 01:34:43 +00007407CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007408if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007409 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007410echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007411else
a.rottmann84e63352003-03-24 09:42:16 +00007412 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007413echo "${ECHO_T}no" >&6
7414fi
7415
7416fi
7417if test -z "$ac_cv_prog_CC"; then
7418 ac_ct_CC=$CC
7419 # Extract the first word of "gcc", so it can be a program name with args.
7420set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007421echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7423if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425else
7426 if test -n "$ac_ct_CC"; then
7427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7428else
a.rottmann84e63352003-03-24 09:42:16 +00007429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_ac_ct_CC="gcc"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
drh71eb93e2001-09-28 01:34:43 +00007441done
7442
7443fi
7444fi
7445ac_ct_CC=$ac_cv_prog_ac_ct_CC
7446if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007448echo "${ECHO_T}$ac_ct_CC" >&6
7449else
a.rottmann84e63352003-03-24 09:42:16 +00007450 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007451echo "${ECHO_T}no" >&6
7452fi
7453
7454 CC=$ac_ct_CC
7455else
7456 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +00007457fi
7458
7459if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +00007460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7462set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007463echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465if test "${ac_cv_prog_CC+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007467else
7468 if test -n "$CC"; then
7469 ac_cv_prog_CC="$CC" # Let the user override the test.
7470else
a.rottmann84e63352003-03-24 09:42:16 +00007471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_CC="${ac_tool_prefix}cc"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482done
drh71eb93e2001-09-28 01:34:43 +00007483done
7484
7485fi
7486fi
7487CC=$ac_cv_prog_CC
7488if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007489 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007490echo "${ECHO_T}$CC" >&6
7491else
a.rottmann84e63352003-03-24 09:42:16 +00007492 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007493echo "${ECHO_T}no" >&6
7494fi
7495
7496fi
7497if test -z "$ac_cv_prog_CC"; then
7498 ac_ct_CC=$CC
7499 # Extract the first word of "cc", so it can be a program name with args.
7500set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007501echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 if test -n "$ac_ct_CC"; then
7507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7508else
a.rottmann84e63352003-03-24 09:42:16 +00007509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_ac_ct_CC="cc"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520done
drh71eb93e2001-09-28 01:34:43 +00007521done
7522
7523fi
7524fi
7525ac_ct_CC=$ac_cv_prog_ac_ct_CC
7526if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007528echo "${ECHO_T}$ac_ct_CC" >&6
7529else
a.rottmann84e63352003-03-24 09:42:16 +00007530 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007531echo "${ECHO_T}no" >&6
7532fi
7533
7534 CC=$ac_ct_CC
7535else
7536 CC="$ac_cv_prog_CC"
7537fi
7538
7539fi
7540if test -z "$CC"; then
7541 # Extract the first word of "cc", so it can be a program name with args.
7542set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007543echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545if test "${ac_cv_prog_CC+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 if test -n "$CC"; then
7549 ac_cv_prog_CC="$CC" # Let the user override the test.
7550else
drh75897232000-05-29 14:26:00 +00007551 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00007552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7560 ac_prog_rejected=yes
7561 continue
7562 fi
7563 ac_cv_prog_CC="cc"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
drh71eb93e2001-09-28 01:34:43 +00007568done
7569
drh75897232000-05-29 14:26:00 +00007570if test $ac_prog_rejected = yes; then
7571 # We found a bogon in the path, so make sure we never use it.
7572 set dummy $ac_cv_prog_CC
7573 shift
drh71eb93e2001-09-28 01:34:43 +00007574 if test $# != 0; then
drh75897232000-05-29 14:26:00 +00007575 # We chose a different compiler from the bogus one.
7576 # However, it has the same basename, so the bogon will be chosen
7577 # first if we set CC to just the basename; use the full file name.
7578 shift
a.rottmann84e63352003-03-24 09:42:16 +00007579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +00007580 fi
7581fi
7582fi
7583fi
drh71eb93e2001-09-28 01:34:43 +00007584CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007585if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007586 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007587echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007588else
a.rottmann84e63352003-03-24 09:42:16 +00007589 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007590echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007591fi
7592
drh71eb93e2001-09-28 01:34:43 +00007593fi
7594if test -z "$CC"; then
7595 if test -n "$ac_tool_prefix"; then
7596 for ac_prog in cl
7597 do
7598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007600echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7602if test "${ac_cv_prog_CC+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007604else
7605 if test -n "$CC"; then
7606 ac_cv_prog_CC="$CC" # Let the user override the test.
7607else
a.rottmann84e63352003-03-24 09:42:16 +00007608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619done
drh71eb93e2001-09-28 01:34:43 +00007620done
7621
drh75897232000-05-29 14:26:00 +00007622fi
7623fi
drh71eb93e2001-09-28 01:34:43 +00007624CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007625if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007626 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007627echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007628else
a.rottmann84e63352003-03-24 09:42:16 +00007629 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007630echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007631fi
7632
drh71eb93e2001-09-28 01:34:43 +00007633 test -n "$CC" && break
7634 done
7635fi
7636if test -z "$CC"; then
7637 ac_ct_CC=$CC
7638 for ac_prog in cl
7639do
7640 # Extract the first word of "$ac_prog", so it can be a program name with args.
7641set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007642echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647 if test -n "$ac_ct_CC"; then
7648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7649else
a.rottmann84e63352003-03-24 09:42:16 +00007650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_ac_ct_CC="$ac_prog"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
drh71eb93e2001-09-28 01:34:43 +00007662done
drh75897232000-05-29 14:26:00 +00007663
drh71eb93e2001-09-28 01:34:43 +00007664fi
7665fi
7666ac_ct_CC=$ac_cv_prog_ac_ct_CC
7667if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007669echo "${ECHO_T}$ac_ct_CC" >&6
7670else
a.rottmann84e63352003-03-24 09:42:16 +00007671 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007672echo "${ECHO_T}no" >&6
7673fi
drh75897232000-05-29 14:26:00 +00007674
drh71eb93e2001-09-28 01:34:43 +00007675 test -n "$ac_ct_CC" && break
7676done
drh75897232000-05-29 14:26:00 +00007677
drh71eb93e2001-09-28 01:34:43 +00007678 CC=$ac_ct_CC
7679fi
7680
7681fi
7682
a.rottmann84e63352003-03-24 09:42:16 +00007683
7684test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7685See \`config.log' for more details." >&5
7686echo "$as_me: error: no acceptable C compiler found in \$PATH
7687See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00007688 { (exit 1); exit 1; }; }
7689
7690# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00007691echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00007692 "checking for C compiler version" >&5
7693ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00007694{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007695 (eval $ac_compiler --version </dev/null >&5) 2>&5
7696 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007698 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007700 (eval $ac_compiler -v </dev/null >&5) 2>&5
7701 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007703 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007705 (eval $ac_compiler -V </dev/null >&5) 2>&5
7706 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007708 (exit $ac_status); }
7709
a.rottmann84e63352003-03-24 09:42:16 +00007710echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00007711echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7712if test "${ac_cv_c_compiler_gnu+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007716#line $LINENO "configure"
7717/* confdefs.h. */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00007722
drh71eb93e2001-09-28 01:34:43 +00007723int
7724main ()
7725{
7726#ifndef __GNUC__
7727 choke me
drh75897232000-05-29 14:26:00 +00007728#endif
drh75897232000-05-29 14:26:00 +00007729
drh71eb93e2001-09-28 01:34:43 +00007730 ;
7731 return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007736 (eval $ac_compile) 2>&5
7737 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007742 (eval $ac_try) 2>&5
7743 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007745 (exit $ac_status); }; }; then
7746 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +00007747else
drh71eb93e2001-09-28 01:34:43 +00007748 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007749sed 's/^/| /' conftest.$ac_ext >&5
7750
drh71eb93e2001-09-28 01:34:43 +00007751ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +00007752fi
drh71eb93e2001-09-28 01:34:43 +00007753rm -f conftest.$ac_objext conftest.$ac_ext
7754ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +00007755
drh71eb93e2001-09-28 01:34:43 +00007756fi
a.rottmann84e63352003-03-24 09:42:16 +00007757echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00007758echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7759GCC=`test $ac_compiler_gnu = yes && echo yes`
7760ac_test_CFLAGS=${CFLAGS+set}
7761ac_save_CFLAGS=$CFLAGS
7762CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00007763echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00007764echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7765if test "${ac_cv_prog_cc_g+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007767else
drh71eb93e2001-09-28 01:34:43 +00007768 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007769#line $LINENO "configure"
7770/* confdefs.h. */
7771_ACEOF
7772cat confdefs.h >>conftest.$ac_ext
7773cat >>conftest.$ac_ext <<_ACEOF
7774/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007775
7776int
7777main ()
7778{
7779
7780 ;
7781 return 0;
7782}
7783_ACEOF
7784rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007786 (eval $ac_compile) 2>&5
7787 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007789 (exit $ac_status); } &&
7790 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007792 (eval $ac_try) 2>&5
7793 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007795 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00007796 ac_cv_prog_cc_g=yes
7797else
drh71eb93e2001-09-28 01:34:43 +00007798 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007799sed 's/^/| /' conftest.$ac_ext >&5
7800
drh71eb93e2001-09-28 01:34:43 +00007801ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +00007802fi
drh71eb93e2001-09-28 01:34:43 +00007803rm -f conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00007804fi
a.rottmann84e63352003-03-24 09:42:16 +00007805echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00007806echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +00007807if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +00007808 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +00007809elif test $ac_cv_prog_cc_g = yes; then
7810 if test "$GCC" = yes; then
7811 CFLAGS="-g -O2"
7812 else
7813 CFLAGS="-g"
7814 fi
7815else
7816 if test "$GCC" = yes; then
7817 CFLAGS="-O2"
7818 else
7819 CFLAGS=
7820 fi
7821fi
a.rottmann84e63352003-03-24 09:42:16 +00007822echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7823echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7824if test "${ac_cv_prog_cc_stdc+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 ac_cv_prog_cc_stdc=no
7828ac_save_CC=$CC
7829cat >conftest.$ac_ext <<_ACEOF
7830#line $LINENO "configure"
7831/* confdefs.h. */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h. */
7836#include <stdarg.h>
7837#include <stdio.h>
7838#include <sys/types.h>
7839#include <sys/stat.h>
7840/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7841struct buf { int x; };
7842FILE * (*rcsopen) (struct buf *, struct stat *, int);
7843static char *e (p, i)
7844 char **p;
7845 int i;
7846{
7847 return p[i];
7848}
7849static char *f (char * (*g) (char **, int), char **p, ...)
7850{
7851 char *s;
7852 va_list v;
7853 va_start (v,p);
7854 s = g (p, va_arg (v,int));
7855 va_end (v);
7856 return s;
7857}
7858int test (int i, double x);
7859struct s1 {int (*f) (int a);};
7860struct s2 {int (*f) (double a);};
7861int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7862int argc;
7863char **argv;
7864int
7865main ()
7866{
7867return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872# Don't try gcc -ansi; that turns off useful extensions and
7873# breaks some systems' header files.
7874# AIX -qlanglvl=ansi
7875# Ultrix and OSF/1 -std1
7876# HP-UX 10.20 and later -Ae
7877# HP-UX older versions -Aa -D_HPUX_SOURCE
7878# SVR4 -Xc -D__EXTENSIONS__
7879for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7880do
7881 CC="$ac_save_CC $ac_arg"
7882 rm -f conftest.$ac_objext
7883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -s conftest.$ac_objext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_prog_cc_stdc=$ac_arg
7895break
7896else
7897 echo "$as_me: failed program was:" >&5
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900fi
7901rm -f conftest.$ac_objext
7902done
7903rm -f conftest.$ac_ext conftest.$ac_objext
7904CC=$ac_save_CC
7905
7906fi
7907
7908case "x$ac_cv_prog_cc_stdc" in
7909 x|xno)
7910 echo "$as_me:$LINENO: result: none needed" >&5
7911echo "${ECHO_T}none needed" >&6 ;;
7912 *)
7913 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7914echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7915 CC="$CC $ac_cv_prog_cc_stdc" ;;
7916esac
7917
drh71eb93e2001-09-28 01:34:43 +00007918# Some people use a C++ compiler to compile C. Since we use `exit',
7919# in C++ we need to declare it. In case someone uses the same compiler
7920# for both compiling C and C++ we need to have the C++ compiler decide
7921# the declaration of exit, since it's the most demanding environment.
7922cat >conftest.$ac_ext <<_ACEOF
7923#ifndef __cplusplus
7924 choke me
7925#endif
7926_ACEOF
7927rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007929 (eval $ac_compile) 2>&5
7930 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007932 (exit $ac_status); } &&
7933 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007935 (eval $ac_try) 2>&5
7936 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007938 (exit $ac_status); }; }; then
7939 for ac_declaration in \
7940 ''\
7941 '#include <stdlib.h>' \
7942 'extern "C" void std::exit (int) throw (); using std::exit;' \
7943 'extern "C" void std::exit (int); using std::exit;' \
7944 'extern "C" void exit (int) throw ();' \
7945 'extern "C" void exit (int);' \
7946 'void exit (int);'
7947do
7948 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007949#line $LINENO "configure"
7950/* confdefs.h. */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007955#include <stdlib.h>
7956$ac_declaration
7957int
7958main ()
7959{
7960exit (42);
7961 ;
7962 return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007967 (eval $ac_compile) 2>&5
7968 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007970 (exit $ac_status); } &&
7971 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007973 (eval $ac_try) 2>&5
7974 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007976 (exit $ac_status); }; }; then
7977 :
7978else
7979 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007980sed 's/^/| /' conftest.$ac_ext >&5
7981
drh71eb93e2001-09-28 01:34:43 +00007982continue
7983fi
7984rm -f conftest.$ac_objext conftest.$ac_ext
7985 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007986#line $LINENO "configure"
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007992$ac_declaration
7993int
7994main ()
7995{
7996exit (42);
7997 ;
7998 return 0;
7999}
8000_ACEOF
8001rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008003 (eval $ac_compile) 2>&5
8004 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008006 (exit $ac_status); } &&
8007 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008009 (eval $ac_try) 2>&5
8010 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008012 (exit $ac_status); }; }; then
8013 break
8014else
8015 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008016sed 's/^/| /' conftest.$ac_ext >&5
8017
drh71eb93e2001-09-28 01:34:43 +00008018fi
8019rm -f conftest.$ac_objext conftest.$ac_ext
8020done
8021rm -f conftest*
8022if test -n "$ac_declaration"; then
8023 echo '#ifdef __cplusplus' >>confdefs.h
8024 echo $ac_declaration >>confdefs.h
8025 echo '#endif' >>confdefs.h
8026fi
8027
8028else
8029 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008030sed 's/^/| /' conftest.$ac_ext >&5
8031
drh71eb93e2001-09-28 01:34:43 +00008032fi
8033rm -f conftest.$ac_objext conftest.$ac_ext
8034ac_ext=c
8035ac_cpp='$CPP $CPPFLAGS'
8036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8038ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00008039
8040 if test "$cross_compiling" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008041 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
drh71eb93e2001-09-28 01:34:43 +00008042echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
8043 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00008044 fi
8045 BUILD_CC=$CC
8046 default_build_cflags=$CFLAGS
8047else
8048 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008049 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008050echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008051 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008052 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008053echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +00008054fi
a.rottmann84e63352003-03-24 09:42:16 +00008055echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008056echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008057if test "$config_BUILD_CFLAGS" != ""; then
8058 CFLAGS=$config_BUILD_CFLAGS
8059 BUILD_CFLAGS=$config_BUILD_CFLAGS
8060else
8061 BUILD_CFLAGS=$default_build_cflags
8062fi
a.rottmann84e63352003-03-24 09:42:16 +00008063echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008064echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008065if test "$config_BUILD_LIBS" != ""; then
8066 BUILD_LIBS=$config_BUILD_LIBS
8067fi
8068
a.rottmann84e63352003-03-24 09:42:16 +00008069
8070
8071
drh75897232000-05-29 14:26:00 +00008072##########
8073# Locate a compiler that converts C code into *.o files that run on
8074# the target machine.
8075#
a.rottmann84e63352003-03-24 09:42:16 +00008076echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008077echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008078if test "$config_TARGET_CC" != ""; then
8079 TARGET_CC=$config_TARGET_CC
8080else
8081 TARGET_CC=$BUILD_CC
8082fi
a.rottmann84e63352003-03-24 09:42:16 +00008083echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008084echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008085echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008086echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008087if test "$config_TARGET_CFLAGS" != ""; then
8088 TARGET_CFLAGS=$config_TARGET_CFLAGS
8089else
8090 TARGET_CFLAGS=$BUILD_CFLAGS
8091fi
a.rottmann84e63352003-03-24 09:42:16 +00008092echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008093echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008094echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +00008095echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008096if test "$config_TARGET_LINK" = ""; then
8097 TARGET_LINK=$TARGET_CC
8098else
8099 TARGET_LINK=$config_TARGET_LINK
8100fi
a.rottmann84e63352003-03-24 09:42:16 +00008101echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +00008102echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008103echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008104echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008105if test "$config_TARGET_TFLAGS" != ""; then
8106 TARGET_TFLAGS=$config_TARGET_TFLAGS
8107else
8108 TARGET_TFLAGS=$BUILD_CFLAGS
8109fi
8110if test "$config_TARGET_RANLIB" != ""; then
8111 TARGET_RANLIB=$config_TARGET_RANLIB
8112else
drh71eb93e2001-09-28 01:34:43 +00008113 if test -n "$ac_tool_prefix"; then
8114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8115set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008116echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8118if test "${ac_cv_prog_RANLIB+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008120else
8121 if test -n "$RANLIB"; then
8122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8123else
a.rottmann84e63352003-03-24 09:42:16 +00008124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135done
drh71eb93e2001-09-28 01:34:43 +00008136done
8137
drh75897232000-05-29 14:26:00 +00008138fi
8139fi
drh71eb93e2001-09-28 01:34:43 +00008140RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +00008141if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008142 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008143echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +00008144else
a.rottmann84e63352003-03-24 09:42:16 +00008145 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008146echo "${ECHO_T}no" >&6
8147fi
8148
8149fi
8150if test -z "$ac_cv_prog_RANLIB"; then
8151 ac_ct_RANLIB=$RANLIB
8152 # Extract the first word of "ranlib", so it can be a program name with args.
8153set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008154echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8156if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159 if test -n "$ac_ct_RANLIB"; then
8160 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8161else
a.rottmann84e63352003-03-24 09:42:16 +00008162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169 ac_cv_prog_ac_ct_RANLIB="ranlib"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173done
drh71eb93e2001-09-28 01:34:43 +00008174done
8175
8176 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8177fi
8178fi
8179ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8180if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008181 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008182echo "${ECHO_T}$ac_ct_RANLIB" >&6
8183else
a.rottmann84e63352003-03-24 09:42:16 +00008184 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008185echo "${ECHO_T}no" >&6
8186fi
8187
8188 RANLIB=$ac_ct_RANLIB
8189else
8190 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +00008191fi
8192
8193 TARGET_RANLIB=$RANLIB
8194fi
8195if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +00008196 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +00008197else
8198 TARGET_AR='ar cr'
8199fi
a.rottmann84e63352003-03-24 09:42:16 +00008200echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008201echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008202
a.rottmann84e63352003-03-24 09:42:16 +00008203
8204
8205
8206
8207
8208
drh75897232000-05-29 14:26:00 +00008209# Set the $cross variable if we are cross-compiling. Make
8210# it 0 if we are not.
8211#
a.rottmann84e63352003-03-24 09:42:16 +00008212echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +00008213echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008214if test "$BUILD_CC" = "$TARGET_CC"; then
8215 cross=0
a.rottmann84e63352003-03-24 09:42:16 +00008216 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008217echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008218else
8219 cross=1
a.rottmann84e63352003-03-24 09:42:16 +00008220 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008221echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00008222fi
8223
drh297ecf12001-04-05 15:57:13 +00008224##########
8225# Are we using UTF-8 or iso8859 encodings?
8226#
8227# Check whether --enable-utf8 or --disable-utf8 was given.
8228if test "${enable_utf8+set}" = set; then
8229 enableval="$enable_utf8"
drh71eb93e2001-09-28 01:34:43 +00008230
drh297ecf12001-04-05 15:57:13 +00008231else
8232 enable_utf8=no
drh71eb93e2001-09-28 01:34:43 +00008233fi;
a.rottmann84e63352003-03-24 09:42:16 +00008234echo "$as_me:$LINENO: checking character encoding" >&5
drh71eb93e2001-09-28 01:34:43 +00008235echo $ECHO_N "checking character encoding... $ECHO_C" >&6
drh297ecf12001-04-05 15:57:13 +00008236if test "$enable_utf8" = "no"; then
8237 ENCODING=ISO8859
a.rottmann84e63352003-03-24 09:42:16 +00008238 echo "$as_me:$LINENO: result: iso8859" >&5
drh71eb93e2001-09-28 01:34:43 +00008239echo "${ECHO_T}iso8859" >&6
drh297ecf12001-04-05 15:57:13 +00008240else
8241 ENCODING=UTF8
a.rottmann84e63352003-03-24 09:42:16 +00008242 echo "$as_me:$LINENO: result: UTF-8" >&5
drh71eb93e2001-09-28 01:34:43 +00008243echo "${ECHO_T}UTF-8" >&6
drh297ecf12001-04-05 15:57:13 +00008244fi
8245
a.rottmann84e63352003-03-24 09:42:16 +00008246
paulb0208cc2003-04-13 18:26:49 +00008247##########
8248# Do we want to support in-ram databases for ATTACH DATABASE and sqlite_open
8249#
8250# Check whether --enable-incore-db or --disable-incore-db was given.
8251if test "${enable_incore_db+set}" = set; then
8252 enableval="$enable_incore_db"
8253
8254else
8255 enable_incore-db=yes
8256fi;
8257echo "$as_me:$LINENO: checking whether to support incore databases for attach and open" >&5
8258echo $ECHO_N "checking whether to support incore databases for attach and open... $ECHO_C" >&6
8259if test "$enable_incore-db" = "no"; then
8260 INCOREDB=0
8261 ALLOWATTACHMEM=0
8262 echo "$as_me:$LINENO: result: no" >&5
8263echo "${ECHO_T}no" >&6
8264else
8265 INCOREDB=1
8266 ALLOWATTACHMEM=1
8267 echo "$as_me:$LINENO: result: yes" >&5
8268echo "${ECHO_T}yes" >&6
8269fi
8270
8271
8272##########
8273# Do we want temporary databases in memory
8274#
8275# Check whether --enable-tempdb-in-ram or --disable-tempdb-in-ram was given.
8276if test "${enable_tempdb_in_ram+set}" = set; then
8277 enableval="$enable_tempdb_in_ram"
8278
8279else
8280 enable_tempdb-in-ram=no
8281fi;
8282echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
8283echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
8284case "$enable_tempdb-in-ram" in
8285 never )
8286 TEMPDBINCORE=0
8287 echo "$as_me:$LINENO: result: never" >&5
8288echo "${ECHO_T}never" >&6
8289 ;;
8290 no )
8291 INCOREDB=1
8292 TEMPDBINCORE=1
8293 echo "$as_me:$LINENO: result: no" >&5
8294echo "${ECHO_T}no" >&6
8295 ;;
8296 always )
8297 INCOREDB=1
8298 TEMPDBINCORE=3
8299 echo "$as_me:$LINENO: result: always" >&5
8300echo "${ECHO_T}always" >&6
8301 ;;
8302 * )
8303 INCOREDB=1
8304 TEMPDBINCORE=2
8305 echo "$as_me:$LINENO: result: yes" >&5
8306echo "${ECHO_T}yes" >&6
8307 ;;
8308esac
8309
8310
8311
drh75897232000-05-29 14:26:00 +00008312###########
8313# Lots of things are different if we are compiling for Windows using
8314# the CYGWIN environment. So check for that special case and handle
8315# things accordingly.
8316#
a.rottmann84e63352003-03-24 09:42:16 +00008317echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +00008318echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008319if test "$config_BUILD_EXEEXT" = ".exe"; then
8320 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +00008321 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008322echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008323else
a.rottmann84e63352003-03-24 09:42:16 +00008324 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +00008325echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +00008326fi
8327if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008328
8329case $host_os in
drh71eb93e2001-09-28 01:34:43 +00008330 *cygwin* ) CYGWIN=yes;;
8331 * ) CYGWIN=no;;
8332esac
drh75897232000-05-29 14:26:00 +00008333
drh75897232000-05-29 14:26:00 +00008334fi
8335if test "$CYGWIN" = "yes"; then
8336 BUILD_EXEEXT=.exe
8337else
8338 BUILD_EXEEXT=""
8339fi
8340if test "$cross" = "0"; then
8341 TARGET_EXEEXT=$BUILD_EXEEXT
8342else
8343 TARGET_EXEEXT=$config_TARGET_EXEEXT
8344fi
8345if test "$TARGET_EXEEXT" = ".exe"; then
8346 OS_UNIX=0
8347 OS_WIN=1
8348 tclsubdir=win
8349else
8350 OS_UNIX=1
8351 OS_WIN=0
8352 tclsubdir=unix
8353fi
8354TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN"
8355
a.rottmann84e63352003-03-24 09:42:16 +00008356
8357
8358
8359
8360
drh75897232000-05-29 14:26:00 +00008361##########
8362# Extract generic linker options from the environment.
8363#
8364if test "$config_TARGET_LIBS" != ""; then
8365 TARGET_LIBS=$config_TARGET_LIBS
8366else
8367 TARGET_LIBS=""
8368fi
8369
a.rottmann84e63352003-03-24 09:42:16 +00008370
drh75897232000-05-29 14:26:00 +00008371##########
8372# Figure out what C libraries are required to compile Tcl programs.
8373#
8374if test "$config_TARGET_TCL_LIBS" != ""; then
8375 TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
8376else
8377 if test "$with_tcl" != ""; then
8378 extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
8379 fi
8380 CC=$TARGET_CC
a.rottmann84e63352003-03-24 09:42:16 +00008381 echo "$as_me:$LINENO: checking for sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008382echo $ECHO_N "checking for sin... $ECHO_C" >&6
8383if test "${ac_cv_func_sin+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008385else
drh71eb93e2001-09-28 01:34:43 +00008386 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008387#line $LINENO "configure"
8388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008393/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008394 which can conflict with char sin (); below.
8395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8396 <limits.h> exists even on freestanding compilers. */
8397#ifdef __STDC__
8398# include <limits.h>
8399#else
8400# include <assert.h>
8401#endif
drh75897232000-05-29 14:26:00 +00008402/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008403#ifdef __cplusplus
8404extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008405{
drh71eb93e2001-09-28 01:34:43 +00008406#endif
drh75897232000-05-29 14:26:00 +00008407/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008408 builtin and then its argument prototype would still apply. */
8409char sin ();
drh75897232000-05-29 14:26:00 +00008410/* The GNU C library defines this for functions which it implements
8411 to always fail with ENOSYS. Some functions are actually named
8412 something starting with __ and the normal name is an alias. */
8413#if defined (__stub_sin) || defined (__stub___sin)
8414choke me
8415#else
a.rottmann84e63352003-03-24 09:42:16 +00008416char (*f) () = sin;
8417#endif
8418#ifdef __cplusplus
8419}
drh75897232000-05-29 14:26:00 +00008420#endif
8421
a.rottmann84e63352003-03-24 09:42:16 +00008422int
8423main ()
8424{
8425return f != sin;
drh71eb93e2001-09-28 01:34:43 +00008426 ;
8427 return 0;
8428}
8429_ACEOF
8430rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008432 (eval $ac_link) 2>&5
8433 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008435 (exit $ac_status); } &&
8436 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008438 (eval $ac_try) 2>&5
8439 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008441 (exit $ac_status); }; }; then
8442 ac_cv_func_sin=yes
drh75897232000-05-29 14:26:00 +00008443else
drh71eb93e2001-09-28 01:34:43 +00008444 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008445sed 's/^/| /' conftest.$ac_ext >&5
8446
drh71eb93e2001-09-28 01:34:43 +00008447ac_cv_func_sin=no
drh75897232000-05-29 14:26:00 +00008448fi
drh71eb93e2001-09-28 01:34:43 +00008449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00008450fi
a.rottmann84e63352003-03-24 09:42:16 +00008451echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008452echo "${ECHO_T}$ac_cv_func_sin" >&6
8453if test $ac_cv_func_sin = yes; then
drh75897232000-05-29 14:26:00 +00008454 LIBS=""
8455else
drh71eb93e2001-09-28 01:34:43 +00008456 LIBS="-lm"
drh75897232000-05-29 14:26:00 +00008457fi
8458
a.rottmann84e63352003-03-24 09:42:16 +00008459
8460echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00008461echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8462if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008464else
drh71eb93e2001-09-28 01:34:43 +00008465 ac_check_lib_save_LIBS=$LIBS
drh75897232000-05-29 14:26:00 +00008466LIBS="-ldl $LIBS"
drh71eb93e2001-09-28 01:34:43 +00008467cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008468#line $LINENO "configure"
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008474
drh75897232000-05-29 14:26:00 +00008475/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008476#ifdef __cplusplus
8477extern "C"
8478#endif
drh75897232000-05-29 14:26:00 +00008479/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008480 builtin and then its argument prototype would still apply. */
8481char dlopen ();
8482int
8483main ()
8484{
8485dlopen ();
8486 ;
8487 return 0;
8488}
8489_ACEOF
8490rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008492 (eval $ac_link) 2>&5
8493 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008495 (exit $ac_status); } &&
8496 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008498 (eval $ac_try) 2>&5
8499 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008501 (exit $ac_status); }; }; then
8502 ac_cv_lib_dl_dlopen=yes
drh75897232000-05-29 14:26:00 +00008503else
drh71eb93e2001-09-28 01:34:43 +00008504 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008505sed 's/^/| /' conftest.$ac_ext >&5
8506
drh71eb93e2001-09-28 01:34:43 +00008507ac_cv_lib_dl_dlopen=no
drh75897232000-05-29 14:26:00 +00008508fi
drh71eb93e2001-09-28 01:34:43 +00008509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510LIBS=$ac_check_lib_save_LIBS
drh75897232000-05-29 14:26:00 +00008511fi
a.rottmann84e63352003-03-24 09:42:16 +00008512echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00008513echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8514if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00008515 cat >>confdefs.h <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00008516#define HAVE_LIBDL 1
a.rottmann84e63352003-03-24 09:42:16 +00008517_ACEOF
drh75897232000-05-29 14:26:00 +00008518
8519 LIBS="-ldl $LIBS"
8520
drh75897232000-05-29 14:26:00 +00008521fi
8522
8523 otherlibs=$LIBS
8524 if test "$extra" != ""; then
8525 LIBS=$extra
drh71eb93e2001-09-28 01:34:43 +00008526 else
drh75897232000-05-29 14:26:00 +00008527 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +00008528 echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008529echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6
8530if test "${ac_cv_search_Tcl_Init+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008532else
drh71eb93e2001-09-28 01:34:43 +00008533 ac_func_search_save_LIBS=$LIBS
8534ac_cv_search_Tcl_Init=no
8535cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008536#line $LINENO "configure"
8537/* confdefs.h. */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008542
drh71eb93e2001-09-28 01:34:43 +00008543/* Override any gcc2 internal prototype to avoid an error. */
8544#ifdef __cplusplus
8545extern "C"
8546#endif
8547/* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8549char Tcl_Init ();
8550int
8551main ()
8552{
8553Tcl_Init ();
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008560 (eval $ac_link) 2>&5
8561 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008563 (exit $ac_status); } &&
8564 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008566 (eval $ac_try) 2>&5
8567 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008569 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00008570 ac_cv_search_Tcl_Init="none required"
8571else
drh71eb93e2001-09-28 01:34:43 +00008572 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008573sed 's/^/| /' conftest.$ac_ext >&5
8574
drh75897232000-05-29 14:26:00 +00008575fi
drh71eb93e2001-09-28 01:34:43 +00008576rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8577if test "$ac_cv_search_Tcl_Init" = no; then
8578 for ac_lib in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do
8579 LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008581#line $LINENO "configure"
8582/* confdefs.h. */
8583_ACEOF
8584cat confdefs.h >>conftest.$ac_ext
8585cat >>conftest.$ac_ext <<_ACEOF
8586/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008587
drh71eb93e2001-09-28 01:34:43 +00008588/* Override any gcc2 internal prototype to avoid an error. */
8589#ifdef __cplusplus
8590extern "C"
8591#endif
8592/* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8594char Tcl_Init ();
8595int
8596main ()
8597{
8598Tcl_Init ();
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008605 (eval $ac_link) 2>&5
8606 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008608 (exit $ac_status); } &&
8609 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008611 (eval $ac_try) 2>&5
8612 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008614 (exit $ac_status); }; }; then
8615 ac_cv_search_Tcl_Init="-l$ac_lib"
drh75897232000-05-29 14:26:00 +00008616break
8617else
drh71eb93e2001-09-28 01:34:43 +00008618 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008619sed 's/^/| /' conftest.$ac_ext >&5
8620
drh75897232000-05-29 14:26:00 +00008621fi
drh71eb93e2001-09-28 01:34:43 +00008622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 done
8624fi
8625LIBS=$ac_func_search_save_LIBS
8626fi
a.rottmann84e63352003-03-24 09:42:16 +00008627echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008628echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6
8629if test "$ac_cv_search_Tcl_Init" != no; then
8630 test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
8631
drh75897232000-05-29 14:26:00 +00008632fi
8633
drh75897232000-05-29 14:26:00 +00008634 fi
8635 TARGET_TCL_LIBS="$LIBS $otherlibs"
8636fi
8637
a.rottmann84e63352003-03-24 09:42:16 +00008638
drh75897232000-05-29 14:26:00 +00008639##########
8640# Figure out where to get the TCL header files.
8641#
a.rottmann84e63352003-03-24 09:42:16 +00008642echo "$as_me:$LINENO: checking TCL header files" >&5
drh71eb93e2001-09-28 01:34:43 +00008643echo $ECHO_N "checking TCL header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008644found=no
8645if test "$config_TARGET_TCL_INC" != ""; then
8646 TARGET_TCL_INC=$config_TARGET_TCL_INC
8647 found=yes
8648else
8649 if test "$with_tcl" != ""; then
8650 TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
8651 found=yes
8652 else
8653 TARGET_TCL_INC=""
8654 found=no
8655 fi
8656fi
8657if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008658 echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00008659echo "${ECHO_T}$TARGET_TCL_INC" >&6
drh75897232000-05-29 14:26:00 +00008660else
a.rottmann84e63352003-03-24 09:42:16 +00008661 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00008662echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00008663 if test "${ac_cv_header_tcl_h+set}" = set; then
8664 echo "$as_me:$LINENO: checking for tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008665echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8666if test "${ac_cv_header_tcl_h+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008668fi
8669echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
8670echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
drh75897232000-05-29 14:26:00 +00008671else
a.rottmann84e63352003-03-24 09:42:16 +00008672 # Is the header compilable?
8673echo "$as_me:$LINENO: checking tcl.h usability" >&5
8674echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
8675cat >conftest.$ac_ext <<_ACEOF
8676#line $LINENO "configure"
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h. */
8682$ac_includes_default
drh75897232000-05-29 14:26:00 +00008683#include <tcl.h>
drh71eb93e2001-09-28 01:34:43 +00008684_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008685rm -f conftest.$ac_objext
8686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -s conftest.$ac_objext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_header_compiler=yes
8698else
8699 echo "$as_me: failed program was:" >&5
8700sed 's/^/| /' conftest.$ac_ext >&5
8701
8702ac_header_compiler=no
8703fi
8704rm -f conftest.$ac_objext conftest.$ac_ext
8705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8706echo "${ECHO_T}$ac_header_compiler" >&6
8707
8708# Is the header present?
8709echo "$as_me:$LINENO: checking tcl.h presence" >&5
8710echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
8711cat >conftest.$ac_ext <<_ACEOF
8712#line $LINENO "configure"
8713/* confdefs.h. */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h. */
8718#include <tcl.h>
8719_ACEOF
8720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8722 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008723 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00008724 rm -f conftest.er1
8725 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008727 (exit $ac_status); } >/dev/null; then
8728 if test -s conftest.err; then
8729 ac_cpp_err=$ac_c_preproc_warn_flag
8730 else
8731 ac_cpp_err=
8732 fi
drh75897232000-05-29 14:26:00 +00008733else
drh71eb93e2001-09-28 01:34:43 +00008734 ac_cpp_err=yes
8735fi
8736if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00008737 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00008738else
8739 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008740sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00008743fi
drh71eb93e2001-09-28 01:34:43 +00008744rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8746echo "${ECHO_T}$ac_header_preproc" >&6
8747
8748# So? What about this header?
8749case $ac_header_compiler:$ac_header_preproc in
8750 yes:no )
8751 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8752echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8754echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8755 (
8756 cat <<\_ASBOX
8757## ------------------------------------ ##
8758## Report this to bug-autoconf@gnu.org. ##
8759## ------------------------------------ ##
8760_ASBOX
8761 ) |
8762 sed "s/^/$as_me: WARNING: /" >&2
8763 ;;
8764 no:yes )
8765 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
8766echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
8768echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8770echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8771 (
8772 cat <<\_ASBOX
8773## ------------------------------------ ##
8774## Report this to bug-autoconf@gnu.org. ##
8775## ------------------------------------ ##
8776_ASBOX
8777 ) |
8778 sed "s/^/$as_me: WARNING: /" >&2
8779 ;;
8780esac
8781echo "$as_me:$LINENO: checking for tcl.h" >&5
8782echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8783if test "${ac_cv_header_tcl_h+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
8786 ac_cv_header_tcl_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00008787fi
a.rottmann84e63352003-03-24 09:42:16 +00008788echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
drh71eb93e2001-09-28 01:34:43 +00008789echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008790
8791fi
drh71eb93e2001-09-28 01:34:43 +00008792if test $ac_cv_header_tcl_h = yes; then
drh75897232000-05-29 14:26:00 +00008793 found=yes
drh75897232000-05-29 14:26:00 +00008794fi
8795
a.rottmann84e63352003-03-24 09:42:16 +00008796
drh75897232000-05-29 14:26:00 +00008797fi
8798if test "$found" = "no"; then
drhfdc99e92000-09-29 15:15:51 +00008799 for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
drh71eb93e2001-09-28 01:34:43 +00008800 as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00008801echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008802echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6
8803if eval "test \"\${$as_ac_File+set}\" = set"; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008805else
drh71eb93e2001-09-28 01:34:43 +00008806 test "$cross_compiling" = yes &&
a.rottmann84e63352003-03-24 09:42:16 +00008807 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00008808echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8809 { (exit 1); exit 1; }; }
8810if test -r "$dir/include/tcl.h"; then
8811 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00008812else
drh71eb93e2001-09-28 01:34:43 +00008813 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00008814fi
8815fi
a.rottmann84e63352003-03-24 09:42:16 +00008816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00008817echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
8818if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00008819 found=yes
drh75897232000-05-29 14:26:00 +00008820fi
8821
8822 if test "$found" = "yes"; then
8823 TARGET_TCL_INC="-I$dir/include"
8824 break
8825 fi
8826 done
8827fi
drh6d313162000-09-21 13:01:35 +00008828if test "$found" = "no"; then
8829 TARGET_TCL_INC="-DNO_TCL=1"
8830fi
drh75897232000-05-29 14:26:00 +00008831
a.rottmann84e63352003-03-24 09:42:16 +00008832
drh75897232000-05-29 14:26:00 +00008833##########
8834# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +00008835# that use "readline()" library.
8836#
8837if test "$config_TARGET_READLINE_LIBS" != ""; then
8838 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
8839else
8840 CC=$TARGET_CC
8841 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +00008842 echo "$as_me:$LINENO: checking for library containing readline" >&5
drh71eb93e2001-09-28 01:34:43 +00008843echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6
8844if test "${ac_cv_search_readline+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008846else
drh71eb93e2001-09-28 01:34:43 +00008847 ac_func_search_save_LIBS=$LIBS
8848ac_cv_search_readline=no
8849cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008850#line $LINENO "configure"
8851/* confdefs.h. */
8852_ACEOF
8853cat confdefs.h >>conftest.$ac_ext
8854cat >>conftest.$ac_ext <<_ACEOF
8855/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008856
drh71eb93e2001-09-28 01:34:43 +00008857/* Override any gcc2 internal prototype to avoid an error. */
8858#ifdef __cplusplus
8859extern "C"
8860#endif
8861/* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8863char readline ();
8864int
8865main ()
8866{
8867readline ();
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008874 (eval $ac_link) 2>&5
8875 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008877 (exit $ac_status); } &&
8878 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008880 (eval $ac_try) 2>&5
8881 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008883 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00008884 ac_cv_search_readline="none required"
8885else
drh71eb93e2001-09-28 01:34:43 +00008886 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008887sed 's/^/| /' conftest.$ac_ext >&5
8888
drh75897232000-05-29 14:26:00 +00008889fi
drh71eb93e2001-09-28 01:34:43 +00008890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8891if test "$ac_cv_search_readline" = no; then
8892 for ac_lib in readline; do
8893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008895#line $LINENO "configure"
8896/* confdefs.h. */
8897_ACEOF
8898cat confdefs.h >>conftest.$ac_ext
8899cat >>conftest.$ac_ext <<_ACEOF
8900/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008901
drh71eb93e2001-09-28 01:34:43 +00008902/* Override any gcc2 internal prototype to avoid an error. */
8903#ifdef __cplusplus
8904extern "C"
8905#endif
8906/* We use char because int might match the return type of a gcc2
8907 builtin and then its argument prototype would still apply. */
8908char readline ();
8909int
8910main ()
8911{
8912readline ();
8913 ;
8914 return 0;
8915}
8916_ACEOF
8917rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008919 (eval $ac_link) 2>&5
8920 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008922 (exit $ac_status); } &&
8923 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008925 (eval $ac_try) 2>&5
8926 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008928 (exit $ac_status); }; }; then
8929 ac_cv_search_readline="-l$ac_lib"
drh75897232000-05-29 14:26:00 +00008930break
8931else
drh71eb93e2001-09-28 01:34:43 +00008932 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008933sed 's/^/| /' conftest.$ac_ext >&5
8934
drh75897232000-05-29 14:26:00 +00008935fi
drh71eb93e2001-09-28 01:34:43 +00008936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8937 done
8938fi
8939LIBS=$ac_func_search_save_LIBS
8940fi
a.rottmann84e63352003-03-24 09:42:16 +00008941echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
drh71eb93e2001-09-28 01:34:43 +00008942echo "${ECHO_T}$ac_cv_search_readline" >&6
8943if test "$ac_cv_search_readline" != no; then
8944 test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS"
8945
drh75897232000-05-29 14:26:00 +00008946fi
8947
drh75897232000-05-29 14:26:00 +00008948 TARGET_READLINE_LIBS="$LIBS"
8949fi
8950
a.rottmann84e63352003-03-24 09:42:16 +00008951
drh75897232000-05-29 14:26:00 +00008952##########
8953# Figure out where to get the READLINE header files.
8954#
a.rottmann84e63352003-03-24 09:42:16 +00008955echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +00008956echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008957found=no
8958if test "$config_TARGET_READLINE_INC" != ""; then
8959 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
8960 found=yes
8961fi
8962if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008963 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00008964echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +00008965else
a.rottmann84e63352003-03-24 09:42:16 +00008966 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00008967echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00008968 if test "${ac_cv_header_readline_h+set}" = set; then
8969 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008970echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
8971if test "${ac_cv_header_readline_h+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008973fi
8974echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
8975echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +00008976else
a.rottmann84e63352003-03-24 09:42:16 +00008977 # Is the header compilable?
8978echo "$as_me:$LINENO: checking readline.h usability" >&5
8979echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
8980cat >conftest.$ac_ext <<_ACEOF
8981#line $LINENO "configure"
8982/* confdefs.h. */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
8986/* end confdefs.h. */
8987$ac_includes_default
drh75897232000-05-29 14:26:00 +00008988#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +00008989_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008990rm -f conftest.$ac_objext
8991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8992 (eval $ac_compile) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try='test -s conftest.$ac_objext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_header_compiler=yes
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007ac_header_compiler=no
9008fi
9009rm -f conftest.$ac_objext conftest.$ac_ext
9010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9011echo "${ECHO_T}$ac_header_compiler" >&6
9012
9013# Is the header present?
9014echo "$as_me:$LINENO: checking readline.h presence" >&5
9015echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
9016cat >conftest.$ac_ext <<_ACEOF
9017#line $LINENO "configure"
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h. */
9023#include <readline.h>
9024_ACEOF
9025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9027 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009028 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00009029 rm -f conftest.er1
9030 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009032 (exit $ac_status); } >/dev/null; then
9033 if test -s conftest.err; then
9034 ac_cpp_err=$ac_c_preproc_warn_flag
9035 else
9036 ac_cpp_err=
9037 fi
drh75897232000-05-29 14:26:00 +00009038else
drh71eb93e2001-09-28 01:34:43 +00009039 ac_cpp_err=yes
9040fi
9041if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00009042 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00009043else
9044 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009045sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00009048fi
drh71eb93e2001-09-28 01:34:43 +00009049rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9051echo "${ECHO_T}$ac_header_preproc" >&6
9052
9053# So? What about this header?
9054case $ac_header_compiler:$ac_header_preproc in
9055 yes:no )
9056 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
9057echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
9059echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
9060 (
9061 cat <<\_ASBOX
9062## ------------------------------------ ##
9063## Report this to bug-autoconf@gnu.org. ##
9064## ------------------------------------ ##
9065_ASBOX
9066 ) |
9067 sed "s/^/$as_me: WARNING: /" >&2
9068 ;;
9069 no:yes )
9070 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
9071echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
9073echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
9075echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
9076 (
9077 cat <<\_ASBOX
9078## ------------------------------------ ##
9079## Report this to bug-autoconf@gnu.org. ##
9080## ------------------------------------ ##
9081_ASBOX
9082 ) |
9083 sed "s/^/$as_me: WARNING: /" >&2
9084 ;;
9085esac
9086echo "$as_me:$LINENO: checking for readline.h" >&5
9087echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
9088if test "${ac_cv_header_readline_h+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00009092fi
a.rottmann84e63352003-03-24 09:42:16 +00009093echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +00009094echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009095
9096fi
drh71eb93e2001-09-28 01:34:43 +00009097if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +00009098 found=yes
drh75897232000-05-29 14:26:00 +00009099fi
9100
a.rottmann84e63352003-03-24 09:42:16 +00009101
drh75897232000-05-29 14:26:00 +00009102fi
9103if test "$found" = "no"; then
9104 for dir in /usr /usr/local /usr/local/readline /usr/contrib; do
drh71eb93e2001-09-28 01:34:43 +00009105 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009106echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009107echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
9108if eval "test \"\${$as_ac_File+set}\" = set"; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00009110else
drh71eb93e2001-09-28 01:34:43 +00009111 test "$cross_compiling" = yes &&
a.rottmann84e63352003-03-24 09:42:16 +00009112 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00009113echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9114 { (exit 1); exit 1; }; }
9115if test -r "$dir/include/readline.h"; then
9116 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009117else
drh71eb93e2001-09-28 01:34:43 +00009118 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009119fi
9120fi
a.rottmann84e63352003-03-24 09:42:16 +00009121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009122echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9123if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009124 found=yes
drh75897232000-05-29 14:26:00 +00009125fi
9126
9127 if test "$found" = "yes"; then
9128 TARGET_READLINE_INC="-I$dir/include"
9129 break
9130 fi
drh71eb93e2001-09-28 01:34:43 +00009131 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009132echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009133echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
9134if eval "test \"\${$as_ac_File+set}\" = set"; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00009136else
drh71eb93e2001-09-28 01:34:43 +00009137 test "$cross_compiling" = yes &&
a.rottmann84e63352003-03-24 09:42:16 +00009138 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00009139echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9140 { (exit 1); exit 1; }; }
9141if test -r "$dir/include/readline/readline.h"; then
9142 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009143else
drh71eb93e2001-09-28 01:34:43 +00009144 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009145fi
9146fi
a.rottmann84e63352003-03-24 09:42:16 +00009147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009148echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9149if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009150 found=yes
drh75897232000-05-29 14:26:00 +00009151fi
9152
9153 if test "$found" = "yes"; then
9154 TARGET_READLINE_INC="-I$dir/include/readline"
9155 break
9156 fi
9157 done
9158fi
9159if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +00009160 if test "$TARGET_READLINE_LIBS" = ""; then
9161 TARGET_HAVE_READLINE=0
9162 else
9163 TARGET_HAVE_READLINE=1
9164 fi
drh75897232000-05-29 14:26:00 +00009165else
9166 TARGET_HAVE_READLINE=0
9167fi
9168
a.rottmann84e63352003-03-24 09:42:16 +00009169
9170
drh75897232000-05-29 14:26:00 +00009171#########
drh2dfbbca2000-07-28 14:32:48 +00009172# Figure out whether or not we have a "usleep()" function.
9173#
a.rottmann84e63352003-03-24 09:42:16 +00009174echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009175echo $ECHO_N "checking for usleep... $ECHO_C" >&6
9176if test "${ac_cv_func_usleep+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +00009178else
drh71eb93e2001-09-28 01:34:43 +00009179 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009180#line $LINENO "configure"
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
drh2dfbbca2000-07-28 14:32:48 +00009186/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009187 which can conflict with char usleep (); below.
9188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9189 <limits.h> exists even on freestanding compilers. */
9190#ifdef __STDC__
9191# include <limits.h>
9192#else
9193# include <assert.h>
9194#endif
drh2dfbbca2000-07-28 14:32:48 +00009195/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00009196#ifdef __cplusplus
9197extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009198{
drh71eb93e2001-09-28 01:34:43 +00009199#endif
drh2dfbbca2000-07-28 14:32:48 +00009200/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00009201 builtin and then its argument prototype would still apply. */
9202char usleep ();
drh2dfbbca2000-07-28 14:32:48 +00009203/* The GNU C library defines this for functions which it implements
9204 to always fail with ENOSYS. Some functions are actually named
9205 something starting with __ and the normal name is an alias. */
9206#if defined (__stub_usleep) || defined (__stub___usleep)
9207choke me
9208#else
a.rottmann84e63352003-03-24 09:42:16 +00009209char (*f) () = usleep;
9210#endif
9211#ifdef __cplusplus
9212}
drh2dfbbca2000-07-28 14:32:48 +00009213#endif
9214
a.rottmann84e63352003-03-24 09:42:16 +00009215int
9216main ()
9217{
9218return f != usleep;
drh71eb93e2001-09-28 01:34:43 +00009219 ;
9220 return 0;
9221}
9222_ACEOF
9223rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00009224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009225 (eval $ac_link) 2>&5
9226 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009228 (exit $ac_status); } &&
9229 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00009230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009231 (eval $ac_try) 2>&5
9232 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009234 (exit $ac_status); }; }; then
9235 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +00009236else
drh71eb93e2001-09-28 01:34:43 +00009237 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009238sed 's/^/| /' conftest.$ac_ext >&5
9239
drh71eb93e2001-09-28 01:34:43 +00009240ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +00009241fi
drh71eb93e2001-09-28 01:34:43 +00009242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +00009243fi
a.rottmann84e63352003-03-24 09:42:16 +00009244echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009245echo "${ECHO_T}$ac_cv_func_usleep" >&6
9246if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +00009247 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +00009248fi
9249
a.rottmann84e63352003-03-24 09:42:16 +00009250
drh2dfbbca2000-07-28 14:32:48 +00009251#########
drh75897232000-05-29 14:26:00 +00009252# Generate the output files.
9253#
a.rottmann84e63352003-03-24 09:42:16 +00009254 ac_config_files="$ac_config_files Makefile sqlite.pc"
drh71eb93e2001-09-28 01:34:43 +00009255cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +00009256# This file is a shell script that caches the results of configure
9257# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +00009258# scripts and configure runs, see configure's option --config-cache.
9259# It is not useful on other systems. If it contains results you don't
9260# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +00009261#
drh71eb93e2001-09-28 01:34:43 +00009262# config.status only pays attention to the cache file if you give it
9263# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +00009264#
a.rottmann84e63352003-03-24 09:42:16 +00009265# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +00009266# loading this file, other *unset* `ac_cv_foo' will be assigned the
9267# following values.
9268
9269_ACEOF
9270
drh75897232000-05-29 14:26:00 +00009271# The following way of writing the cache mishandles newlines in values,
9272# but we know of no workaround that is simple, portable, and efficient.
9273# So, don't put newlines in cache variables' values.
9274# Ultrix sh set writes to stderr and can't be redirected directly,
9275# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +00009276{
9277 (set) 2>&1 |
9278 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9279 *ac_space=\ *)
9280 # `set' does not quote correctly, so add quotes (double-quote
9281 # substitution turns \\\\ into \\, and sed turns \\ into \).
9282 sed -n \
9283 "s/'/'\\\\''/g;
9284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9285 ;;
9286 *)
9287 # `set' quotes correctly as required by POSIX, so do not add quotes.
9288 sed -n \
9289 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9290 ;;
9291 esac;
9292} |
9293 sed '
9294 t clear
9295 : clear
9296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9297 t end
9298 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9299 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +00009300if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +00009301 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +00009302 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9303 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +00009304 else
9305 echo "not updating unwritable cache $cache_file"
9306 fi
9307fi
9308rm -f confcache
9309
drh75897232000-05-29 14:26:00 +00009310test "x$prefix" = xNONE && prefix=$ac_default_prefix
9311# Let make expand exec_prefix.
9312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9313
drh71eb93e2001-09-28 01:34:43 +00009314# VPATH may cause trouble with some makes, so we remove $(srcdir),
9315# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9316# trailing colons and then remove the whole line if VPATH becomes empty
9317# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +00009318if test "x$srcdir" = x.; then
drh71eb93e2001-09-28 01:34:43 +00009319 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9320s/:*\$(srcdir):*/:/;
9321s/:*\${srcdir}:*/:/;
9322s/:*@srcdir@:*/:/;
9323s/^\([^=]*=[ ]*\):*/\1/;
9324s/:*$//;
9325s/^[^=]*=[ ]*$//;
9326}'
drh75897232000-05-29 14:26:00 +00009327fi
9328
drh75897232000-05-29 14:26:00 +00009329# Transform confdefs.h into DEFS.
9330# Protect against shell expansion while executing Makefile rules.
9331# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +00009332#
9333# If the first sed substitution is executed (which looks for macros that
9334# take arguments), then we branch to the quote section. Otherwise,
9335# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +00009336cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009337t clear
9338: clear
9339s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9340t quote
9341s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9342t quote
9343d
9344: quote
9345s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9346s,\[,\\&,g
9347s,\],\\&,g
9348s,\$,$$,g
9349p
a.rottmann84e63352003-03-24 09:42:16 +00009350_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009351# We use echo to avoid assuming a particular line-breaking character.
9352# The extra dot is to prevent the shell from consuming trailing
9353# line-breaks from the sub-command output. A line-break within
9354# single-quotes doesn't work because, if this script is created in a
9355# platform that uses two characters for line-breaks (e.g., DOS), tr
9356# would break.
9357ac_LF_and_DOT=`echo; echo .`
9358DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9359rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +00009360
a.rottmann84e63352003-03-24 09:42:16 +00009361
9362ac_libobjs=
9363ac_ltlibobjs=
9364for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9365 # 1. Remove the extension, and $U if already installed.
9366 ac_i=`echo "$ac_i" |
9367 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9368 # 2. Add them.
9369 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9370 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9371done
9372LIBOBJS=$ac_libobjs
9373
9374LTLIBOBJS=$ac_ltlibobjs
9375
9376
9377
drh75897232000-05-29 14:26:00 +00009378: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +00009379ac_clean_files_save=$ac_clean_files
9380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +00009381{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +00009382echo "$as_me: creating $CONFIG_STATUS" >&6;}
9383cat >$CONFIG_STATUS <<_ACEOF
9384#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +00009385# Generated by $as_me.
drh75897232000-05-29 14:26:00 +00009386# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +00009387# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +00009388# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +00009389
drh71eb93e2001-09-28 01:34:43 +00009390debug=false
a.rottmann84e63352003-03-24 09:42:16 +00009391ac_cs_recheck=false
9392ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +00009393SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +00009394_ACEOF
drh75897232000-05-29 14:26:00 +00009395
drh71eb93e2001-09-28 01:34:43 +00009396cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009397## --------------------- ##
9398## M4sh Initialization. ##
9399## --------------------- ##
9400
drh71eb93e2001-09-28 01:34:43 +00009401# Be Bourne compatible
9402if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9403 emulate sh
9404 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +00009405 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9406 # is contrary to our usage. Disable this feature.
9407 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +00009408elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9409 set -o posix
drh75897232000-05-29 14:26:00 +00009410fi
drh71eb93e2001-09-28 01:34:43 +00009411
a.rottmann84e63352003-03-24 09:42:16 +00009412# Support unset when possible.
9413if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9414 as_unset=unset
9415else
9416 as_unset=false
9417fi
9418
9419
9420# Work around bugs in pre-3.0 UWIN ksh.
9421$as_unset ENV MAIL MAILPATH
9422PS1='$ '
9423PS2='> '
9424PS4='+ '
9425
9426# NLS nuisances.
9427for as_var in \
9428 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9429 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9430 LC_TELEPHONE LC_TIME
9431do
9432 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9433 eval $as_var=C; export $as_var
9434 else
9435 $as_unset $as_var
9436 fi
9437done
9438
9439# Required to use basename.
9440if expr a : '\(a\)' >/dev/null 2>&1; then
9441 as_expr=expr
9442else
9443 as_expr=false
9444fi
9445
9446if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9447 as_basename=basename
9448else
9449 as_basename=false
9450fi
9451
9452
drh71eb93e2001-09-28 01:34:43 +00009453# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +00009454as_me=`$as_basename "$0" ||
9455$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9456 X"$0" : 'X\(//\)$' \| \
9457 X"$0" : 'X\(/\)$' \| \
9458 . : '\(.\)' 2>/dev/null ||
9459echo X/"$0" |
9460 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9461 /^X\/\(\/\/\)$/{ s//\1/; q; }
9462 /^X\/\(\/\).*/{ s//\1/; q; }
9463 s/.*/./; q'`
9464
9465
9466# PATH needs CR, and LINENO needs CR and PATH.
9467# Avoid depending upon Character Ranges.
9468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9471as_cr_digits='0123456789'
9472as_cr_alnum=$as_cr_Letters$as_cr_digits
9473
9474# The user is always right.
9475if test "${PATH_SEPARATOR+set}" != set; then
9476 echo "#! /bin/sh" >conf$$.sh
9477 echo "exit 0" >>conf$$.sh
9478 chmod +x conf$$.sh
9479 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9480 PATH_SEPARATOR=';'
9481 else
9482 PATH_SEPARATOR=:
9483 fi
9484 rm -f conf$$.sh
9485fi
9486
9487
9488 as_lineno_1=$LINENO
9489 as_lineno_2=$LINENO
9490 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9491 test "x$as_lineno_1" != "x$as_lineno_2" &&
9492 test "x$as_lineno_3" = "x$as_lineno_2" || {
9493 # Find who we are. Look in the path if we contain no path at all
9494 # relative or not.
9495 case $0 in
9496 *[\\/]* ) as_myself=$0 ;;
9497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9503done
9504
9505 ;;
9506 esac
9507 # We did not find ourselves, most probably we were run as `sh COMMAND'
9508 # in which case we are not to be found in the path.
9509 if test "x$as_myself" = x; then
9510 as_myself=$0
9511 fi
9512 if test ! -f "$as_myself"; then
9513 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9514echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9515 { (exit 1); exit 1; }; }
9516 fi
9517 case $CONFIG_SHELL in
9518 '')
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9521do
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for as_base in sh bash ksh sh5; do
9525 case $as_dir in
9526 /*)
9527 if ("$as_dir/$as_base" -c '
9528 as_lineno_1=$LINENO
9529 as_lineno_2=$LINENO
9530 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9531 test "x$as_lineno_1" != "x$as_lineno_2" &&
9532 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9533 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9534 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9535 CONFIG_SHELL=$as_dir/$as_base
9536 export CONFIG_SHELL
9537 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9538 fi;;
9539 esac
9540 done
9541done
9542;;
9543 esac
9544
9545 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9546 # uniformly replaced by the line number. The first 'sed' inserts a
9547 # line-number line before each line; the second 'sed' does the real
9548 # work. The second script uses 'N' to pair each line-number line
9549 # with the numbered line, and appends trailing '-' during
9550 # substitution so that $LINENO is not a special case at line end.
9551 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9552 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9553 sed '=' <$as_myself |
9554 sed '
9555 N
9556 s,$,-,
9557 : loop
9558 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9559 t loop
9560 s,-$,,
9561 s,^['$as_cr_digits']*\n,,
9562 ' >$as_me.lineno &&
9563 chmod +x $as_me.lineno ||
9564 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9565echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9566 { (exit 1); exit 1; }; }
9567
9568 # Don't try to exec as it changes $[0], causing all sort of problems
9569 # (the dirname of $[0] is not the place where we might find the
9570 # original and so on. Autoconf is especially sensible to this).
9571 . ./$as_me.lineno
9572 # Exit status is that of the last command.
9573 exit
9574}
9575
9576
9577case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9578 *c*,-n*) ECHO_N= ECHO_C='
9579' ECHO_T=' ' ;;
9580 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9581 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9582esac
drh71eb93e2001-09-28 01:34:43 +00009583
9584if expr a : '\(a\)' >/dev/null 2>&1; then
9585 as_expr=expr
9586else
9587 as_expr=false
9588fi
9589
9590rm -f conf$$ conf$$.exe conf$$.file
9591echo >conf$$.file
9592if ln -s conf$$.file conf$$ 2>/dev/null; then
9593 # We could just check for DJGPP; but this test a) works b) is more generic
9594 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9595 if test -f conf$$.exe; then
9596 # Don't use ln at all; we don't have any links
9597 as_ln_s='cp -p'
9598 else
9599 as_ln_s='ln -s'
9600 fi
9601elif ln conf$$.file conf$$ 2>/dev/null; then
9602 as_ln_s=ln
9603else
9604 as_ln_s='cp -p'
9605fi
9606rm -f conf$$ conf$$.exe conf$$.file
9607
a.rottmann84e63352003-03-24 09:42:16 +00009608if mkdir -p . 2>/dev/null; then
9609 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +00009610else
a.rottmann84e63352003-03-24 09:42:16 +00009611 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +00009612fi
9613
a.rottmann84e63352003-03-24 09:42:16 +00009614as_executable_p="test -f"
9615
9616# Sed expression to map a string onto a valid CPP name.
9617as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9618
9619# Sed expression to map a string onto a valid variable name.
9620as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9621
drh71eb93e2001-09-28 01:34:43 +00009622
9623# IFS
9624# We need space, tab and new line, in precisely that order.
9625as_nl='
9626'
9627IFS=" $as_nl"
9628
9629# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +00009630$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00009631
9632exec 6>&1
9633
a.rottmann84e63352003-03-24 09:42:16 +00009634# Open the log real soon, to keep \$[0] and so on meaningful, and to
9635# report actual input values of CONFIG_FILES etc. instead of their
9636# values after options handling. Logging --version etc. is OK.
9637exec 5>>config.log
9638{
9639 echo
9640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9641## Running $as_me. ##
9642_ASBOX
9643} >&5
9644cat >&5 <<_CSEOF
9645
9646This file was extended by $as_me, which was
9647generated by GNU Autoconf 2.57. Invocation command line was
9648
9649 CONFIG_FILES = $CONFIG_FILES
9650 CONFIG_HEADERS = $CONFIG_HEADERS
9651 CONFIG_LINKS = $CONFIG_LINKS
9652 CONFIG_COMMANDS = $CONFIG_COMMANDS
9653 $ $0 $@
9654
9655_CSEOF
9656echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9657echo >&5
drh71eb93e2001-09-28 01:34:43 +00009658_ACEOF
9659
9660# Files that config.status was made for.
9661if test -n "$ac_config_files"; then
9662 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9663fi
9664
9665if test -n "$ac_config_headers"; then
9666 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9667fi
9668
9669if test -n "$ac_config_links"; then
9670 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9671fi
9672
9673if test -n "$ac_config_commands"; then
9674 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9675fi
9676
a.rottmann84e63352003-03-24 09:42:16 +00009677cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009678
9679ac_cs_usage="\
9680\`$as_me' instantiates files from templates according to the
9681current configuration.
9682
9683Usage: $0 [OPTIONS] [FILE]...
9684
9685 -h, --help print this help, then exit
9686 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +00009687 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +00009688 -d, --debug don't remove temporary files
9689 --recheck update $as_me by reconfiguring in the same conditions
9690 --file=FILE[:TEMPLATE]
9691 instantiate the configuration file FILE
9692
9693Configuration files:
9694$config_files
9695
9696Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +00009697_ACEOF
drh75897232000-05-29 14:26:00 +00009698
a.rottmann84e63352003-03-24 09:42:16 +00009699cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009700ac_cs_version="\\
9701config.status
a.rottmann84e63352003-03-24 09:42:16 +00009702configured by $0, generated by GNU Autoconf 2.57,
drh71eb93e2001-09-28 01:34:43 +00009703 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +00009704
drh71eb93e2001-09-28 01:34:43 +00009705Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9706Free Software Foundation, Inc.
9707This config.status script is free software; the Free Software Foundation
9708gives unlimited permission to copy, distribute and modify it."
9709srcdir=$srcdir
9710INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +00009711_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009712
a.rottmann84e63352003-03-24 09:42:16 +00009713cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009714# If no file are specified by the user, then we need to provide default
9715# value. By we need to know if files were specified by the user.
9716ac_need_defaults=:
9717while test $# != 0
9718do
9719 case $1 in
9720 --*=*)
9721 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9722 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +00009723 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +00009724 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009725 -*)
9726 ac_option=$1
9727 ac_optarg=$2
9728 ac_shift=shift
9729 ;;
drh71eb93e2001-09-28 01:34:43 +00009730 *) # This is not an option, so the user has probably given explicit
9731 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +00009732 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +00009733 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +00009734 esac
9735
a.rottmann84e63352003-03-24 09:42:16 +00009736 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +00009737 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +00009738_ACEOF
9739cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +00009741 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +00009742 --version | --vers* | -V )
9743 echo "$ac_cs_version"; exit 0 ;;
9744 --he | --h)
9745 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +00009746 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +00009747Try \`$0 --help' for more information." >&5
9748echo "$as_me: error: ambiguous option: $1
9749Try \`$0 --help' for more information." >&2;}
9750 { (exit 1); exit 1; }; };;
9751 --help | --hel | -h )
9752 echo "$ac_cs_usage"; exit 0 ;;
9753 --debug | --d* | -d )
9754 debug=: ;;
9755 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +00009756 $ac_shift
9757 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +00009758 ac_need_defaults=false;;
9759 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +00009760 $ac_shift
9761 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +00009762 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +00009763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9765 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +00009766
drh71eb93e2001-09-28 01:34:43 +00009767 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +00009768 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +00009769Try \`$0 --help' for more information." >&5
9770echo "$as_me: error: unrecognized option: $1
9771Try \`$0 --help' for more information." >&2;}
9772 { (exit 1); exit 1; }; } ;;
9773
9774 *) ac_config_targets="$ac_config_targets $1" ;;
9775
9776 esac
9777 shift
9778done
9779
a.rottmann84e63352003-03-24 09:42:16 +00009780ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +00009781
a.rottmann84e63352003-03-24 09:42:16 +00009782if $ac_cs_silent; then
9783 exec 6>/dev/null
9784 ac_configure_extra_args="$ac_configure_extra_args --silent"
9785fi
drh71eb93e2001-09-28 01:34:43 +00009786
9787_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009788cat >>$CONFIG_STATUS <<_ACEOF
9789if \$ac_cs_recheck; then
9790 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9791 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9792fi
drh71eb93e2001-09-28 01:34:43 +00009793
a.rottmann84e63352003-03-24 09:42:16 +00009794_ACEOF
9795
9796
9797
9798
9799
9800cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009801for ac_config_target in $ac_config_targets
9802do
9803 case "$ac_config_target" in
9804 # Handling of arguments.
9805 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
a.rottmann84e63352003-03-24 09:42:16 +00009806 "sqlite.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite.pc" ;;
9807 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +00009808echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9809 { (exit 1); exit 1; }; };;
9810 esac
9811done
9812
9813# If the user did not use the arguments to specify the items to instantiate,
9814# then the envvar interface is used. Set only those that are not.
9815# We use the long form for the default assignment because of an extremely
9816# bizarre bug on SunOS 4.1.3.
9817if $ac_need_defaults; then
9818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9819fi
9820
a.rottmann84e63352003-03-24 09:42:16 +00009821# Have a temporary directory for convenience. Make it in the build tree
9822# simply because there is no reason to put it here, and in addition,
9823# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +00009824# Create a temporary directory, and hook for its removal unless debugging.
9825$debug ||
9826{
9827 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9828 trap '{ (exit 1); exit 1; }' 1 2 13 15
9829}
9830
9831# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +00009832
drh71eb93e2001-09-28 01:34:43 +00009833{
a.rottmann84e63352003-03-24 09:42:16 +00009834 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +00009835 test -n "$tmp" && test -d "$tmp"
9836} ||
9837{
a.rottmann84e63352003-03-24 09:42:16 +00009838 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +00009839 (umask 077 && mkdir $tmp)
9840} ||
9841{
a.rottmann84e63352003-03-24 09:42:16 +00009842 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +00009843 { (exit 1); exit 1; }
9844}
9845
a.rottmann84e63352003-03-24 09:42:16 +00009846_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009847
a.rottmann84e63352003-03-24 09:42:16 +00009848cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009849
9850#
9851# CONFIG_FILES section.
9852#
9853
9854# No need to generate the scripts if there are no CONFIG_FILES.
9855# This happens for instance when ./config.status config.h
9856if test -n "\$CONFIG_FILES"; then
9857 # Protect against being on the right side of a sed subst in config.status.
9858 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9859 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9860s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009861s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9862s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9863s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9864s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9865s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9866s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +00009867s,@exec_prefix@,$exec_prefix,;t t
9868s,@prefix@,$prefix,;t t
9869s,@program_transform_name@,$program_transform_name,;t t
9870s,@bindir@,$bindir,;t t
9871s,@sbindir@,$sbindir,;t t
9872s,@libexecdir@,$libexecdir,;t t
9873s,@datadir@,$datadir,;t t
9874s,@sysconfdir@,$sysconfdir,;t t
9875s,@sharedstatedir@,$sharedstatedir,;t t
9876s,@localstatedir@,$localstatedir,;t t
9877s,@libdir@,$libdir,;t t
9878s,@includedir@,$includedir,;t t
9879s,@oldincludedir@,$oldincludedir,;t t
9880s,@infodir@,$infodir,;t t
9881s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +00009882s,@build_alias@,$build_alias,;t t
9883s,@host_alias@,$host_alias,;t t
9884s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009885s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +00009886s,@ECHO_C@,$ECHO_C,;t t
9887s,@ECHO_N@,$ECHO_N,;t t
9888s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +00009889s,@LIBS@,$LIBS,;t t
9890s,@build@,$build,;t t
9891s,@build_cpu@,$build_cpu,;t t
9892s,@build_vendor@,$build_vendor,;t t
9893s,@build_os@,$build_os,;t t
9894s,@host@,$host,;t t
9895s,@host_cpu@,$host_cpu,;t t
9896s,@host_vendor@,$host_vendor,;t t
9897s,@host_os@,$host_os,;t t
9898s,@CC@,$CC,;t t
9899s,@CFLAGS@,$CFLAGS,;t t
9900s,@LDFLAGS@,$LDFLAGS,;t t
9901s,@CPPFLAGS@,$CPPFLAGS,;t t
9902s,@ac_ct_CC@,$ac_ct_CC,;t t
9903s,@EXEEXT@,$EXEEXT,;t t
9904s,@OBJEXT@,$OBJEXT,;t t
9905s,@LN_S@,$LN_S,;t t
9906s,@ECHO@,$ECHO,;t t
9907s,@RANLIB@,$RANLIB,;t t
9908s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9909s,@STRIP@,$STRIP,;t t
9910s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9911s,@CPP@,$CPP,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009912s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +00009913s,@LIBTOOL@,$LIBTOOL,;t t
9914s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9915s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9916s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9917s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009918s,@VERSION@,$VERSION,;t t
drh71eb93e2001-09-28 01:34:43 +00009919s,@BUILD_CC@,$BUILD_CC,;t t
9920s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
9921s,@BUILD_LIBS@,$BUILD_LIBS,;t t
9922s,@TARGET_CC@,$TARGET_CC,;t t
9923s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
9924s,@TARGET_LINK@,$TARGET_LINK,;t t
9925s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
9926s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
9927s,@TARGET_AR@,$TARGET_AR,;t t
9928s,@ENCODING@,$ENCODING,;t t
paulb0208cc2003-04-13 18:26:49 +00009929s,@ALLOWATTACHMEM@,$ALLOWATTACHMEM,;t t
9930s,@INCOREDB@,$INCOREDB,;t t
9931s,@TEMPDBINCORE@,$TEMPDBINCORE,;t t
drh71eb93e2001-09-28 01:34:43 +00009932s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
9933s,@OS_UNIX@,$OS_UNIX,;t t
9934s,@OS_WIN@,$OS_WIN,;t t
9935s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
9936s,@TARGET_LIBS@,$TARGET_LIBS,;t t
9937s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t
9938s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t
9939s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
9940s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
9941s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009942s,@LIBOBJS@,$LIBOBJS,;t t
9943s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +00009944CEOF
9945
a.rottmann84e63352003-03-24 09:42:16 +00009946_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009947
a.rottmann84e63352003-03-24 09:42:16 +00009948 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009949 # Split the substitutions into bite-sized pieces for seds with
9950 # small command number limits, like on Digital OSF/1 and HP-UX.
9951 ac_max_sed_lines=48
9952 ac_sed_frag=1 # Number of current file.
9953 ac_beg=1 # First line for current file.
9954 ac_end=$ac_max_sed_lines # Line after last line for current file.
9955 ac_more_lines=:
9956 ac_sed_cmds=
9957 while $ac_more_lines; do
9958 if test $ac_beg -gt 1; then
9959 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9960 else
9961 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9962 fi
9963 if test ! -s $tmp/subs.frag; then
9964 ac_more_lines=false
9965 else
9966 # The purpose of the label and of the branching condition is to
9967 # speed up the sed processing (if there are no `@' at all, there
9968 # is no need to browse any of the substitutions).
9969 # These are the two extra sed commands mentioned above.
9970 (echo ':t
9971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9972 if test -z "$ac_sed_cmds"; then
9973 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9974 else
9975 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9976 fi
9977 ac_sed_frag=`expr $ac_sed_frag + 1`
9978 ac_beg=$ac_end
9979 ac_end=`expr $ac_end + $ac_max_sed_lines`
9980 fi
9981 done
9982 if test -z "$ac_sed_cmds"; then
9983 ac_sed_cmds=cat
9984 fi
9985fi # test -n "$CONFIG_FILES"
9986
a.rottmann84e63352003-03-24 09:42:16 +00009987_ACEOF
9988cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009989for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9991 case $ac_file in
9992 - | *:- | *:-:* ) # input from stdin
9993 cat >$tmp/stdin
9994 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9996 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9998 * ) ac_file_in=$ac_file.in ;;
9999 esac
10000
10001 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000010002 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10003$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
drh71eb93e2001-09-28 01:34:43 +000010004 X"$ac_file" : 'X\(//\)[^/]' \| \
10005 X"$ac_file" : 'X\(//\)$' \| \
10006 X"$ac_file" : 'X\(/\)' \| \
10007 . : '\(.\)' 2>/dev/null ||
10008echo X"$ac_file" |
10009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10011 /^X\(\/\/\)$/{ s//\1/; q; }
10012 /^X\(\/\).*/{ s//\1/; q; }
10013 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000010014 { if $as_mkdir_p; then
10015 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000010016 else
a.rottmann84e63352003-03-24 09:42:16 +000010017 as_dir="$ac_dir"
10018 as_dirs=
10019 while test ! -d "$as_dir"; do
10020 as_dirs="$as_dir $as_dirs"
10021 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10023 X"$as_dir" : 'X\(//\)[^/]' \| \
10024 X"$as_dir" : 'X\(//\)$' \| \
10025 X"$as_dir" : 'X\(/\)' \| \
10026 . : '\(.\)' 2>/dev/null ||
10027echo X"$as_dir" |
10028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10030 /^X\(\/\/\)$/{ s//\1/; q; }
10031 /^X\(\/\).*/{ s//\1/; q; }
10032 s/.*/./; q'`
10033 done
10034 test ! -n "$as_dirs" || mkdir $as_dirs
10035 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10036echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10037 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000010038
a.rottmann84e63352003-03-24 09:42:16 +000010039 ac_builddir=.
10040
10041if test "$ac_dir" != .; then
10042 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10043 # A "../" for each directory in $ac_dir_suffix.
10044 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10045else
10046 ac_dir_suffix= ac_top_builddir=
10047fi
10048
10049case $srcdir in
10050 .) # No --srcdir option. We are building in place.
10051 ac_srcdir=.
10052 if test -z "$ac_top_builddir"; then
10053 ac_top_srcdir=.
10054 else
10055 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10056 fi ;;
10057 [\\/]* | ?:[\\/]* ) # Absolute path.
10058 ac_srcdir=$srcdir$ac_dir_suffix;
10059 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000010060 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000010061 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10062 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10063esac
10064# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10065# absolute.
10066ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10067ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10068ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10069ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10070
drh75897232000-05-29 14:26:00 +000010071
drh71eb93e2001-09-28 01:34:43 +000010072 case $INSTALL in
10073 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000010074 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000010075 esac
10076
drh71eb93e2001-09-28 01:34:43 +000010077 if test x"$ac_file" != x-; then
a.rottmann84e63352003-03-24 09:42:16 +000010078 { echo "$as_me:$LINENO: creating $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +000010079echo "$as_me: creating $ac_file" >&6;}
10080 rm -f "$ac_file"
10081 fi
10082 # Let's still pretend it is `configure' which instantiates (i.e., don't
10083 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000010084 # /* config.h. Generated by config.status. */
10085 if test x"$ac_file" = x-; then
10086 configure_input=
10087 else
10088 configure_input="$ac_file. "
10089 fi
10090 configure_input=$configure_input"Generated from `echo $ac_file_in |
10091 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000010092
drh71eb93e2001-09-28 01:34:43 +000010093 # First look for the input files in the build tree, otherwise in the
10094 # src tree.
10095 ac_file_inputs=`IFS=:
10096 for f in $ac_file_in; do
10097 case $f in
10098 -) echo $tmp/stdin ;;
10099 [\\/$]*)
10100 # Absolute (can't be DOS-style, as IFS=:)
a.rottmann84e63352003-03-24 09:42:16 +000010101 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010102echo "$as_me: error: cannot find input file: $f" >&2;}
10103 { (exit 1); exit 1; }; }
10104 echo $f;;
10105 *) # Relative
10106 if test -f "$f"; then
10107 # Build tree
10108 echo $f
10109 elif test -f "$srcdir/$f"; then
10110 # Source tree
10111 echo $srcdir/$f
10112 else
10113 # /dev/null tree
a.rottmann84e63352003-03-24 09:42:16 +000010114 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010115echo "$as_me: error: cannot find input file: $f" >&2;}
10116 { (exit 1); exit 1; }; }
10117 fi;;
10118 esac
10119 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000010120_ACEOF
10121cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010122 sed "$ac_vpsub
10123$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000010124_ACEOF
10125cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010126:t
10127/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10128s,@configure_input@,$configure_input,;t t
10129s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010130s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000010131s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010132s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10133s,@builddir@,$ac_builddir,;t t
10134s,@abs_builddir@,$ac_abs_builddir,;t t
10135s,@top_builddir@,$ac_top_builddir,;t t
10136s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000010137s,@INSTALL@,$ac_INSTALL,;t t
10138" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10139 rm -f $tmp/stdin
10140 if test x"$ac_file" != x-; then
10141 mv $tmp/out $ac_file
10142 else
10143 cat $tmp/out
10144 rm -f $tmp/out
10145 fi
drh75897232000-05-29 14:26:00 +000010146
drh71eb93e2001-09-28 01:34:43 +000010147done
a.rottmann84e63352003-03-24 09:42:16 +000010148_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010149
a.rottmann84e63352003-03-24 09:42:16 +000010150cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010151
10152{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000010153_ACEOF
drh75897232000-05-29 14:26:00 +000010154chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000010155ac_clean_files=$ac_clean_files_save
10156
a.rottmann84e63352003-03-24 09:42:16 +000010157
drh71eb93e2001-09-28 01:34:43 +000010158# configure is writing to config.log, and then calls config.status.
10159# config.status does its own redirection, appending to config.log.
10160# Unfortunately, on DOS this fails, as config.log is still kept open
10161# by configure, so config.status won't be able to write to it; its
10162# output is simply discarded. So we exec the FD to /dev/null,
10163# effectively closing config.log, so it can be properly (re)opened and
10164# appended to by config.status. When coming back to configure, we
10165# need to make the FD available again.
10166if test "$no_create" != yes; then
10167 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000010168 ac_config_status_args=
10169 test "$silent" = yes &&
10170 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000010171 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000010172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000010173 exec 5>>config.log
10174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10175 # would make configure fail if this is the last instruction.
10176 $ac_cs_success || { (exit 1); exit 1; }
10177fi
drh75897232000-05-29 14:26:00 +000010178