blob: 9351db0eb752e5943c06295a206a3737a605c314 [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.rottmann964dbb12004-02-26 19:47:42 +00003# Generated by GNU Autoconf 2.59.
drh75897232000-05-29 14:26:00 +00004#
a.rottmann964dbb12004-02-26 19:47:42 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
a.rottmann964dbb12004-02-26 19:47:42 +000022DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000023
24# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000026 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
a.rottmann964dbb12004-02-26 19:47:42 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +000045 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
a.rottmann964dbb12004-02-26 19:47:42 +0000221 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000229
230# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
drh75897232000-05-29 14:26:00 +0000243
drh71eb93e2001-09-28 01:34:43 +0000244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
a.rottmann84e63352003-03-24 09:42:16 +0000249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
drh71eb93e2001-09-28 01:34:43 +0000251 esac
a.rottmann84e63352003-03-24 09:42:16 +0000252 PATH_SEPARATOR=$lt_cv_sys_path_separator
drh71eb93e2001-09-28 01:34:43 +0000253fi
254
a.rottmann84e63352003-03-24 09:42:16 +0000255
drh71eb93e2001-09-28 01:34:43 +0000256# Check that we are running under the correct shell.
257SHELL=${CONFIG_SHELL-/bin/sh}
258
259case X$ECHO in
260X*--fallback-echo)
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263 ;;
264esac
265
266echo=${ECHO-echo}
267if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
269 shift
270elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
272 :
273elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
275 :
276else
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
279fi
280
281if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
283 shift
284 cat <<EOF
a.rottmann84e63352003-03-24 09:42:16 +0000285
drh71eb93e2001-09-28 01:34:43 +0000286EOF
287 exit 0
288fi
289
290# The HP-UX ksh and POSIX shell print the target directory to stdout
291# if CDPATH is set.
292if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293
294if test -z "$ECHO"; then
295if test "X${echo_test_string+set}" != Xset; then
296# find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302 then
303 break
304 fi
305 done
306fi
307
308if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
311 :
312else
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
316 #
317 # So, first we look for a working echo in the user's PATH.
318
a.rottmann84e63352003-03-24 09:42:16 +0000319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000320 for dir in $PATH /usr/ucb; do
drh71eb93e2001-09-28 01:34:43 +0000321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 echo="$dir/echo"
326 break
327 fi
328 done
a.rottmann84e63352003-03-24 09:42:16 +0000329 IFS="$save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000330
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
337 echo='print -r'
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
344 export CONFIG_SHELL
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346 else
347 # Try using printf.
348 echo='printf %s\n'
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 # Cool, printf works
353 :
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359 export CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
361 export SHELL
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
368 else
369 # maybe with a smaller string...
370 prev=:
371
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 then
375 break
376 fi
377 prev="$cmd"
378 done
379
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384 else
385 # Oops. We lost completely, so just stick with echo.
386 echo=echo
387 fi
388 fi
389 fi
390 fi
391fi
392fi
393
394# Copy echo and quote the copy suitably for passing to libtool from
395# the Makefile, instead of quoting the original, which is used later.
396ECHO=$echo
397if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399fi
400
drh71eb93e2001-09-28 01:34:43 +0000401
drh71eb93e2001-09-28 01:34:43 +0000402
403# Name of the host.
404# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405# so uname gets run too.
406ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407
408exec 6>&1
409
410#
411# Initializations.
412#
drh75897232000-05-29 14:26:00 +0000413ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000414ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000415cross_compiling=no
416subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000417MFLAGS=
418MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000419SHELL=${CONFIG_SHELL-/bin/sh}
420
421# Maximum number of lines to put in a shell here document.
422# This variable seems obsolete. It should probably be removed, and
423# only ac_max_sed_lines should be used.
424: ${ac_max_here_lines=38}
425
a.rottmann84e63352003-03-24 09:42:16 +0000426# Identity of this package.
427PACKAGE_NAME=
428PACKAGE_TARNAME=
429PACKAGE_VERSION=
430PACKAGE_STRING=
431PACKAGE_BUGREPORT=
432
drh71eb93e2001-09-28 01:34:43 +0000433ac_unique_file="src/sqlite.h.in"
a.rottmann84e63352003-03-24 09:42:16 +0000434# Factoring default headers for most tests.
435ac_includes_default="\
436#include <stdio.h>
437#if HAVE_SYS_TYPES_H
438# include <sys/types.h>
439#endif
440#if HAVE_SYS_STAT_H
441# include <sys/stat.h>
442#endif
443#if STDC_HEADERS
444# include <stdlib.h>
445# include <stddef.h>
446#else
447# if HAVE_STDLIB_H
448# include <stdlib.h>
449# endif
450#endif
451#if HAVE_STRING_H
452# if !STDC_HEADERS && HAVE_MEMORY_H
453# include <memory.h>
454# endif
455# include <string.h>
456#endif
457#if HAVE_STRINGS_H
458# include <strings.h>
459#endif
460#if HAVE_INTTYPES_H
461# include <inttypes.h>
462#else
463# if HAVE_STDINT_H
464# include <stdint.h>
465# endif
466#endif
467#if HAVE_UNISTD_H
468# include <unistd.h>
469#endif"
470
a.rottmann964dbb12004-02-26 19:47:42 +0000471ac_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 ALLOWRELEASE INMEMORYDB TEMP_STORE 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 +0000472ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000473
474# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000475ac_init_help=
476ac_init_version=false
drh75897232000-05-29 14:26:00 +0000477# The variables have the same names as the options, with
478# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000479cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000480exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000481no_create=
drh75897232000-05-29 14:26:00 +0000482no_recursion=
483prefix=NONE
484program_prefix=NONE
485program_suffix=NONE
486program_transform_name=s,x,x,
487silent=
488site=
489srcdir=
drh75897232000-05-29 14:26:00 +0000490verbose=
491x_includes=NONE
492x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000493
494# Installation directory options.
495# These are left unexpanded so users can "make install exec_prefix=/foo"
496# and all the variables that are supposed to be based on exec_prefix
497# by default will actually change.
498# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000499bindir='${exec_prefix}/bin'
500sbindir='${exec_prefix}/sbin'
501libexecdir='${exec_prefix}/libexec'
502datadir='${prefix}/share'
503sysconfdir='${prefix}/etc'
504sharedstatedir='${prefix}/com'
505localstatedir='${prefix}/var'
506libdir='${exec_prefix}/lib'
507includedir='${prefix}/include'
508oldincludedir='/usr/include'
509infodir='${prefix}/info'
510mandir='${prefix}/man'
511
drh75897232000-05-29 14:26:00 +0000512ac_prev=
513for ac_option
514do
drh75897232000-05-29 14:26:00 +0000515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
518 ac_prev=
519 continue
520 fi
521
drh71eb93e2001-09-28 01:34:43 +0000522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000523
524 # Accept the important Cygnus configure options, so we can diagnose typos.
525
drh71eb93e2001-09-28 01:34:43 +0000526 case $ac_option in
drh75897232000-05-29 14:26:00 +0000527
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000531 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000532
533 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000534 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000536 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000537
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000543 cache_file=$ac_optarg ;;
544
545 --config-cache | -C)
546 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000547
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000552 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000553
554 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000556 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000562
563 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000565 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 case $ac_option in
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000572 *) ac_optarg=yes ;;
573 esac
drh71eb93e2001-09-28 01:34:43 +0000574 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000575
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000583 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000584
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
587 with_gas=yes ;;
588
drh71eb93e2001-09-28 01:34:43 +0000589 -help | --help | --hel | --he | -h)
590 ac_init_help=long ;;
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000595
596 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000597 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000598 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000599 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000600
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000606 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000611 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000616 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000623 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000624
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000632 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000637 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000638
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
642
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000644 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000645 no_create=yes ;;
646
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
650
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000658 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000663 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000664
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000670 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000671
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000677 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000678
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000694 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000695
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
698 silent=yes ;;
699
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000704 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000705
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000715 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000720 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000725 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000726
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000732 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000735 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000737 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
drh71eb93e2001-09-28 01:34:43 +0000742 -version | --version | --versio | --versi | --vers | -V)
743 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000744
745 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000747 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000751 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000752 case $ac_option in
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000754 *) ac_optarg=yes ;;
755 esac
drh71eb93e2001-09-28 01:34:43 +0000756 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000757
758 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000760 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000766
767 --x)
768 # Obsolete; use --with-x.
769 with_x=yes ;;
770
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000776 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000777
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000783 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000784
drh71eb93e2001-09-28 01:34:43 +0000785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000788 ;;
789
drh71eb93e2001-09-28 01:34:43 +0000790 *=*)
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
798 export $ac_envvar ;;
799
drh75897232000-05-29 14:26:00 +0000800 *)
drh71eb93e2001-09-28 01:34:43 +0000801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000806 ;;
807
808 esac
809done
810
811if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000815fi
816
drh71eb93e2001-09-28 01:34:43 +0000817# Be sure to have absolute paths.
818for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000819do
drh71eb93e2001-09-28 01:34:43 +0000820 eval ac_val=$`echo $ac_var`
821 case $ac_val in
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000824 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000825 esac
826done
827
drh71eb93e2001-09-28 01:34:43 +0000828# Be sure to have absolute paths.
829for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
a.rottmann964dbb12004-02-26 19:47:42 +0000830 localstatedir libdir includedir oldincludedir infodir mandir
drh71eb93e2001-09-28 01:34:43 +0000831do
832 eval ac_val=$`echo $ac_var`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000836 { (exit 1); exit 1; }; };;
837 esac
838done
drh75897232000-05-29 14:26:00 +0000839
drh71eb93e2001-09-28 01:34:43 +0000840# There might be people who depend on the old broken behavior: `$host'
841# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000842# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000843build=$build_alias
844host=$host_alias
845target=$target_alias
drh75897232000-05-29 14:26:00 +0000846
a.rottmann84e63352003-03-24 09:42:16 +0000847# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000848if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
854 cross_compiling=yes
855 fi
856fi
857
858ac_tool_prefix=
859test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000862
a.rottmann84e63352003-03-24 09:42:16 +0000863
drh75897232000-05-29 14:26:00 +0000864# Find the source files, if location was not specified.
865if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
a.rottmann84e63352003-03-24 09:42:16 +0000868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +0000870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +0000874echo X"$0" |
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
879 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000880 srcdir=$ac_confdir
881 if test ! -r $srcdir/$ac_unique_file; then
882 srcdir=..
883 fi
884else
885 ac_srcdir_defaulted=no
886fi
887if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +0000889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000890 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000891 else
a.rottmann84e63352003-03-24 09:42:16 +0000892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +0000893 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000894 fi
895fi
a.rottmann84e63352003-03-24 09:42:16 +0000896(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +0000899srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900ac_env_build_alias_set=${build_alias+set}
901ac_env_build_alias_value=$build_alias
902ac_cv_env_build_alias_set=${build_alias+set}
903ac_cv_env_build_alias_value=$build_alias
904ac_env_host_alias_set=${host_alias+set}
905ac_env_host_alias_value=$host_alias
906ac_cv_env_host_alias_set=${host_alias+set}
907ac_cv_env_host_alias_value=$host_alias
908ac_env_target_alias_set=${target_alias+set}
909ac_env_target_alias_value=$target_alias
910ac_cv_env_target_alias_set=${target_alias+set}
911ac_cv_env_target_alias_value=$target_alias
912ac_env_CC_set=${CC+set}
913ac_env_CC_value=$CC
914ac_cv_env_CC_set=${CC+set}
915ac_cv_env_CC_value=$CC
916ac_env_CFLAGS_set=${CFLAGS+set}
917ac_env_CFLAGS_value=$CFLAGS
918ac_cv_env_CFLAGS_set=${CFLAGS+set}
919ac_cv_env_CFLAGS_value=$CFLAGS
920ac_env_LDFLAGS_set=${LDFLAGS+set}
921ac_env_LDFLAGS_value=$LDFLAGS
922ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923ac_cv_env_LDFLAGS_value=$LDFLAGS
924ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_env_CPPFLAGS_value=$CPPFLAGS
926ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928ac_env_CPP_set=${CPP+set}
929ac_env_CPP_value=$CPP
930ac_cv_env_CPP_set=${CPP+set}
931ac_cv_env_CPP_value=$CPP
drh75897232000-05-29 14:26:00 +0000932
drh71eb93e2001-09-28 01:34:43 +0000933#
934# Report the --help message.
935#
936if test "$ac_init_help" = "long"; then
937 # Omit some internal or obsolete options to make the list less imposing.
938 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000939 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000940\`configure' configures this package to adapt to many kinds of systems.
941
942Usage: $0 [OPTION]... [VAR=VALUE]...
943
944To assign environment variables (e.g., CC, CFLAGS...), specify them as
945VAR=VALUE. See below for descriptions of some of the useful variables.
946
947Defaults for the options are specified in brackets.
948
949Configuration:
950 -h, --help display this help and exit
951 --help=short display options specific to this package
952 --help=recursive display the short help of all the included packages
953 -V, --version display version information and exit
954 -q, --quiet, --silent do not print \`checking...' messages
955 --cache-file=FILE cache test results in FILE [disabled]
956 -C, --config-cache alias for \`--cache-file=config.cache'
957 -n, --no-create do not create output files
958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
959
a.rottmann84e63352003-03-24 09:42:16 +0000960_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000961
a.rottmann84e63352003-03-24 09:42:16 +0000962 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000963Installation directories:
964 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000965 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +0000966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +0000967 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +0000968
969By default, \`make install' will install all the files in
970\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
971an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972for instance \`--prefix=\$HOME'.
973
974For better control, use the options below.
975
976Fine tuning of the installation directories:
977 --bindir=DIR user executables [EPREFIX/bin]
978 --sbindir=DIR system admin executables [EPREFIX/sbin]
979 --libexecdir=DIR program executables [EPREFIX/libexec]
980 --datadir=DIR read-only architecture-independent data [PREFIX/share]
981 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
982 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
983 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
984 --libdir=DIR object code libraries [EPREFIX/lib]
985 --includedir=DIR C header files [PREFIX/include]
986 --oldincludedir=DIR C header files for non-gcc [/usr/include]
987 --infodir=DIR info documentation [PREFIX/info]
988 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +0000989_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000990
a.rottmann84e63352003-03-24 09:42:16 +0000991 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000992
993System types:
994 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +0000995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000997fi
998
999if test -n "$ac_init_help"; then
1000
a.rottmann84e63352003-03-24 09:42:16 +00001001 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001002
1003Optional Features:
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a.rottmann84e63352003-03-24 09:42:16 +00001006 --enable-shared=PKGS build shared libraries default=yes
1007 --enable-static=PKGS build static libraries default=yes
1008 --enable-fast-install=PKGS optimize for fast installation default=yes
drh71eb93e2001-09-28 01:34:43 +00001009 --disable-libtool-lock avoid locking (might break parallel builds)
1010 --enable-utf8 Use UTF-8 encodings
paulb0208cc2003-04-13 18:26:49 +00001011 --enable-incore-db Support incore database
xdong28f79f72003-09-23 00:35:21 +00001012 --enable-releasemode Support libtool link to release mode
paulb0208cc2003-04-13 18:26:49 +00001013 --enable-tempdb-in-ram Use an in-ram database for temporary tables
drh71eb93e2001-09-28 01:34:43 +00001014
1015Optional Packages:
1016 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1017 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann84e63352003-03-24 09:42:16 +00001018 --with-gnu-ld assume the C compiler uses GNU ld default=no
1019 --with-pic try to use only PIC/non-PIC objects default=use both
drh71eb93e2001-09-28 01:34:43 +00001020 --with-hints=FILE Read configuration options from FILE
1021
1022Some influential environment variables:
1023 CC C compiler command
1024 CFLAGS C compiler flags
1025 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1026 nonstandard directory <lib dir>
1027 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1028 headers in a nonstandard directory <include dir>
1029 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
a.rottmann84e63352003-03-24 09:42:16 +00001034_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001043
a.rottmann84e63352003-03-24 09:42:16 +00001044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
drh71eb93e2001-09-28 01:34:43 +00001051
a.rottmann84e63352003-03-24 09:42:16 +00001052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
a.rottmann964dbb12004-02-26 19:47:42 +00001067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105esac
a.rottmann84e63352003-03-24 09:42:16 +00001106
1107 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001108 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001109 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001110 echo
a.rottmann84e63352003-03-24 09:42:16 +00001111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001113 echo
a.rottmann84e63352003-03-24 09:42:16 +00001114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
a.rottmann964dbb12004-02-26 19:47:42 +00001116 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001117 echo
1118 $ac_configure --help
1119 else
a.rottmann84e63352003-03-24 09:42:16 +00001120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001121 fi
a.rottmann964dbb12004-02-26 19:47:42 +00001122 cd "$ac_popdir"
drh71eb93e2001-09-28 01:34:43 +00001123 done
1124fi
1125
1126test -n "$ac_init_help" && exit 0
1127if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001128 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001129
a.rottmann964dbb12004-02-26 19:47:42 +00001130Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001133_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001134 exit 0
1135fi
1136exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001137cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +00001142generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001143
1144 $ $0 $@
1145
a.rottmann84e63352003-03-24 09:42:16 +00001146_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001147{
1148cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001149## --------- ##
1150## Platform. ##
1151## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
drh71eb93e2001-09-28 01:34:43 +00001170_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
drh71eb93e2001-09-28 01:34:43 +00001180} >&5
1181
a.rottmann84e63352003-03-24 09:42:16 +00001182cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001183
a.rottmann84e63352003-03-24 09:42:16 +00001184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
drh71eb93e2001-09-28 01:34:43 +00001191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001194# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001195# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001196# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001197ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001198ac_configure_args0=
1199ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001200ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001201ac_must_keep_next=false
1202for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001203do
a.rottmann84e63352003-03-24 09:42:16 +00001204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001219 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001220 else
a.rottmann964dbb12004-02-26 19:47:42 +00001221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
a.rottmann84e63352003-03-24 09:42:16 +00001232 fi
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1236 ;;
1237 esac
1238 done
drh71eb93e2001-09-28 01:34:43 +00001239done
a.rottmann84e63352003-03-24 09:42:16 +00001240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001260{
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh71eb93e2001-09-28 01:34:43 +00001267 ;;
1268 *)
1269 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00001270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00001271 ;;
1272 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001273}
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
1298 eval ac_val=$`echo $ac_var`
a.rottmann964dbb12004-02-26 19:47:42 +00001299 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
a.rottmann964dbb12004-02-26 19:47:42 +00001318 rm -f core *.core &&
a.rottmann84e63352003-03-24 09:42:16 +00001319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001320 exit $exit_status
1321 ' 0
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1331
a.rottmann84e63352003-03-24 09:42:16 +00001332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
drh71eb93e2001-09-28 01:34:43 +00001359# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001360# Prefer explicitly selected file to automatically selected ones.
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
1367fi
1368for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001371echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001372 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1387 fi
drh75897232000-05-29 14:26:00 +00001388else
a.rottmann84e63352003-03-24 09:42:16 +00001389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
1397for ac_var in `(set) 2>&1 |
a.rottmann964dbb12004-02-26 19:47:42 +00001398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001418echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001420echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001421 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001422 fi;;
1423 esac
a.rottmann84e63352003-03-24 09:42:16 +00001424 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001443fi
1444
1445ac_ext=c
drh75897232000-05-29 14:26:00 +00001446ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001450
a.rottmann84e63352003-03-24 09:42:16 +00001451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
drh75897232000-05-29 14:26:00 +00001469
1470# The following RCS revision string applies to configure.in
a.rottmann964dbb12004-02-26 19:47:42 +00001471# $Revision: 1.20 $
drh75897232000-05-29 14:26:00 +00001472
1473#########
drh71eb93e2001-09-28 01:34:43 +00001474# Programs needed
drh75897232000-05-29 14:26:00 +00001475#
drh71eb93e2001-09-28 01:34:43 +00001476# Check whether --enable-shared or --disable-shared was given.
1477if test "${enable_shared+set}" = set; then
1478 enableval="$enable_shared"
1479 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001480case $enableval in
1481yes) enable_shared=yes ;;
1482no) enable_shared=no ;;
1483*)
1484 enable_shared=no
1485 # Look at the argument we got. We use all the common list separators.
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1487 for pkg in $enableval; do
1488 if test "X$pkg" = "X$p"; then
1489 enable_shared=yes
1490 fi
1491 done
1492 IFS="$ac_save_ifs"
1493 ;;
1494esac
drh71eb93e2001-09-28 01:34:43 +00001495else
1496 enable_shared=yes
1497fi;
drh71eb93e2001-09-28 01:34:43 +00001498# Check whether --enable-static or --disable-static was given.
1499if test "${enable_static+set}" = set; then
1500 enableval="$enable_static"
1501 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001502case $enableval in
1503yes) enable_static=yes ;;
1504no) enable_static=no ;;
1505*)
1506 enable_static=no
1507 # Look at the argument we got. We use all the common list separators.
1508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1509 for pkg in $enableval; do
1510 if test "X$pkg" = "X$p"; then
1511 enable_static=yes
1512 fi
1513 done
1514 IFS="$ac_save_ifs"
1515 ;;
1516esac
drh71eb93e2001-09-28 01:34:43 +00001517else
1518 enable_static=yes
1519fi;
drh71eb93e2001-09-28 01:34:43 +00001520# Check whether --enable-fast-install or --disable-fast-install was given.
1521if test "${enable_fast_install+set}" = set; then
1522 enableval="$enable_fast_install"
1523 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001524case $enableval in
1525yes) enable_fast_install=yes ;;
1526no) enable_fast_install=no ;;
1527*)
1528 enable_fast_install=no
1529 # Look at the argument we got. We use all the common list separators.
1530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1531 for pkg in $enableval; do
1532 if test "X$pkg" = "X$p"; then
1533 enable_fast_install=yes
1534 fi
1535 done
1536 IFS="$ac_save_ifs"
1537 ;;
1538esac
drh71eb93e2001-09-28 01:34:43 +00001539else
1540 enable_fast_install=yes
1541fi;
drh71eb93e2001-09-28 01:34:43 +00001542ac_aux_dir=
1543for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1544 if test -f $ac_dir/install-sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 break
1548 elif test -f $ac_dir/install.sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1551 break
1552 elif test -f $ac_dir/shtool; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 break
1556 fi
1557done
1558if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001560echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1561 { (exit 1); exit 1; }; }
1562fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567# Make sure we can run config.sub.
1568$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001569 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001570echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1571 { (exit 1); exit 1; }; }
1572
a.rottmann84e63352003-03-24 09:42:16 +00001573echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001574echo $ECHO_N "checking build system type... $ECHO_C" >&6
1575if test "${ac_cv_build+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_build_alias=$build_alias
1579test -z "$ac_cv_build_alias" &&
1580 ac_cv_build_alias=`$ac_config_guess`
1581test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001582 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001583echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1584 { (exit 1); exit 1; }; }
1585ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001586 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1587echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001588 { (exit 1); exit 1; }; }
1589
1590fi
a.rottmann84e63352003-03-24 09:42:16 +00001591echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001592echo "${ECHO_T}$ac_cv_build" >&6
1593build=$ac_cv_build
1594build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597
a.rottmann84e63352003-03-24 09:42:16 +00001598
1599echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001600echo $ECHO_N "checking host system type... $ECHO_C" >&6
1601if test "${ac_cv_host+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604 ac_cv_host_alias=$host_alias
1605test -z "$ac_cv_host_alias" &&
1606 ac_cv_host_alias=$ac_cv_build_alias
1607ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001608 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001609echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1610 { (exit 1); exit 1; }; }
1611
1612fi
a.rottmann84e63352003-03-24 09:42:16 +00001613echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001614echo "${ECHO_T}$ac_cv_host" >&6
1615host=$ac_cv_host
1616host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1617host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1618host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619
a.rottmann84e63352003-03-24 09:42:16 +00001620
drh71eb93e2001-09-28 01:34:43 +00001621ac_ext=c
1622ac_cpp='$CPP $CPPFLAGS'
1623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1625ac_compiler_gnu=$ac_cv_c_compiler_gnu
1626if test -n "$ac_tool_prefix"; then
1627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1628set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001629echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631if test "${ac_cv_prog_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 if test -n "$CC"; then
1635 ac_cv_prog_CC="$CC" # Let the user override the test.
1636else
a.rottmann84e63352003-03-24 09:42:16 +00001637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
drh71eb93e2001-09-28 01:34:43 +00001649done
1650
1651fi
1652fi
1653CC=$ac_cv_prog_CC
1654if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001655 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001656echo "${ECHO_T}$CC" >&6
1657else
a.rottmann84e63352003-03-24 09:42:16 +00001658 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001659echo "${ECHO_T}no" >&6
1660fi
1661
1662fi
1663if test -z "$ac_cv_prog_CC"; then
1664 ac_ct_CC=$CC
1665 # Extract the first word of "gcc", so it can be a program name with args.
1666set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001667echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674else
a.rottmann84e63352003-03-24 09:42:16 +00001675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="gcc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1685 fi
1686done
drh71eb93e2001-09-28 01:34:43 +00001687done
1688
1689fi
1690fi
1691ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001694echo "${ECHO_T}$ac_ct_CC" >&6
1695else
a.rottmann84e63352003-03-24 09:42:16 +00001696 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001697echo "${ECHO_T}no" >&6
1698fi
1699
1700 CC=$ac_ct_CC
1701else
1702 CC="$ac_cv_prog_CC"
1703fi
1704
1705if test -z "$CC"; then
1706 if test -n "$ac_tool_prefix"; then
1707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1708set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001709echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1716else
a.rottmann84e63352003-03-24 09:42:16 +00001717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_CC="${ac_tool_prefix}cc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728done
drh71eb93e2001-09-28 01:34:43 +00001729done
1730
1731fi
1732fi
1733CC=$ac_cv_prog_CC
1734if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001735 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001736echo "${ECHO_T}$CC" >&6
1737else
a.rottmann84e63352003-03-24 09:42:16 +00001738 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001739echo "${ECHO_T}no" >&6
1740fi
1741
1742fi
1743if test -z "$ac_cv_prog_CC"; then
1744 ac_ct_CC=$CC
1745 # Extract the first word of "cc", so it can be a program name with args.
1746set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001747echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751else
1752 if test -n "$ac_ct_CC"; then
1753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1754else
a.rottmann84e63352003-03-24 09:42:16 +00001755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756for as_dir in $PATH
1757do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_ac_ct_CC="cc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 break 2
1765 fi
1766done
drh71eb93e2001-09-28 01:34:43 +00001767done
1768
1769fi
1770fi
1771ac_ct_CC=$ac_cv_prog_ac_ct_CC
1772if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001773 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001774echo "${ECHO_T}$ac_ct_CC" >&6
1775else
a.rottmann84e63352003-03-24 09:42:16 +00001776 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001777echo "${ECHO_T}no" >&6
1778fi
1779
1780 CC=$ac_ct_CC
1781else
1782 CC="$ac_cv_prog_CC"
1783fi
1784
1785fi
1786if test -z "$CC"; then
1787 # Extract the first word of "cc", so it can be a program name with args.
1788set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001789echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791if test "${ac_cv_prog_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1796else
1797 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799for as_dir in $PATH
1800do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1806 ac_prog_rejected=yes
1807 continue
1808 fi
1809 ac_cv_prog_CC="cc"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 break 2
1812 fi
1813done
drh71eb93e2001-09-28 01:34:43 +00001814done
1815
1816if test $ac_prog_rejected = yes; then
1817 # We found a bogon in the path, so make sure we never use it.
1818 set dummy $ac_cv_prog_CC
1819 shift
1820 if test $# != 0; then
1821 # We chose a different compiler from the bogus one.
1822 # However, it has the same basename, so the bogon will be chosen
1823 # first if we set CC to just the basename; use the full file name.
1824 shift
a.rottmann84e63352003-03-24 09:42:16 +00001825 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001826 fi
1827fi
1828fi
1829fi
1830CC=$ac_cv_prog_CC
1831if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001832 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001833echo "${ECHO_T}$CC" >&6
1834else
a.rottmann84e63352003-03-24 09:42:16 +00001835 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001836echo "${ECHO_T}no" >&6
1837fi
1838
1839fi
1840if test -z "$CC"; then
1841 if test -n "$ac_tool_prefix"; then
1842 for ac_prog in cl
1843 do
1844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1845set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001846echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848if test "${ac_cv_prog_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850else
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1853else
a.rottmann84e63352003-03-24 09:42:16 +00001854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1864 fi
1865done
drh71eb93e2001-09-28 01:34:43 +00001866done
1867
1868fi
1869fi
1870CC=$ac_cv_prog_CC
1871if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001872 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001873echo "${ECHO_T}$CC" >&6
1874else
a.rottmann84e63352003-03-24 09:42:16 +00001875 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001876echo "${ECHO_T}no" >&6
1877fi
1878
1879 test -n "$CC" && break
1880 done
1881fi
1882if test -z "$CC"; then
1883 ac_ct_CC=$CC
1884 for ac_prog in cl
1885do
1886 # Extract the first word of "$ac_prog", so it can be a program name with args.
1887set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001888echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895else
a.rottmann84e63352003-03-24 09:42:16 +00001896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_CC="$ac_prog"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1906 fi
1907done
drh71eb93e2001-09-28 01:34:43 +00001908done
1909
1910fi
1911fi
1912ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001914 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001915echo "${ECHO_T}$ac_ct_CC" >&6
1916else
a.rottmann84e63352003-03-24 09:42:16 +00001917 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001918echo "${ECHO_T}no" >&6
1919fi
1920
1921 test -n "$ac_ct_CC" && break
1922done
1923
1924 CC=$ac_ct_CC
1925fi
1926
1927fi
1928
a.rottmann84e63352003-03-24 09:42:16 +00001929
1930test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: no acceptable C compiler found in \$PATH
1933See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001934 { (exit 1); exit 1; }; }
1935
1936# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001937echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001938 "checking for C compiler version" >&5
1939ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001940{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001941 (eval $ac_compiler --version </dev/null >&5) 2>&5
1942 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001944 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001945{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001946 (eval $ac_compiler -v </dev/null >&5) 2>&5
1947 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001949 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001950{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001951 (eval $ac_compiler -V </dev/null >&5) 2>&5
1952 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001954 (exit $ac_status); }
1955
1956cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001957/* confdefs.h. */
1958_ACEOF
1959cat confdefs.h >>conftest.$ac_ext
1960cat >>conftest.$ac_ext <<_ACEOF
1961/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001962
1963int
1964main ()
1965{
1966
1967 ;
1968 return 0;
1969}
1970_ACEOF
1971ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00001972ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00001973# Try to create an executable without -o first, disregard a.out.
1974# It will help us diagnose broken compilers, and finding out an intuition
1975# of exeext.
a.rottmann964dbb12004-02-26 19:47:42 +00001976echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1977echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001978ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00001979if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001980 (eval $ac_link_default) 2>&5
1981 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001983 (exit $ac_status); }; then
1984 # Find the output, starting from the most likely. This scheme is
1985# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1986# resort.
a.rottmann84e63352003-03-24 09:42:16 +00001987
1988# Be careful to initialize this variable, since it used to be cached.
1989# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1990ac_cv_exeext=
1991# b.out is created by i960 compilers.
1992for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1993do
1994 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00001995 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00001996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00001997 ;;
a.rottmann84e63352003-03-24 09:42:16 +00001998 conftest.$ac_ext )
a.rottmann964dbb12004-02-26 19:47:42 +00001999 # This is the source file.
2000 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002001 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002002 # We found the default executable, but exeext='' is most
2003 # certainly right.
2004 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002005 *.* )
a.rottmann964dbb12004-02-26 19:47:42 +00002006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007 # FIXME: I believe we export ac_cv_exeext for Libtool,
2008 # but it would be cool to find out if it's true. Does anybody
2009 # maintain Libtool? --akim.
2010 export ac_cv_exeext
2011 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002012 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002013 break;;
drh71eb93e2001-09-28 01:34:43 +00002014 esac
2015done
2016else
2017 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2021See \`config.log' for more details." >&5
2022echo "$as_me: error: C compiler cannot create executables
2023See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002024 { (exit 77); exit 77; }; }
2025fi
2026
2027ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002028echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00002029echo "${ECHO_T}$ac_file" >&6
2030
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 the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002034echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2035# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2036# If not cross compiling, check that we can run a simple program.
2037if test "$cross_compiling" != yes; then
2038 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002040 (eval $ac_try) 2>&5
2041 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002043 (exit $ac_status); }; }; then
2044 cross_compiling=no
2045 else
2046 if test "$cross_compiling" = maybe; then
2047 cross_compiling=yes
2048 else
a.rottmann84e63352003-03-24 09:42:16 +00002049 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2050If you meant to cross compile, use \`--host'.
2051See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002052echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002053If you meant to cross compile, use \`--host'.
2054See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002055 { (exit 1); exit 1; }; }
2056 fi
2057 fi
2058fi
a.rottmann84e63352003-03-24 09:42:16 +00002059echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002060echo "${ECHO_T}yes" >&6
2061
a.rottmann84e63352003-03-24 09:42:16 +00002062rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002063ac_clean_files=$ac_clean_files_save
2064# Check the compiler produces executables we can run. If not, either
2065# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002066echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002067echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002068echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002069echo "${ECHO_T}$cross_compiling" >&6
2070
a.rottmann84e63352003-03-24 09:42:16 +00002071echo "$as_me:$LINENO: checking for suffix of executables" >&5
2072echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002074 (eval $ac_link) 2>&5
2075 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002077 (exit $ac_status); }; then
2078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2079# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2080# work properly (i.e., refer to `conftest.exe'), while it won't with
2081# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002082for ac_file in conftest.exe conftest conftest.*; do
2083 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002084 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002087 export ac_cv_exeext
2088 break;;
drh71eb93e2001-09-28 01:34:43 +00002089 * ) break;;
2090 esac
2091done
2092else
a.rottmann84e63352003-03-24 09:42:16 +00002093 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2094See \`config.log' for more details." >&5
2095echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2096See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002097 { (exit 1); exit 1; }; }
2098fi
2099
2100rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002101echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002102echo "${ECHO_T}$ac_cv_exeext" >&6
2103
2104rm -f conftest.$ac_ext
2105EXEEXT=$ac_cv_exeext
2106ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002107echo "$as_me:$LINENO: checking for suffix of object files" >&5
2108echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002109if test "${ac_cv_objext+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111else
2112 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002113/* confdefs.h. */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
2117/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002118
2119int
2120main ()
2121{
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002129 (eval $ac_compile) 2>&5
2130 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002132 (exit $ac_status); }; then
2133 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2134 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2137 break;;
2138 esac
2139done
2140else
2141 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2145See \`config.log' for more details." >&5
2146echo "$as_me: error: cannot compute suffix of object files: cannot compile
2147See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002148 { (exit 1); exit 1; }; }
2149fi
2150
2151rm -f conftest.$ac_cv_objext conftest.$ac_ext
2152fi
a.rottmann84e63352003-03-24 09:42:16 +00002153echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002154echo "${ECHO_T}$ac_cv_objext" >&6
2155OBJEXT=$ac_cv_objext
2156ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002157echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002158echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2159if test "${ac_cv_c_compiler_gnu+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002163/* confdefs.h. */
2164_ACEOF
2165cat confdefs.h >>conftest.$ac_ext
2166cat >>conftest.$ac_ext <<_ACEOF
2167/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002168
2169int
2170main ()
2171{
2172#ifndef __GNUC__
2173 choke me
2174#endif
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002182 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002183 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002184 grep -v '^ *+' conftest.er1 >conftest.err
2185 rm -f conftest.er1
2186 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002188 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002197 (eval $ac_try) 2>&5
2198 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002200 (exit $ac_status); }; }; then
2201 ac_compiler_gnu=yes
2202else
2203 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002204sed 's/^/| /' conftest.$ac_ext >&5
2205
drh71eb93e2001-09-28 01:34:43 +00002206ac_compiler_gnu=no
2207fi
a.rottmann964dbb12004-02-26 19:47:42 +00002208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002209ac_cv_c_compiler_gnu=$ac_compiler_gnu
2210
2211fi
a.rottmann84e63352003-03-24 09:42:16 +00002212echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002213echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2214GCC=`test $ac_compiler_gnu = yes && echo yes`
2215ac_test_CFLAGS=${CFLAGS+set}
2216ac_save_CFLAGS=$CFLAGS
2217CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002218echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002219echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2220if test "${ac_cv_prog_cc_g+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002224/* confdefs.h. */
2225_ACEOF
2226cat confdefs.h >>conftest.$ac_ext
2227cat >>conftest.$ac_ext <<_ACEOF
2228/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002229
2230int
2231main ()
2232{
2233
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002240 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002241 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002242 grep -v '^ *+' conftest.er1 >conftest.err
2243 rm -f conftest.er1
2244 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002246 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002255 (eval $ac_try) 2>&5
2256 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260else
2261 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002262sed 's/^/| /' conftest.$ac_ext >&5
2263
drh71eb93e2001-09-28 01:34:43 +00002264ac_cv_prog_cc_g=no
2265fi
a.rottmann964dbb12004-02-26 19:47:42 +00002266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002267fi
a.rottmann84e63352003-03-24 09:42:16 +00002268echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2277 fi
2278else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284fi
a.rottmann84e63352003-03-24 09:42:16 +00002285echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 ac_cv_prog_cc_stdc=no
2291ac_save_CC=$CC
2292cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h. */
2298#include <stdarg.h>
2299#include <stdio.h>
2300#include <sys/types.h>
2301#include <sys/stat.h>
2302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303struct buf { int x; };
2304FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305static char *e (p, i)
2306 char **p;
2307 int i;
2308{
2309 return p[i];
2310}
2311static char *f (char * (*g) (char **, int), char **p, ...)
2312{
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2319}
a.rottmann964dbb12004-02-26 19:47:42 +00002320
2321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
a.rottmann84e63352003-03-24 09:42:16 +00002330int test (int i, double x);
2331struct s1 {int (*f) (int a);};
2332struct s2 {int (*f) (double a);};
2333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334int argc;
2335char **argv;
2336int
2337main ()
2338{
2339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344# Don't try gcc -ansi; that turns off useful extensions and
2345# breaks some systems' header files.
2346# AIX -qlanglvl=ansi
2347# Ultrix and OSF/1 -std1
2348# HP-UX 10.20 and later -Ae
2349# HP-UX older versions -Aa -D_HPUX_SOURCE
2350# SVR4 -Xc -D__EXTENSIONS__
2351for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352do
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002356 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002357 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378 echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
a.rottmann964dbb12004-02-26 19:47:42 +00002382rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390 x|xno)
2391 echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393 *)
2394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396 CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
drh71eb93e2001-09-28 01:34:43 +00002399# Some people use a C++ compiler to compile C. Since we use `exit',
2400# in C++ we need to declare it. In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405 choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002410 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002411 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002416 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002425 (eval $ac_try) 2>&5
2426 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002428 (exit $ac_status); }; }; then
2429 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00002430 '' \
drh71eb93e2001-09-28 01:34:43 +00002431 'extern "C" void std::exit (int) throw (); using std::exit;' \
2432 'extern "C" void std::exit (int); using std::exit;' \
2433 'extern "C" void exit (int) throw ();' \
2434 'extern "C" void exit (int);' \
2435 'void exit (int);'
2436do
2437 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002438/* confdefs.h. */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002443$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00002444#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00002445int
2446main ()
2447{
2448exit (42);
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002455 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002456 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002461 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002470 (eval $ac_try) 2>&5
2471 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002473 (exit $ac_status); }; }; then
2474 :
2475else
2476 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002477sed 's/^/| /' conftest.$ac_ext >&5
2478
drh71eb93e2001-09-28 01:34:43 +00002479continue
2480fi
a.rottmann964dbb12004-02-26 19:47:42 +00002481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002482 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002488$ac_declaration
2489int
2490main ()
2491{
2492exit (42);
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00002499 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002500 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002505 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00002506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002514 (eval $ac_try) 2>&5
2515 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002517 (exit $ac_status); }; }; then
2518 break
2519else
2520 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002521sed 's/^/| /' conftest.$ac_ext >&5
2522
drh71eb93e2001-09-28 01:34:43 +00002523fi
a.rottmann964dbb12004-02-26 19:47:42 +00002524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002525done
2526rm -f conftest*
2527if test -n "$ac_declaration"; then
2528 echo '#ifdef __cplusplus' >>confdefs.h
2529 echo $ac_declaration >>confdefs.h
2530 echo '#endif' >>confdefs.h
2531fi
2532
2533else
2534 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002535sed 's/^/| /' conftest.$ac_ext >&5
2536
drh71eb93e2001-09-28 01:34:43 +00002537fi
a.rottmann964dbb12004-02-26 19:47:42 +00002538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002539ac_ext=c
2540ac_cpp='$CPP $CPPFLAGS'
2541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544
a.rottmann84e63352003-03-24 09:42:16 +00002545# Find the correct PATH separator. Usually this is `:', but
2546# DJGPP uses `;' like DOS.
2547if test "X${PATH_SEPARATOR+set}" != Xset; then
2548 UNAME=${UNAME-`uname 2>/dev/null`}
2549 case X$UNAME in
2550 *-DOS) lt_cv_sys_path_separator=';' ;;
2551 *) lt_cv_sys_path_separator=':' ;;
2552 esac
2553 PATH_SEPARATOR=$lt_cv_sys_path_separator
2554fi
2555
2556
drh71eb93e2001-09-28 01:34:43 +00002557# Check whether --with-gnu-ld or --without-gnu-ld was given.
2558if test "${with_gnu_ld+set}" = set; then
2559 withval="$with_gnu_ld"
2560 test "$withval" = no || with_gnu_ld=yes
2561else
2562 with_gnu_ld=no
2563fi;
2564ac_prog=ld
2565if test "$GCC" = yes; then
2566 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann84e63352003-03-24 09:42:16 +00002567 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
drh71eb93e2001-09-28 01:34:43 +00002568echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2569 case $host in
2570 *-*-mingw*)
2571 # gcc leaves a trailing carriage return which upsets mingw
2572 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2573 *)
2574 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2575 esac
2576 case $ac_prog in
2577 # Accept absolute paths.
a.rottmann84e63352003-03-24 09:42:16 +00002578 [\\/]* | [A-Za-z]:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002579 re_direlt='/[^/][^/]*/\.\./'
2580 # Canonicalize the path of ld
2581 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2582 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2583 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2584 done
2585 test -z "$LD" && LD="$ac_prog"
2586 ;;
2587 "")
2588 # If it fails, then pretend we aren't using GCC.
2589 ac_prog=ld
2590 ;;
2591 *)
2592 # If it is relative, then search for the first ld in PATH.
2593 with_gnu_ld=unknown
2594 ;;
2595 esac
2596elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002597 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002598echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2599else
a.rottmann84e63352003-03-24 09:42:16 +00002600 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002601echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2602fi
2603if test "${lt_cv_path_LD+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 if test -z "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002608 for ac_dir in $PATH; do
drh71eb93e2001-09-28 01:34:43 +00002609 test -z "$ac_dir" && ac_dir=.
2610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2611 lt_cv_path_LD="$ac_dir/$ac_prog"
2612 # Check to see if the program is GNU ld. I'd rather use --version,
2613 # but apparently some GNU ld's only accept -v.
2614 # Break only if it was the GNU/non-GNU ld that we prefer.
2615 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2616 test "$with_gnu_ld" != no && break
2617 else
2618 test "$with_gnu_ld" != yes && break
2619 fi
2620 fi
2621 done
a.rottmann84e63352003-03-24 09:42:16 +00002622 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002623else
2624 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2625fi
2626fi
2627
2628LD="$lt_cv_path_LD"
2629if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002630 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002631echo "${ECHO_T}$LD" >&6
2632else
a.rottmann84e63352003-03-24 09:42:16 +00002633 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002634echo "${ECHO_T}no" >&6
2635fi
a.rottmann84e63352003-03-24 09:42:16 +00002636test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002637echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2638 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002639echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002640echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2641if test "${lt_cv_prog_gnu_ld+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2645if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2646 lt_cv_prog_gnu_ld=yes
2647else
2648 lt_cv_prog_gnu_ld=no
2649fi
2650fi
a.rottmann84e63352003-03-24 09:42:16 +00002651echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002652echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2653with_gnu_ld=$lt_cv_prog_gnu_ld
2654
a.rottmann84e63352003-03-24 09:42:16 +00002655
2656echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002657echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2658if test "${lt_cv_ld_reload_flag+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 lt_cv_ld_reload_flag='-r'
2662fi
a.rottmann84e63352003-03-24 09:42:16 +00002663echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002664echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2665reload_flag=$lt_cv_ld_reload_flag
a.rottmann84e63352003-03-24 09:42:16 +00002666test -n "$reload_flag" && reload_flag=" $reload_flag"
drh71eb93e2001-09-28 01:34:43 +00002667
a.rottmann84e63352003-03-24 09:42:16 +00002668echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002669echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2670if test "${lt_cv_path_NM+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 if test -n "$NM"; then
2674 # Let the user override the test.
2675 lt_cv_path_NM="$NM"
2676else
a.rottmann84e63352003-03-24 09:42:16 +00002677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002678 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
drh71eb93e2001-09-28 01:34:43 +00002679 test -z "$ac_dir" && ac_dir=.
2680 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2681 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2682 # Check to see if the nm accepts a BSD-compat flag.
2683 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2684 # nm: unknown option "B" ignored
2685 # Tru64's nm complains that /dev/null is an invalid object file
2686 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2687 lt_cv_path_NM="$tmp_nm -B"
2688 break
2689 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2690 lt_cv_path_NM="$tmp_nm -p"
2691 break
2692 else
2693 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2694 continue # so that we can try to find one that supports BSD flags
2695 fi
2696 fi
2697 done
a.rottmann84e63352003-03-24 09:42:16 +00002698 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002699 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2700fi
2701fi
drh71eb93e2001-09-28 01:34:43 +00002702
a.rottmann84e63352003-03-24 09:42:16 +00002703NM="$lt_cv_path_NM"
2704echo "$as_me:$LINENO: result: $NM" >&5
2705echo "${ECHO_T}$NM" >&6
2706
2707echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2708echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2709if test "${lt_cv_path_SED+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712 # Loop through the user's path and test for sed and gsed.
2713# Then use that list of sed's as ones to test for truncation.
2714as_executable_p="test -f"
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_prog in sed gsed; do
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2723 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2724 fi
2725 done
2726 done
2727done
2728
2729 # Create a temporary directory, and hook for its removal unless debugging.
2730$debug ||
2731{
2732 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2733 trap '{ (exit 1); exit 1; }' 1 2 13 15
2734}
2735
2736# Create a (secure) tmp directory for tmp files.
2737: ${TMPDIR=/tmp}
2738{
2739 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2740 test -n "$tmp" && test -d "$tmp"
2741} ||
2742{
2743 tmp=$TMPDIR/sed$$-$RANDOM
2744 (umask 077 && mkdir $tmp)
2745} ||
2746{
2747 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2748 { (exit 1); exit 1; }
2749}
2750 _max=0
2751 _count=0
2752 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2753 # along with /bin/sed that truncates output.
2754 for _sed in $_sed_list /usr/xpg4/bin/sed; do
2755 test ! -f ${_sed} && break
2756 cat /dev/null > "$tmp/sed.in"
2757 _count=0
2758 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2759 # Check for GNU sed and select it if it is found.
2760 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
2761 lt_cv_path_SED=${_sed}
2762 break
2763 fi
2764 while true; do
2765 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2766 mv "$tmp/sed.tmp" "$tmp/sed.in"
2767 cp "$tmp/sed.in" "$tmp/sed.nl"
2768 echo >>"$tmp/sed.nl"
2769 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
2770 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
2771 # 40000 chars as input seems more than enough
2772 test $_count -gt 10 && break
2773 _count=`expr $_count + 1`
2774 if test $_count -gt $_max; then
2775 _max=$_count
2776 lt_cv_path_SED=$_sed
2777 fi
2778 done
2779 done
2780 rm -rf "$tmp"
2781
2782fi
2783
2784if test "X$SED" != "X"; then
2785 lt_cv_path_SED=$SED
2786else
2787 SED=$lt_cv_path_SED
2788fi
2789echo "$as_me:$LINENO: result: $SED" >&5
2790echo "${ECHO_T}$SED" >&6
2791
2792echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002793echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2794LN_S=$as_ln_s
2795if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002796 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002797echo "${ECHO_T}yes" >&6
2798else
a.rottmann84e63352003-03-24 09:42:16 +00002799 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002800echo "${ECHO_T}no, using $LN_S" >&6
2801fi
2802
a.rottmann84e63352003-03-24 09:42:16 +00002803echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2804echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002805if test "${lt_cv_deplibs_check_method+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808 lt_cv_file_magic_cmd='$MAGIC_CMD'
2809lt_cv_file_magic_test_file=
2810lt_cv_deplibs_check_method='unknown'
2811# Need to set the preceding variable on all platforms that support
2812# interlibrary dependencies.
2813# 'none' -- dependencies not supported.
2814# `unknown' -- same as none, but documents that we really don't know.
2815# 'pass_all' -- all dependencies passed with no checks.
2816# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002817# 'file_magic [[regex]]' -- check by looking for files in library path
drh71eb93e2001-09-28 01:34:43 +00002818# which responds to the $file_magic_cmd with a given egrep regex.
2819# If you have `file' or equivalent on your system and you're not sure
2820# whether `pass_all' will *always* work, you probably want this one.
2821
2822case $host_os in
2823aix4* | aix5*)
2824 lt_cv_deplibs_check_method=pass_all
2825 ;;
2826
2827beos*)
2828 lt_cv_deplibs_check_method=pass_all
2829 ;;
2830
2831bsdi4*)
2832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2833 lt_cv_file_magic_cmd='/usr/bin/file -L'
2834 lt_cv_file_magic_test_file=/shlib/libc.so
2835 ;;
2836
2837cygwin* | mingw* | pw32*)
2838 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2839 lt_cv_file_magic_cmd='$OBJDUMP -f'
2840 ;;
2841
2842darwin* | rhapsody*)
2843 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2844 lt_cv_file_magic_cmd='/usr/bin/file -L'
2845 case "$host_os" in
a.rottmann84e63352003-03-24 09:42:16 +00002846 rhapsody* | darwin1.[012])
2847 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
drh71eb93e2001-09-28 01:34:43 +00002848 ;;
2849 *) # Darwin 1.3 on
2850 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2851 ;;
2852 esac
2853 ;;
2854
2855freebsd*)
2856 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2857 case $host_cpu in
2858 i*86 )
2859 # Not sure whether the presence of OpenBSD here was a mistake.
2860 # Let's accept both of them until this is cleared up.
2861 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2862 lt_cv_file_magic_cmd=/usr/bin/file
2863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2864 ;;
2865 esac
2866 else
2867 lt_cv_deplibs_check_method=pass_all
2868 fi
2869 ;;
2870
2871gnu*)
2872 lt_cv_deplibs_check_method=pass_all
2873 ;;
2874
a.rottmann84e63352003-03-24 09:42:16 +00002875hpux10.20*|hpux11*)
2876 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 +00002877 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann84e63352003-03-24 09:42:16 +00002878 lt_cv_file_magic_test_file=/usr/lib/libc.sl
drh71eb93e2001-09-28 01:34:43 +00002879 ;;
2880
a.rottmann84e63352003-03-24 09:42:16 +00002881irix5* | irix6* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002882 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00002883 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002884 # this will be overridden with pass_all, but let us keep it just in case
2885 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2886 ;;
2887 *)
2888 case $LD in
2889 *-32|*"-32 ") libmagic=32-bit;;
2890 *-n32|*"-n32 ") libmagic=N32;;
2891 *-64|*"-64 ") libmagic=64-bit;;
2892 *) libmagic=never-match;;
2893 esac
2894 # this will be overridden with pass_all, but let us keep it just in case
2895 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2896 ;;
2897 esac
2898 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2899 lt_cv_deplibs_check_method=pass_all
2900 ;;
2901
2902# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00002903linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00002904 case $host_cpu in
a.rottmann84e63352003-03-24 09:42:16 +00002905 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
drh71eb93e2001-09-28 01:34:43 +00002906 lt_cv_deplibs_check_method=pass_all ;;
2907 *)
2908 # glibc up to 2.1.1 does not perform some relocations on ARM
2909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2910 esac
2911 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2912 ;;
2913
2914netbsd*)
2915 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2916 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2917 else
2918 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2919 fi
2920 ;;
2921
2922newos6*)
2923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2924 lt_cv_file_magic_cmd=/usr/bin/file
2925 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2926 ;;
2927
a.rottmann84e63352003-03-24 09:42:16 +00002928openbsd*)
2929 lt_cv_file_magic_cmd=/usr/bin/file
2930 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2933 else
2934 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2935 fi
drh71eb93e2001-09-28 01:34:43 +00002936 ;;
2937
2938osf3* | osf4* | osf5*)
2939 # this will be overridden with pass_all, but let us keep it just in case
2940 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2941 lt_cv_file_magic_test_file=/shlib/libc.so
2942 lt_cv_deplibs_check_method=pass_all
2943 ;;
2944
2945sco3.2v5*)
2946 lt_cv_deplibs_check_method=pass_all
2947 ;;
2948
2949solaris*)
2950 lt_cv_deplibs_check_method=pass_all
2951 lt_cv_file_magic_test_file=/lib/libc.so
2952 ;;
2953
a.rottmann84e63352003-03-24 09:42:16 +00002954sysv5uw[78]* | sysv4*uw2*)
2955 lt_cv_deplibs_check_method=pass_all
2956 ;;
2957
drh71eb93e2001-09-28 01:34:43 +00002958sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2959 case $host_vendor in
2960 motorola)
2961 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]'
2962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2963 ;;
2964 ncr)
2965 lt_cv_deplibs_check_method=pass_all
2966 ;;
2967 sequent)
2968 lt_cv_file_magic_cmd='/bin/file'
2969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2970 ;;
2971 sni)
2972 lt_cv_file_magic_cmd='/bin/file'
2973 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2974 lt_cv_file_magic_test_file=/lib/libc.so
2975 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002976 siemens)
2977 lt_cv_deplibs_check_method=pass_all
2978 ;;
drh71eb93e2001-09-28 01:34:43 +00002979 esac
2980 ;;
drh71eb93e2001-09-28 01:34:43 +00002981esac
2982
2983fi
a.rottmann84e63352003-03-24 09:42:16 +00002984echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00002985echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2986file_magic_cmd=$lt_cv_file_magic_cmd
2987deplibs_check_method=$lt_cv_deplibs_check_method
drh71eb93e2001-09-28 01:34:43 +00002988
drh71eb93e2001-09-28 01:34:43 +00002989
drh71eb93e2001-09-28 01:34:43 +00002990
drh71eb93e2001-09-28 01:34:43 +00002991
drh71eb93e2001-09-28 01:34:43 +00002992
drh71eb93e2001-09-28 01:34:43 +00002993
drh71eb93e2001-09-28 01:34:43 +00002994
drh71eb93e2001-09-28 01:34:43 +00002995
2996# Check for command to grab the raw symbol name followed by C symbol from nm.
a.rottmann84e63352003-03-24 09:42:16 +00002997echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2998echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002999if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002
3003# These are sane defaults that work on at least a few old systems.
3004# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3005
3006# Character class describing NM global symbol codes.
3007symcode='[BCDEGRST]'
3008
3009# Regexp to match symbols that can be accessed directly from C.
3010sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3011
3012# Transform the above into a raw symbol and a C symbol.
3013symxfrm='\1 \2\3 \3'
3014
3015# Transform an extracted symbol line into a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00003016lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
drh71eb93e2001-09-28 01:34:43 +00003017
3018# Transform an extracted symbol line into symbol name and symbol address
a.rottmann84e63352003-03-24 09:42:16 +00003019lt_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 +00003020
3021# Define system-specific variables.
3022case $host_os in
3023aix*)
3024 symcode='[BCDT]'
3025 ;;
3026cygwin* | mingw* | pw32*)
3027 symcode='[ABCDGISTW]'
3028 ;;
3029hpux*) # Its linker distinguishes data from code symbols
a.rottmann84e63352003-03-24 09:42:16 +00003030 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3031 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 +00003032 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003033irix* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00003034 symcode='[BCDEGRST]'
3035 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003036osf*)
3037 symcode='[BCDEGQRST]'
3038 ;;
drh71eb93e2001-09-28 01:34:43 +00003039solaris* | sysv5*)
3040 symcode='[BDT]'
3041 ;;
3042sysv4)
3043 symcode='[DFNSTU]'
3044 ;;
3045esac
3046
3047# Handle CRLF in mingw tool chain
3048opt_cr=
3049case $host_os in
3050mingw*)
3051 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3052 ;;
3053esac
3054
3055# If we're using GNU nm, then use its standard symbol codes.
3056if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3057 symcode='[ABCDGISTW]'
3058fi
3059
3060# Try without a prefix undercore, then with it.
3061for ac_symprfx in "" "_"; do
3062
3063 # Write the raw and C identifiers.
3064lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3065
3066 # Check to see that the pipe works correctly.
3067 pipe_works=no
drh71eb93e2001-09-28 01:34:43 +00003068 rm -f conftest*
3069 cat > conftest.$ac_ext <<EOF
3070#ifdef __cplusplus
3071extern "C" {
3072#endif
3073char nm_test_var;
3074void nm_test_func(){}
3075#ifdef __cplusplus
3076}
3077#endif
3078int main(){nm_test_var='a';nm_test_func();return(0);}
3079EOF
3080
a.rottmann84e63352003-03-24 09:42:16 +00003081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003082 (eval $ac_compile) 2>&5
3083 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003085 (exit $ac_status); }; then
3086 # Now try to grab the symbols.
3087 nlist=conftest.nm
a.rottmann84e63352003-03-24 09:42:16 +00003088 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003089 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3090 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003092 (exit $ac_status); } && test -s "$nlist"; then
3093 # Try sorting and uniquifying the output.
3094 if sort "$nlist" | uniq > "$nlist"T; then
3095 mv -f "$nlist"T "$nlist"
3096 else
3097 rm -f "$nlist"T
3098 fi
3099
3100 # Make sure that we snagged all the symbols we need.
3101 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3102 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3103 cat <<EOF > conftest.$ac_ext
3104#ifdef __cplusplus
3105extern "C" {
3106#endif
3107
3108EOF
3109 # Now generate the symbol file.
a.rottmann84e63352003-03-24 09:42:16 +00003110 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
drh71eb93e2001-09-28 01:34:43 +00003111
3112 cat <<EOF >> conftest.$ac_ext
3113#if defined (__STDC__) && __STDC__
a.rottmann84e63352003-03-24 09:42:16 +00003114# define lt_ptr void *
drh71eb93e2001-09-28 01:34:43 +00003115#else
a.rottmann84e63352003-03-24 09:42:16 +00003116# define lt_ptr char *
drh71eb93e2001-09-28 01:34:43 +00003117# define const
3118#endif
3119
3120/* The mapping between symbol names and symbols. */
3121const struct {
3122 const char *name;
a.rottmann84e63352003-03-24 09:42:16 +00003123 lt_ptr address;
drh71eb93e2001-09-28 01:34:43 +00003124}
3125lt_preloaded_symbols[] =
3126{
3127EOF
a.rottmann84e63352003-03-24 09:42:16 +00003128 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003129 cat <<\EOF >> conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003130 {0, (lt_ptr) 0}
drh71eb93e2001-09-28 01:34:43 +00003131};
3132
3133#ifdef __cplusplus
3134}
3135#endif
3136EOF
3137 # Now try linking the two files.
3138 mv conftest.$ac_objext conftstm.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00003139 save_LIBS="$LIBS"
3140 save_CFLAGS="$CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003141 LIBS="conftstm.$ac_objext"
a.rottmann84e63352003-03-24 09:42:16 +00003142 CFLAGS="$CFLAGS$no_builtin_flag"
3143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003144 (eval $ac_link) 2>&5
3145 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && test -s conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00003148 pipe_works=yes
3149 fi
a.rottmann84e63352003-03-24 09:42:16 +00003150 LIBS="$save_LIBS"
3151 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003152 else
3153 echo "cannot find nm_test_func in $nlist" >&5
3154 fi
3155 else
3156 echo "cannot find nm_test_var in $nlist" >&5
3157 fi
3158 else
3159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3160 fi
3161 else
3162 echo "$progname: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 fi
3165 rm -f conftest* conftst*
3166
3167 # Do not use the global_symbol_pipe unless it works.
3168 if test "$pipe_works" = yes; then
3169 break
3170 else
3171 lt_cv_sys_global_symbol_pipe=
3172 fi
3173done
3174
3175fi
3176
a.rottmann84e63352003-03-24 09:42:16 +00003177global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
drh71eb93e2001-09-28 01:34:43 +00003178if test -z "$lt_cv_sys_global_symbol_pipe"; then
a.rottmann84e63352003-03-24 09:42:16 +00003179 global_symbol_to_cdecl=
3180 global_symbol_to_c_name_address=
3181else
3182 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3183 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
drh71eb93e2001-09-28 01:34:43 +00003184fi
a.rottmann84e63352003-03-24 09:42:16 +00003185if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3186then
3187 echo "$as_me:$LINENO: result: failed" >&5
drh71eb93e2001-09-28 01:34:43 +00003188echo "${ECHO_T}failed" >&6
3189else
a.rottmann84e63352003-03-24 09:42:16 +00003190 echo "$as_me:$LINENO: result: ok" >&5
drh71eb93e2001-09-28 01:34:43 +00003191echo "${ECHO_T}ok" >&6
3192fi
3193
a.rottmann84e63352003-03-24 09:42:16 +00003194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3200echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3201# On Suns, sometimes $CPP names a directory.
3202if test -n "$CPP" && test -d "$CPP"; then
3203 CPP=
3204fi
3205if test -z "$CPP"; then
3206 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
a.rottmann84e63352003-03-24 09:42:16 +00003209 # Double quotes because CPP needs to be expanded
3210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3211 do
3212 ac_preproc_ok=false
3213for ac_c_preproc_warn_flag in '' yes
3214do
3215 # Use a header file that comes with gcc, so configuring glibc
3216 # with a fresh cross-compiler works.
3217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3218 # <limits.h> exists even on freestanding compilers.
3219 # On the NeXT, cc -E runs the code through the compiler's parser,
3220 # not just through cpp. "Syntax error" is here to catch this case.
3221 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227#ifdef __STDC__
3228# include <limits.h>
3229#else
3230# include <assert.h>
3231#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003232 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003233_ACEOF
3234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } >/dev/null; then
3242 if test -s conftest.err; then
3243 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003245 else
3246 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003247 fi
a.rottmann84e63352003-03-24 09:42:16 +00003248else
3249 ac_cpp_err=yes
3250fi
3251if test -z "$ac_cpp_err"; then
3252 :
3253else
3254 echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 # Broken: fails on valid input.
3258continue
3259fi
3260rm -f conftest.err conftest.$ac_ext
3261
3262 # OK, works on sane cases. Now check whether non-existent headers
3263 # can be detected and how.
3264 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003265/* confdefs.h. */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h. */
3270#include <ac_nonexistent.h>
3271_ACEOF
3272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } >/dev/null; then
3280 if test -s conftest.err; then
3281 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003283 else
3284 ac_cpp_err=
3285 fi
3286else
3287 ac_cpp_err=yes
3288fi
3289if test -z "$ac_cpp_err"; then
3290 # Broken: success on invalid input.
3291continue
3292else
3293 echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 # Passes both tests.
3297ac_preproc_ok=:
3298break
3299fi
3300rm -f conftest.err conftest.$ac_ext
3301
3302done
3303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3304rm -f conftest.err conftest.$ac_ext
3305if $ac_preproc_ok; then
3306 break
3307fi
3308
3309 done
3310 ac_cv_prog_CPP=$CPP
3311
3312fi
3313 CPP=$ac_cv_prog_CPP
3314else
3315 ac_cv_prog_CPP=$CPP
3316fi
3317echo "$as_me:$LINENO: result: $CPP" >&5
3318echo "${ECHO_T}$CPP" >&6
3319ac_preproc_ok=false
3320for ac_c_preproc_warn_flag in '' yes
3321do
3322 # Use a header file that comes with gcc, so configuring glibc
3323 # with a fresh cross-compiler works.
3324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3325 # <limits.h> exists even on freestanding compilers.
3326 # On the NeXT, cc -E runs the code through the compiler's parser,
3327 # not just through cpp. "Syntax error" is here to catch this case.
3328 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003329/* confdefs.h. */
3330_ACEOF
3331cat confdefs.h >>conftest.$ac_ext
3332cat >>conftest.$ac_ext <<_ACEOF
3333/* end confdefs.h. */
3334#ifdef __STDC__
3335# include <limits.h>
3336#else
3337# include <assert.h>
3338#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003339 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003340_ACEOF
3341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } >/dev/null; then
3349 if test -s conftest.err; then
3350 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003352 else
3353 ac_cpp_err=
3354 fi
3355else
3356 ac_cpp_err=yes
3357fi
3358if test -z "$ac_cpp_err"; then
3359 :
3360else
3361 echo "$as_me: failed program was:" >&5
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 # Broken: fails on valid input.
3365continue
3366fi
3367rm -f conftest.err conftest.$ac_ext
3368
3369 # OK, works on sane cases. Now check whether non-existent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
3377#include <ac_nonexistent.h>
3378_ACEOF
3379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null; then
3387 if test -s conftest.err; then
3388 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003390 else
3391 ac_cpp_err=
3392 fi
3393else
3394 ac_cpp_err=yes
3395fi
3396if test -z "$ac_cpp_err"; then
3397 # Broken: success on invalid input.
3398continue
3399else
3400 echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 # Passes both tests.
3404ac_preproc_ok=:
3405break
3406fi
3407rm -f conftest.err conftest.$ac_ext
3408
3409done
3410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3411rm -f conftest.err conftest.$ac_ext
3412if $ac_preproc_ok; then
3413 :
3414else
3415 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3416See \`config.log' for more details." >&5
3417echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3418See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }
3420fi
3421
3422ac_ext=c
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427
3428
3429echo "$as_me:$LINENO: checking for egrep" >&5
3430echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3431if test "${ac_cv_prog_egrep+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3435 then ac_cv_prog_egrep='grep -E'
3436 else ac_cv_prog_egrep='egrep'
3437 fi
3438fi
3439echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3440echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3441 EGREP=$ac_cv_prog_egrep
3442
3443
3444echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3445echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3446if test "${ac_cv_header_stdc+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003450/* confdefs.h. */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h. */
3455#include <stdlib.h>
3456#include <stdarg.h>
3457#include <string.h>
3458#include <float.h>
3459
3460int
3461main ()
3462{
3463
3464 ;
3465 return 0;
3466}
3467_ACEOF
3468rm -f conftest.$ac_objext
3469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003470 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003471 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00003477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_header_stdc=yes
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494ac_cv_header_stdc=no
3495fi
a.rottmann964dbb12004-02-26 19:47:42 +00003496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003497
3498if test $ac_cv_header_stdc = yes; then
3499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3500 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
3506#include <string.h>
3507
3508_ACEOF
3509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510 $EGREP "memchr" >/dev/null 2>&1; then
3511 :
3512else
3513 ac_cv_header_stdc=no
3514fi
3515rm -f conftest*
3516
3517fi
3518
3519if test $ac_cv_header_stdc = yes; then
3520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3521 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527#include <stdlib.h>
3528
3529_ACEOF
3530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3531 $EGREP "free" >/dev/null 2>&1; then
3532 :
3533else
3534 ac_cv_header_stdc=no
3535fi
3536rm -f conftest*
3537
3538fi
3539
3540if test $ac_cv_header_stdc = yes; then
3541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3542 if test "$cross_compiling" = yes; then
3543 :
3544else
3545 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551#include <ctype.h>
3552#if ((' ' & 0x0FF) == 0x020)
3553# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3554# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3555#else
3556# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00003557 (('a' <= (c) && (c) <= 'i') \
3558 || ('j' <= (c) && (c) <= 'r') \
3559 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00003560# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3561#endif
3562
3563#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3564int
3565main ()
3566{
3567 int i;
3568 for (i = 0; i < 256; i++)
3569 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00003570 || toupper (i) != TOUPPER (i))
a.rottmann84e63352003-03-24 09:42:16 +00003571 exit(2);
3572 exit (0);
3573}
3574_ACEOF
3575rm -f conftest$ac_exeext
3576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577 (eval $ac_link) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 :
3587else
3588 echo "$as_me: program exited with status $ac_status" >&5
3589echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592( exit $ac_status )
3593ac_cv_header_stdc=no
3594fi
a.rottmann964dbb12004-02-26 19:47:42 +00003595rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003596fi
3597fi
3598fi
3599echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3600echo "${ECHO_T}$ac_cv_header_stdc" >&6
3601if test $ac_cv_header_stdc = yes; then
3602
3603cat >>confdefs.h <<\_ACEOF
3604#define STDC_HEADERS 1
3605_ACEOF
3606
3607fi
3608
3609# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00003620 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00003621do
3622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3623echo "$as_me:$LINENO: checking for $ac_header" >&5
3624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3625if eval "test \"\${$as_ac_Header+set}\" = set"; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627else
3628 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634$ac_includes_default
3635
3636#include <$ac_header>
3637_ACEOF
3638rm -f conftest.$ac_objext
3639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003640 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003641 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00003647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 eval "$as_ac_Header=yes"
3660else
3661 echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664eval "$as_ac_Header=no"
3665fi
a.rottmann964dbb12004-02-26 19:47:42 +00003666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003667fi
3668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3670if test `eval echo '${'$as_ac_Header'}'` = yes; then
3671 cat >>confdefs.h <<_ACEOF
3672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3673_ACEOF
3674
3675fi
3676
3677done
3678
3679
3680
3681for ac_header in dlfcn.h
3682do
3683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3684if eval "test \"\${$as_ac_Header+set}\" = set"; then
3685 echo "$as_me:$LINENO: checking for $ac_header" >&5
3686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3687if eval "test \"\${$as_ac_Header+set}\" = set"; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689fi
3690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3692else
3693 # Is the header compilable?
3694echo "$as_me:$LINENO: checking $ac_header usability" >&5
3695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3696cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
3702$ac_includes_default
3703#include <$ac_header>
3704_ACEOF
3705rm -f conftest.$ac_objext
3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00003707 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003708 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00003714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00003721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_header_compiler=yes
3727else
3728 echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731ac_header_compiler=no
3732fi
a.rottmann964dbb12004-02-26 19:47:42 +00003733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3735echo "${ECHO_T}$ac_header_compiler" >&6
3736
3737# Is the header present?
3738echo "$as_me:$LINENO: checking $ac_header presence" >&5
3739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3740cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
3746#include <$ac_header>
3747_ACEOF
3748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00003758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a.rottmann84e63352003-03-24 09:42:16 +00003759 else
3760 ac_cpp_err=
3761 fi
3762else
3763 ac_cpp_err=yes
3764fi
3765if test -z "$ac_cpp_err"; then
3766 ac_header_preproc=yes
3767else
3768 echo "$as_me: failed program was:" >&5
3769sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 ac_header_preproc=no
3772fi
3773rm -f conftest.err conftest.$ac_ext
3774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3775echo "${ECHO_T}$ac_header_preproc" >&6
3776
3777# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00003778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3779 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00003780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3784 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00003785 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00003786 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00003787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00003797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00003799 (
3800 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00003801## ------------------------------------------ ##
3802## Report this to the AC_PACKAGE_NAME lists. ##
3803## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00003804_ASBOX
3805 ) |
3806 sed "s/^/$as_me: WARNING: /" >&2
3807 ;;
drh71eb93e2001-09-28 01:34:43 +00003808esac
a.rottmann84e63352003-03-24 09:42:16 +00003809echo "$as_me:$LINENO: checking for $ac_header" >&5
3810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3811if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
a.rottmann964dbb12004-02-26 19:47:42 +00003814 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00003815fi
3816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3818
3819fi
3820if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<_ACEOF
3822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823_ACEOF
3824
3825fi
3826
drh71eb93e2001-09-28 01:34:43 +00003827done
3828
drh71eb93e2001-09-28 01:34:43 +00003829
drh71eb93e2001-09-28 01:34:43 +00003830
drh71eb93e2001-09-28 01:34:43 +00003831
drh71eb93e2001-09-28 01:34:43 +00003832
drh71eb93e2001-09-28 01:34:43 +00003833
3834# Only perform the check for file, if the check method requires it
3835case $deplibs_check_method in
3836file_magic*)
3837 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
a.rottmann84e63352003-03-24 09:42:16 +00003838 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh71eb93e2001-09-28 01:34:43 +00003839echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3840if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003844 /*)
drh71eb93e2001-09-28 01:34:43 +00003845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3846 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003847 ?:/*)
3848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3849 ;;
3850 *)
3851 ac_save_MAGIC_CMD="$MAGIC_CMD"
3852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3853 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003854 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003855 test -z "$ac_dir" && ac_dir=.
3856 if test -f $ac_dir/${ac_tool_prefix}file; then
3857 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3858 if test -n "$file_magic_test_file"; then
3859 case $deplibs_check_method in
3860 "file_magic "*)
3861 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3863 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3864 egrep "$file_magic_regex" > /dev/null; then
3865 :
3866 else
3867 cat <<EOF 1>&2
3868
3869*** Warning: the command libtool uses to detect shared libraries,
3870*** $file_magic_cmd, produces output that libtool cannot recognize.
3871*** The result is that libtool may fail to recognize shared libraries
3872*** as such. This will affect the creation of libtool libraries that
3873*** depend on shared libraries, but programs linked with such libtool
3874*** libraries will work regardless of this problem. Nevertheless, you
3875*** may want to report the problem to your system manager and/or to
3876*** bug-libtool@gnu.org
3877
3878EOF
3879 fi ;;
3880 esac
3881 fi
3882 break
3883 fi
3884 done
a.rottmann84e63352003-03-24 09:42:16 +00003885 IFS="$ac_save_ifs"
3886 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003887 ;;
3888esac
3889fi
3890
3891MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3892if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003893 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003894echo "${ECHO_T}$MAGIC_CMD" >&6
3895else
a.rottmann84e63352003-03-24 09:42:16 +00003896 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003897echo "${ECHO_T}no" >&6
3898fi
3899
3900if test -z "$lt_cv_path_MAGIC_CMD"; then
3901 if test -n "$ac_tool_prefix"; then
a.rottmann84e63352003-03-24 09:42:16 +00003902 echo "$as_me:$LINENO: checking for file" >&5
drh71eb93e2001-09-28 01:34:43 +00003903echo $ECHO_N "checking for file... $ECHO_C" >&6
3904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003908 /*)
drh71eb93e2001-09-28 01:34:43 +00003909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3910 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003911 ?:/*)
3912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3913 ;;
3914 *)
3915 ac_save_MAGIC_CMD="$MAGIC_CMD"
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3917 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003918 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/file; then
3921 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3922 if test -n "$file_magic_test_file"; then
3923 case $deplibs_check_method in
3924 "file_magic "*)
3925 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3928 egrep "$file_magic_regex" > /dev/null; then
3929 :
3930 else
3931 cat <<EOF 1>&2
3932
3933*** Warning: the command libtool uses to detect shared libraries,
3934*** $file_magic_cmd, produces output that libtool cannot recognize.
3935*** The result is that libtool may fail to recognize shared libraries
3936*** as such. This will affect the creation of libtool libraries that
3937*** depend on shared libraries, but programs linked with such libtool
3938*** libraries will work regardless of this problem. Nevertheless, you
3939*** may want to report the problem to your system manager and/or to
3940*** bug-libtool@gnu.org
3941
3942EOF
3943 fi ;;
3944 esac
3945 fi
3946 break
3947 fi
3948 done
a.rottmann84e63352003-03-24 09:42:16 +00003949 IFS="$ac_save_ifs"
3950 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003951 ;;
3952esac
3953fi
3954
3955MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3956if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003957 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003958echo "${ECHO_T}$MAGIC_CMD" >&6
3959else
a.rottmann84e63352003-03-24 09:42:16 +00003960 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003961echo "${ECHO_T}no" >&6
3962fi
3963
3964 else
3965 MAGIC_CMD=:
3966 fi
3967fi
3968
3969 fi
3970 ;;
3971esac
3972
a.rottmann84e63352003-03-24 09:42:16 +00003973if test -n "$ac_tool_prefix"; then
3974 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3975set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3976echo "$as_me:$LINENO: checking for $ac_word" >&5
3977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978if test "${ac_cv_prog_RANLIB+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981 if test -n "$RANLIB"; then
3982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995done
3996done
3997
3998fi
3999fi
4000RANLIB=$ac_cv_prog_RANLIB
4001if test -n "$RANLIB"; then
4002 echo "$as_me:$LINENO: result: $RANLIB" >&5
4003echo "${ECHO_T}$RANLIB" >&6
4004else
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
4007fi
4008
4009fi
4010if test -z "$ac_cv_prog_RANLIB"; then
4011 ac_ct_RANLIB=$RANLIB
4012 # Extract the first word of "ranlib", so it can be a program name with args.
4013set dummy ranlib; ac_word=$2
4014echo "$as_me:$LINENO: checking for $ac_word" >&5
4015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 if test -n "$ac_ct_RANLIB"; then
4020 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029 ac_cv_prog_ac_ct_RANLIB="ranlib"
4030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4032 fi
4033done
4034done
4035
4036 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4037fi
4038fi
4039ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4040if test -n "$ac_ct_RANLIB"; then
4041 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4042echo "${ECHO_T}$ac_ct_RANLIB" >&6
4043else
4044 echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6
4046fi
4047
4048 RANLIB=$ac_ct_RANLIB
4049else
4050 RANLIB="$ac_cv_prog_RANLIB"
4051fi
4052
4053if test -n "$ac_tool_prefix"; then
4054 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4055set dummy ${ac_tool_prefix}strip; ac_word=$2
4056echo "$as_me:$LINENO: checking for $ac_word" >&5
4057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058if test "${ac_cv_prog_STRIP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 if test -n "$STRIP"; then
4062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4063else
4064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075done
4076done
4077
4078fi
4079fi
4080STRIP=$ac_cv_prog_STRIP
4081if test -n "$STRIP"; then
4082 echo "$as_me:$LINENO: result: $STRIP" >&5
4083echo "${ECHO_T}$STRIP" >&6
4084else
4085 echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087fi
4088
4089fi
4090if test -z "$ac_cv_prog_STRIP"; then
4091 ac_ct_STRIP=$STRIP
4092 # Extract the first word of "strip", so it can be a program name with args.
4093set dummy strip; ac_word=$2
4094echo "$as_me:$LINENO: checking for $ac_word" >&5
4095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4096if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 if test -n "$ac_ct_STRIP"; then
4100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4101else
4102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103for as_dir in $PATH
4104do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4109 ac_cv_prog_ac_ct_STRIP="strip"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113done
4114done
4115
4116 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4117fi
4118fi
4119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4120if test -n "$ac_ct_STRIP"; then
4121 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4122echo "${ECHO_T}$ac_ct_STRIP" >&6
4123else
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
4126fi
4127
4128 STRIP=$ac_ct_STRIP
4129else
4130 STRIP="$ac_cv_prog_STRIP"
4131fi
4132
4133
drh71eb93e2001-09-28 01:34:43 +00004134enable_dlopen=no
4135enable_win32_dll=no
4136
4137# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4138if test "${enable_libtool_lock+set}" = set; then
4139 enableval="$enable_libtool_lock"
4140
4141fi;
4142test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4143
a.rottmann84e63352003-03-24 09:42:16 +00004144# Some flags need to be propagated to the compiler or linker for good
4145# libtool support.
4146case $host in
4147*-*-irix6*)
4148 # Find out which ABI we are using.
a.rottmann964dbb12004-02-26 19:47:42 +00004149 echo '#line 4149 "configure"' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; then
4155 case `/usr/bin/file conftest.$ac_objext` in
4156 *32-bit*)
4157 LD="${LD-ld} -32"
4158 ;;
4159 *N32*)
4160 LD="${LD-ld} -n32"
4161 ;;
4162 *64-bit*)
4163 LD="${LD-ld} -64"
4164 ;;
4165 esac
4166 fi
4167 rm -rf conftest*
4168 ;;
4169
4170*-*-sco3.2v5*)
4171 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4172 SAVE_CFLAGS="$CFLAGS"
4173 CFLAGS="$CFLAGS -belf"
4174 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4175echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4176if test "${lt_cv_cc_needs_belf+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179
4180
4181 ac_ext=c
4182ac_cpp='$CPP $CPPFLAGS'
4183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186
4187 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h. */
4193
4194int
4195main ()
4196{
4197
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext conftest$ac_exeext
4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00004204 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004205 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00004211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00004218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4223 lt_cv_cc_needs_belf=yes
4224else
4225 echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228lt_cv_cc_needs_belf=no
4229fi
a.rottmann964dbb12004-02-26 19:47:42 +00004230rm -f conftest.err conftest.$ac_objext \
4231 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004232 ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238fi
4239echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4240echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4241 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4242 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4243 CFLAGS="$SAVE_CFLAGS"
4244 fi
4245 ;;
4246
4247
4248esac
4249
4250# Sed substitution that helps us do robust quoting. It backslashifies
4251# metacharacters that are still active within double-quoted strings.
4252Xsed='sed -e s/^X//'
4253sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4254
4255# Same as above, but do not quote variable references.
4256double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4257
4258# Sed substitution to delay expansion of an escaped shell variable in a
4259# double_quote_subst'ed string.
4260delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4261
4262# Constants:
4263rm="rm -f"
4264
4265# Global variables:
4266default_ofile=libtool
4267can_build_shared=yes
4268
4269# All known linkers require a `.a' archive for static linking (except M$VC,
4270# which needs '.lib').
4271libext=a
4272ltmain="$ac_aux_dir/ltmain.sh"
4273ofile="$default_ofile"
4274with_gnu_ld="$lt_cv_prog_gnu_ld"
4275need_locks="$enable_libtool_lock"
4276
4277old_CC="$CC"
4278old_CFLAGS="$CFLAGS"
4279
4280# Set sane defaults for various variables
4281test -z "$AR" && AR=ar
4282test -z "$AR_FLAGS" && AR_FLAGS=cru
4283test -z "$AS" && AS=as
4284test -z "$CC" && CC=cc
4285test -z "$DLLTOOL" && DLLTOOL=dlltool
4286test -z "$LD" && LD=ld
4287test -z "$LN_S" && LN_S="ln -s"
4288test -z "$MAGIC_CMD" && MAGIC_CMD=file
4289test -z "$NM" && NM=nm
4290test -z "$OBJDUMP" && OBJDUMP=objdump
4291test -z "$RANLIB" && RANLIB=:
4292test -z "$STRIP" && STRIP=:
4293test -z "$ac_objext" && ac_objext=o
4294
4295if test x"$host" != x"$build"; then
4296 ac_tool_prefix=${host_alias}-
4297else
4298 ac_tool_prefix=
4299fi
4300
4301# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4302case $host_os in
4303linux-gnu*) ;;
4304linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4305esac
4306
4307case $host_os in
4308aix3*)
4309 # AIX sometimes has problems with the GCC collect2 program. For some
4310 # reason, if we set the COLLECT_NAMES environment variable, the problems
4311 # vanish in a puff of smoke.
4312 if test "X${COLLECT_NAMES+set}" != Xset; then
4313 COLLECT_NAMES=
4314 export COLLECT_NAMES
4315 fi
4316 ;;
4317esac
4318
4319# Determine commands to create old-style static archives.
4320old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4321old_postinstall_cmds='chmod 644 $oldlib'
4322old_postuninstall_cmds=
4323
4324if test -n "$RANLIB"; then
4325 case $host_os in
4326 openbsd*)
4327 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4328 ;;
4329 *)
4330 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4331 ;;
4332 esac
4333 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4334fi
4335
4336# Allow CC to be a program name with arguments.
4337set dummy $CC
4338compiler="$2"
4339
4340echo "$as_me:$LINENO: checking for objdir" >&5
4341echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4342rm -f .libs 2>/dev/null
4343mkdir .libs 2>/dev/null
4344if test -d .libs; then
4345 objdir=.libs
4346else
4347 # MS-DOS does not allow filenames that begin with a dot.
4348 objdir=_libs
4349fi
4350rmdir .libs 2>/dev/null
4351echo "$as_me:$LINENO: result: $objdir" >&5
4352echo "${ECHO_T}$objdir" >&6
4353
4354
4355
drh71eb93e2001-09-28 01:34:43 +00004356# Check whether --with-pic or --without-pic was given.
4357if test "${with_pic+set}" = set; then
4358 withval="$with_pic"
4359 pic_mode="$withval"
4360else
4361 pic_mode=default
4362fi;
4363test -z "$pic_mode" && pic_mode=default
4364
a.rottmann84e63352003-03-24 09:42:16 +00004365# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4366# in isolation, and that seeing it set (from the cache) indicates that
4367# the associated values are set (in the cache) correctly too.
4368echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh71eb93e2001-09-28 01:34:43 +00004369echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004370if test "${lt_cv_prog_cc_pic+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373 lt_cv_prog_cc_pic=
4374 lt_cv_prog_cc_shlib=
4375 lt_cv_prog_cc_wl=
4376 lt_cv_prog_cc_static=
4377 lt_cv_prog_cc_no_builtin=
4378 lt_cv_prog_cc_can_build_shared=$can_build_shared
4379
drh71eb93e2001-09-28 01:34:43 +00004380 if test "$GCC" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00004381 lt_cv_prog_cc_wl='-Wl,'
4382 lt_cv_prog_cc_static='-static'
drh71eb93e2001-09-28 01:34:43 +00004383
4384 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004385 aix*)
4386 # Below there is a dirty hack to force normal static linking with -ldl
4387 # The problem is because libdl dynamically linked with both libc and
4388 # libC (AIX C++ library), which obviously doesn't included in libraries
4389 # list by gcc. This cause undefined symbols with -static flags.
4390 # This hack allows C programs to be linked with "-static -ldl", but
4391 # not sure about C++ programs.
4392 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
drh71eb93e2001-09-28 01:34:43 +00004393 ;;
drh71eb93e2001-09-28 01:34:43 +00004394 amigaos*)
4395 # FIXME: we need at least 68020 code to build shared libraries, but
4396 # adding the `-m68020' flag to GCC prevents building anything better,
4397 # like `-m68040'.
a.rottmann84e63352003-03-24 09:42:16 +00004398 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00004399 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004400 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004401 # PIC is the default for these OSes.
4402 ;;
drh71eb93e2001-09-28 01:34:43 +00004403 darwin* | rhapsody*)
4404 # PIC is the default on this platform
4405 # Common symbols not allowed in MH_DYLIB files
a.rottmann84e63352003-03-24 09:42:16 +00004406 lt_cv_prog_cc_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00004407 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004408 cygwin* | mingw* | pw32* | os2*)
4409 # This hack is so that the source file can tell whether it is being
4410 # built for inclusion in a dll (and should export symbols for example).
4411 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004412 ;;
drh71eb93e2001-09-28 01:34:43 +00004413 sysv4*MP*)
4414 if test -d /usr/nec; then
a.rottmann84e63352003-03-24 09:42:16 +00004415 lt_cv_prog_cc_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00004416 fi
4417 ;;
drh71eb93e2001-09-28 01:34:43 +00004418 *)
a.rottmann84e63352003-03-24 09:42:16 +00004419 lt_cv_prog_cc_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00004420 ;;
4421 esac
4422 else
a.rottmann84e63352003-03-24 09:42:16 +00004423 # PORTME Check for PIC flags for the system compiler.
drh71eb93e2001-09-28 01:34:43 +00004424 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004425 aix3* | aix4* | aix5*)
4426 lt_cv_prog_cc_wl='-Wl,'
4427 # All AIX code is PIC.
drh71eb93e2001-09-28 01:34:43 +00004428 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00004429 # AIX 5 now supports IA64 processor
4430 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004431 else
a.rottmann84e63352003-03-24 09:42:16 +00004432 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00004433 fi
4434 ;;
4435
a.rottmann84e63352003-03-24 09:42:16 +00004436 hpux9* | hpux10* | hpux11*)
4437 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4438 lt_cv_prog_cc_wl='-Wl,'
4439 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4440 lt_cv_prog_cc_pic='+Z'
4441 ;;
4442
4443 irix5* | irix6* | nonstopux*)
4444 lt_cv_prog_cc_wl='-Wl,'
4445 lt_cv_prog_cc_static='-non_shared'
4446 # PIC (with -KPIC) is the default.
4447 ;;
4448
drh71eb93e2001-09-28 01:34:43 +00004449 cygwin* | mingw* | pw32* | os2*)
4450 # This hack is so that the source file can tell whether it is being
4451 # built for inclusion in a dll (and should export symbols for example).
a.rottmann84e63352003-03-24 09:42:16 +00004452 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004453 ;;
4454
4455 newsos6)
a.rottmann84e63352003-03-24 09:42:16 +00004456 lt_cv_prog_cc_pic='-KPIC'
4457 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004458 ;;
4459
4460 osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004461 # All OSF/1 code is PIC.
a.rottmann84e63352003-03-24 09:42:16 +00004462 lt_cv_prog_cc_wl='-Wl,'
4463 lt_cv_prog_cc_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00004464 ;;
4465
4466 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00004467 lt_cv_prog_cc_pic='-Kpic'
4468 lt_cv_prog_cc_static='-dn'
4469 lt_cv_prog_cc_shlib='-belf'
drh71eb93e2001-09-28 01:34:43 +00004470 ;;
4471
4472 solaris*)
a.rottmann84e63352003-03-24 09:42:16 +00004473 lt_cv_prog_cc_pic='-KPIC'
4474 lt_cv_prog_cc_static='-Bstatic'
4475 lt_cv_prog_cc_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00004476 ;;
4477
4478 sunos4*)
a.rottmann84e63352003-03-24 09:42:16 +00004479 lt_cv_prog_cc_pic='-PIC'
4480 lt_cv_prog_cc_static='-Bstatic'
4481 lt_cv_prog_cc_wl='-Qoption ld '
drh71eb93e2001-09-28 01:34:43 +00004482 ;;
4483
4484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann84e63352003-03-24 09:42:16 +00004485 lt_cv_prog_cc_pic='-KPIC'
4486 lt_cv_prog_cc_static='-Bstatic'
4487 lt_cv_prog_cc_wl='-Wl,'
4488 ;;
4489
4490 uts4*)
4491 lt_cv_prog_cc_pic='-pic'
4492 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004493 ;;
4494
4495 sysv4*MP*)
4496 if test -d /usr/nec ;then
a.rottmann84e63352003-03-24 09:42:16 +00004497 lt_cv_prog_cc_pic='-Kconform_pic'
4498 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004499 fi
4500 ;;
4501
drh71eb93e2001-09-28 01:34:43 +00004502 *)
a.rottmann84e63352003-03-24 09:42:16 +00004503 lt_cv_prog_cc_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00004504 ;;
4505 esac
4506 fi
4507
a.rottmann84e63352003-03-24 09:42:16 +00004508fi
drh71eb93e2001-09-28 01:34:43 +00004509
a.rottmann84e63352003-03-24 09:42:16 +00004510if test -z "$lt_cv_prog_cc_pic"; then
4511 echo "$as_me:$LINENO: result: none" >&5
4512echo "${ECHO_T}none" >&6
4513else
4514 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4515echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4516
4517 # Check to make sure the pic_flag actually works.
4518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4519echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4520 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
a.rottmann84e63352003-03-24 09:42:16 +00004523 save_CFLAGS="$CFLAGS"
4524 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4525 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004526/* confdefs.h. */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004531
a.rottmann84e63352003-03-24 09:42:16 +00004532int
4533main ()
4534{
drh71eb93e2001-09-28 01:34:43 +00004535
a.rottmann84e63352003-03-24 09:42:16 +00004536 ;
4537 return 0;
4538}
4539_ACEOF
4540rm -f conftest.$ac_objext
4541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00004542 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004543 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00004549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00004556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 case $host_os in
4562 hpux9* | hpux10* | hpux11*)
4563 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4564 # they create non-PIC objects. So, if there were any warnings, we
4565 # assume that PIC is not supported.
4566 if test -s conftest.err; then
4567 lt_cv_prog_cc_pic_works=no
4568 else
4569 lt_cv_prog_cc_pic_works=yes
4570 fi
4571 ;;
4572 *)
4573 lt_cv_prog_cc_pic_works=yes
4574 ;;
4575 esac
4576
drh71eb93e2001-09-28 01:34:43 +00004577else
a.rottmann84e63352003-03-24 09:42:16 +00004578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 lt_cv_prog_cc_pic_works=no
drh71eb93e2001-09-28 01:34:43 +00004582
4583fi
a.rottmann964dbb12004-02-26 19:47:42 +00004584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004585 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00004586
a.rottmann84e63352003-03-24 09:42:16 +00004587fi
4588
4589
4590 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4591 lt_cv_prog_cc_pic=
4592 lt_cv_prog_cc_can_build_shared=no
4593 else
4594 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4595 fi
4596
4597 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4598echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4599fi
4600
4601# Check for any special shared library compilation flags.
4602if test -n "$lt_cv_prog_cc_shlib"; then
4603 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4604echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4605 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4606 else
4607 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4608echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4609 lt_cv_prog_cc_can_build_shared=no
4610 fi
4611fi
4612
4613echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4614echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4615if test "${lt_cv_prog_cc_static_works+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 lt_cv_prog_cc_static_works=no
4619 save_LDFLAGS="$LDFLAGS"
4620 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4621 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004622/* confdefs.h. */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h. */
4627
4628int
4629main ()
4630{
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636rm -f conftest.$ac_objext conftest$ac_exeext
4637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00004638 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004639 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00004645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00004652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 lt_cv_prog_cc_static_works=yes
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662fi
a.rottmann964dbb12004-02-26 19:47:42 +00004663rm -f conftest.err conftest.$ac_objext \
4664 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004665 LDFLAGS="$save_LDFLAGS"
4666
4667fi
4668
4669
4670# Belt *and* braces to stop my trousers falling down:
4671test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4672echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4673echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4674
4675pic_flag="$lt_cv_prog_cc_pic"
4676special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4677wl="$lt_cv_prog_cc_wl"
4678link_static_flag="$lt_cv_prog_cc_static"
4679no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4680can_build_shared="$lt_cv_prog_cc_can_build_shared"
4681
4682
4683# Check to see if options -o and -c are simultaneously supported by compiler
4684echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00004685echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004686if test "${lt_cv_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
drh71eb93e2001-09-28 01:34:43 +00004689
a.rottmann84e63352003-03-24 09:42:16 +00004690$rm -r conftest 2>/dev/null
4691mkdir conftest
4692cd conftest
4693echo "int some_variable = 0;" > conftest.$ac_ext
4694mkdir out
4695# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4696# that will create temporary files in the current directory regardless of
4697# the output directory. Thus, making CWD read-only will cause this test
4698# to fail, enabling locking or at least warning the user not to do parallel
4699# builds.
4700chmod -w .
4701save_CFLAGS="$CFLAGS"
4702CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4703compiler_c_o=no
a.rottmann964dbb12004-02-26 19:47:42 +00004704if { (eval echo configure:4704: \"$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 +00004705 # The compiler can only warn and ignore the option if not recognized
4706 # So say no if there are warnings
4707 if test -s out/conftest.err; then
4708 lt_cv_compiler_c_o=no
4709 else
4710 lt_cv_compiler_c_o=yes
4711 fi
4712else
4713 # Append any errors to the config.log.
4714 cat out/conftest.err 1>&5
4715 lt_cv_compiler_c_o=no
4716fi
4717CFLAGS="$save_CFLAGS"
4718chmod u+w .
4719$rm conftest* out/*
4720rmdir out
4721cd ..
4722rmdir conftest
4723$rm -r conftest 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00004724
4725fi
drh71eb93e2001-09-28 01:34:43 +00004726
a.rottmann84e63352003-03-24 09:42:16 +00004727compiler_c_o=$lt_cv_compiler_c_o
4728echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4729echo "${ECHO_T}$compiler_c_o" >&6
4730
4731if test x"$compiler_c_o" = x"yes"; then
4732 # Check to see if we can write to a .lo
4733 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4734echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4735 if test "${lt_cv_compiler_o_lo+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738
4739 lt_cv_compiler_o_lo=no
4740 save_CFLAGS="$CFLAGS"
4741 CFLAGS="$CFLAGS -c -o conftest.lo"
4742 save_objext="$ac_objext"
4743 ac_objext=lo
4744 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004745/* confdefs.h. */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h. */
4750
4751int
4752main ()
4753{
4754int some_variable = 0;
4755 ;
4756 return 0;
4757}
4758_ACEOF
4759rm -f conftest.$ac_objext
4760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00004761 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004762 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00004768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 (eval $ac_try) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00004775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 # The compiler can only warn and ignore the option if not recognized
4781 # So say no if there are warnings
4782 if test -s conftest.err; then
4783 lt_cv_compiler_o_lo=no
4784 else
4785 lt_cv_compiler_o_lo=yes
4786 fi
4787
4788else
4789 echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792fi
a.rottmann964dbb12004-02-26 19:47:42 +00004793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004794 ac_objext="$save_objext"
4795 CFLAGS="$save_CFLAGS"
4796
4797fi
4798
4799 compiler_o_lo=$lt_cv_compiler_o_lo
4800 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4801echo "${ECHO_T}$compiler_o_lo" >&6
4802else
4803 compiler_o_lo=no
4804fi
4805
4806# Check to see if we can do hard links to lock some files if needed
drh71eb93e2001-09-28 01:34:43 +00004807hard_links="nottested"
a.rottmann84e63352003-03-24 09:42:16 +00004808if test "$compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00004809 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00004810 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00004811echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4812 hard_links=yes
4813 $rm conftest*
4814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4815 touch conftest.a
4816 ln conftest.a conftest.b 2>&5 || hard_links=no
4817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00004818 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00004819echo "${ECHO_T}$hard_links" >&6
4820 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00004821 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00004822echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4823 need_locks=warn
4824 fi
4825else
4826 need_locks=no
4827fi
4828
a.rottmann84e63352003-03-24 09:42:16 +00004829if test "$GCC" = yes; then
4830 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4831 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4832echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4833 echo "int some_variable = 0;" > conftest.$ac_ext
4834 save_CFLAGS="$CFLAGS"
4835 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4836 compiler_rtti_exceptions=no
4837 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004838/* confdefs.h. */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4842/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004843
a.rottmann84e63352003-03-24 09:42:16 +00004844int
4845main ()
4846{
4847int some_variable = 0;
4848 ;
4849 return 0;
4850}
4851_ACEOF
4852rm -f conftest.$ac_objext
4853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00004854 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004855 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00004861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; } &&
4867 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00004868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 # The compiler can only warn and ignore the option if not recognized
4874 # So say no if there are warnings
4875 if test -s conftest.err; then
4876 compiler_rtti_exceptions=no
4877 else
4878 compiler_rtti_exceptions=yes
drh71eb93e2001-09-28 01:34:43 +00004879 fi
a.rottmann84e63352003-03-24 09:42:16 +00004880
4881else
4882 echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885fi
a.rottmann964dbb12004-02-26 19:47:42 +00004886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004887 CFLAGS="$save_CFLAGS"
4888 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4889echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4890
4891 if test "$compiler_rtti_exceptions" = "yes"; then
4892 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4893 else
4894 no_builtin_flag=' -fno-builtin'
4895 fi
4896fi
4897
4898# See if the linker supports building shared libraries.
4899echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4900echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4901
4902allow_undefined_flag=
4903no_undefined_flag=
4904need_lib_prefix=unknown
4905need_version=unknown
4906# when you set need_version to no, make sure it does not cause -set_version
4907# flags to be left without arguments
4908archive_cmds=
4909archive_expsym_cmds=
4910old_archive_from_new_cmds=
4911old_archive_from_expsyms_cmds=
4912export_dynamic_flag_spec=
4913whole_archive_flag_spec=
4914thread_safe_flag_spec=
4915hardcode_into_libs=no
4916hardcode_libdir_flag_spec=
4917hardcode_libdir_separator=
4918hardcode_direct=no
4919hardcode_minus_L=no
4920hardcode_shlibpath_var=unsupported
4921runpath_var=
4922link_all_deplibs=unknown
4923always_export_symbols=no
4924export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4925# include_expsyms should be a list of space-separated symbols to be *always*
4926# included in the symbol list
4927include_expsyms=
4928# exclude_expsyms can be an egrep regular expression of symbols to exclude
4929# it will be wrapped by ` (' and `)$', so one must not match beginning or
4930# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4931# as well as any symbol that contains `d'.
4932exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4933# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4934# platforms (ab)use it in PIC code, but their linkers get confused if
4935# the symbol is explicitly referenced. Since portable code cannot
4936# rely on this symbol name, it's probably fine to never include it in
4937# preloaded symbol tables.
4938extract_expsyms_cmds=
4939
4940case $host_os in
4941cygwin* | mingw* | pw32*)
4942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4943 # When not using gcc, we currently assume that we are using
4944 # Microsoft Visual C++.
4945 if test "$GCC" != yes; then
drh71eb93e2001-09-28 01:34:43 +00004946 with_gnu_ld=no
a.rottmann84e63352003-03-24 09:42:16 +00004947 fi
4948 ;;
4949openbsd*)
4950 with_gnu_ld=no
4951 ;;
4952esac
drh71eb93e2001-09-28 01:34:43 +00004953
a.rottmann84e63352003-03-24 09:42:16 +00004954ld_shlibs=yes
4955if test "$with_gnu_ld" = yes; then
4956 # If archive_cmds runs LD, not CC, wlarc should be empty
4957 wlarc='${wl}'
drh71eb93e2001-09-28 01:34:43 +00004958
a.rottmann84e63352003-03-24 09:42:16 +00004959 # See if GNU ld supports shared libraries.
4960 case $host_os in
4961 aix3* | aix4* | aix5*)
4962 # On AIX, the GNU linker is very broken
4963 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4964 ld_shlibs=no
4965 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00004966
4967*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4968*** to be unable to reliably create shared libraries on AIX.
4969*** Therefore, libtool is disabling shared libraries support. If you
4970*** really care for shared libraries, you may want to modify your PATH
4971*** so that a non-GNU linker is found, and then restart.
4972
4973EOF
a.rottmann84e63352003-03-24 09:42:16 +00004974 ;;
drh71eb93e2001-09-28 01:34:43 +00004975
a.rottmann84e63352003-03-24 09:42:16 +00004976 amigaos*)
4977 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)'
4978 hardcode_libdir_flag_spec='-L$libdir'
4979 hardcode_minus_L=yes
drh71eb93e2001-09-28 01:34:43 +00004980
a.rottmann84e63352003-03-24 09:42:16 +00004981 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4982 # that the semantics of dynamic libraries on AmigaOS, at least up
4983 # to version 4, is to share data among multiple programs linked
4984 # with the same dynamic library. Since this doesn't match the
4985 # behavior of shared libraries on other platforms, we can use
4986 # them.
4987 ld_shlibs=no
4988 ;;
drh71eb93e2001-09-28 01:34:43 +00004989
a.rottmann84e63352003-03-24 09:42:16 +00004990 beos*)
4991 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004992 allow_undefined_flag=unsupported
a.rottmann84e63352003-03-24 09:42:16 +00004993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4994 # support --undefined. This deserves some investigation. FIXME
4995 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4996 else
4997 ld_shlibs=no
4998 fi
4999 ;;
drh71eb93e2001-09-28 01:34:43 +00005000
a.rottmann84e63352003-03-24 09:42:16 +00005001 cygwin* | mingw* | pw32*)
5002 # hardcode_libdir_flag_spec is actually meaningless, as there is
5003 # no search path for DLLs.
5004 hardcode_libdir_flag_spec='-L$libdir'
5005 allow_undefined_flag=unsupported
5006 always_export_symbols=yes
drh71eb93e2001-09-28 01:34:43 +00005007
a.rottmann84e63352003-03-24 09:42:16 +00005008 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5009 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5010 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5011 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5012 else $CC -o impgen impgen.c ; fi)~
5013 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
drh71eb93e2001-09-28 01:34:43 +00005014
a.rottmann84e63352003-03-24 09:42:16 +00005015 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 +00005016
a.rottmann84e63352003-03-24 09:42:16 +00005017 # cygwin and mingw dlls have different entry points and sets of symbols
5018 # to exclude.
5019 # FIXME: what about values for MSVC?
5020 dll_entry=__cygwin_dll_entry@12
5021 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5022 case $host_os in
5023 mingw*)
5024 # mingw values
5025 dll_entry=_DllMainCRTStartup@12
5026 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5027 ;;
5028 esac
drh71eb93e2001-09-28 01:34:43 +00005029
a.rottmann84e63352003-03-24 09:42:16 +00005030 # mingw and cygwin differ, and it's simplest to just exclude the union
5031 # of the two symbol sets.
5032 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5033
5034 # recent cygwin and mingw systems supply a stub DllMain which the user
5035 # can override, but on older systems we have to supply one (in ltdll.c)
5036 if test "x$lt_cv_need_dllmain" = "xyes"; then
5037 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5038 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~
5039 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5040 else
5041 ltdll_obj=
5042 ltdll_cmds=
5043 fi
5044
5045 # Extract the symbol export list from an `--export-all' def file,
5046 # then regenerate the def file from the symbol export list, so that
5047 # the compiled dll only exports the symbol export list.
5048 # Be careful not to strip the DATA tag left be newer dlltools.
5049 export_symbols_cmds="$ltdll_cmds"'
5050 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5051 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5052
5053 # If the export-symbols file already is a .def file (1st line
5054 # is EXPORTS), use it as is.
5055 # If DATA tags from a recent dlltool are present, honour them!
5056 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5057 cp $export_symbols $output_objdir/$soname-def;
drh71eb93e2001-09-28 01:34:43 +00005058 else
a.rottmann84e63352003-03-24 09:42:16 +00005059 echo EXPORTS > $output_objdir/$soname-def;
5060 _lt_hint=1;
5061 cat $export_symbols | while read symbol; do
5062 set dummy \$symbol;
5063 case \$# in
5064 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5065 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5066 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5067 esac;
5068 _lt_hint=`expr 1 + \$_lt_hint`;
5069 done;
5070 fi~
5071 '"$ltdll_cmds"'
5072 $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~
5073 $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~
5074 $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~
5075 $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~
5076 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5077 ;;
drh71eb93e2001-09-28 01:34:43 +00005078
a.rottmann84e63352003-03-24 09:42:16 +00005079 netbsd*)
5080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5081 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5082 wlarc=
5083 else
5084 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5085 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5086 fi
5087 ;;
drh71eb93e2001-09-28 01:34:43 +00005088
a.rottmann84e63352003-03-24 09:42:16 +00005089 solaris* | sysv5*)
5090 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5091 ld_shlibs=no
5092 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00005093
5094*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5095*** create shared libraries on Solaris systems. Therefore, libtool
5096*** is disabling shared libraries support. We urge you to upgrade GNU
5097*** binutils to release 2.9.1 or newer. Another option is to modify
5098*** your PATH or compiler configuration so that the native linker is
5099*** used, and then restart.
5100
5101EOF
a.rottmann84e63352003-03-24 09:42:16 +00005102 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5105 else
5106 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00005107 fi
a.rottmann84e63352003-03-24 09:42:16 +00005108 ;;
5109
5110 sunos4*)
5111 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5112 wlarc=
5113 hardcode_direct=yes
5114 hardcode_shlibpath_var=no
5115 ;;
5116
5117 *)
5118 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5121 else
5122 ld_shlibs=no
5123 fi
5124 ;;
5125 esac
5126
5127 if test "$ld_shlibs" = yes; then
5128 runpath_var=LD_RUN_PATH
5129 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5130 export_dynamic_flag_spec='${wl}--export-dynamic'
drh71eb93e2001-09-28 01:34:43 +00005131 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00005132 cygwin* | mingw* | pw32*)
a.rottmann84e63352003-03-24 09:42:16 +00005133 # dlltool doesn't understand --whole-archive et. al.
5134 whole_archive_flag_spec=
drh71eb93e2001-09-28 01:34:43 +00005135 ;;
drh71eb93e2001-09-28 01:34:43 +00005136 *)
a.rottmann84e63352003-03-24 09:42:16 +00005137 # ancient GNU ld didn't support --whole-archive et. al.
5138 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5139 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5140 else
5141 whole_archive_flag_spec=
5142 fi
drh71eb93e2001-09-28 01:34:43 +00005143 ;;
5144 esac
5145 fi
a.rottmann84e63352003-03-24 09:42:16 +00005146else
5147 # PORTME fill in a description of your system's linker (not GNU ld)
5148 case $host_os in
5149 aix3*)
5150 allow_undefined_flag=unsupported
5151 always_export_symbols=yes
5152 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'
5153 # Note: this linker hardcodes the directories in LIBPATH if there
5154 # are no directories specified by -L.
5155 hardcode_minus_L=yes
5156 if test "$GCC" = yes && test -z "$link_static_flag"; then
5157 # Neither direct hardcoding nor static linking is supported with a
5158 # broken collect2.
5159 hardcode_direct=unsupported
drh71eb93e2001-09-28 01:34:43 +00005160 fi
a.rottmann84e63352003-03-24 09:42:16 +00005161 ;;
5162
5163 aix4* | aix5*)
5164 if test "$host_cpu" = ia64; then
5165 # On IA64, the linker does run time linking by default, so we don't
5166 # have to do anything special.
5167 aix_use_runtimelinking=no
5168 exp_sym_flag='-Bexport'
5169 no_entry_flag=""
5170 else
5171 aix_use_runtimelinking=no
5172
5173 # Test if we are trying to use run time linking or normal
5174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5175 # need to do runtime linking.
5176 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5177 for ld_flag in $LDFLAGS; do
5178 case $ld_flag in
5179 *-brtl*)
5180 aix_use_runtimelinking=yes
5181 break
5182 ;;
5183 esac
5184 done
5185 esac
5186
5187 exp_sym_flag='-bexport'
5188 no_entry_flag='-bnoentry'
5189 fi
5190
5191 # When large executables or shared objects are built, AIX ld can
5192 # have problems creating the table of contents. If linking a library
5193 # or program results in "error TOC overflow" add -mminimal-toc to
5194 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5195 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5196
5197 hardcode_direct=yes
5198 archive_cmds=''
5199 hardcode_libdir_separator=':'
5200 if test "$GCC" = yes; then
5201 case $host_os in aix4.[012]|aix4.[012].*)
5202 collect2name=`${CC} -print-prog-name=collect2`
5203 if test -f "$collect2name" && \
5204 strings "$collect2name" | grep resolve_lib_name >/dev/null
5205 then
5206 # We have reworked collect2
5207 hardcode_direct=yes
5208 else
5209 # We have old collect2
5210 hardcode_direct=unsupported
5211 # It fails to find uninstalled libraries when the uninstalled
5212 # path is not listed in the libpath. Setting hardcode_minus_L
5213 # to unsupported forces relinking
5214 hardcode_minus_L=yes
5215 hardcode_libdir_flag_spec='-L$libdir'
5216 hardcode_libdir_separator=
5217 fi
5218 esac
5219
5220 shared_flag='-shared'
5221 else
5222 # not using gcc
5223 if test "$host_cpu" = ia64; then
5224 shared_flag='${wl}-G'
5225 else
5226 if test "$aix_use_runtimelinking" = yes; then
5227 shared_flag='${wl}-G'
5228 else
5229 shared_flag='${wl}-bM:SRE'
5230 fi
5231 fi
5232 fi
5233
5234 # It seems that -bexpall can do strange things, so it is better to
5235 # generate a list of symbols to export.
5236 always_export_symbols=yes
5237 if test "$aix_use_runtimelinking" = yes; then
5238 # Warning - without using the other runtime loading flags (-brtl),
5239 # -berok will link without error, but may produce a broken library.
5240 allow_undefined_flag='-berok'
5241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5242 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"
5243 else
5244 if test "$host_cpu" = ia64; then
5245 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5246 allow_undefined_flag="-z nodefs"
5247 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"
5248 else
5249 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5250 # Warning - without using the other run time loading flags,
5251 # -berok will link without error, but may produce a broken library.
5252 allow_undefined_flag='${wl}-berok'
5253 # This is a bit strange, but is similar to how AIX traditionally builds
5254 # it's shared libraries.
5255 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'
5256 fi
5257 fi
5258 ;;
5259
5260 amigaos*)
5261 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)'
5262 hardcode_libdir_flag_spec='-L$libdir'
5263 hardcode_minus_L=yes
5264 # see comment about different semantics on the GNU ld section
5265 ld_shlibs=no
5266 ;;
5267
5268 cygwin* | mingw* | pw32*)
5269 # When not using gcc, we currently assume that we are using
5270 # Microsoft Visual C++.
5271 # hardcode_libdir_flag_spec is actually meaningless, as there is
5272 # no search path for DLLs.
5273 hardcode_libdir_flag_spec=' '
5274 allow_undefined_flag=unsupported
5275 # Tell ltmain to make .lib files, not .a files.
5276 libext=lib
5277 # FIXME: Setting linknames here is a bad hack.
5278 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5279 # The linker will automatically build a .lib file if we build a DLL.
5280 old_archive_from_new_cmds='true'
5281 # FIXME: Should let the user specify the lib program.
5282 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5283 fix_srcfile_path='`cygpath -w "$srcfile"`'
5284 ;;
5285
5286 darwin* | rhapsody*)
5287 case "$host_os" in
5288 rhapsody* | darwin1.[012])
5289 allow_undefined_flag='-undefined suppress'
5290 ;;
5291 *) # Darwin 1.3 on
5292 allow_undefined_flag='-flat_namespace -undefined suppress'
5293 ;;
5294 esac
5295 # FIXME: Relying on posixy $() will cause problems for
5296 # cross-compilation, but unfortunately the echo tests do not
5297 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5298 # `"' quotes if we put them in here... so don't!
5299 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)'
5300 # We need to add '_' to the symbols in $export_symbols first
5301 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5302 hardcode_direct=yes
5303 hardcode_shlibpath_var=no
5304 whole_archive_flag_spec='-all_load $convenience'
5305 ;;
5306
5307 freebsd1*)
5308 ld_shlibs=no
5309 ;;
5310
5311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5312 # support. Future versions do this automatically, but an explicit c++rt0.o
5313 # does not break anything, and helps significantly (at the cost of a little
5314 # extra space).
5315 freebsd2.2*)
5316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5317 hardcode_libdir_flag_spec='-R$libdir'
5318 hardcode_direct=yes
5319 hardcode_shlibpath_var=no
5320 ;;
5321
5322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5323 freebsd2*)
5324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5325 hardcode_direct=yes
5326 hardcode_minus_L=yes
5327 hardcode_shlibpath_var=no
5328 ;;
5329
5330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5331 freebsd*)
5332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5333 hardcode_libdir_flag_spec='-R$libdir'
5334 hardcode_direct=yes
5335 hardcode_shlibpath_var=no
5336 ;;
5337
5338 hpux9* | hpux10* | hpux11*)
5339 case $host_os in
5340 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' ;;
5341 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5342 esac
5343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5344 hardcode_libdir_separator=:
5345 hardcode_direct=yes
5346 hardcode_minus_L=yes # Not in the search PATH, but as the default
5347 # location of the library.
5348 export_dynamic_flag_spec='${wl}-E'
5349 ;;
5350
5351 irix5* | irix6* | nonstopux*)
5352 if test "$GCC" = yes; then
5353 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'
5354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5355 else
5356 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'
5357 hardcode_libdir_flag_spec='-rpath $libdir'
5358 fi
5359 hardcode_libdir_separator=:
5360 link_all_deplibs=yes
5361 ;;
5362
5363 netbsd*)
5364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5366 else
5367 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5368 fi
5369 hardcode_libdir_flag_spec='-R$libdir'
5370 hardcode_direct=yes
5371 hardcode_shlibpath_var=no
5372 ;;
5373
5374 newsos6)
5375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5376 hardcode_direct=yes
5377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5378 hardcode_libdir_separator=:
5379 hardcode_shlibpath_var=no
5380 ;;
5381
5382 openbsd*)
5383 hardcode_direct=yes
5384 hardcode_shlibpath_var=no
5385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5388 export_dynamic_flag_spec='${wl}-E'
5389 else
5390 case "$host_os" in
5391 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5393 hardcode_libdir_flag_spec='-R$libdir'
5394 ;;
5395 *)
5396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5398 ;;
5399 esac
5400 fi
5401 ;;
5402
5403 os2*)
5404 hardcode_libdir_flag_spec='-L$libdir'
5405 hardcode_minus_L=yes
5406 allow_undefined_flag=unsupported
5407 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'
5408 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5409 ;;
5410
5411 osf3*)
5412 if test "$GCC" = yes; then
5413 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5414 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'
5415 else
5416 allow_undefined_flag=' -expect_unresolved \*'
5417 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'
5418 fi
5419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5420 hardcode_libdir_separator=:
5421 ;;
5422
5423 osf4* | osf5*) # as osf3* with the addition of -msym flag
5424 if test "$GCC" = yes; then
5425 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5426 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'
5427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5428 else
5429 allow_undefined_flag=' -expect_unresolved \*'
5430 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'
5431 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5432 $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'
5433
5434 #Both c and cxx compiler support -rpath directly
5435 hardcode_libdir_flag_spec='-rpath $libdir'
5436 fi
5437 hardcode_libdir_separator=:
5438 ;;
5439
5440 sco3.2v5*)
5441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5442 hardcode_shlibpath_var=no
5443 runpath_var=LD_RUN_PATH
5444 hardcode_runpath_var=yes
5445 export_dynamic_flag_spec='${wl}-Bexport'
5446 ;;
5447
5448 solaris*)
5449 # gcc --version < 3.0 without binutils cannot create self contained
5450 # shared libraries reliably, requiring libgcc.a to resolve some of
5451 # the object symbols generated in some cases. Libraries that use
5452 # assert need libgcc.a to resolve __eprintf, for example. Linking
5453 # a copy of libgcc.a into every shared library to guarantee resolving
5454 # such symbols causes other problems: According to Tim Van Holder
5455 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5456 # (to the application) exception stack for one thing.
5457 no_undefined_flag=' -z defs'
5458 if test "$GCC" = yes; then
5459 case `$CC --version 2>/dev/null` in
5460 [12].*)
5461 cat <<EOF 1>&2
5462
5463*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5464*** create self contained shared libraries on Solaris systems, without
5465*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5466*** -no-undefined support, which will at least allow you to build shared
5467*** libraries. However, you may find that when you link such libraries
5468*** into an application without using GCC, you have to manually add
5469*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5470*** upgrade to a newer version of GCC. Another option is to rebuild your
5471*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5472
5473EOF
5474 no_undefined_flag=
5475 ;;
5476 esac
5477 fi
5478 # $CC -shared without GNU ld will not create a library from C++
5479 # object files and a static libstdc++, better avoid it by now
5480 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5481 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5482 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5483 hardcode_libdir_flag_spec='-R$libdir'
5484 hardcode_shlibpath_var=no
5485 case $host_os in
5486 solaris2.[0-5] | solaris2.[0-5].*) ;;
5487 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5488 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5489 esac
5490 link_all_deplibs=yes
5491 ;;
5492
5493 sunos4*)
5494 if test "x$host_vendor" = xsequent; then
5495 # Use $CC to link under sequent, because it throws in some extra .o
5496 # files that make .init and .fini sections work.
5497 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5498 else
5499 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5500 fi
5501 hardcode_libdir_flag_spec='-L$libdir'
5502 hardcode_direct=yes
5503 hardcode_minus_L=yes
5504 hardcode_shlibpath_var=no
5505 ;;
5506
5507 sysv4)
5508 case $host_vendor in
5509 sni)
5510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5511 hardcode_direct=yes # is this really true???
5512 ;;
5513 siemens)
5514 ## LD is ld it makes a PLAMLIB
5515 ## CC just makes a GrossModule.
5516 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5517 reload_cmds='$CC -r -o $output$reload_objs'
5518 hardcode_direct=no
5519 ;;
5520 motorola)
5521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5522 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5523 ;;
5524 esac
5525 runpath_var='LD_RUN_PATH'
5526 hardcode_shlibpath_var=no
5527 ;;
5528
5529 sysv4.3*)
5530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5531 hardcode_shlibpath_var=no
5532 export_dynamic_flag_spec='-Bexport'
5533 ;;
5534
5535 sysv5*)
5536 no_undefined_flag=' -z text'
5537 # $CC -shared without GNU ld will not create a library from C++
5538 # object files and a static libstdc++, better avoid it by now
5539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5540 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5542 hardcode_libdir_flag_spec=
5543 hardcode_shlibpath_var=no
5544 runpath_var='LD_RUN_PATH'
5545 ;;
5546
5547 uts4*)
5548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5549 hardcode_libdir_flag_spec='-L$libdir'
5550 hardcode_shlibpath_var=no
5551 ;;
5552
5553 dgux*)
5554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5555 hardcode_libdir_flag_spec='-L$libdir'
5556 hardcode_shlibpath_var=no
5557 ;;
5558
5559 sysv4*MP*)
5560 if test -d /usr/nec; then
5561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5562 hardcode_shlibpath_var=no
5563 runpath_var=LD_RUN_PATH
5564 hardcode_runpath_var=yes
5565 ld_shlibs=yes
5566 fi
5567 ;;
5568
5569 sysv4.2uw2*)
5570 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5571 hardcode_direct=yes
5572 hardcode_minus_L=no
5573 hardcode_shlibpath_var=no
5574 hardcode_runpath_var=yes
5575 runpath_var=LD_RUN_PATH
5576 ;;
5577
5578 sysv5uw7* | unixware7*)
5579 no_undefined_flag='${wl}-z ${wl}text'
5580 if test "$GCC" = yes; then
5581 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5582 else
5583 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5584 fi
5585 runpath_var='LD_RUN_PATH'
5586 hardcode_shlibpath_var=no
5587 ;;
5588
5589 *)
5590 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00005591 ;;
5592 esac
5593fi
a.rottmann84e63352003-03-24 09:42:16 +00005594echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5595echo "${ECHO_T}$ld_shlibs" >&6
5596test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005597
a.rottmann84e63352003-03-24 09:42:16 +00005598# Check hardcoding attributes.
5599echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh71eb93e2001-09-28 01:34:43 +00005600echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5601hardcode_action=
5602if test -n "$hardcode_libdir_flag_spec" || \
a.rottmann84e63352003-03-24 09:42:16 +00005603 test -n "$runpath_var"; then
drh71eb93e2001-09-28 01:34:43 +00005604
5605 # We can hardcode non-existant directories.
5606 if test "$hardcode_direct" != no &&
5607 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5608 # have to relink, otherwise we might link with an installed library
5609 # when we should be linking with a yet-to-be-installed one
a.rottmann84e63352003-03-24 09:42:16 +00005610 ## test "$hardcode_shlibpath_var" != no &&
drh71eb93e2001-09-28 01:34:43 +00005611 test "$hardcode_minus_L" != no; then
5612 # Linking always hardcodes the temporary library directory.
5613 hardcode_action=relink
5614 else
5615 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5616 hardcode_action=immediate
5617 fi
5618else
5619 # We cannot hardcode anything, or else we can only hardcode existing
5620 # directories.
5621 hardcode_action=unsupported
5622fi
a.rottmann84e63352003-03-24 09:42:16 +00005623echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh71eb93e2001-09-28 01:34:43 +00005624echo "${ECHO_T}$hardcode_action" >&6
5625
drh71eb93e2001-09-28 01:34:43 +00005626striplib=
5627old_striplib=
a.rottmann84e63352003-03-24 09:42:16 +00005628echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh71eb93e2001-09-28 01:34:43 +00005629echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5630if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5631 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5632 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
a.rottmann84e63352003-03-24 09:42:16 +00005633 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00005634echo "${ECHO_T}yes" >&6
5635else
a.rottmann84e63352003-03-24 09:42:16 +00005636 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00005637echo "${ECHO_T}no" >&6
5638fi
5639
a.rottmann84e63352003-03-24 09:42:16 +00005640reload_cmds='$LD$reload_flag -o $output$reload_objs'
5641test -z "$deplibs_check_method" && deplibs_check_method=unknown
5642
5643# PORTME Fill in your ld.so characteristics
5644echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00005645echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5646library_names_spec=
5647libname_spec='lib$name'
5648soname_spec=
5649postinstall_cmds=
5650postuninstall_cmds=
5651finish_cmds=
5652finish_eval=
5653shlibpath_var=
5654shlibpath_overrides_runpath=unknown
5655version_type=none
5656dynamic_linker="$host_os ld.so"
5657sys_lib_dlsearch_path_spec="/lib /usr/lib"
5658sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
drh71eb93e2001-09-28 01:34:43 +00005659
5660case $host_os in
5661aix3*)
5662 version_type=linux
5663 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5664 shlibpath_var=LIBPATH
5665
a.rottmann84e63352003-03-24 09:42:16 +00005666 # AIX has no versioning support, so we append a major version to the name.
drh71eb93e2001-09-28 01:34:43 +00005667 soname_spec='${libname}${release}.so$major'
5668 ;;
5669
5670aix4* | aix5*)
5671 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00005672 need_lib_prefix=no
5673 need_version=no
5674 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005675 if test "$host_cpu" = ia64; then
5676 # AIX 5 supports IA64
5677 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5678 shlibpath_var=LD_LIBRARY_PATH
5679 else
5680 # With GCC up to 2.95.x, collect2 would create an import file
5681 # for dependence libraries. The import file would start with
5682 # the line `#! .'. This would cause the generated library to
5683 # depend on `.', always an invalid library. This was fixed in
5684 # development snapshots of GCC prior to 3.0.
5685 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005686 aix4 | aix4.[01] | aix4.[01].*)
5687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5688 echo ' yes '
5689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5690 :
5691 else
5692 can_build_shared=no
5693 fi
5694 ;;
drh71eb93e2001-09-28 01:34:43 +00005695 esac
a.rottmann84e63352003-03-24 09:42:16 +00005696 # AIX (on Power*) has no versioning support, so currently we can
5697 # not hardcode correct soname into executable. Probably we can
5698 # add versioning support to collect2, so additional links can
5699 # be useful in future.
drh71eb93e2001-09-28 01:34:43 +00005700 if test "$aix_use_runtimelinking" = yes; then
5701 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5702 # instead of lib<name>.a to let people know that these are not
5703 # typical AIX shared libraries.
5704 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5705 else
5706 # We preserve .a as extension for shared libraries through AIX4.2
5707 # and later when we are not doing run time linking.
5708 library_names_spec='${libname}${release}.a $libname.a'
5709 soname_spec='${libname}${release}.so$major'
5710 fi
5711 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00005712 fi
a.rottmann84e63352003-03-24 09:42:16 +00005713 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005714 ;;
5715
5716amigaos*)
5717 library_names_spec='$libname.ixlibrary $libname.a'
5718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5719 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'
5720 ;;
5721
5722beos*)
5723 library_names_spec='${libname}.so'
5724 dynamic_linker="$host_os ld.so"
5725 shlibpath_var=LIBRARY_PATH
5726 ;;
5727
5728bsdi4*)
5729 version_type=linux
5730 need_version=no
5731 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5732 soname_spec='${libname}${release}.so$major'
5733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5734 shlibpath_var=LD_LIBRARY_PATH
5735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
a.rottmann84e63352003-03-24 09:42:16 +00005737 export_dynamic_flag_spec=-rdynamic
drh71eb93e2001-09-28 01:34:43 +00005738 # the default ld.so.conf also contains /usr/contrib/lib and
5739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5740 # libtool to hard-code these into programs
5741 ;;
5742
5743cygwin* | mingw* | pw32*)
5744 version_type=windows
5745 need_version=no
5746 need_lib_prefix=no
5747 case $GCC,$host_os in
5748 yes,cygwin*)
5749 library_names_spec='$libname.dll.a'
drh71eb93e2001-09-28 01:34:43 +00005750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5751 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5752 dldir=$destdir/`dirname \$dlpath`~
5753 test -d \$dldir || mkdir -p \$dldir~
5754 $install_prog .libs/$dlname \$dldir/$dlname'
5755 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5756 dlpath=$dir/\$dldll~
5757 $rm \$dlpath'
5758 ;;
5759 yes,mingw*)
5760 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
a.rottmann84e63352003-03-24 09:42:16 +00005761 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 +00005762 ;;
5763 yes,pw32*)
5764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5765 ;;
5766 *)
5767 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5768 ;;
5769 esac
5770 dynamic_linker='Win32 ld.exe'
5771 # FIXME: first we should search . and the directory the executable is in
5772 shlibpath_var=PATH
5773 ;;
5774
5775darwin* | rhapsody*)
5776 dynamic_linker="$host_os dyld"
5777 version_type=darwin
5778 need_lib_prefix=no
5779 need_version=no
5780 # FIXME: Relying on posixy $() will cause problems for
5781 # cross-compilation, but unfortunately the echo tests do not
5782 # yet detect zsh echo's removal of \ escapes.
5783 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)'
5784 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5785 shlibpath_overrides_runpath=yes
5786 shlibpath_var=DYLD_LIBRARY_PATH
5787 ;;
5788
a.rottmann84e63352003-03-24 09:42:16 +00005789freebsd1*)
5790 dynamic_linker=no
5791 ;;
5792
5793freebsd*-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005794 version_type=linux
5795 need_lib_prefix=no
5796 need_version=no
5797 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5798 soname_spec='${libname}${release}.so$major'
5799 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00005800 shlibpath_overrides_runpath=no
5801 hardcode_into_libs=yes
5802 dynamic_linker='GNU/FreeBSD ld.so'
drh71eb93e2001-09-28 01:34:43 +00005803 ;;
5804
5805freebsd*)
5806 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5807 version_type=freebsd-$objformat
5808 case $version_type in
5809 freebsd-elf*)
5810 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5811 need_version=no
5812 need_lib_prefix=no
5813 ;;
5814 freebsd-*)
5815 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5816 need_version=yes
5817 ;;
5818 esac
5819 shlibpath_var=LD_LIBRARY_PATH
5820 case $host_os in
5821 freebsd2*)
5822 shlibpath_overrides_runpath=yes
5823 ;;
a.rottmann84e63352003-03-24 09:42:16 +00005824 *)
drh71eb93e2001-09-28 01:34:43 +00005825 shlibpath_overrides_runpath=no
5826 hardcode_into_libs=yes
5827 ;;
5828 esac
5829 ;;
5830
5831gnu*)
5832 version_type=linux
5833 need_lib_prefix=no
5834 need_version=no
5835 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5836 soname_spec='${libname}${release}.so$major'
5837 shlibpath_var=LD_LIBRARY_PATH
5838 hardcode_into_libs=yes
5839 ;;
5840
5841hpux9* | hpux10* | hpux11*)
5842 # Give a soname corresponding to the major version so that dld.sl refuses to
5843 # link against other versions.
a.rottmann84e63352003-03-24 09:42:16 +00005844 dynamic_linker="$host_os dld.sl"
drh71eb93e2001-09-28 01:34:43 +00005845 version_type=sunos
5846 need_lib_prefix=no
5847 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005848 shlibpath_var=SHLIB_PATH
5849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5850 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5851 soname_spec='${libname}${release}.sl$major'
drh71eb93e2001-09-28 01:34:43 +00005852 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5853 postinstall_cmds='chmod 555 $lib'
5854 ;;
5855
a.rottmann84e63352003-03-24 09:42:16 +00005856irix5* | irix6* | nonstopux*)
5857 case $host_os in
5858 nonstopux*) version_type=nonstopux ;;
5859 *) version_type=irix ;;
5860 esac
drh71eb93e2001-09-28 01:34:43 +00005861 need_lib_prefix=no
5862 need_version=no
5863 soname_spec='${libname}${release}.so$major'
5864 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5865 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005866 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00005867 libsuff= shlibsuff=
5868 ;;
5869 *)
5870 case $LD in # libtool.m4 will add one of these switches to LD
5871 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5872 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5873 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5874 *) libsuff= shlibsuff= libmagic=never-match;;
5875 esac
5876 ;;
5877 esac
5878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5879 shlibpath_overrides_runpath=no
5880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5882 ;;
5883
5884# No shared lib support for Linux oldld, aout, or coff.
a.rottmann84e63352003-03-24 09:42:16 +00005885linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
drh71eb93e2001-09-28 01:34:43 +00005886 dynamic_linker=no
5887 ;;
5888
5889# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00005890linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005891 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5897 shlibpath_var=LD_LIBRARY_PATH
5898 shlibpath_overrides_runpath=no
5899 # This implies no fast_install, which is unacceptable.
5900 # Some rework will be needed to allow for fast_install
5901 # before this can be enabled.
5902 hardcode_into_libs=yes
5903
5904 # We used to test for /lib/ld.so.1 and disable shared libraries on
5905 # powerpc, because MkLinux only supported shared libraries with the
5906 # GNU dynamic linker. Since this was broken with cross compilers,
5907 # most powerpc-linux boxes support dynamic linking these days and
5908 # people can always --disable-shared, the test was removed, and we
5909 # assume the GNU/Linux dynamic linker is in use.
5910 dynamic_linker='GNU/Linux ld.so'
5911 ;;
5912
5913netbsd*)
5914 version_type=sunos
5915 need_lib_prefix=no
5916 need_version=no
5917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5918 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5920 dynamic_linker='NetBSD (a.out) ld.so'
5921 else
5922 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5923 soname_spec='${libname}${release}.so$major'
5924 dynamic_linker='NetBSD ld.elf_so'
5925 fi
5926 shlibpath_var=LD_LIBRARY_PATH
5927 shlibpath_overrides_runpath=yes
5928 hardcode_into_libs=yes
5929 ;;
5930
5931newsos6)
5932 version_type=linux
5933 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5934 shlibpath_var=LD_LIBRARY_PATH
5935 shlibpath_overrides_runpath=yes
5936 ;;
5937
drh71eb93e2001-09-28 01:34:43 +00005938openbsd*)
5939 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00005940 need_lib_prefix=no
5941 need_version=no
5942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5943 case "$host_os" in
5944 openbsd2.[89] | openbsd2.[89].*)
5945 shlibpath_overrides_runpath=no
5946 ;;
5947 *)
5948 shlibpath_overrides_runpath=yes
5949 ;;
5950 esac
5951 else
5952 shlibpath_overrides_runpath=yes
5953 fi
drh71eb93e2001-09-28 01:34:43 +00005954 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5956 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00005957 ;;
5958
5959os2*)
5960 libname_spec='$name'
5961 need_lib_prefix=no
5962 library_names_spec='$libname.dll $libname.a'
5963 dynamic_linker='OS/2 ld.exe'
5964 shlibpath_var=LIBPATH
5965 ;;
5966
5967osf3* | osf4* | osf5*)
5968 version_type=osf
5969 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005970 need_lib_prefix=no
5971 soname_spec='${libname}${release}.so$major'
5972 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
drh71eb93e2001-09-28 01:34:43 +00005973 shlibpath_var=LD_LIBRARY_PATH
5974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
a.rottmann84e63352003-03-24 09:42:16 +00005976 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005977 ;;
5978
5979sco3.2v5*)
5980 version_type=osf
5981 soname_spec='${libname}${release}.so$major'
5982 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5983 shlibpath_var=LD_LIBRARY_PATH
5984 ;;
5985
5986solaris*)
5987 version_type=linux
5988 need_lib_prefix=no
5989 need_version=no
5990 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5991 soname_spec='${libname}${release}.so$major'
5992 shlibpath_var=LD_LIBRARY_PATH
5993 shlibpath_overrides_runpath=yes
5994 hardcode_into_libs=yes
5995 # ldd complains unless libraries are executable
5996 postinstall_cmds='chmod +x $lib'
5997 ;;
5998
5999sunos4*)
6000 version_type=sunos
6001 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6003 shlibpath_var=LD_LIBRARY_PATH
6004 shlibpath_overrides_runpath=yes
6005 if test "$with_gnu_ld" = yes; then
6006 need_lib_prefix=no
6007 fi
6008 need_version=yes
6009 ;;
6010
6011sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6012 version_type=linux
6013 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6014 soname_spec='${libname}${release}.so$major'
6015 shlibpath_var=LD_LIBRARY_PATH
6016 case $host_vendor in
6017 sni)
6018 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00006019 need_lib_prefix=no
6020 export_dynamic_flag_spec='${wl}-Blargedynsym'
6021 runpath_var=LD_RUN_PATH
6022 ;;
6023 siemens)
6024 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00006025 ;;
6026 motorola)
6027 need_lib_prefix=no
6028 need_version=no
6029 shlibpath_overrides_runpath=no
6030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6031 ;;
6032 esac
6033 ;;
6034
a.rottmann84e63352003-03-24 09:42:16 +00006035uts4*)
6036 version_type=linux
6037 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6038 soname_spec='${libname}${release}.so$major'
6039 shlibpath_var=LD_LIBRARY_PATH
6040 ;;
6041
6042dgux*)
6043 version_type=linux
6044 need_lib_prefix=no
6045 need_version=no
6046 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6047 soname_spec='${libname}${release}.so$major'
6048 shlibpath_var=LD_LIBRARY_PATH
6049 ;;
6050
drh71eb93e2001-09-28 01:34:43 +00006051sysv4*MP*)
6052 if test -d /usr/nec ;then
6053 version_type=linux
6054 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6055 soname_spec='$libname.so.$major'
6056 shlibpath_var=LD_LIBRARY_PATH
6057 fi
6058 ;;
6059
drh71eb93e2001-09-28 01:34:43 +00006060*)
6061 dynamic_linker=no
6062 ;;
6063esac
a.rottmann84e63352003-03-24 09:42:16 +00006064echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00006065echo "${ECHO_T}$dynamic_linker" >&6
6066test "$dynamic_linker" = no && can_build_shared=no
6067
a.rottmann84e63352003-03-24 09:42:16 +00006068# Report the final consequences.
6069echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6070echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6071echo "$as_me:$LINENO: result: $can_build_shared" >&5
6072echo "${ECHO_T}$can_build_shared" >&6
6073
6074echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6075echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6076test "$can_build_shared" = "no" && enable_shared=no
6077
6078# On AIX, shared libraries and static libraries use the same namespace, and
6079# are all built from PIC.
6080case "$host_os" in
6081aix3*)
6082 test "$enable_shared" = yes && enable_static=no
6083 if test -n "$RANLIB"; then
6084 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6085 postinstall_cmds='$RANLIB $lib'
6086 fi
6087 ;;
6088
6089aix4*)
6090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6091 test "$enable_shared" = yes && enable_static=no
6092 fi
6093 ;;
6094esac
6095echo "$as_me:$LINENO: result: $enable_shared" >&5
6096echo "${ECHO_T}$enable_shared" >&6
6097
6098echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6099echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6100# Make sure either enable_shared or enable_static is yes.
6101test "$enable_shared" = yes || enable_static=yes
6102echo "$as_me:$LINENO: result: $enable_static" >&5
6103echo "${ECHO_T}$enable_static" >&6
6104
6105if test "$hardcode_action" = relink; then
6106 # Fast installation is not supported
6107 enable_fast_install=no
6108elif test "$shlibpath_overrides_runpath" = yes ||
6109 test "$enable_shared" = no; then
6110 # Fast installation is not necessary
6111 enable_fast_install=needless
6112fi
6113
6114variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6115if test "$GCC" = yes; then
6116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6117fi
6118
drh71eb93e2001-09-28 01:34:43 +00006119if test "x$enable_dlopen" != xyes; then
6120 enable_dlopen=unknown
6121 enable_dlopen_self=unknown
6122 enable_dlopen_self_static=unknown
6123else
6124 lt_cv_dlopen=no
6125 lt_cv_dlopen_libs=
6126
6127 case $host_os in
6128 beos*)
6129 lt_cv_dlopen="load_add_on"
6130 lt_cv_dlopen_libs=
6131 lt_cv_dlopen_self=yes
6132 ;;
6133
6134 cygwin* | mingw* | pw32*)
6135 lt_cv_dlopen="LoadLibrary"
6136 lt_cv_dlopen_libs=
6137 ;;
6138
6139 *)
a.rottmann84e63352003-03-24 09:42:16 +00006140 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006141echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6142if test "${ac_cv_func_shl_load+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00006151/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6153#define shl_load innocuous_shl_load
6154
drh71eb93e2001-09-28 01:34:43 +00006155/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00006156 which can conflict with char shl_load (); below.
6157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00006159
a.rottmann84e63352003-03-24 09:42:16 +00006160#ifdef __STDC__
6161# include <limits.h>
6162#else
6163# include <assert.h>
6164#endif
a.rottmann964dbb12004-02-26 19:47:42 +00006165
6166#undef shl_load
6167
drh71eb93e2001-09-28 01:34:43 +00006168/* Override any gcc2 internal prototype to avoid an error. */
6169#ifdef __cplusplus
6170extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00006171{
drh71eb93e2001-09-28 01:34:43 +00006172#endif
6173/* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6175char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00006176/* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179#if defined (__stub_shl_load) || defined (__stub___shl_load)
6180choke me
6181#else
a.rottmann84e63352003-03-24 09:42:16 +00006182char (*f) () = shl_load;
6183#endif
6184#ifdef __cplusplus
6185}
drh71eb93e2001-09-28 01:34:43 +00006186#endif
6187
a.rottmann84e63352003-03-24 09:42:16 +00006188int
6189main ()
6190{
6191return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00006192 ;
6193 return 0;
6194}
6195_ACEOF
6196rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00006198 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00006199 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006204 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00006205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006213 (eval $ac_try) 2>&5
6214 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006216 (exit $ac_status); }; }; then
6217 ac_cv_func_shl_load=yes
6218else
6219 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006220sed 's/^/| /' conftest.$ac_ext >&5
6221
drh71eb93e2001-09-28 01:34:43 +00006222ac_cv_func_shl_load=no
6223fi
a.rottmann964dbb12004-02-26 19:47:42 +00006224rm -f conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006226fi
a.rottmann84e63352003-03-24 09:42:16 +00006227echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006228echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6229if test $ac_cv_func_shl_load = yes; then
6230 lt_cv_dlopen="shl_load"
6231else
a.rottmann84e63352003-03-24 09:42:16 +00006232 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00006233echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6234if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237 ac_check_lib_save_LIBS=$LIBS
6238LIBS="-ldld $LIBS"
6239cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006240/* confdefs.h. */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006245
6246/* Override any gcc2 internal prototype to avoid an error. */
6247#ifdef __cplusplus
6248extern "C"
6249#endif
6250/* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6252char shl_load ();
6253int
6254main ()
6255{
6256shl_load ();
6257 ;
6258 return 0;
6259}
6260_ACEOF
6261rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00006263 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00006264 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006269 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00006270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006278 (eval $ac_try) 2>&5
6279 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006281 (exit $ac_status); }; }; then
6282 ac_cv_lib_dld_shl_load=yes
6283else
6284 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006285sed 's/^/| /' conftest.$ac_ext >&5
6286
drh71eb93e2001-09-28 01:34:43 +00006287ac_cv_lib_dld_shl_load=no
6288fi
a.rottmann964dbb12004-02-26 19:47:42 +00006289rm -f conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006291LIBS=$ac_check_lib_save_LIBS
6292fi
a.rottmann84e63352003-03-24 09:42:16 +00006293echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006294echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6295if test $ac_cv_lib_dld_shl_load = yes; then
6296 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6297else
a.rottmann84e63352003-03-24 09:42:16 +00006298 echo "$as_me:$LINENO: checking for dlopen" >&5
6299echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6300if test "${ac_cv_func_dlopen+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006304/* confdefs.h. */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00006309/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6311#define dlopen innocuous_dlopen
6312
a.rottmann84e63352003-03-24 09:42:16 +00006313/* System header to define __stub macros and hopefully few prototypes,
6314 which can conflict with char dlopen (); below.
6315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6316 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00006317
a.rottmann84e63352003-03-24 09:42:16 +00006318#ifdef __STDC__
6319# include <limits.h>
6320#else
6321# include <assert.h>
6322#endif
a.rottmann964dbb12004-02-26 19:47:42 +00006323
6324#undef dlopen
6325
a.rottmann84e63352003-03-24 09:42:16 +00006326/* Override any gcc2 internal prototype to avoid an error. */
6327#ifdef __cplusplus
6328extern "C"
6329{
6330#endif
6331/* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6333char dlopen ();
6334/* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337#if defined (__stub_dlopen) || defined (__stub___dlopen)
6338choke me
6339#else
6340char (*f) () = dlopen;
6341#endif
6342#ifdef __cplusplus
6343}
6344#endif
6345
6346int
6347main ()
6348{
6349return f != dlopen;
6350 ;
6351 return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext conftest$ac_exeext
6355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00006356 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006357 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00006363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_func_dlopen=yes
6376else
6377 echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380ac_cv_func_dlopen=no
6381fi
a.rottmann964dbb12004-02-26 19:47:42 +00006382rm -f conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006384fi
6385echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6386echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6387if test $ac_cv_func_dlopen = yes; then
6388 lt_cv_dlopen="dlopen"
6389else
6390 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00006391echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6392if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395 ac_check_lib_save_LIBS=$LIBS
6396LIBS="-ldl $LIBS"
6397cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006403
6404/* Override any gcc2 internal prototype to avoid an error. */
6405#ifdef __cplusplus
6406extern "C"
6407#endif
6408/* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6410char dlopen ();
6411int
6412main ()
6413{
6414dlopen ();
6415 ;
6416 return 0;
6417}
6418_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00006421 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00006422 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006427 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00006428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006436 (eval $ac_try) 2>&5
6437 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006439 (exit $ac_status); }; }; then
6440 ac_cv_lib_dl_dlopen=yes
6441else
6442 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006443sed 's/^/| /' conftest.$ac_ext >&5
6444
drh71eb93e2001-09-28 01:34:43 +00006445ac_cv_lib_dl_dlopen=no
6446fi
a.rottmann964dbb12004-02-26 19:47:42 +00006447rm -f conftest.err conftest.$ac_objext \
6448 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006449LIBS=$ac_check_lib_save_LIBS
6450fi
a.rottmann84e63352003-03-24 09:42:16 +00006451echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006452echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6453if test $ac_cv_lib_dl_dlopen = yes; then
6454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6455else
a.rottmann84e63352003-03-24 09:42:16 +00006456 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00006457echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6458if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 ac_check_lib_save_LIBS=$LIBS
6462LIBS="-lsvld $LIBS"
6463cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006469
6470/* Override any gcc2 internal prototype to avoid an error. */
6471#ifdef __cplusplus
6472extern "C"
6473#endif
6474/* We use char because int might match the return type of a gcc2
6475 builtin and then its argument prototype would still apply. */
6476char dlopen ();
6477int
6478main ()
6479{
6480dlopen ();
6481 ;
6482 return 0;
6483}
6484_ACEOF
6485rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00006487 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00006488 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006493 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00006494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006502 (eval $ac_try) 2>&5
6503 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006505 (exit $ac_status); }; }; then
6506 ac_cv_lib_svld_dlopen=yes
6507else
6508 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006509sed 's/^/| /' conftest.$ac_ext >&5
6510
drh71eb93e2001-09-28 01:34:43 +00006511ac_cv_lib_svld_dlopen=no
6512fi
a.rottmann964dbb12004-02-26 19:47:42 +00006513rm -f conftest.err conftest.$ac_objext \
6514 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006515LIBS=$ac_check_lib_save_LIBS
6516fi
a.rottmann84e63352003-03-24 09:42:16 +00006517echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006518echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6519if test $ac_cv_lib_svld_dlopen = yes; then
6520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00006521else
6522 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6523echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6524if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 ac_check_lib_save_LIBS=$LIBS
6528LIBS="-ldld $LIBS"
6529cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006530/* confdefs.h. */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h. */
6535
6536/* Override any gcc2 internal prototype to avoid an error. */
6537#ifdef __cplusplus
6538extern "C"
6539#endif
6540/* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542char dld_link ();
6543int
6544main ()
6545{
6546dld_link ();
6547 ;
6548 return 0;
6549}
6550_ACEOF
6551rm -f conftest.$ac_objext conftest$ac_exeext
6552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00006553 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006554 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00006558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00006560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_lib_dld_dld_link=yes
6573else
6574 echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
6577ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00006578fi
a.rottmann964dbb12004-02-26 19:47:42 +00006579rm -f conftest.err conftest.$ac_objext \
6580 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006581LIBS=$ac_check_lib_save_LIBS
6582fi
6583echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6584echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6585if test $ac_cv_lib_dld_dld_link = yes; then
6586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6587fi
6588
drh71eb93e2001-09-28 01:34:43 +00006589
6590fi
6591
drh71eb93e2001-09-28 01:34:43 +00006592
6593fi
6594
a.rottmann84e63352003-03-24 09:42:16 +00006595
6596fi
6597
6598
6599fi
6600
6601
drh71eb93e2001-09-28 01:34:43 +00006602fi
6603
6604 ;;
6605 esac
6606
6607 if test "x$lt_cv_dlopen" != xno; then
6608 enable_dlopen=yes
6609 else
6610 enable_dlopen=no
6611 fi
6612
6613 case $lt_cv_dlopen in
6614 dlopen)
6615 save_CPPFLAGS="$CPPFLAGS"
a.rottmann84e63352003-03-24 09:42:16 +00006616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00006617
6618 save_LDFLAGS="$LDFLAGS"
6619 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6620
6621 save_LIBS="$LIBS"
6622 LIBS="$lt_cv_dlopen_libs $LIBS"
6623
a.rottmann84e63352003-03-24 09:42:16 +00006624 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006625echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6626if test "${lt_cv_dlopen_self+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 if test "$cross_compiling" = yes; then :
6630 lt_cv_dlopen_self=cross
6631else
a.rottmann84e63352003-03-24 09:42:16 +00006632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006633 lt_status=$lt_dlunknown
6634 cat > conftest.$ac_ext <<EOF
a.rottmann964dbb12004-02-26 19:47:42 +00006635#line 6635 "configure"
drh71eb93e2001-09-28 01:34:43 +00006636#include "confdefs.h"
6637
6638#if HAVE_DLFCN_H
6639#include <dlfcn.h>
6640#endif
6641
6642#include <stdio.h>
6643
6644#ifdef RTLD_GLOBAL
6645# define LT_DLGLOBAL RTLD_GLOBAL
6646#else
6647# ifdef DL_GLOBAL
6648# define LT_DLGLOBAL DL_GLOBAL
6649# else
6650# define LT_DLGLOBAL 0
6651# endif
6652#endif
6653
6654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6655 find out it does not work in some platform. */
6656#ifndef LT_DLLAZY_OR_NOW
6657# ifdef RTLD_LAZY
6658# define LT_DLLAZY_OR_NOW RTLD_LAZY
6659# else
6660# ifdef DL_LAZY
6661# define LT_DLLAZY_OR_NOW DL_LAZY
6662# else
6663# ifdef RTLD_NOW
6664# define LT_DLLAZY_OR_NOW RTLD_NOW
6665# else
6666# ifdef DL_NOW
6667# define LT_DLLAZY_OR_NOW DL_NOW
6668# else
6669# define LT_DLLAZY_OR_NOW 0
6670# endif
6671# endif
6672# endif
6673# endif
6674#endif
6675
6676#ifdef __cplusplus
6677extern "C" void exit (int);
6678#endif
6679
6680void fnord() { int i=42;}
6681int main ()
6682{
6683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6684 int status = $lt_dlunknown;
6685
6686 if (self)
6687 {
6688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6689 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6690 /* dlclose (self); */
6691 }
6692
6693 exit (status);
6694}
6695EOF
a.rottmann84e63352003-03-24 09:42:16 +00006696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006697 (eval $ac_link) 2>&5
6698 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6701 (./conftest; exit; ) 2>/dev/null
6702 lt_status=$?
6703 case x$lt_status in
6704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6706 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6707 esac
6708 else :
6709 # compilation failed
6710 lt_cv_dlopen_self=no
6711 fi
6712fi
6713rm -fr conftest*
6714
a.rottmann84e63352003-03-24 09:42:16 +00006715
drh71eb93e2001-09-28 01:34:43 +00006716fi
a.rottmann84e63352003-03-24 09:42:16 +00006717echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00006718echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6719
6720 if test "x$lt_cv_dlopen_self" = xyes; then
6721 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00006722 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006723echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6724if test "${lt_cv_dlopen_self_static+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727 if test "$cross_compiling" = yes; then :
6728 lt_cv_dlopen_self_static=cross
6729else
a.rottmann84e63352003-03-24 09:42:16 +00006730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006731 lt_status=$lt_dlunknown
6732 cat > conftest.$ac_ext <<EOF
a.rottmann964dbb12004-02-26 19:47:42 +00006733#line 6733 "configure"
drh71eb93e2001-09-28 01:34:43 +00006734#include "confdefs.h"
6735
6736#if HAVE_DLFCN_H
6737#include <dlfcn.h>
6738#endif
6739
6740#include <stdio.h>
6741
6742#ifdef RTLD_GLOBAL
6743# define LT_DLGLOBAL RTLD_GLOBAL
6744#else
6745# ifdef DL_GLOBAL
6746# define LT_DLGLOBAL DL_GLOBAL
6747# else
6748# define LT_DLGLOBAL 0
6749# endif
6750#endif
6751
6752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6753 find out it does not work in some platform. */
6754#ifndef LT_DLLAZY_OR_NOW
6755# ifdef RTLD_LAZY
6756# define LT_DLLAZY_OR_NOW RTLD_LAZY
6757# else
6758# ifdef DL_LAZY
6759# define LT_DLLAZY_OR_NOW DL_LAZY
6760# else
6761# ifdef RTLD_NOW
6762# define LT_DLLAZY_OR_NOW RTLD_NOW
6763# else
6764# ifdef DL_NOW
6765# define LT_DLLAZY_OR_NOW DL_NOW
6766# else
6767# define LT_DLLAZY_OR_NOW 0
6768# endif
6769# endif
6770# endif
6771# endif
6772#endif
6773
6774#ifdef __cplusplus
6775extern "C" void exit (int);
6776#endif
6777
6778void fnord() { int i=42;}
6779int main ()
6780{
6781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6782 int status = $lt_dlunknown;
6783
6784 if (self)
6785 {
6786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6788 /* dlclose (self); */
6789 }
6790
6791 exit (status);
6792}
6793EOF
a.rottmann84e63352003-03-24 09:42:16 +00006794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006795 (eval $ac_link) 2>&5
6796 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006798 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6799 (./conftest; exit; ) 2>/dev/null
6800 lt_status=$?
6801 case x$lt_status in
6802 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6803 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6804 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6805 esac
6806 else :
6807 # compilation failed
6808 lt_cv_dlopen_self_static=no
6809 fi
6810fi
6811rm -fr conftest*
6812
a.rottmann84e63352003-03-24 09:42:16 +00006813
drh71eb93e2001-09-28 01:34:43 +00006814fi
a.rottmann84e63352003-03-24 09:42:16 +00006815echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00006816echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6817 fi
6818
6819 CPPFLAGS="$save_CPPFLAGS"
6820 LDFLAGS="$save_LDFLAGS"
6821 LIBS="$save_LIBS"
6822 ;;
6823 esac
6824
6825 case $lt_cv_dlopen_self in
6826 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6827 *) enable_dlopen_self=unknown ;;
6828 esac
6829
6830 case $lt_cv_dlopen_self_static in
6831 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6832 *) enable_dlopen_self_static=unknown ;;
6833 esac
6834fi
6835
drh71eb93e2001-09-28 01:34:43 +00006836
a.rottmann84e63352003-03-24 09:42:16 +00006837if test "$enable_shared" = yes && test "$GCC" = yes; then
6838 case $archive_cmds in
6839 *'~'*)
6840 # FIXME: we may have to deal with multi-command sequences.
6841 ;;
6842 '$CC '*)
6843 # Test whether the compiler implicitly links with -lc since on some
6844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6845 # to ld, don't add -lc before -lgcc.
6846 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6847echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6848 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 $rm conftest*
6852 echo 'static int dummy;' > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006853
a.rottmann84e63352003-03-24 09:42:16 +00006854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; then
6859 soname=conftest
6860 lib=conftest
6861 libobjs=conftest.$ac_objext
6862 deplibs=
6863 wl=$lt_cv_prog_cc_wl
6864 compiler_flags=-v
6865 linker_flags=-v
6866 verstring=
6867 output_objdir=.
6868 libname=conftest
6869 save_allow_undefined_flag=$allow_undefined_flag
6870 allow_undefined_flag=
6871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6872 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }
6876 then
6877 lt_cv_archive_cmds_need_lc=no
6878 else
6879 lt_cv_archive_cmds_need_lc=yes
6880 fi
6881 allow_undefined_flag=$save_allow_undefined_flag
6882 else
6883 cat conftest.err 1>&5
6884 fi
6885fi
drh71eb93e2001-09-28 01:34:43 +00006886
a.rottmann84e63352003-03-24 09:42:16 +00006887 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6888echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6889 ;;
6890 esac
6891fi
6892need_lc=${lt_cv_archive_cmds_need_lc-yes}
drh71eb93e2001-09-28 01:34:43 +00006893
a.rottmann84e63352003-03-24 09:42:16 +00006894# The second clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00006895# libtool distribution, otherwise you forgot to ship ltmain.sh
6896# with your package, and you will get complaints that there are
6897# no rules to generate ltmain.sh.
6898if test -f "$ltmain"; then
a.rottmann84e63352003-03-24 09:42:16 +00006899 :
6900else
6901 # If there is no Makefile yet, we rely on a make rule to execute
6902 # `config.status --recheck' to rerun these tests and create the
6903 # libtool script then.
6904 test -f Makefile && make "$ltmain"
6905fi
6906
6907if test -f "$ltmain"; then
6908 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6909 $rm -f "${ofile}T"
6910
6911 echo creating $ofile
6912
drh71eb93e2001-09-28 01:34:43 +00006913 # Now quote all the things that may contain metacharacters while being
6914 # careful not to overquote the AC_SUBSTed values. We take copies of the
6915 # variables and quote the copies for generation of the libtool script.
a.rottmann84e63352003-03-24 09:42:16 +00006916 for var in echo old_CC old_CFLAGS SED \
6917 AR AR_FLAGS CC LD LN_S NM SHELL \
6918 reload_flag reload_cmds wl \
6919 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6920 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6921 library_names_spec soname_spec \
6922 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6923 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6924 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6925 old_striplib striplib file_magic_cmd export_symbols_cmds \
6926 deplibs_check_method allow_undefined_flag no_undefined_flag \
6927 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6928 global_symbol_to_c_name_address \
6929 hardcode_libdir_flag_spec hardcode_libdir_separator \
drh71eb93e2001-09-28 01:34:43 +00006930 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann84e63352003-03-24 09:42:16 +00006931 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00006932
6933 case $var in
a.rottmann84e63352003-03-24 09:42:16 +00006934 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
drh71eb93e2001-09-28 01:34:43 +00006935 old_postinstall_cmds | old_postuninstall_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00006936 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6937 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6938 postinstall_cmds | postuninstall_cmds | \
6939 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00006940 # Double-quote double-evaled strings.
6941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6942 ;;
6943 *)
6944 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6945 ;;
6946 esac
6947 done
6948
a.rottmann84e63352003-03-24 09:42:16 +00006949 cat <<__EOF__ > "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00006950#! $SHELL
6951
a.rottmann84e63352003-03-24 09:42:16 +00006952# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00006953# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6954# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6955#
a.rottmann84e63352003-03-24 09:42:16 +00006956# Copyright (C) 1996-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00006957# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6958#
6959# This program is free software; you can redistribute it and/or modify
6960# it under the terms of the GNU General Public License as published by
6961# the Free Software Foundation; either version 2 of the License, or
6962# (at your option) any later version.
6963#
6964# This program is distributed in the hope that it will be useful, but
6965# WITHOUT ANY WARRANTY; without even the implied warranty of
6966# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6967# General Public License for more details.
6968#
6969# You should have received a copy of the GNU General Public License
6970# along with this program; if not, write to the Free Software
6971# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6972#
6973# As a special exception to the GNU General Public License, if you
6974# distribute this file as part of a program that contains a
6975# configuration script generated by Autoconf, you may include it under
6976# the same distribution terms that you use for the rest of that program.
6977
a.rottmann84e63352003-03-24 09:42:16 +00006978# A sed that does not truncate output.
6979SED=$lt_SED
6980
drh71eb93e2001-09-28 01:34:43 +00006981# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann84e63352003-03-24 09:42:16 +00006982Xsed="${SED} -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00006983
6984# The HP-UX ksh and POSIX shell print the target directory to stdout
6985# if CDPATH is set.
6986if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6987
drh71eb93e2001-09-28 01:34:43 +00006988# ### BEGIN LIBTOOL CONFIG
6989
6990# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6991
6992# Shell to use when invoking shell scripts.
6993SHELL=$lt_SHELL
6994
6995# Whether or not to build shared libraries.
6996build_libtool_libs=$enable_shared
6997
6998# Whether or not to build static libraries.
6999build_old_libs=$enable_static
7000
7001# Whether or not to add -lc for building shared libraries.
a.rottmann84e63352003-03-24 09:42:16 +00007002build_libtool_need_lc=$need_lc
drh71eb93e2001-09-28 01:34:43 +00007003
7004# Whether or not to optimize for fast installation.
7005fast_install=$enable_fast_install
7006
7007# The host system.
7008host_alias=$host_alias
7009host=$host
7010
7011# An echo program that does not interpret backslashes.
7012echo=$lt_echo
7013
7014# The archiver.
7015AR=$lt_AR
7016AR_FLAGS=$lt_AR_FLAGS
7017
a.rottmann84e63352003-03-24 09:42:16 +00007018# The default C compiler.
7019CC=$lt_CC
drh71eb93e2001-09-28 01:34:43 +00007020
7021# Is the compiler the GNU C compiler?
7022with_gcc=$GCC
7023
7024# The linker used to build libraries.
7025LD=$lt_LD
7026
7027# Whether we need hard or soft links.
7028LN_S=$lt_LN_S
7029
7030# A BSD-compatible nm program.
7031NM=$lt_NM
7032
7033# A symbol stripping program
7034STRIP=$STRIP
7035
7036# Used to examine libraries when file_magic_cmd begins "file"
7037MAGIC_CMD=$MAGIC_CMD
7038
7039# Used on cygwin: DLL creation program.
7040DLLTOOL="$DLLTOOL"
7041
7042# Used on cygwin: object dumper.
7043OBJDUMP="$OBJDUMP"
7044
7045# Used on cygwin: assembler.
7046AS="$AS"
7047
7048# The name of the directory that contains temporary libtool files.
7049objdir=$objdir
7050
7051# How to create reloadable object files.
7052reload_flag=$lt_reload_flag
7053reload_cmds=$lt_reload_cmds
7054
7055# How to pass a linker flag through the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00007056wl=$lt_wl
drh71eb93e2001-09-28 01:34:43 +00007057
7058# Object file suffix (normally "o").
7059objext="$ac_objext"
7060
7061# Old archive suffix (normally "a").
7062libext="$libext"
7063
7064# Executable file suffix (normally "").
7065exeext="$exeext"
7066
7067# Additional compiler flags for building library objects.
a.rottmann84e63352003-03-24 09:42:16 +00007068pic_flag=$lt_pic_flag
drh71eb93e2001-09-28 01:34:43 +00007069pic_mode=$pic_mode
7070
drh71eb93e2001-09-28 01:34:43 +00007071# Does compiler simultaneously support -c and -o options?
a.rottmann84e63352003-03-24 09:42:16 +00007072compiler_c_o=$lt_compiler_c_o
7073
7074# Can we write directly to a .lo ?
7075compiler_o_lo=$lt_compiler_o_lo
drh71eb93e2001-09-28 01:34:43 +00007076
7077# Must we lock files when doing compilation ?
7078need_locks=$lt_need_locks
7079
7080# Do we need the lib prefix for modules?
7081need_lib_prefix=$need_lib_prefix
7082
7083# Do we need a version for libraries?
7084need_version=$need_version
7085
7086# Whether dlopen is supported.
7087dlopen_support=$enable_dlopen
7088
7089# Whether dlopen of programs is supported.
7090dlopen_self=$enable_dlopen_self
7091
7092# Whether dlopen of statically linked programs is supported.
7093dlopen_self_static=$enable_dlopen_self_static
7094
7095# Compiler flag to prevent dynamic linking.
a.rottmann84e63352003-03-24 09:42:16 +00007096link_static_flag=$lt_link_static_flag
drh71eb93e2001-09-28 01:34:43 +00007097
7098# Compiler flag to turn off builtin functions.
a.rottmann84e63352003-03-24 09:42:16 +00007099no_builtin_flag=$lt_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00007100
7101# Compiler flag to allow reflexive dlopens.
7102export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7103
7104# Compiler flag to generate shared objects directly from archives.
7105whole_archive_flag_spec=$lt_whole_archive_flag_spec
7106
7107# Compiler flag to generate thread-safe objects.
7108thread_safe_flag_spec=$lt_thread_safe_flag_spec
7109
7110# Library versioning type.
7111version_type=$version_type
7112
7113# Format of library name prefix.
7114libname_spec=$lt_libname_spec
7115
7116# List of archive names. First name is the real one, the rest are links.
7117# The last name is the one that the linker finds with -lNAME.
7118library_names_spec=$lt_library_names_spec
7119
7120# The coded name of the library, if different from the real name.
7121soname_spec=$lt_soname_spec
7122
7123# Commands used to build and install an old-style archive.
7124RANLIB=$lt_RANLIB
7125old_archive_cmds=$lt_old_archive_cmds
7126old_postinstall_cmds=$lt_old_postinstall_cmds
7127old_postuninstall_cmds=$lt_old_postuninstall_cmds
7128
7129# Create an old-style archive from a shared archive.
7130old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7131
7132# Create a temporary old-style archive to link instead of a shared archive.
7133old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7134
7135# Commands used to build and install a shared archive.
7136archive_cmds=$lt_archive_cmds
7137archive_expsym_cmds=$lt_archive_expsym_cmds
7138postinstall_cmds=$lt_postinstall_cmds
7139postuninstall_cmds=$lt_postuninstall_cmds
7140
7141# Commands to strip libraries.
7142old_striplib=$lt_old_striplib
7143striplib=$lt_striplib
7144
drh71eb93e2001-09-28 01:34:43 +00007145# Method to check whether dependent libraries are shared objects.
7146deplibs_check_method=$lt_deplibs_check_method
7147
7148# Command to use when deplibs_check_method == file_magic.
7149file_magic_cmd=$lt_file_magic_cmd
7150
7151# Flag that allows shared libraries with undefined symbols to be built.
7152allow_undefined_flag=$lt_allow_undefined_flag
7153
7154# Flag that forces no undefined symbols.
7155no_undefined_flag=$lt_no_undefined_flag
7156
7157# Commands used to finish a libtool library installation in a directory.
7158finish_cmds=$lt_finish_cmds
7159
7160# Same as above, but a single script fragment to be evaled but not shown.
7161finish_eval=$lt_finish_eval
7162
7163# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann84e63352003-03-24 09:42:16 +00007164global_symbol_pipe=$lt_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00007165
7166# Transform the output of nm in a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00007167global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00007168
7169# Transform the output of nm in a C name address pair
a.rottmann84e63352003-03-24 09:42:16 +00007170global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00007171
7172# This is the shared library runtime path variable.
7173runpath_var=$runpath_var
7174
7175# This is the shared library path variable.
7176shlibpath_var=$shlibpath_var
7177
7178# Is shlibpath searched before the hard-coded library search path?
7179shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7180
7181# How to hardcode a shared library path into an executable.
7182hardcode_action=$hardcode_action
7183
7184# Whether we should hardcode library paths into libraries.
7185hardcode_into_libs=$hardcode_into_libs
7186
7187# Flag to hardcode \$libdir into a binary during linking.
7188# This must work even if \$libdir does not exist.
7189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7190
7191# Whether we need a single -rpath flag with a separated argument.
7192hardcode_libdir_separator=$lt_hardcode_libdir_separator
7193
7194# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7195# resulting binary.
7196hardcode_direct=$hardcode_direct
7197
7198# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7199# resulting binary.
7200hardcode_minus_L=$hardcode_minus_L
7201
7202# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7203# the resulting binary.
7204hardcode_shlibpath_var=$hardcode_shlibpath_var
7205
7206# Variables whose values should be saved in libtool wrapper scripts and
7207# restored at relink time.
7208variables_saved_for_relink="$variables_saved_for_relink"
7209
7210# Whether libtool must link a program against all its dependency libraries.
7211link_all_deplibs=$link_all_deplibs
7212
7213# Compile-time system search path for libraries
7214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7215
7216# Run-time system search path for libraries
7217sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7218
7219# Fix the shell variable \$srcfile for the compiler.
7220fix_srcfile_path="$fix_srcfile_path"
7221
7222# Set to yes if exported symbols are required.
7223always_export_symbols=$always_export_symbols
7224
7225# The commands to list exported symbols.
7226export_symbols_cmds=$lt_export_symbols_cmds
7227
7228# The commands to extract the exported symbol list from a shared archive.
7229extract_expsyms_cmds=$lt_extract_expsyms_cmds
7230
7231# Symbols that should not be listed in the preloaded symbols.
7232exclude_expsyms=$lt_exclude_expsyms
7233
7234# Symbols that must always be exported.
7235include_expsyms=$lt_include_expsyms
7236
7237# ### END LIBTOOL CONFIG
7238
7239__EOF__
7240
7241 case $host_os in
7242 aix3*)
a.rottmann84e63352003-03-24 09:42:16 +00007243 cat <<\EOF >> "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00007244
7245# AIX sometimes has problems with the GCC collect2 program. For some
7246# reason, if we set the COLLECT_NAMES environment variable, the problems
7247# vanish in a puff of smoke.
7248if test "X${COLLECT_NAMES+set}" != Xset; then
7249 COLLECT_NAMES=
7250 export COLLECT_NAMES
7251fi
7252EOF
7253 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007254 esac
drh71eb93e2001-09-28 01:34:43 +00007255
a.rottmann84e63352003-03-24 09:42:16 +00007256 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00007257 cygwin* | mingw* | pw32* | os2*)
a.rottmann84e63352003-03-24 09:42:16 +00007258 cat <<'EOF' >> "${ofile}T"
7259 # This is a source program that is used to create dlls on Windows
7260 # Don't remove nor modify the starting and closing comments
7261# /* ltdll.c starts here */
drh71eb93e2001-09-28 01:34:43 +00007262# #define WIN32_LEAN_AND_MEAN
7263# #include <windows.h>
7264# #undef WIN32_LEAN_AND_MEAN
7265# #include <stdio.h>
7266#
7267# #ifndef __CYGWIN__
7268# # ifdef __CYGWIN32__
7269# # define __CYGWIN__ __CYGWIN32__
7270# # endif
7271# #endif
7272#
7273# #ifdef __cplusplus
7274# extern "C" {
7275# #endif
7276# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7277# #ifdef __cplusplus
7278# }
7279# #endif
7280#
7281# #ifdef __CYGWIN__
7282# #include <cygwin/cygwin_dll.h>
7283# DECLARE_CYGWIN_DLL( DllMain );
7284# #endif
7285# HINSTANCE __hDllInstance_base;
7286#
7287# BOOL APIENTRY
7288# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7289# {
7290# __hDllInstance_base = hInst;
7291# return TRUE;
7292# }
7293# /* ltdll.c ends here */
a.rottmann84e63352003-03-24 09:42:16 +00007294 # This is a source program that is used to create import libraries
7295 # on Windows for dlls which lack them. Don't remove nor modify the
7296 # starting and closing comments
7297# /* impgen.c starts here */
7298# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00007299#
7300# This file is part of GNU libtool.
7301#
7302# This program is free software; you can redistribute it and/or modify
7303# it under the terms of the GNU General Public License as published by
7304# the Free Software Foundation; either version 2 of the License, or
7305# (at your option) any later version.
7306#
7307# This program is distributed in the hope that it will be useful,
7308# but WITHOUT ANY WARRANTY; without even the implied warranty of
7309# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7310# GNU General Public License for more details.
7311#
7312# You should have received a copy of the GNU General Public License
7313# along with this program; if not, write to the Free Software
7314# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7315# */
7316#
7317# #include <stdio.h> /* for printf() */
7318# #include <unistd.h> /* for open(), lseek(), read() */
7319# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7320# #include <string.h> /* for strdup() */
7321#
7322# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7323# #ifndef O_BINARY
7324# #define O_BINARY 0
7325# #endif
7326#
7327# static unsigned int
7328# pe_get16 (fd, offset)
7329# int fd;
7330# int offset;
7331# {
7332# unsigned char b[2];
7333# lseek (fd, offset, SEEK_SET);
7334# read (fd, b, 2);
7335# return b[0] + (b[1]<<8);
7336# }
7337#
7338# static unsigned int
7339# pe_get32 (fd, offset)
7340# int fd;
7341# int offset;
7342# {
7343# unsigned char b[4];
7344# lseek (fd, offset, SEEK_SET);
7345# read (fd, b, 4);
7346# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7347# }
7348#
7349# static unsigned int
7350# pe_as32 (ptr)
7351# void *ptr;
7352# {
7353# unsigned char *b = ptr;
7354# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7355# }
7356#
7357# int
7358# main (argc, argv)
7359# int argc;
7360# char *argv[];
7361# {
7362# int dll;
7363# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7364# unsigned long export_rva, export_size, nsections, secptr, expptr;
7365# unsigned long name_rvas, nexp;
7366# unsigned char *expdata, *erva;
7367# char *filename, *dll_name;
7368#
7369# filename = argv[1];
7370#
7371# dll = open(filename, O_RDONLY|O_BINARY);
7372# if (dll < 1)
7373# return 1;
7374#
7375# dll_name = filename;
7376#
7377# for (i=0; filename[i]; i++)
7378# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7379# dll_name = filename + i +1;
7380#
7381# pe_header_offset = pe_get32 (dll, 0x3c);
7382# opthdr_ofs = pe_header_offset + 4 + 20;
7383# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7384#
7385# if (num_entries < 1) /* no exports */
7386# return 1;
7387#
7388# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7389# export_size = pe_get32 (dll, opthdr_ofs + 100);
7390# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7391# secptr = (pe_header_offset + 4 + 20 +
7392# pe_get16 (dll, pe_header_offset + 4 + 16));
7393#
7394# expptr = 0;
7395# for (i = 0; i < nsections; i++)
7396# {
7397# char sname[8];
7398# unsigned long secptr1 = secptr + 40 * i;
7399# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7400# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7401# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7402# lseek(dll, secptr1, SEEK_SET);
7403# read(dll, sname, 8);
7404# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7405# {
7406# expptr = fptr + (export_rva - vaddr);
7407# if (export_rva + export_size > vaddr + vsize)
7408# export_size = vsize - (export_rva - vaddr);
7409# break;
7410# }
7411# }
7412#
7413# expdata = (unsigned char*)malloc(export_size);
7414# lseek (dll, expptr, SEEK_SET);
7415# read (dll, expdata, export_size);
7416# erva = expdata - export_rva;
7417#
7418# nexp = pe_as32 (expdata+24);
7419# name_rvas = pe_as32 (expdata+32);
7420#
7421# printf ("EXPORTS\n");
7422# for (i = 0; i<nexp; i++)
7423# {
7424# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7425# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7426# }
7427#
7428# return 0;
7429# }
7430# /* impgen.c ends here */
7431
7432EOF
7433 ;;
7434 esac
7435
7436 # We use sed instead of cat because bash on DJGPP gets confused if
7437 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7438 # text mode, it properly converts lines to CR/LF. This bash problem
7439 # is reportedly fixed, but why not run on old versions too?
a.rottmann84e63352003-03-24 09:42:16 +00007440 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00007441
a.rottmann84e63352003-03-24 09:42:16 +00007442 mv -f "${ofile}T" "$ofile" || \
7443 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
drh71eb93e2001-09-28 01:34:43 +00007444 chmod +x "$ofile"
drh71eb93e2001-09-28 01:34:43 +00007445fi
7446
drh71eb93e2001-09-28 01:34:43 +00007447
drh71eb93e2001-09-28 01:34:43 +00007448
drh71eb93e2001-09-28 01:34:43 +00007449
drh71eb93e2001-09-28 01:34:43 +00007450
7451# This can be used to rebuild libtool when needed
7452LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7453
7454# Always use our own libtool.
7455LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7456
7457# Prevent multiple expansion
7458
a.rottmann84e63352003-03-24 09:42:16 +00007459
drh71eb93e2001-09-28 01:34:43 +00007460# Find a good install program. We prefer a C program (faster),
7461# so one script is as good as another. But avoid the broken or
7462# incompatible versions:
7463# SysV /etc/install, /usr/sbin/install
7464# SunOS /usr/etc/install
7465# IRIX /sbin/install
7466# AIX /bin/install
7467# AmigaOS /C/install, which installs bootblocks on floppy discs
7468# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7469# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7470# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00007471# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00007472# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +00007473echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7474echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00007475if test -z "$INSTALL"; then
7476if test "${ac_cv_path_install+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478else
a.rottmann84e63352003-03-24 09:42:16 +00007479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 # Account for people who put trailing slashes in PATH elements.
7485case $as_dir/ in
7486 ./ | .// | /cC/* | \
7487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +00007488 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +00007489 /usr/ucb/* ) ;;
7490 *)
7491 # OSF1 and SCO ODT 3.0 have their own names for install.
7492 # Don't use installbsd from OSF since it installs stuff as root
7493 # by default.
7494 for ac_prog in ginstall scoinst install; do
7495 for ac_exec_ext in '' $ac_executable_extensions; do
a.rottmann964dbb12004-02-26 19:47:42 +00007496 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7497 if test $ac_prog = install &&
7498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7499 # AIX install. It has an incompatible calling convention.
7500 :
7501 elif test $ac_prog = install &&
7502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7503 # program-specific install script used by HP pwplus--don't use.
7504 :
7505 else
7506 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7507 break 3
7508 fi
7509 fi
drh71eb93e2001-09-28 01:34:43 +00007510 done
a.rottmann84e63352003-03-24 09:42:16 +00007511 done
7512 ;;
7513esac
7514done
7515
drh71eb93e2001-09-28 01:34:43 +00007516
7517fi
7518 if test "${ac_cv_path_install+set}" = set; then
7519 INSTALL=$ac_cv_path_install
7520 else
7521 # As a last resort, use the slow shell script. We don't cache a
7522 # path for INSTALL within a source directory, because that will
7523 # break other packages using the cache if that directory is
7524 # removed, or if the path is relative.
7525 INSTALL=$ac_install_sh
7526 fi
7527fi
a.rottmann84e63352003-03-24 09:42:16 +00007528echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +00007529echo "${ECHO_T}$INSTALL" >&6
7530
7531# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7532# It thinks the first close brace ends the variable substitution.
7533test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7534
7535test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7536
7537test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7538
a.rottmann84e63352003-03-24 09:42:16 +00007539
drh75897232000-05-29 14:26:00 +00007540#########
7541# Set up an appropriate program prefix
7542#
7543if test "$program_prefix" = "NONE"; then
7544 program_prefix=""
7545fi
7546
a.rottmann84e63352003-03-24 09:42:16 +00007547
7548if test -f VERSION; then
7549 VERSION=`cat VERSION`
7550 echo "Version set to $VERSION"
7551fi
7552
7553
drh75897232000-05-29 14:26:00 +00007554#########
7555# Check to see if the --with-hints=FILE option is used. If there is none,
7556# then check for a files named "$host.hints" and ../$hosts.hints where
7557# $host is the hostname of the build system. If still no hints are
7558# found, try looking in $system.hints and ../$system.hints where
7559# $system is the result of uname -s.
7560#
drh71eb93e2001-09-28 01:34:43 +00007561
drh75897232000-05-29 14:26:00 +00007562# Check whether --with-hints or --without-hints was given.
7563if test "${with_hints+set}" = set; then
7564 withval="$with_hints"
7565 hints=$withval
drh71eb93e2001-09-28 01:34:43 +00007566fi;
drh75897232000-05-29 14:26:00 +00007567if test "$hints" = ""; then
7568 host=`hostname | sed 's/\..*//'`
7569 if test -r $host.hints; then
7570 hints=$host.hints
7571 else
7572 if test -r ../$host.hints; then
7573 hints=../$host.hints
7574 fi
7575 fi
7576fi
7577if test "$hints" = ""; then
7578 sys=`uname -s`
7579 if test -r $sys.hints; then
7580 hints=$sys.hints
7581 else
7582 if test -r ../$sys.hints; then
7583 hints=../$sys.hints
7584 fi
7585 fi
7586fi
7587if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +00007588 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +00007589echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +00007590 . $hints
7591fi
7592
7593#########
7594# Locate a compiler for the build machine. This compiler should
7595# generate command-line programs that run on the build machine.
7596#
7597default_build_cflags="-g"
7598if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +00007599 ac_ext=c
7600ac_cpp='$CPP $CPPFLAGS'
7601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7603ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604if test -n "$ac_tool_prefix"; then
7605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7606set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007607echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7609if test "${ac_cv_prog_CC+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007611else
7612 if test -n "$CC"; then
7613 ac_cv_prog_CC="$CC" # Let the user override the test.
7614else
a.rottmann84e63352003-03-24 09:42:16 +00007615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
drh71eb93e2001-09-28 01:34:43 +00007627done
7628
drh75897232000-05-29 14:26:00 +00007629fi
7630fi
drh71eb93e2001-09-28 01:34:43 +00007631CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007632if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007633 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007634echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007635else
a.rottmann84e63352003-03-24 09:42:16 +00007636 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007637echo "${ECHO_T}no" >&6
7638fi
7639
7640fi
7641if test -z "$ac_cv_prog_CC"; then
7642 ac_ct_CC=$CC
7643 # Extract the first word of "gcc", so it can be a program name with args.
7644set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007645echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 if test -n "$ac_ct_CC"; then
7651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7652else
a.rottmann84e63352003-03-24 09:42:16 +00007653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_ac_ct_CC="gcc"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7663 fi
7664done
drh71eb93e2001-09-28 01:34:43 +00007665done
7666
7667fi
7668fi
7669ac_ct_CC=$ac_cv_prog_ac_ct_CC
7670if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007672echo "${ECHO_T}$ac_ct_CC" >&6
7673else
a.rottmann84e63352003-03-24 09:42:16 +00007674 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007675echo "${ECHO_T}no" >&6
7676fi
7677
7678 CC=$ac_ct_CC
7679else
7680 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +00007681fi
7682
7683if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +00007684 if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7686set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007687echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7689if test "${ac_cv_prog_CC+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007691else
7692 if test -n "$CC"; then
7693 ac_cv_prog_CC="$CC" # Let the user override the test.
7694else
a.rottmann84e63352003-03-24 09:42:16 +00007695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_CC="${ac_tool_prefix}cc"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
drh71eb93e2001-09-28 01:34:43 +00007707done
7708
7709fi
7710fi
7711CC=$ac_cv_prog_CC
7712if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007713 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007714echo "${ECHO_T}$CC" >&6
7715else
a.rottmann84e63352003-03-24 09:42:16 +00007716 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007717echo "${ECHO_T}no" >&6
7718fi
7719
7720fi
7721if test -z "$ac_cv_prog_CC"; then
7722 ac_ct_CC=$CC
7723 # Extract the first word of "cc", so it can be a program name with args.
7724set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007725echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 if test -n "$ac_ct_CC"; then
7731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7732else
a.rottmann84e63352003-03-24 09:42:16 +00007733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740 ac_cv_prog_ac_ct_CC="cc"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
drh71eb93e2001-09-28 01:34:43 +00007745done
7746
7747fi
7748fi
7749ac_ct_CC=$ac_cv_prog_ac_ct_CC
7750if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007752echo "${ECHO_T}$ac_ct_CC" >&6
7753else
a.rottmann84e63352003-03-24 09:42:16 +00007754 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007755echo "${ECHO_T}no" >&6
7756fi
7757
7758 CC=$ac_ct_CC
7759else
7760 CC="$ac_cv_prog_CC"
7761fi
7762
7763fi
7764if test -z "$CC"; then
7765 # Extract the first word of "cc", so it can be a program name with args.
7766set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007767echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7769if test "${ac_cv_prog_CC+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772 if test -n "$CC"; then
7773 ac_cv_prog_CC="$CC" # Let the user override the test.
7774else
drh75897232000-05-29 14:26:00 +00007775 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00007776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7784 ac_prog_rejected=yes
7785 continue
7786 fi
7787 ac_cv_prog_CC="cc"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
drh71eb93e2001-09-28 01:34:43 +00007792done
7793
drh75897232000-05-29 14:26:00 +00007794if test $ac_prog_rejected = yes; then
7795 # We found a bogon in the path, so make sure we never use it.
7796 set dummy $ac_cv_prog_CC
7797 shift
drh71eb93e2001-09-28 01:34:43 +00007798 if test $# != 0; then
drh75897232000-05-29 14:26:00 +00007799 # We chose a different compiler from the bogus one.
7800 # However, it has the same basename, so the bogon will be chosen
7801 # first if we set CC to just the basename; use the full file name.
7802 shift
a.rottmann84e63352003-03-24 09:42:16 +00007803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +00007804 fi
7805fi
7806fi
7807fi
drh71eb93e2001-09-28 01:34:43 +00007808CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007809if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007810 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007811echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007812else
a.rottmann84e63352003-03-24 09:42:16 +00007813 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007814echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007815fi
7816
drh71eb93e2001-09-28 01:34:43 +00007817fi
7818if test -z "$CC"; then
7819 if test -n "$ac_tool_prefix"; then
7820 for ac_prog in cl
7821 do
7822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007824echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7826if test "${ac_cv_prog_CC+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007828else
7829 if test -n "$CC"; then
7830 ac_cv_prog_CC="$CC" # Let the user override the test.
7831else
a.rottmann84e63352003-03-24 09:42:16 +00007832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
drh71eb93e2001-09-28 01:34:43 +00007844done
7845
drh75897232000-05-29 14:26:00 +00007846fi
7847fi
drh71eb93e2001-09-28 01:34:43 +00007848CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007849if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007850 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007851echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007852else
a.rottmann84e63352003-03-24 09:42:16 +00007853 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007854echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007855fi
7856
drh71eb93e2001-09-28 01:34:43 +00007857 test -n "$CC" && break
7858 done
7859fi
7860if test -z "$CC"; then
7861 ac_ct_CC=$CC
7862 for ac_prog in cl
7863do
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007866echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871 if test -n "$ac_ct_CC"; then
7872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7873else
a.rottmann84e63352003-03-24 09:42:16 +00007874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_prog_ac_ct_CC="$ac_prog"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885done
drh71eb93e2001-09-28 01:34:43 +00007886done
drh75897232000-05-29 14:26:00 +00007887
drh71eb93e2001-09-28 01:34:43 +00007888fi
7889fi
7890ac_ct_CC=$ac_cv_prog_ac_ct_CC
7891if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007893echo "${ECHO_T}$ac_ct_CC" >&6
7894else
a.rottmann84e63352003-03-24 09:42:16 +00007895 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007896echo "${ECHO_T}no" >&6
7897fi
drh75897232000-05-29 14:26:00 +00007898
drh71eb93e2001-09-28 01:34:43 +00007899 test -n "$ac_ct_CC" && break
7900done
drh75897232000-05-29 14:26:00 +00007901
drh71eb93e2001-09-28 01:34:43 +00007902 CC=$ac_ct_CC
7903fi
7904
7905fi
7906
a.rottmann84e63352003-03-24 09:42:16 +00007907
7908test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7909See \`config.log' for more details." >&5
7910echo "$as_me: error: no acceptable C compiler found in \$PATH
7911See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00007912 { (exit 1); exit 1; }; }
7913
7914# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00007915echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00007916 "checking for C compiler version" >&5
7917ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00007918{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007919 (eval $ac_compiler --version </dev/null >&5) 2>&5
7920 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007922 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007924 (eval $ac_compiler -v </dev/null >&5) 2>&5
7925 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007927 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007929 (eval $ac_compiler -V </dev/null >&5) 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
a.rottmann84e63352003-03-24 09:42:16 +00007934echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00007935echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7936if test "${ac_cv_c_compiler_gnu+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007940/* confdefs.h. */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00007945
drh71eb93e2001-09-28 01:34:43 +00007946int
7947main ()
7948{
7949#ifndef __GNUC__
7950 choke me
drh75897232000-05-29 14:26:00 +00007951#endif
drh75897232000-05-29 14:26:00 +00007952
drh71eb93e2001-09-28 01:34:43 +00007953 ;
7954 return 0;
7955}
7956_ACEOF
7957rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00007959 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00007960 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007965 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00007966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007974 (eval $ac_try) 2>&5
7975 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007977 (exit $ac_status); }; }; then
7978 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +00007979else
drh71eb93e2001-09-28 01:34:43 +00007980 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007981sed 's/^/| /' conftest.$ac_ext >&5
7982
drh71eb93e2001-09-28 01:34:43 +00007983ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +00007984fi
a.rottmann964dbb12004-02-26 19:47:42 +00007985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007986ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +00007987
drh71eb93e2001-09-28 01:34:43 +00007988fi
a.rottmann84e63352003-03-24 09:42:16 +00007989echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00007990echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7991GCC=`test $ac_compiler_gnu = yes && echo yes`
7992ac_test_CFLAGS=${CFLAGS+set}
7993ac_save_CFLAGS=$CFLAGS
7994CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00007995echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00007996echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7997if test "${ac_cv_prog_cc_g+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007999else
drh71eb93e2001-09-28 01:34:43 +00008000 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008001/* confdefs.h. */
8002_ACEOF
8003cat confdefs.h >>conftest.$ac_ext
8004cat >>conftest.$ac_ext <<_ACEOF
8005/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008006
8007int
8008main ()
8009{
8010
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008017 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008018 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008023 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008032 (eval $ac_try) 2>&5
8033 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008035 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00008036 ac_cv_prog_cc_g=yes
8037else
drh71eb93e2001-09-28 01:34:43 +00008038 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008039sed 's/^/| /' conftest.$ac_ext >&5
8040
drh71eb93e2001-09-28 01:34:43 +00008041ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +00008042fi
a.rottmann964dbb12004-02-26 19:47:42 +00008043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00008044fi
a.rottmann84e63352003-03-24 09:42:16 +00008045echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00008046echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +00008047if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +00008048 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +00008049elif test $ac_cv_prog_cc_g = yes; then
8050 if test "$GCC" = yes; then
8051 CFLAGS="-g -O2"
8052 else
8053 CFLAGS="-g"
8054 fi
8055else
8056 if test "$GCC" = yes; then
8057 CFLAGS="-O2"
8058 else
8059 CFLAGS=
8060 fi
8061fi
a.rottmann84e63352003-03-24 09:42:16 +00008062echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8063echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8064if test "${ac_cv_prog_cc_stdc+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067 ac_cv_prog_cc_stdc=no
8068ac_save_CC=$CC
8069cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008070/* confdefs.h. */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h. */
8075#include <stdarg.h>
8076#include <stdio.h>
8077#include <sys/types.h>
8078#include <sys/stat.h>
8079/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8080struct buf { int x; };
8081FILE * (*rcsopen) (struct buf *, struct stat *, int);
8082static char *e (p, i)
8083 char **p;
8084 int i;
8085{
8086 return p[i];
8087}
8088static char *f (char * (*g) (char **, int), char **p, ...)
8089{
8090 char *s;
8091 va_list v;
8092 va_start (v,p);
8093 s = g (p, va_arg (v,int));
8094 va_end (v);
8095 return s;
8096}
a.rottmann964dbb12004-02-26 19:47:42 +00008097
8098/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8099 function prototypes and stuff, but not '\xHH' hex character constants.
8100 These don't provoke an error unfortunately, instead are silently treated
8101 as 'x'. The following induces an error, until -std1 is added to get
8102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8103 array size at least. It's necessary to write '\x00'==0 to get something
8104 that's true only with -std1. */
8105int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8106
a.rottmann84e63352003-03-24 09:42:16 +00008107int test (int i, double x);
8108struct s1 {int (*f) (int a);};
8109struct s2 {int (*f) (double a);};
8110int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8111int argc;
8112char **argv;
8113int
8114main ()
8115{
8116return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8117 ;
8118 return 0;
8119}
8120_ACEOF
8121# Don't try gcc -ansi; that turns off useful extensions and
8122# breaks some systems' header files.
8123# AIX -qlanglvl=ansi
8124# Ultrix and OSF/1 -std1
8125# HP-UX 10.20 and later -Ae
8126# HP-UX older versions -Aa -D_HPUX_SOURCE
8127# SVR4 -Xc -D__EXTENSIONS__
8128for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8129do
8130 CC="$ac_save_CC $ac_arg"
8131 rm -f conftest.$ac_objext
8132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008133 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008134 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008135 grep -v '^ *+' conftest.er1 >conftest.err
8136 rm -f conftest.er1
8137 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_prog_cc_stdc=$ac_arg
8153break
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158fi
a.rottmann964dbb12004-02-26 19:47:42 +00008159rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008160done
8161rm -f conftest.$ac_ext conftest.$ac_objext
8162CC=$ac_save_CC
8163
8164fi
8165
8166case "x$ac_cv_prog_cc_stdc" in
8167 x|xno)
8168 echo "$as_me:$LINENO: result: none needed" >&5
8169echo "${ECHO_T}none needed" >&6 ;;
8170 *)
8171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8172echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8173 CC="$CC $ac_cv_prog_cc_stdc" ;;
8174esac
8175
drh71eb93e2001-09-28 01:34:43 +00008176# Some people use a C++ compiler to compile C. Since we use `exit',
8177# in C++ we need to declare it. In case someone uses the same compiler
8178# for both compiling C and C++ we need to have the C++ compiler decide
8179# the declaration of exit, since it's the most demanding environment.
8180cat >conftest.$ac_ext <<_ACEOF
8181#ifndef __cplusplus
8182 choke me
8183#endif
8184_ACEOF
8185rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008187 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008188 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008193 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008202 (eval $ac_try) 2>&5
8203 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008205 (exit $ac_status); }; }; then
8206 for ac_declaration in \
a.rottmann964dbb12004-02-26 19:47:42 +00008207 '' \
drh71eb93e2001-09-28 01:34:43 +00008208 'extern "C" void std::exit (int) throw (); using std::exit;' \
8209 'extern "C" void std::exit (int); using std::exit;' \
8210 'extern "C" void exit (int) throw ();' \
8211 'extern "C" void exit (int);' \
8212 'void exit (int);'
8213do
8214 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008215/* confdefs.h. */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008220$ac_declaration
a.rottmann964dbb12004-02-26 19:47:42 +00008221#include <stdlib.h>
drh71eb93e2001-09-28 01:34:43 +00008222int
8223main ()
8224{
8225exit (42);
8226 ;
8227 return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008232 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008233 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008238 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; } &&
8245 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008247 (eval $ac_try) 2>&5
8248 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008250 (exit $ac_status); }; }; then
8251 :
8252else
8253 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008254sed 's/^/| /' conftest.$ac_ext >&5
8255
drh71eb93e2001-09-28 01:34:43 +00008256continue
8257fi
a.rottmann964dbb12004-02-26 19:47:42 +00008258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008259 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008260/* confdefs.h. */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
8264/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008265$ac_declaration
8266int
8267main ()
8268{
8269exit (42);
8270 ;
8271 return 0;
8272}
8273_ACEOF
8274rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008276 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008277 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008282 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008291 (eval $ac_try) 2>&5
8292 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008294 (exit $ac_status); }; }; then
8295 break
8296else
8297 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008298sed 's/^/| /' conftest.$ac_ext >&5
8299
drh71eb93e2001-09-28 01:34:43 +00008300fi
a.rottmann964dbb12004-02-26 19:47:42 +00008301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008302done
8303rm -f conftest*
8304if test -n "$ac_declaration"; then
8305 echo '#ifdef __cplusplus' >>confdefs.h
8306 echo $ac_declaration >>confdefs.h
8307 echo '#endif' >>confdefs.h
8308fi
8309
8310else
8311 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008312sed 's/^/| /' conftest.$ac_ext >&5
8313
drh71eb93e2001-09-28 01:34:43 +00008314fi
a.rottmann964dbb12004-02-26 19:47:42 +00008315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008316ac_ext=c
8317ac_cpp='$CPP $CPPFLAGS'
8318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8320ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00008321
xdong28f79f72003-09-23 00:35:21 +00008322 if test "$cross_compiling" = "yes"; then
8323 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
8324echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
8325 { (exit 1); exit 1; }; }
8326 fi
drh75897232000-05-29 14:26:00 +00008327 BUILD_CC=$CC
8328 default_build_cflags=$CFLAGS
8329else
8330 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008331 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008332echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008333 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008334 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008335echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +00008336fi
a.rottmann84e63352003-03-24 09:42:16 +00008337echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008338echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008339if test "$config_BUILD_CFLAGS" != ""; then
8340 CFLAGS=$config_BUILD_CFLAGS
8341 BUILD_CFLAGS=$config_BUILD_CFLAGS
8342else
8343 BUILD_CFLAGS=$default_build_cflags
8344fi
a.rottmann84e63352003-03-24 09:42:16 +00008345echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008346echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008347if test "$config_BUILD_LIBS" != ""; then
8348 BUILD_LIBS=$config_BUILD_LIBS
8349fi
8350
a.rottmann84e63352003-03-24 09:42:16 +00008351
8352
8353
drh75897232000-05-29 14:26:00 +00008354##########
8355# Locate a compiler that converts C code into *.o files that run on
8356# the target machine.
8357#
a.rottmann84e63352003-03-24 09:42:16 +00008358echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008359echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008360if test "$config_TARGET_CC" != ""; then
8361 TARGET_CC=$config_TARGET_CC
8362else
8363 TARGET_CC=$BUILD_CC
8364fi
a.rottmann84e63352003-03-24 09:42:16 +00008365echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008366echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008367echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008368echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008369if test "$config_TARGET_CFLAGS" != ""; then
8370 TARGET_CFLAGS=$config_TARGET_CFLAGS
8371else
8372 TARGET_CFLAGS=$BUILD_CFLAGS
8373fi
a.rottmann84e63352003-03-24 09:42:16 +00008374echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008375echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008376echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +00008377echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008378if test "$config_TARGET_LINK" = ""; then
8379 TARGET_LINK=$TARGET_CC
8380else
8381 TARGET_LINK=$config_TARGET_LINK
8382fi
a.rottmann84e63352003-03-24 09:42:16 +00008383echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +00008384echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008385echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008386echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008387if test "$config_TARGET_TFLAGS" != ""; then
8388 TARGET_TFLAGS=$config_TARGET_TFLAGS
8389else
8390 TARGET_TFLAGS=$BUILD_CFLAGS
8391fi
8392if test "$config_TARGET_RANLIB" != ""; then
8393 TARGET_RANLIB=$config_TARGET_RANLIB
8394else
drh71eb93e2001-09-28 01:34:43 +00008395 if test -n "$ac_tool_prefix"; then
8396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8397set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008398echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8400if test "${ac_cv_prog_RANLIB+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008402else
8403 if test -n "$RANLIB"; then
8404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8405else
a.rottmann84e63352003-03-24 09:42:16 +00008406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417done
drh71eb93e2001-09-28 01:34:43 +00008418done
8419
drh75897232000-05-29 14:26:00 +00008420fi
8421fi
drh71eb93e2001-09-28 01:34:43 +00008422RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +00008423if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008424 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008425echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +00008426else
a.rottmann84e63352003-03-24 09:42:16 +00008427 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008428echo "${ECHO_T}no" >&6
8429fi
8430
8431fi
8432if test -z "$ac_cv_prog_RANLIB"; then
8433 ac_ct_RANLIB=$RANLIB
8434 # Extract the first word of "ranlib", so it can be a program name with args.
8435set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008436echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8438if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440else
8441 if test -n "$ac_ct_RANLIB"; then
8442 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8443else
a.rottmann84e63352003-03-24 09:42:16 +00008444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_ac_ct_RANLIB="ranlib"
8452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455done
drh71eb93e2001-09-28 01:34:43 +00008456done
8457
8458 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8459fi
8460fi
8461ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8462if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008463 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008464echo "${ECHO_T}$ac_ct_RANLIB" >&6
8465else
a.rottmann84e63352003-03-24 09:42:16 +00008466 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008467echo "${ECHO_T}no" >&6
8468fi
8469
8470 RANLIB=$ac_ct_RANLIB
8471else
8472 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +00008473fi
8474
8475 TARGET_RANLIB=$RANLIB
8476fi
8477if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +00008478 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +00008479else
8480 TARGET_AR='ar cr'
8481fi
a.rottmann84e63352003-03-24 09:42:16 +00008482echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008483echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008484
a.rottmann84e63352003-03-24 09:42:16 +00008485
8486
8487
8488
8489
8490
drh75897232000-05-29 14:26:00 +00008491# Set the $cross variable if we are cross-compiling. Make
8492# it 0 if we are not.
8493#
a.rottmann84e63352003-03-24 09:42:16 +00008494echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +00008495echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008496if test "$BUILD_CC" = "$TARGET_CC"; then
8497 cross=0
a.rottmann84e63352003-03-24 09:42:16 +00008498 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008499echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008500else
8501 cross=1
a.rottmann84e63352003-03-24 09:42:16 +00008502 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008503echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00008504fi
8505
drh297ecf12001-04-05 15:57:13 +00008506##########
8507# Are we using UTF-8 or iso8859 encodings?
8508#
8509# Check whether --enable-utf8 or --disable-utf8 was given.
8510if test "${enable_utf8+set}" = set; then
8511 enableval="$enable_utf8"
drh71eb93e2001-09-28 01:34:43 +00008512
drh297ecf12001-04-05 15:57:13 +00008513else
8514 enable_utf8=no
drh71eb93e2001-09-28 01:34:43 +00008515fi;
a.rottmann84e63352003-03-24 09:42:16 +00008516echo "$as_me:$LINENO: checking character encoding" >&5
drh71eb93e2001-09-28 01:34:43 +00008517echo $ECHO_N "checking character encoding... $ECHO_C" >&6
drh297ecf12001-04-05 15:57:13 +00008518if test "$enable_utf8" = "no"; then
8519 ENCODING=ISO8859
a.rottmann84e63352003-03-24 09:42:16 +00008520 echo "$as_me:$LINENO: result: iso8859" >&5
drh71eb93e2001-09-28 01:34:43 +00008521echo "${ECHO_T}iso8859" >&6
drh297ecf12001-04-05 15:57:13 +00008522else
8523 ENCODING=UTF8
a.rottmann84e63352003-03-24 09:42:16 +00008524 echo "$as_me:$LINENO: result: UTF-8" >&5
drh71eb93e2001-09-28 01:34:43 +00008525echo "${ECHO_T}UTF-8" >&6
drh297ecf12001-04-05 15:57:13 +00008526fi
8527
a.rottmann84e63352003-03-24 09:42:16 +00008528
paulb0208cc2003-04-13 18:26:49 +00008529##########
8530# Do we want to support in-ram databases for ATTACH DATABASE and sqlite_open
8531#
8532# Check whether --enable-incore-db or --disable-incore-db was given.
8533if test "${enable_incore_db+set}" = set; then
8534 enableval="$enable_incore_db"
8535
8536else
paul2dc96f92003-04-20 11:46:34 +00008537 enable_incore_db=yes
paulb0208cc2003-04-13 18:26:49 +00008538fi;
8539echo "$as_me:$LINENO: checking whether to support incore databases for attach and open" >&5
8540echo $ECHO_N "checking whether to support incore databases for attach and open... $ECHO_C" >&6
paul2dc96f92003-04-20 11:46:34 +00008541if test "$enable_incore_db" = "no"; then
8542 INMEMORYDB=0
paulb0208cc2003-04-13 18:26:49 +00008543 echo "$as_me:$LINENO: result: no" >&5
8544echo "${ECHO_T}no" >&6
8545else
paul2dc96f92003-04-20 11:46:34 +00008546 INMEMORYDB=1
paulb0208cc2003-04-13 18:26:49 +00008547 echo "$as_me:$LINENO: result: yes" >&5
8548echo "${ECHO_T}yes" >&6
8549fi
8550
a.rottmann964dbb12004-02-26 19:47:42 +00008551
xdong28f79f72003-09-23 00:35:21 +00008552##########
8553# Do we want to support release
8554#
8555# Check whether --enable-releasemode or --disable-releasemode was given.
8556if test "${enable_releasemode+set}" = set; then
8557 enableval="$enable_releasemode"
8558
8559else
8560 enable_releasemode=no
8561fi;
8562echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
8563echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
8564if test "$enable_releasemode" = "no"; then
8565 ALLOWRELEASE=""
8566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
8568else
8569 ALLOWRELEASE="-release `cat VERSION`"
8570 echo "$as_me:$LINENO: result: yes" >&5
8571echo "${ECHO_T}yes" >&6
8572fi
paulb0208cc2003-04-13 18:26:49 +00008573
a.rottmann964dbb12004-02-26 19:47:42 +00008574
paulb0208cc2003-04-13 18:26:49 +00008575##########
8576# Do we want temporary databases in memory
8577#
8578# Check whether --enable-tempdb-in-ram or --disable-tempdb-in-ram was given.
8579if test "${enable_tempdb_in_ram+set}" = set; then
8580 enableval="$enable_tempdb_in_ram"
8581
8582else
paul2dc96f92003-04-20 11:46:34 +00008583 enable_tempdb_in_ram=no
paulb0208cc2003-04-13 18:26:49 +00008584fi;
8585echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
8586echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
paul2dc96f92003-04-20 11:46:34 +00008587case "$enable_tempdb_in_ram" in
paulb0208cc2003-04-13 18:26:49 +00008588 never )
paul2dc96f92003-04-20 11:46:34 +00008589 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +00008590 echo "$as_me:$LINENO: result: never" >&5
8591echo "${ECHO_T}never" >&6
8592 ;;
8593 no )
paul2dc96f92003-04-20 11:46:34 +00008594 INMEMORYDB=1
8595 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +00008596 echo "$as_me:$LINENO: result: no" >&5
8597echo "${ECHO_T}no" >&6
8598 ;;
8599 always )
paul2dc96f92003-04-20 11:46:34 +00008600 INMEMORYDB=1
8601 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +00008602 echo "$as_me:$LINENO: result: always" >&5
8603echo "${ECHO_T}always" >&6
8604 ;;
8605 * )
paul2dc96f92003-04-20 11:46:34 +00008606 INMEMORYDB=1
8607 TEMP_STORE=2
paulb0208cc2003-04-13 18:26:49 +00008608 echo "$as_me:$LINENO: result: yes" >&5
8609echo "${ECHO_T}yes" >&6
8610 ;;
8611esac
8612
8613
8614
paul2dc96f92003-04-20 11:46:34 +00008615
drh75897232000-05-29 14:26:00 +00008616###########
8617# Lots of things are different if we are compiling for Windows using
8618# the CYGWIN environment. So check for that special case and handle
8619# things accordingly.
8620#
a.rottmann84e63352003-03-24 09:42:16 +00008621echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +00008622echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008623if test "$config_BUILD_EXEEXT" = ".exe"; then
8624 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +00008625 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008626echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008627else
a.rottmann84e63352003-03-24 09:42:16 +00008628 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +00008629echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +00008630fi
8631if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008632
8633case $host_os in
drh71eb93e2001-09-28 01:34:43 +00008634 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +00008635 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +00008636esac
drh75897232000-05-29 14:26:00 +00008637
drh75897232000-05-29 14:26:00 +00008638fi
8639if test "$CYGWIN" = "yes"; then
8640 BUILD_EXEEXT=.exe
8641else
dougcurrie6194a5f2003-12-19 20:09:51 +00008642 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +00008643fi
8644if test "$cross" = "0"; then
8645 TARGET_EXEEXT=$BUILD_EXEEXT
8646else
8647 TARGET_EXEEXT=$config_TARGET_EXEEXT
8648fi
8649if test "$TARGET_EXEEXT" = ".exe"; then
8650 OS_UNIX=0
8651 OS_WIN=1
8652 tclsubdir=win
8653else
8654 OS_UNIX=1
8655 OS_WIN=0
8656 tclsubdir=unix
8657fi
8658TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN"
8659
a.rottmann84e63352003-03-24 09:42:16 +00008660
8661
8662
8663
8664
drh75897232000-05-29 14:26:00 +00008665##########
8666# Extract generic linker options from the environment.
8667#
8668if test "$config_TARGET_LIBS" != ""; then
8669 TARGET_LIBS=$config_TARGET_LIBS
8670else
8671 TARGET_LIBS=""
8672fi
8673
a.rottmann84e63352003-03-24 09:42:16 +00008674
drh75897232000-05-29 14:26:00 +00008675##########
8676# Figure out what C libraries are required to compile Tcl programs.
8677#
8678if test "$config_TARGET_TCL_LIBS" != ""; then
8679 TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
8680else
8681 if test "$with_tcl" != ""; then
8682 extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
8683 fi
8684 CC=$TARGET_CC
a.rottmann84e63352003-03-24 09:42:16 +00008685 echo "$as_me:$LINENO: checking for sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008686echo $ECHO_N "checking for sin... $ECHO_C" >&6
8687if test "${ac_cv_func_sin+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008689else
drh71eb93e2001-09-28 01:34:43 +00008690 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008696/* Define sin to an innocuous variant, in case <limits.h> declares sin.
8697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8698#define sin innocuous_sin
8699
drh75897232000-05-29 14:26:00 +00008700/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008701 which can conflict with char sin (); below.
8702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008704
a.rottmann84e63352003-03-24 09:42:16 +00008705#ifdef __STDC__
8706# include <limits.h>
8707#else
8708# include <assert.h>
8709#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008710
8711#undef sin
8712
drh75897232000-05-29 14:26:00 +00008713/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008714#ifdef __cplusplus
8715extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008716{
drh71eb93e2001-09-28 01:34:43 +00008717#endif
drh75897232000-05-29 14:26:00 +00008718/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008719 builtin and then its argument prototype would still apply. */
8720char sin ();
drh75897232000-05-29 14:26:00 +00008721/* The GNU C library defines this for functions which it implements
8722 to always fail with ENOSYS. Some functions are actually named
8723 something starting with __ and the normal name is an alias. */
8724#if defined (__stub_sin) || defined (__stub___sin)
8725choke me
8726#else
a.rottmann84e63352003-03-24 09:42:16 +00008727char (*f) () = sin;
8728#endif
8729#ifdef __cplusplus
8730}
drh75897232000-05-29 14:26:00 +00008731#endif
8732
a.rottmann84e63352003-03-24 09:42:16 +00008733int
8734main ()
8735{
8736return f != sin;
drh71eb93e2001-09-28 01:34:43 +00008737 ;
8738 return 0;
8739}
8740_ACEOF
8741rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008743 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008744 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008749 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 (eval $ac_try) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; } &&
8756 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008758 (eval $ac_try) 2>&5
8759 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008761 (exit $ac_status); }; }; then
8762 ac_cv_func_sin=yes
drh75897232000-05-29 14:26:00 +00008763else
drh71eb93e2001-09-28 01:34:43 +00008764 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008765sed 's/^/| /' conftest.$ac_ext >&5
8766
drh71eb93e2001-09-28 01:34:43 +00008767ac_cv_func_sin=no
drh75897232000-05-29 14:26:00 +00008768fi
a.rottmann964dbb12004-02-26 19:47:42 +00008769rm -f conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00008771fi
a.rottmann84e63352003-03-24 09:42:16 +00008772echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008773echo "${ECHO_T}$ac_cv_func_sin" >&6
8774if test $ac_cv_func_sin = yes; then
drh75897232000-05-29 14:26:00 +00008775 LIBS=""
8776else
drh71eb93e2001-09-28 01:34:43 +00008777 LIBS="-lm"
drh75897232000-05-29 14:26:00 +00008778fi
8779
a.rottmann84e63352003-03-24 09:42:16 +00008780
8781echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00008782echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8783if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008785else
drh71eb93e2001-09-28 01:34:43 +00008786 ac_check_lib_save_LIBS=$LIBS
drh75897232000-05-29 14:26:00 +00008787LIBS="-ldl $LIBS"
drh71eb93e2001-09-28 01:34:43 +00008788cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008789/* confdefs.h. */
8790_ACEOF
8791cat confdefs.h >>conftest.$ac_ext
8792cat >>conftest.$ac_ext <<_ACEOF
8793/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008794
drh75897232000-05-29 14:26:00 +00008795/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008796#ifdef __cplusplus
8797extern "C"
8798#endif
drh75897232000-05-29 14:26:00 +00008799/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008800 builtin and then its argument prototype would still apply. */
8801char dlopen ();
8802int
8803main ()
8804{
8805dlopen ();
8806 ;
8807 return 0;
8808}
8809_ACEOF
8810rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008812 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008813 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008818 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; } &&
8825 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008827 (eval $ac_try) 2>&5
8828 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008830 (exit $ac_status); }; }; then
8831 ac_cv_lib_dl_dlopen=yes
drh75897232000-05-29 14:26:00 +00008832else
drh71eb93e2001-09-28 01:34:43 +00008833 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008834sed 's/^/| /' conftest.$ac_ext >&5
8835
drh71eb93e2001-09-28 01:34:43 +00008836ac_cv_lib_dl_dlopen=no
drh75897232000-05-29 14:26:00 +00008837fi
a.rottmann964dbb12004-02-26 19:47:42 +00008838rm -f conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008840LIBS=$ac_check_lib_save_LIBS
drh75897232000-05-29 14:26:00 +00008841fi
a.rottmann84e63352003-03-24 09:42:16 +00008842echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00008843echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8844if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00008845 cat >>confdefs.h <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00008846#define HAVE_LIBDL 1
a.rottmann84e63352003-03-24 09:42:16 +00008847_ACEOF
drh75897232000-05-29 14:26:00 +00008848
8849 LIBS="-ldl $LIBS"
8850
drh75897232000-05-29 14:26:00 +00008851fi
8852
8853 otherlibs=$LIBS
8854 if test "$extra" != ""; then
8855 LIBS=$extra
drh71eb93e2001-09-28 01:34:43 +00008856 else
drh75897232000-05-29 14:26:00 +00008857 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +00008858 echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008859echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6
8860if test "${ac_cv_search_Tcl_Init+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008862else
drh71eb93e2001-09-28 01:34:43 +00008863 ac_func_search_save_LIBS=$LIBS
8864ac_cv_search_Tcl_Init=no
8865cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008866/* confdefs.h. */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008871
drh71eb93e2001-09-28 01:34:43 +00008872/* Override any gcc2 internal prototype to avoid an error. */
8873#ifdef __cplusplus
8874extern "C"
8875#endif
8876/* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878char Tcl_Init ();
8879int
8880main ()
8881{
8882Tcl_Init ();
8883 ;
8884 return 0;
8885}
8886_ACEOF
8887rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008889 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008890 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008895 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008904 (eval $ac_try) 2>&5
8905 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008907 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00008908 ac_cv_search_Tcl_Init="none required"
8909else
drh71eb93e2001-09-28 01:34:43 +00008910 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008911sed 's/^/| /' conftest.$ac_ext >&5
8912
drh75897232000-05-29 14:26:00 +00008913fi
a.rottmann964dbb12004-02-26 19:47:42 +00008914rm -f conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008916if test "$ac_cv_search_Tcl_Init" = no; then
dougcurrie6194a5f2003-12-19 20:09:51 +00008917 for ac_lib in tcl8.4 tcl8.3 tcl84 tcl83 tcl; do
drh71eb93e2001-09-28 01:34:43 +00008918 LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS"
8919 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008920/* confdefs.h. */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008925
drh71eb93e2001-09-28 01:34:43 +00008926/* Override any gcc2 internal prototype to avoid an error. */
8927#ifdef __cplusplus
8928extern "C"
8929#endif
8930/* We use char because int might match the return type of a gcc2
8931 builtin and then its argument prototype would still apply. */
8932char Tcl_Init ();
8933int
8934main ()
8935{
8936Tcl_Init ();
8937 ;
8938 return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00008943 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008944 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008949 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00008950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008958 (eval $ac_try) 2>&5
8959 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008961 (exit $ac_status); }; }; then
8962 ac_cv_search_Tcl_Init="-l$ac_lib"
drh75897232000-05-29 14:26:00 +00008963break
8964else
drh71eb93e2001-09-28 01:34:43 +00008965 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008966sed 's/^/| /' conftest.$ac_ext >&5
8967
drh75897232000-05-29 14:26:00 +00008968fi
a.rottmann964dbb12004-02-26 19:47:42 +00008969rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008971 done
8972fi
8973LIBS=$ac_func_search_save_LIBS
8974fi
a.rottmann84e63352003-03-24 09:42:16 +00008975echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008976echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6
8977if test "$ac_cv_search_Tcl_Init" != no; then
8978 test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
8979
drh75897232000-05-29 14:26:00 +00008980fi
8981
drh75897232000-05-29 14:26:00 +00008982 fi
8983 TARGET_TCL_LIBS="$LIBS $otherlibs"
8984fi
8985
a.rottmann84e63352003-03-24 09:42:16 +00008986
drh75897232000-05-29 14:26:00 +00008987##########
8988# Figure out where to get the TCL header files.
8989#
a.rottmann84e63352003-03-24 09:42:16 +00008990echo "$as_me:$LINENO: checking TCL header files" >&5
drh71eb93e2001-09-28 01:34:43 +00008991echo $ECHO_N "checking TCL header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008992found=no
8993if test "$config_TARGET_TCL_INC" != ""; then
8994 TARGET_TCL_INC=$config_TARGET_TCL_INC
8995 found=yes
8996else
8997 if test "$with_tcl" != ""; then
8998 TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
8999 found=yes
9000 else
9001 TARGET_TCL_INC=""
9002 found=no
9003 fi
9004fi
9005if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00009006 echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00009007echo "${ECHO_T}$TARGET_TCL_INC" >&6
drh75897232000-05-29 14:26:00 +00009008else
a.rottmann84e63352003-03-24 09:42:16 +00009009 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00009010echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00009011 if test "${ac_cv_header_tcl_h+set}" = set; then
9012 echo "$as_me:$LINENO: checking for tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009013echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
9014if test "${ac_cv_header_tcl_h+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009016fi
9017echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
9018echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
drh75897232000-05-29 14:26:00 +00009019else
a.rottmann84e63352003-03-24 09:42:16 +00009020 # Is the header compilable?
9021echo "$as_me:$LINENO: checking tcl.h usability" >&5
9022echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
9023cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009024/* confdefs.h. */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h. */
9029$ac_includes_default
drh75897232000-05-29 14:26:00 +00009030#include <tcl.h>
drh71eb93e2001-09-28 01:34:43 +00009031_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009032rm -f conftest.$ac_objext
9033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00009034 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009035 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00009041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; } &&
9047 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00009048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_header_compiler=yes
9054else
9055 echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058ac_header_compiler=no
9059fi
a.rottmann964dbb12004-02-26 19:47:42 +00009060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9062echo "${ECHO_T}$ac_header_compiler" >&6
9063
9064# Is the header present?
9065echo "$as_me:$LINENO: checking tcl.h presence" >&5
9066echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
9067cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009068/* confdefs.h. */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h. */
9073#include <tcl.h>
9074_ACEOF
9075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9077 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009078 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00009079 rm -f conftest.er1
9080 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009082 (exit $ac_status); } >/dev/null; then
9083 if test -s conftest.err; then
9084 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00009085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +00009086 else
9087 ac_cpp_err=
9088 fi
drh75897232000-05-29 14:26:00 +00009089else
drh71eb93e2001-09-28 01:34:43 +00009090 ac_cpp_err=yes
9091fi
9092if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00009093 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00009094else
9095 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009096sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00009099fi
drh71eb93e2001-09-28 01:34:43 +00009100rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9102echo "${ECHO_T}$ac_header_preproc" >&6
9103
9104# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00009105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9106 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00009107 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9108echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00009109 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
9110echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
9111 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00009112 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00009113 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00009114 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
9115echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00009116 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
9117echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
9119echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
9120 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
9121echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00009122 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
9123echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00009124 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
9125echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00009126 (
9127 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00009128## ------------------------------------------ ##
9129## Report this to the AC_PACKAGE_NAME lists. ##
9130## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00009131_ASBOX
9132 ) |
9133 sed "s/^/$as_me: WARNING: /" >&2
9134 ;;
9135esac
9136echo "$as_me:$LINENO: checking for tcl.h" >&5
9137echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
9138if test "${ac_cv_header_tcl_h+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140else
9141 ac_cv_header_tcl_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00009142fi
a.rottmann84e63352003-03-24 09:42:16 +00009143echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
drh71eb93e2001-09-28 01:34:43 +00009144echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009145
9146fi
drh71eb93e2001-09-28 01:34:43 +00009147if test $ac_cv_header_tcl_h = yes; then
drh75897232000-05-29 14:26:00 +00009148 found=yes
drh75897232000-05-29 14:26:00 +00009149fi
9150
a.rottmann84e63352003-03-24 09:42:16 +00009151
drh75897232000-05-29 14:26:00 +00009152fi
9153if test "$found" = "no"; then
drhfdc99e92000-09-29 15:15:51 +00009154 for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
drh71eb93e2001-09-28 01:34:43 +00009155 as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009156echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009157echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6
9158if eval "test \"\${$as_ac_File+set}\" = set"; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +00009160else
9161 test "$cross_compiling" = yes &&
9162 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9163echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9164 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00009165if test -r "$dir/include/tcl.h"; then
9166 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009167else
drh71eb93e2001-09-28 01:34:43 +00009168 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009169fi
9170fi
a.rottmann84e63352003-03-24 09:42:16 +00009171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009172echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9173if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009174 found=yes
drh75897232000-05-29 14:26:00 +00009175fi
9176
9177 if test "$found" = "yes"; then
9178 TARGET_TCL_INC="-I$dir/include"
9179 break
9180 fi
9181 done
9182fi
drh6d313162000-09-21 13:01:35 +00009183if test "$found" = "no"; then
9184 TARGET_TCL_INC="-DNO_TCL=1"
9185fi
drh75897232000-05-29 14:26:00 +00009186
a.rottmann84e63352003-03-24 09:42:16 +00009187
drh75897232000-05-29 14:26:00 +00009188##########
9189# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +00009190# that use "readline()" library.
9191#
9192if test "$config_TARGET_READLINE_LIBS" != ""; then
9193 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
9194else
9195 CC=$TARGET_CC
9196 LIBS=""
paul38372372003-04-22 08:04:49 +00009197 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9198echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
9199if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00009200 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00009201else
drh71eb93e2001-09-28 01:34:43 +00009202 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +00009203ac_cv_search_tgetent=no
9204cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +00009205/* confdefs.h. */
9206_ACEOF
9207cat confdefs.h >>conftest.$ac_ext
9208cat >>conftest.$ac_ext <<_ACEOF
9209/* end confdefs.h. */
9210
9211/* Override any gcc2 internal prototype to avoid an error. */
9212#ifdef __cplusplus
9213extern "C"
9214#endif
9215/* We use char because int might match the return type of a gcc2
9216 builtin and then its argument prototype would still apply. */
9217char tgetent ();
9218int
9219main ()
9220{
9221tgetent ();
9222 ;
9223 return 0;
9224}
9225_ACEOF
9226rm -f conftest.$ac_objext conftest$ac_exeext
9227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00009228 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +00009229 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009230 grep -v '^ *+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +00009233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00009235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 (eval $ac_try) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; } &&
9241 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +00009242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_search_tgetent="none required"
9248else
9249 echo "$as_me: failed program was:" >&5
9250sed 's/^/| /' conftest.$ac_ext >&5
9251
9252fi
a.rottmann964dbb12004-02-26 19:47:42 +00009253rm -f conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +00009255if test "$ac_cv_search_tgetent" = no; then
9256 for ac_lib in readline ncurses curses termcap; do
9257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9258 cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +00009259/* confdefs.h. */
9260_ACEOF
9261cat confdefs.h >>conftest.$ac_ext
9262cat >>conftest.$ac_ext <<_ACEOF
9263/* end confdefs.h. */
9264
9265/* Override any gcc2 internal prototype to avoid an error. */
9266#ifdef __cplusplus
9267extern "C"
9268#endif
9269/* We use char because int might match the return type of a gcc2
9270 builtin and then its argument prototype would still apply. */
9271char tgetent ();
9272int
9273main ()
9274{
9275tgetent ();
9276 ;
9277 return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext conftest$ac_exeext
9281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00009282 (eval $ac_link) 2>conftest.er1
paul38372372003-04-22 08:04:49 +00009283 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
paul38372372003-04-22 08:04:49 +00009287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00009289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
paul38372372003-04-22 08:04:49 +00009296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_cv_search_tgetent="-l$ac_lib"
9302break
9303else
9304 echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307fi
a.rottmann964dbb12004-02-26 19:47:42 +00009308rm -f conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +00009310 done
9311fi
9312LIBS=$ac_func_search_save_LIBS
9313fi
9314echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9315echo "${ECHO_T}$ac_cv_search_tgetent" >&6
9316if test "$ac_cv_search_tgetent" != no; then
9317 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
9318
9319fi
9320
9321
9322echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9323echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
9324if test "${ac_cv_lib_readline_readline+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326else
9327 ac_check_lib_save_LIBS=$LIBS
9328LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +00009329cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009330/* confdefs.h. */
9331_ACEOF
9332cat confdefs.h >>conftest.$ac_ext
9333cat >>conftest.$ac_ext <<_ACEOF
9334/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00009335
drh71eb93e2001-09-28 01:34:43 +00009336/* Override any gcc2 internal prototype to avoid an error. */
9337#ifdef __cplusplus
9338extern "C"
9339#endif
9340/* We use char because int might match the return type of a gcc2
9341 builtin and then its argument prototype would still apply. */
9342char readline ();
9343int
9344main ()
9345{
9346readline ();
9347 ;
9348 return 0;
9349}
9350_ACEOF
9351rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00009352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00009353 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009354 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009359 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00009360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00009367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009368 (eval $ac_try) 2>&5
9369 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009371 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +00009372 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +00009373else
drh71eb93e2001-09-28 01:34:43 +00009374 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009375sed 's/^/| /' conftest.$ac_ext >&5
9376
paul38372372003-04-22 08:04:49 +00009377ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +00009378fi
a.rottmann964dbb12004-02-26 19:47:42 +00009379rm -f conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +00009381LIBS=$ac_check_lib_save_LIBS
9382fi
9383echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9384echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
9385if test $ac_cv_lib_readline_readline = yes; then
9386 cat >>confdefs.h <<_ACEOF
9387#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +00009388_ACEOF
drh75897232000-05-29 14:26:00 +00009389
paul38372372003-04-22 08:04:49 +00009390 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +00009391
drh75897232000-05-29 14:26:00 +00009392fi
9393
drh75897232000-05-29 14:26:00 +00009394 TARGET_READLINE_LIBS="$LIBS"
9395fi
9396
a.rottmann84e63352003-03-24 09:42:16 +00009397
drh75897232000-05-29 14:26:00 +00009398##########
9399# Figure out where to get the READLINE header files.
9400#
a.rottmann84e63352003-03-24 09:42:16 +00009401echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +00009402echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00009403found=no
9404if test "$config_TARGET_READLINE_INC" != ""; then
9405 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
9406 found=yes
9407fi
9408if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00009409 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00009410echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +00009411else
a.rottmann84e63352003-03-24 09:42:16 +00009412 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00009413echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00009414 if test "${ac_cv_header_readline_h+set}" = set; then
9415 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009416echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
9417if test "${ac_cv_header_readline_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009419fi
9420echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
9421echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +00009422else
a.rottmann84e63352003-03-24 09:42:16 +00009423 # Is the header compilable?
9424echo "$as_me:$LINENO: checking readline.h usability" >&5
9425echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
9426cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
9432$ac_includes_default
drh75897232000-05-29 14:26:00 +00009433#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +00009434_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009435rm -f conftest.$ac_objext
9436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00009437 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009438 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00009444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00009451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_header_compiler=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461ac_header_compiler=no
9462fi
a.rottmann964dbb12004-02-26 19:47:42 +00009463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9465echo "${ECHO_T}$ac_header_compiler" >&6
9466
9467# Is the header present?
9468echo "$as_me:$LINENO: checking readline.h presence" >&5
9469echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
9470cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
9476#include <readline.h>
9477_ACEOF
9478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9480 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009481 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00009482 rm -f conftest.er1
9483 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009485 (exit $ac_status); } >/dev/null; then
9486 if test -s conftest.err; then
9487 ac_cpp_err=$ac_c_preproc_warn_flag
a.rottmann964dbb12004-02-26 19:47:42 +00009488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
drh71eb93e2001-09-28 01:34:43 +00009489 else
9490 ac_cpp_err=
9491 fi
drh75897232000-05-29 14:26:00 +00009492else
drh71eb93e2001-09-28 01:34:43 +00009493 ac_cpp_err=yes
9494fi
9495if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00009496 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00009497else
9498 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00009502fi
drh71eb93e2001-09-28 01:34:43 +00009503rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505echo "${ECHO_T}$ac_header_preproc" >&6
9506
9507# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00009508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9509 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00009510 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
9511echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00009512 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
9513echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
9514 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00009515 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00009516 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00009517 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
9518echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00009519 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
9520echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
9522echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
9524echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00009525 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
9526echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00009527 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
9528echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00009529 (
9530 cat <<\_ASBOX
a.rottmann964dbb12004-02-26 19:47:42 +00009531## ------------------------------------------ ##
9532## Report this to the AC_PACKAGE_NAME lists. ##
9533## ------------------------------------------ ##
a.rottmann84e63352003-03-24 09:42:16 +00009534_ASBOX
9535 ) |
9536 sed "s/^/$as_me: WARNING: /" >&2
9537 ;;
9538esac
9539echo "$as_me:$LINENO: checking for readline.h" >&5
9540echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
9541if test "${ac_cv_header_readline_h+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543else
9544 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00009545fi
a.rottmann84e63352003-03-24 09:42:16 +00009546echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +00009547echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009548
9549fi
drh71eb93e2001-09-28 01:34:43 +00009550if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +00009551 found=yes
drh75897232000-05-29 14:26:00 +00009552fi
9553
a.rottmann84e63352003-03-24 09:42:16 +00009554
drh75897232000-05-29 14:26:00 +00009555fi
9556if test "$found" = "no"; then
dougcurrie6194a5f2003-12-19 20:09:51 +00009557 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
drh71eb93e2001-09-28 01:34:43 +00009558 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009559echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009560echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
9561if eval "test \"\${$as_ac_File+set}\" = set"; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +00009563else
9564 test "$cross_compiling" = yes &&
9565 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9566echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9567 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00009568if test -r "$dir/include/readline.h"; then
9569 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009570else
drh71eb93e2001-09-28 01:34:43 +00009571 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009572fi
9573fi
a.rottmann84e63352003-03-24 09:42:16 +00009574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009575echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9576if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009577 found=yes
drh75897232000-05-29 14:26:00 +00009578fi
9579
9580 if test "$found" = "yes"; then
9581 TARGET_READLINE_INC="-I$dir/include"
9582 break
9583 fi
drh71eb93e2001-09-28 01:34:43 +00009584 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009585echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009586echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
9587if eval "test \"\${$as_ac_File+set}\" = set"; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +00009589else
9590 test "$cross_compiling" = yes &&
9591 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9592echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9593 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00009594if test -r "$dir/include/readline/readline.h"; then
9595 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009596else
drh71eb93e2001-09-28 01:34:43 +00009597 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009598fi
9599fi
a.rottmann84e63352003-03-24 09:42:16 +00009600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009601echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9602if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009603 found=yes
drh75897232000-05-29 14:26:00 +00009604fi
9605
9606 if test "$found" = "yes"; then
9607 TARGET_READLINE_INC="-I$dir/include/readline"
9608 break
9609 fi
9610 done
9611fi
9612if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +00009613 if test "$TARGET_READLINE_LIBS" = ""; then
9614 TARGET_HAVE_READLINE=0
9615 else
9616 TARGET_HAVE_READLINE=1
9617 fi
drh75897232000-05-29 14:26:00 +00009618else
9619 TARGET_HAVE_READLINE=0
9620fi
9621
a.rottmann84e63352003-03-24 09:42:16 +00009622
9623
drh75897232000-05-29 14:26:00 +00009624#########
drh2dfbbca2000-07-28 14:32:48 +00009625# Figure out whether or not we have a "usleep()" function.
9626#
a.rottmann84e63352003-03-24 09:42:16 +00009627echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009628echo $ECHO_N "checking for usleep... $ECHO_C" >&6
9629if test "${ac_cv_func_usleep+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +00009631else
drh71eb93e2001-09-28 01:34:43 +00009632 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009633/* confdefs.h. */
9634_ACEOF
9635cat confdefs.h >>conftest.$ac_ext
9636cat >>conftest.$ac_ext <<_ACEOF
9637/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009638/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
9639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9640#define usleep innocuous_usleep
9641
drh2dfbbca2000-07-28 14:32:48 +00009642/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009643 which can conflict with char usleep (); below.
9644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9645 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009646
a.rottmann84e63352003-03-24 09:42:16 +00009647#ifdef __STDC__
9648# include <limits.h>
9649#else
9650# include <assert.h>
9651#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009652
9653#undef usleep
9654
drh2dfbbca2000-07-28 14:32:48 +00009655/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00009656#ifdef __cplusplus
9657extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009658{
drh71eb93e2001-09-28 01:34:43 +00009659#endif
drh2dfbbca2000-07-28 14:32:48 +00009660/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00009661 builtin and then its argument prototype would still apply. */
9662char usleep ();
drh2dfbbca2000-07-28 14:32:48 +00009663/* The GNU C library defines this for functions which it implements
9664 to always fail with ENOSYS. Some functions are actually named
9665 something starting with __ and the normal name is an alias. */
9666#if defined (__stub_usleep) || defined (__stub___usleep)
9667choke me
9668#else
a.rottmann84e63352003-03-24 09:42:16 +00009669char (*f) () = usleep;
9670#endif
9671#ifdef __cplusplus
9672}
drh2dfbbca2000-07-28 14:32:48 +00009673#endif
9674
a.rottmann84e63352003-03-24 09:42:16 +00009675int
9676main ()
9677{
9678return f != usleep;
drh71eb93e2001-09-28 01:34:43 +00009679 ;
9680 return 0;
9681}
9682_ACEOF
9683rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00009684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a.rottmann964dbb12004-02-26 19:47:42 +00009685 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009686 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009691 (exit $ac_status); } &&
a.rottmann964dbb12004-02-26 19:47:42 +00009692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00009699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009700 (eval $ac_try) 2>&5
9701 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009703 (exit $ac_status); }; }; then
9704 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +00009705else
drh71eb93e2001-09-28 01:34:43 +00009706 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009707sed 's/^/| /' conftest.$ac_ext >&5
9708
drh71eb93e2001-09-28 01:34:43 +00009709ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +00009710fi
a.rottmann964dbb12004-02-26 19:47:42 +00009711rm -f conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +00009713fi
a.rottmann84e63352003-03-24 09:42:16 +00009714echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009715echo "${ECHO_T}$ac_cv_func_usleep" >&6
9716if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +00009717 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +00009718fi
9719
a.rottmann84e63352003-03-24 09:42:16 +00009720
drh2dfbbca2000-07-28 14:32:48 +00009721#########
drh75897232000-05-29 14:26:00 +00009722# Generate the output files.
9723#
a.rottmann84e63352003-03-24 09:42:16 +00009724 ac_config_files="$ac_config_files Makefile sqlite.pc"
drh71eb93e2001-09-28 01:34:43 +00009725cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +00009726# This file is a shell script that caches the results of configure
9727# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +00009728# scripts and configure runs, see configure's option --config-cache.
9729# It is not useful on other systems. If it contains results you don't
9730# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +00009731#
drh71eb93e2001-09-28 01:34:43 +00009732# config.status only pays attention to the cache file if you give it
9733# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +00009734#
a.rottmann84e63352003-03-24 09:42:16 +00009735# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +00009736# loading this file, other *unset* `ac_cv_foo' will be assigned the
9737# following values.
9738
9739_ACEOF
9740
drh75897232000-05-29 14:26:00 +00009741# The following way of writing the cache mishandles newlines in values,
9742# but we know of no workaround that is simple, portable, and efficient.
9743# So, don't put newlines in cache variables' values.
9744# Ultrix sh set writes to stderr and can't be redirected directly,
9745# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +00009746{
9747 (set) 2>&1 |
9748 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9749 *ac_space=\ *)
9750 # `set' does not quote correctly, so add quotes (double-quote
9751 # substitution turns \\\\ into \\, and sed turns \\ into \).
9752 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00009753 "s/'/'\\\\''/g;
9754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh71eb93e2001-09-28 01:34:43 +00009755 ;;
9756 *)
9757 # `set' quotes correctly as required by POSIX, so do not add quotes.
9758 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +00009759 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +00009760 ;;
9761 esac;
9762} |
9763 sed '
9764 t clear
9765 : clear
9766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9767 t end
9768 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9769 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +00009770if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +00009771 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +00009772 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9773 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +00009774 else
9775 echo "not updating unwritable cache $cache_file"
9776 fi
9777fi
9778rm -f confcache
9779
drh75897232000-05-29 14:26:00 +00009780test "x$prefix" = xNONE && prefix=$ac_default_prefix
9781# Let make expand exec_prefix.
9782test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9783
drh71eb93e2001-09-28 01:34:43 +00009784# VPATH may cause trouble with some makes, so we remove $(srcdir),
9785# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9786# trailing colons and then remove the whole line if VPATH becomes empty
9787# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +00009788if test "x$srcdir" = x.; then
a.rottmann964dbb12004-02-26 19:47:42 +00009789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
drh71eb93e2001-09-28 01:34:43 +00009790s/:*\$(srcdir):*/:/;
9791s/:*\${srcdir}:*/:/;
9792s/:*@srcdir@:*/:/;
a.rottmann964dbb12004-02-26 19:47:42 +00009793s/^\([^=]*=[ ]*\):*/\1/;
drh71eb93e2001-09-28 01:34:43 +00009794s/:*$//;
a.rottmann964dbb12004-02-26 19:47:42 +00009795s/^[^=]*=[ ]*$//;
drh71eb93e2001-09-28 01:34:43 +00009796}'
drh75897232000-05-29 14:26:00 +00009797fi
9798
drh75897232000-05-29 14:26:00 +00009799# Transform confdefs.h into DEFS.
9800# Protect against shell expansion while executing Makefile rules.
9801# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +00009802#
9803# If the first sed substitution is executed (which looks for macros that
9804# take arguments), then we branch to the quote section. Otherwise,
9805# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +00009806cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009807t clear
9808: clear
a.rottmann964dbb12004-02-26 19:47:42 +00009809s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +00009810t quote
a.rottmann964dbb12004-02-26 19:47:42 +00009811s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
drh71eb93e2001-09-28 01:34:43 +00009812t quote
9813d
9814: quote
a.rottmann964dbb12004-02-26 19:47:42 +00009815s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
drh71eb93e2001-09-28 01:34:43 +00009816s,\[,\\&,g
9817s,\],\\&,g
9818s,\$,$$,g
9819p
a.rottmann84e63352003-03-24 09:42:16 +00009820_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009821# We use echo to avoid assuming a particular line-breaking character.
9822# The extra dot is to prevent the shell from consuming trailing
9823# line-breaks from the sub-command output. A line-break within
9824# single-quotes doesn't work because, if this script is created in a
9825# platform that uses two characters for line-breaks (e.g., DOS), tr
9826# would break.
9827ac_LF_and_DOT=`echo; echo .`
9828DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9829rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +00009830
a.rottmann84e63352003-03-24 09:42:16 +00009831
9832ac_libobjs=
9833ac_ltlibobjs=
9834for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9835 # 1. Remove the extension, and $U if already installed.
9836 ac_i=`echo "$ac_i" |
a.rottmann964dbb12004-02-26 19:47:42 +00009837 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a.rottmann84e63352003-03-24 09:42:16 +00009838 # 2. Add them.
9839 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9840 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9841done
9842LIBOBJS=$ac_libobjs
9843
9844LTLIBOBJS=$ac_ltlibobjs
9845
9846
9847
drh75897232000-05-29 14:26:00 +00009848: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +00009849ac_clean_files_save=$ac_clean_files
9850ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +00009851{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +00009852echo "$as_me: creating $CONFIG_STATUS" >&6;}
9853cat >$CONFIG_STATUS <<_ACEOF
9854#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +00009855# Generated by $as_me.
drh75897232000-05-29 14:26:00 +00009856# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +00009857# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +00009858# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +00009859
drh71eb93e2001-09-28 01:34:43 +00009860debug=false
a.rottmann84e63352003-03-24 09:42:16 +00009861ac_cs_recheck=false
9862ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +00009863SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +00009864_ACEOF
drh75897232000-05-29 14:26:00 +00009865
drh71eb93e2001-09-28 01:34:43 +00009866cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009867## --------------------- ##
9868## M4sh Initialization. ##
9869## --------------------- ##
9870
drh71eb93e2001-09-28 01:34:43 +00009871# Be Bourne compatible
9872if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9873 emulate sh
9874 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +00009875 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9876 # is contrary to our usage. Disable this feature.
9877 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +00009878elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9879 set -o posix
drh75897232000-05-29 14:26:00 +00009880fi
a.rottmann964dbb12004-02-26 19:47:42 +00009881DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +00009882
a.rottmann84e63352003-03-24 09:42:16 +00009883# Support unset when possible.
a.rottmann964dbb12004-02-26 19:47:42 +00009884if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +00009885 as_unset=unset
9886else
9887 as_unset=false
9888fi
9889
9890
9891# Work around bugs in pre-3.0 UWIN ksh.
9892$as_unset ENV MAIL MAILPATH
9893PS1='$ '
9894PS2='> '
9895PS4='+ '
9896
9897# NLS nuisances.
9898for as_var in \
9899 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9900 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9901 LC_TELEPHONE LC_TIME
9902do
a.rottmann964dbb12004-02-26 19:47:42 +00009903 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a.rottmann84e63352003-03-24 09:42:16 +00009904 eval $as_var=C; export $as_var
9905 else
9906 $as_unset $as_var
9907 fi
9908done
9909
9910# Required to use basename.
9911if expr a : '\(a\)' >/dev/null 2>&1; then
9912 as_expr=expr
9913else
9914 as_expr=false
9915fi
9916
9917if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9918 as_basename=basename
9919else
9920 as_basename=false
9921fi
9922
9923
drh71eb93e2001-09-28 01:34:43 +00009924# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +00009925as_me=`$as_basename "$0" ||
9926$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9927 X"$0" : 'X\(//\)$' \| \
9928 X"$0" : 'X\(/\)$' \| \
9929 . : '\(.\)' 2>/dev/null ||
9930echo X/"$0" |
9931 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9932 /^X\/\(\/\/\)$/{ s//\1/; q; }
9933 /^X\/\(\/\).*/{ s//\1/; q; }
9934 s/.*/./; q'`
9935
9936
9937# PATH needs CR, and LINENO needs CR and PATH.
9938# Avoid depending upon Character Ranges.
9939as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9940as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9941as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9942as_cr_digits='0123456789'
9943as_cr_alnum=$as_cr_Letters$as_cr_digits
9944
9945# The user is always right.
9946if test "${PATH_SEPARATOR+set}" != set; then
9947 echo "#! /bin/sh" >conf$$.sh
9948 echo "exit 0" >>conf$$.sh
9949 chmod +x conf$$.sh
9950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9951 PATH_SEPARATOR=';'
9952 else
9953 PATH_SEPARATOR=:
9954 fi
9955 rm -f conf$$.sh
9956fi
9957
9958
9959 as_lineno_1=$LINENO
9960 as_lineno_2=$LINENO
9961 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9962 test "x$as_lineno_1" != "x$as_lineno_2" &&
9963 test "x$as_lineno_3" = "x$as_lineno_2" || {
9964 # Find who we are. Look in the path if we contain no path at all
9965 # relative or not.
9966 case $0 in
9967 *[\\/]* ) as_myself=$0 ;;
9968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9974done
9975
9976 ;;
9977 esac
9978 # We did not find ourselves, most probably we were run as `sh COMMAND'
9979 # in which case we are not to be found in the path.
9980 if test "x$as_myself" = x; then
9981 as_myself=$0
9982 fi
9983 if test ! -f "$as_myself"; then
9984 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9985echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9986 { (exit 1); exit 1; }; }
9987 fi
9988 case $CONFIG_SHELL in
9989 '')
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for as_base in sh bash ksh sh5; do
9996 case $as_dir in
9997 /*)
9998 if ("$as_dir/$as_base" -c '
9999 as_lineno_1=$LINENO
10000 as_lineno_2=$LINENO
10001 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10002 test "x$as_lineno_1" != "x$as_lineno_2" &&
10003 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10004 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10005 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10006 CONFIG_SHELL=$as_dir/$as_base
10007 export CONFIG_SHELL
10008 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10009 fi;;
10010 esac
10011 done
10012done
10013;;
10014 esac
10015
10016 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10017 # uniformly replaced by the line number. The first 'sed' inserts a
10018 # line-number line before each line; the second 'sed' does the real
10019 # work. The second script uses 'N' to pair each line-number line
10020 # with the numbered line, and appends trailing '-' during
10021 # substitution so that $LINENO is not a special case at line end.
10022 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10023 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10024 sed '=' <$as_myself |
10025 sed '
10026 N
10027 s,$,-,
10028 : loop
10029 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10030 t loop
10031 s,-$,,
10032 s,^['$as_cr_digits']*\n,,
10033 ' >$as_me.lineno &&
10034 chmod +x $as_me.lineno ||
10035 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10036echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10037 { (exit 1); exit 1; }; }
10038
10039 # Don't try to exec as it changes $[0], causing all sort of problems
10040 # (the dirname of $[0] is not the place where we might find the
10041 # original and so on. Autoconf is especially sensible to this).
10042 . ./$as_me.lineno
10043 # Exit status is that of the last command.
10044 exit
10045}
10046
10047
10048case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10049 *c*,-n*) ECHO_N= ECHO_C='
10050' ECHO_T=' ' ;;
10051 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10052 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10053esac
drh71eb93e2001-09-28 01:34:43 +000010054
10055if expr a : '\(a\)' >/dev/null 2>&1; then
10056 as_expr=expr
10057else
10058 as_expr=false
10059fi
10060
10061rm -f conf$$ conf$$.exe conf$$.file
10062echo >conf$$.file
10063if ln -s conf$$.file conf$$ 2>/dev/null; then
10064 # We could just check for DJGPP; but this test a) works b) is more generic
10065 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10066 if test -f conf$$.exe; then
10067 # Don't use ln at all; we don't have any links
10068 as_ln_s='cp -p'
10069 else
10070 as_ln_s='ln -s'
10071 fi
10072elif ln conf$$.file conf$$ 2>/dev/null; then
10073 as_ln_s=ln
10074else
10075 as_ln_s='cp -p'
10076fi
10077rm -f conf$$ conf$$.exe conf$$.file
10078
a.rottmann84e63352003-03-24 09:42:16 +000010079if mkdir -p . 2>/dev/null; then
10080 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000010081else
a.rottmann964dbb12004-02-26 19:47:42 +000010082 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000010083 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000010084fi
10085
a.rottmann84e63352003-03-24 09:42:16 +000010086as_executable_p="test -f"
10087
10088# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000010089as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000010090
10091# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000010092as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000010093
drh71eb93e2001-09-28 01:34:43 +000010094
10095# IFS
10096# We need space, tab and new line, in precisely that order.
10097as_nl='
10098'
10099IFS=" $as_nl"
10100
10101# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +000010102$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +000010103
10104exec 6>&1
10105
a.rottmann84e63352003-03-24 09:42:16 +000010106# Open the log real soon, to keep \$[0] and so on meaningful, and to
10107# report actual input values of CONFIG_FILES etc. instead of their
10108# values after options handling. Logging --version etc. is OK.
10109exec 5>>config.log
10110{
10111 echo
10112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10113## Running $as_me. ##
10114_ASBOX
10115} >&5
10116cat >&5 <<_CSEOF
10117
10118This file was extended by $as_me, which was
a.rottmann964dbb12004-02-26 19:47:42 +000010119generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000010120
10121 CONFIG_FILES = $CONFIG_FILES
10122 CONFIG_HEADERS = $CONFIG_HEADERS
10123 CONFIG_LINKS = $CONFIG_LINKS
10124 CONFIG_COMMANDS = $CONFIG_COMMANDS
10125 $ $0 $@
10126
10127_CSEOF
10128echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10129echo >&5
drh71eb93e2001-09-28 01:34:43 +000010130_ACEOF
10131
10132# Files that config.status was made for.
10133if test -n "$ac_config_files"; then
10134 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10135fi
10136
10137if test -n "$ac_config_headers"; then
10138 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10139fi
10140
10141if test -n "$ac_config_links"; then
10142 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10143fi
10144
10145if test -n "$ac_config_commands"; then
10146 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10147fi
10148
a.rottmann84e63352003-03-24 09:42:16 +000010149cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010150
10151ac_cs_usage="\
10152\`$as_me' instantiates files from templates according to the
10153current configuration.
10154
10155Usage: $0 [OPTIONS] [FILE]...
10156
10157 -h, --help print this help, then exit
10158 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000010159 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000010160 -d, --debug don't remove temporary files
10161 --recheck update $as_me by reconfiguring in the same conditions
10162 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000010163 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000010164
10165Configuration files:
10166$config_files
10167
10168Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +000010169_ACEOF
drh75897232000-05-29 14:26:00 +000010170
a.rottmann84e63352003-03-24 09:42:16 +000010171cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010172ac_cs_version="\\
10173config.status
a.rottmann964dbb12004-02-26 19:47:42 +000010174configured by $0, generated by GNU Autoconf 2.59,
drh71eb93e2001-09-28 01:34:43 +000010175 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000010176
a.rottmann964dbb12004-02-26 19:47:42 +000010177Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000010178This config.status script is free software; the Free Software Foundation
10179gives unlimited permission to copy, distribute and modify it."
10180srcdir=$srcdir
10181INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000010182_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010183
a.rottmann84e63352003-03-24 09:42:16 +000010184cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010185# If no file are specified by the user, then we need to provide default
10186# value. By we need to know if files were specified by the user.
10187ac_need_defaults=:
10188while test $# != 0
10189do
10190 case $1 in
10191 --*=*)
10192 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10193 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000010194 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000010195 ;;
a.rottmann84e63352003-03-24 09:42:16 +000010196 -*)
10197 ac_option=$1
10198 ac_optarg=$2
10199 ac_shift=shift
10200 ;;
drh71eb93e2001-09-28 01:34:43 +000010201 *) # This is not an option, so the user has probably given explicit
10202 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +000010203 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +000010204 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000010205 esac
10206
a.rottmann84e63352003-03-24 09:42:16 +000010207 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000010208 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +000010209_ACEOF
10210cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000010212 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +000010213 --version | --vers* | -V )
10214 echo "$ac_cs_version"; exit 0 ;;
10215 --he | --h)
10216 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +000010217 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +000010218Try \`$0 --help' for more information." >&5
10219echo "$as_me: error: ambiguous option: $1
10220Try \`$0 --help' for more information." >&2;}
10221 { (exit 1); exit 1; }; };;
10222 --help | --hel | -h )
10223 echo "$ac_cs_usage"; exit 0 ;;
10224 --debug | --d* | -d )
10225 debug=: ;;
10226 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000010227 $ac_shift
10228 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000010229 ac_need_defaults=false;;
10230 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +000010231 $ac_shift
10232 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000010233 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000010234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10235 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10236 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000010237
drh71eb93e2001-09-28 01:34:43 +000010238 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +000010239 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +000010240Try \`$0 --help' for more information." >&5
10241echo "$as_me: error: unrecognized option: $1
10242Try \`$0 --help' for more information." >&2;}
10243 { (exit 1); exit 1; }; } ;;
10244
10245 *) ac_config_targets="$ac_config_targets $1" ;;
10246
10247 esac
10248 shift
10249done
10250
a.rottmann84e63352003-03-24 09:42:16 +000010251ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000010252
a.rottmann84e63352003-03-24 09:42:16 +000010253if $ac_cs_silent; then
10254 exec 6>/dev/null
10255 ac_configure_extra_args="$ac_configure_extra_args --silent"
10256fi
drh71eb93e2001-09-28 01:34:43 +000010257
10258_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010259cat >>$CONFIG_STATUS <<_ACEOF
10260if \$ac_cs_recheck; then
10261 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10262 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10263fi
drh71eb93e2001-09-28 01:34:43 +000010264
a.rottmann84e63352003-03-24 09:42:16 +000010265_ACEOF
10266
10267
10268
10269
10270
10271cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010272for ac_config_target in $ac_config_targets
10273do
10274 case "$ac_config_target" in
10275 # Handling of arguments.
10276 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
a.rottmann84e63352003-03-24 09:42:16 +000010277 "sqlite.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite.pc" ;;
10278 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000010279echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10280 { (exit 1); exit 1; }; };;
10281 esac
10282done
10283
10284# If the user did not use the arguments to specify the items to instantiate,
10285# then the envvar interface is used. Set only those that are not.
10286# We use the long form for the default assignment because of an extremely
10287# bizarre bug on SunOS 4.1.3.
10288if $ac_need_defaults; then
10289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10290fi
10291
a.rottmann84e63352003-03-24 09:42:16 +000010292# Have a temporary directory for convenience. Make it in the build tree
10293# simply because there is no reason to put it here, and in addition,
10294# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +000010295# Create a temporary directory, and hook for its removal unless debugging.
10296$debug ||
10297{
10298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10299 trap '{ (exit 1); exit 1; }' 1 2 13 15
10300}
10301
10302# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000010303
drh71eb93e2001-09-28 01:34:43 +000010304{
a.rottmann84e63352003-03-24 09:42:16 +000010305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000010306 test -n "$tmp" && test -d "$tmp"
10307} ||
10308{
a.rottmann84e63352003-03-24 09:42:16 +000010309 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +000010310 (umask 077 && mkdir $tmp)
10311} ||
10312{
a.rottmann84e63352003-03-24 09:42:16 +000010313 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000010314 { (exit 1); exit 1; }
10315}
10316
a.rottmann84e63352003-03-24 09:42:16 +000010317_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010318
a.rottmann84e63352003-03-24 09:42:16 +000010319cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010320
10321#
10322# CONFIG_FILES section.
10323#
10324
10325# No need to generate the scripts if there are no CONFIG_FILES.
10326# This happens for instance when ./config.status config.h
10327if test -n "\$CONFIG_FILES"; then
10328 # Protect against being on the right side of a sed subst in config.status.
10329 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10330 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10331s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010332s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10333s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10334s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10335s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10336s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10337s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +000010338s,@exec_prefix@,$exec_prefix,;t t
10339s,@prefix@,$prefix,;t t
10340s,@program_transform_name@,$program_transform_name,;t t
10341s,@bindir@,$bindir,;t t
10342s,@sbindir@,$sbindir,;t t
10343s,@libexecdir@,$libexecdir,;t t
10344s,@datadir@,$datadir,;t t
10345s,@sysconfdir@,$sysconfdir,;t t
10346s,@sharedstatedir@,$sharedstatedir,;t t
10347s,@localstatedir@,$localstatedir,;t t
10348s,@libdir@,$libdir,;t t
10349s,@includedir@,$includedir,;t t
10350s,@oldincludedir@,$oldincludedir,;t t
10351s,@infodir@,$infodir,;t t
10352s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +000010353s,@build_alias@,$build_alias,;t t
10354s,@host_alias@,$host_alias,;t t
10355s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010356s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +000010357s,@ECHO_C@,$ECHO_C,;t t
10358s,@ECHO_N@,$ECHO_N,;t t
10359s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +000010360s,@LIBS@,$LIBS,;t t
10361s,@build@,$build,;t t
10362s,@build_cpu@,$build_cpu,;t t
10363s,@build_vendor@,$build_vendor,;t t
10364s,@build_os@,$build_os,;t t
10365s,@host@,$host,;t t
10366s,@host_cpu@,$host_cpu,;t t
10367s,@host_vendor@,$host_vendor,;t t
10368s,@host_os@,$host_os,;t t
10369s,@CC@,$CC,;t t
10370s,@CFLAGS@,$CFLAGS,;t t
10371s,@LDFLAGS@,$LDFLAGS,;t t
10372s,@CPPFLAGS@,$CPPFLAGS,;t t
10373s,@ac_ct_CC@,$ac_ct_CC,;t t
10374s,@EXEEXT@,$EXEEXT,;t t
10375s,@OBJEXT@,$OBJEXT,;t t
10376s,@LN_S@,$LN_S,;t t
10377s,@ECHO@,$ECHO,;t t
10378s,@RANLIB@,$RANLIB,;t t
10379s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10380s,@STRIP@,$STRIP,;t t
10381s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10382s,@CPP@,$CPP,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010383s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +000010384s,@LIBTOOL@,$LIBTOOL,;t t
10385s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10386s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10387s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10388s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010389s,@VERSION@,$VERSION,;t t
drh71eb93e2001-09-28 01:34:43 +000010390s,@BUILD_CC@,$BUILD_CC,;t t
10391s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
10392s,@BUILD_LIBS@,$BUILD_LIBS,;t t
10393s,@TARGET_CC@,$TARGET_CC,;t t
10394s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
10395s,@TARGET_LINK@,$TARGET_LINK,;t t
10396s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
10397s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
10398s,@TARGET_AR@,$TARGET_AR,;t t
10399s,@ENCODING@,$ENCODING,;t t
paulb0208cc2003-04-13 18:26:49 +000010400s,@ALLOWATTACHMEM@,$ALLOWATTACHMEM,;t t
xdong28f79f72003-09-23 00:35:21 +000010401s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000010402s,@INMEMORYDB@,$INMEMORYDB,;t t
10403s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000010404s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
10405s,@OS_UNIX@,$OS_UNIX,;t t
10406s,@OS_WIN@,$OS_WIN,;t t
10407s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
10408s,@TARGET_LIBS@,$TARGET_LIBS,;t t
10409s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t
10410s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t
10411s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
10412s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
10413s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010414s,@LIBOBJS@,$LIBOBJS,;t t
10415s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000010416CEOF
10417
a.rottmann84e63352003-03-24 09:42:16 +000010418_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010419
a.rottmann84e63352003-03-24 09:42:16 +000010420 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010421 # Split the substitutions into bite-sized pieces for seds with
10422 # small command number limits, like on Digital OSF/1 and HP-UX.
10423 ac_max_sed_lines=48
10424 ac_sed_frag=1 # Number of current file.
10425 ac_beg=1 # First line for current file.
10426 ac_end=$ac_max_sed_lines # Line after last line for current file.
10427 ac_more_lines=:
10428 ac_sed_cmds=
10429 while $ac_more_lines; do
10430 if test $ac_beg -gt 1; then
10431 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10432 else
10433 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10434 fi
10435 if test ! -s $tmp/subs.frag; then
10436 ac_more_lines=false
10437 else
10438 # The purpose of the label and of the branching condition is to
10439 # speed up the sed processing (if there are no `@' at all, there
10440 # is no need to browse any of the substitutions).
10441 # These are the two extra sed commands mentioned above.
10442 (echo ':t
10443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10444 if test -z "$ac_sed_cmds"; then
a.rottmann964dbb12004-02-26 19:47:42 +000010445 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000010446 else
a.rottmann964dbb12004-02-26 19:47:42 +000010447 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
drh71eb93e2001-09-28 01:34:43 +000010448 fi
10449 ac_sed_frag=`expr $ac_sed_frag + 1`
10450 ac_beg=$ac_end
10451 ac_end=`expr $ac_end + $ac_max_sed_lines`
10452 fi
10453 done
10454 if test -z "$ac_sed_cmds"; then
10455 ac_sed_cmds=cat
10456 fi
10457fi # test -n "$CONFIG_FILES"
10458
a.rottmann84e63352003-03-24 09:42:16 +000010459_ACEOF
10460cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010461for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10462 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10463 case $ac_file in
10464 - | *:- | *:-:* ) # input from stdin
a.rottmann964dbb12004-02-26 19:47:42 +000010465 cat >$tmp/stdin
10466 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000010468 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
a.rottmann964dbb12004-02-26 19:47:42 +000010469 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
drh71eb93e2001-09-28 01:34:43 +000010470 * ) ac_file_in=$ac_file.in ;;
10471 esac
10472
10473 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000010474 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10475$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000010476 X"$ac_file" : 'X\(//\)[^/]' \| \
10477 X"$ac_file" : 'X\(//\)$' \| \
10478 X"$ac_file" : 'X\(/\)' \| \
10479 . : '\(.\)' 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000010480echo X"$ac_file" |
10481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10483 /^X\(\/\/\)$/{ s//\1/; q; }
10484 /^X\(\/\).*/{ s//\1/; q; }
10485 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000010486 { if $as_mkdir_p; then
10487 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000010488 else
a.rottmann84e63352003-03-24 09:42:16 +000010489 as_dir="$ac_dir"
10490 as_dirs=
10491 while test ! -d "$as_dir"; do
10492 as_dirs="$as_dir $as_dirs"
10493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10494$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000010495 X"$as_dir" : 'X\(//\)[^/]' \| \
10496 X"$as_dir" : 'X\(//\)$' \| \
10497 X"$as_dir" : 'X\(/\)' \| \
10498 . : '\(.\)' 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000010499echo X"$as_dir" |
10500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10502 /^X\(\/\/\)$/{ s//\1/; q; }
10503 /^X\(\/\).*/{ s//\1/; q; }
10504 s/.*/./; q'`
10505 done
10506 test ! -n "$as_dirs" || mkdir $as_dirs
10507 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10508echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10509 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000010510
a.rottmann84e63352003-03-24 09:42:16 +000010511 ac_builddir=.
10512
10513if test "$ac_dir" != .; then
10514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10515 # A "../" for each directory in $ac_dir_suffix.
10516 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10517else
10518 ac_dir_suffix= ac_top_builddir=
10519fi
10520
10521case $srcdir in
10522 .) # No --srcdir option. We are building in place.
10523 ac_srcdir=.
10524 if test -z "$ac_top_builddir"; then
10525 ac_top_srcdir=.
10526 else
10527 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10528 fi ;;
10529 [\\/]* | ?:[\\/]* ) # Absolute path.
10530 ac_srcdir=$srcdir$ac_dir_suffix;
10531 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000010532 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000010533 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10534 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10535esac
a.rottmann964dbb12004-02-26 19:47:42 +000010536
10537# Do not use `cd foo && pwd` to compute absolute paths, because
10538# the directories may not exist.
10539case `pwd` in
10540.) ac_abs_builddir="$ac_dir";;
10541*)
10542 case "$ac_dir" in
10543 .) ac_abs_builddir=`pwd`;;
10544 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10545 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10546 esac;;
10547esac
10548case $ac_abs_builddir in
10549.) ac_abs_top_builddir=${ac_top_builddir}.;;
10550*)
10551 case ${ac_top_builddir}. in
10552 .) ac_abs_top_builddir=$ac_abs_builddir;;
10553 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10554 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10555 esac;;
10556esac
10557case $ac_abs_builddir in
10558.) ac_abs_srcdir=$ac_srcdir;;
10559*)
10560 case $ac_srcdir in
10561 .) ac_abs_srcdir=$ac_abs_builddir;;
10562 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10563 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10564 esac;;
10565esac
10566case $ac_abs_builddir in
10567.) ac_abs_top_srcdir=$ac_top_srcdir;;
10568*)
10569 case $ac_top_srcdir in
10570 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10571 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10572 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10573 esac;;
10574esac
a.rottmann84e63352003-03-24 09:42:16 +000010575
drh75897232000-05-29 14:26:00 +000010576
drh71eb93e2001-09-28 01:34:43 +000010577 case $INSTALL in
10578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000010579 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000010580 esac
10581
drh71eb93e2001-09-28 01:34:43 +000010582 # Let's still pretend it is `configure' which instantiates (i.e., don't
10583 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000010584 # /* config.h. Generated by config.status. */
10585 if test x"$ac_file" = x-; then
10586 configure_input=
10587 else
10588 configure_input="$ac_file. "
10589 fi
10590 configure_input=$configure_input"Generated from `echo $ac_file_in |
a.rottmann964dbb12004-02-26 19:47:42 +000010591 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000010592
drh71eb93e2001-09-28 01:34:43 +000010593 # First look for the input files in the build tree, otherwise in the
10594 # src tree.
10595 ac_file_inputs=`IFS=:
10596 for f in $ac_file_in; do
10597 case $f in
10598 -) echo $tmp/stdin ;;
10599 [\\/$]*)
a.rottmann964dbb12004-02-26 19:47:42 +000010600 # Absolute (can't be DOS-style, as IFS=:)
10601 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010602echo "$as_me: error: cannot find input file: $f" >&2;}
10603 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000010604 echo "$f";;
drh71eb93e2001-09-28 01:34:43 +000010605 *) # Relative
a.rottmann964dbb12004-02-26 19:47:42 +000010606 if test -f "$f"; then
10607 # Build tree
10608 echo "$f"
10609 elif test -f "$srcdir/$f"; then
10610 # Source tree
10611 echo "$srcdir/$f"
10612 else
10613 # /dev/null tree
10614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010615echo "$as_me: error: cannot find input file: $f" >&2;}
10616 { (exit 1); exit 1; }; }
a.rottmann964dbb12004-02-26 19:47:42 +000010617 fi;;
drh71eb93e2001-09-28 01:34:43 +000010618 esac
10619 done` || { (exit 1); exit 1; }
a.rottmann964dbb12004-02-26 19:47:42 +000010620
10621 if test x"$ac_file" != x-; then
10622 { echo "$as_me:$LINENO: creating $ac_file" >&5
10623echo "$as_me: creating $ac_file" >&6;}
10624 rm -f "$ac_file"
10625 fi
a.rottmann84e63352003-03-24 09:42:16 +000010626_ACEOF
10627cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010628 sed "$ac_vpsub
10629$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000010630_ACEOF
10631cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010632:t
10633/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10634s,@configure_input@,$configure_input,;t t
10635s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010636s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000010637s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010638s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10639s,@builddir@,$ac_builddir,;t t
10640s,@abs_builddir@,$ac_abs_builddir,;t t
10641s,@top_builddir@,$ac_top_builddir,;t t
10642s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000010643s,@INSTALL@,$ac_INSTALL,;t t
10644" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10645 rm -f $tmp/stdin
10646 if test x"$ac_file" != x-; then
10647 mv $tmp/out $ac_file
10648 else
10649 cat $tmp/out
10650 rm -f $tmp/out
10651 fi
drh75897232000-05-29 14:26:00 +000010652
drh71eb93e2001-09-28 01:34:43 +000010653done
a.rottmann84e63352003-03-24 09:42:16 +000010654_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010655
a.rottmann84e63352003-03-24 09:42:16 +000010656cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010657
10658{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000010659_ACEOF
drh75897232000-05-29 14:26:00 +000010660chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000010661ac_clean_files=$ac_clean_files_save
10662
a.rottmann84e63352003-03-24 09:42:16 +000010663
drh71eb93e2001-09-28 01:34:43 +000010664# configure is writing to config.log, and then calls config.status.
10665# config.status does its own redirection, appending to config.log.
10666# Unfortunately, on DOS this fails, as config.log is still kept open
10667# by configure, so config.status won't be able to write to it; its
10668# output is simply discarded. So we exec the FD to /dev/null,
10669# effectively closing config.log, so it can be properly (re)opened and
10670# appended to by config.status. When coming back to configure, we
10671# need to make the FD available again.
10672if test "$no_create" != yes; then
10673 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000010674 ac_config_status_args=
10675 test "$silent" = yes &&
10676 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000010677 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000010678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000010679 exec 5>>config.log
10680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10681 # would make configure fail if this is the last instruction.
10682 $ac_cs_success || { (exit 1); exit 1; }
10683fi
drh75897232000-05-29 14:26:00 +000010684